Handle clicks on "Switch to tab"
Task/Issue URL: https://app.asana.com/0/1200581511062568/1208264037618742/f
Description
Handled tab switching.
Steps to test this PR
Feature 1
- [x] Install from this branch.
- [x] Open a few tabs.
- [x] Search for something and tap on one of the suggestions to "Switch to Tab" (the text is not there yet).
- [x] Notice that tab is now selected. If there are multiple identical tabs (pointing to the same URL) the first one is selected.
NO UI changes
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @anikiki and the rest of your teammates on
Graphite
Looks good and works as expected. I've noticed that if an open tab is also in history, then we won't switch to a new tab ut navigate instead, but I'm assuming that's expected and will be addressed later in the stack
@anikiki I just realized that when clicking "Switch to tab" from the widget, we're opening a new tab instead. Can you please have a look?
Good catch @CrisBarreiro! Thanks :+1: I added a commit that fixes it.