Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle clicks on "Switch to tab" #5042

Conversation

anikiki
Copy link
Contributor

@anikiki anikiki commented Sep 19, 2024

Task/Issue URL: https://app.asana.com/0/1200581511062568/1208264037618742/f

Description

Handled tab switching.

Steps to test this PR

Feature 1

  • Install from this branch.
  • Open a few tabs.
  • Search for something and tap on one of the suggestions to "Switch to Tab" (the text is not there yet).
  • 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

@anikiki anikiki changed the title Handled tab switching. Handle clicks on "Switch to tab" Sep 19, 2024
@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from 1f569b5 to 212d405 Compare September 26, 2024 11:23
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch 3 times, most recently from ec962a9 to 21cda6f Compare September 26, 2024 12:12
@anikiki anikiki marked this pull request as ready for review September 26, 2024 13:18
@CrisBarreiro
Copy link
Contributor

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

@CrisBarreiro CrisBarreiro self-assigned this Sep 26, 2024
Copy link
Contributor

@CrisBarreiro CrisBarreiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from c839039 to bcbf0ae Compare October 10, 2024 15:29
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 21cda6f to 39a2206 Compare October 10, 2024 15:29
@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from bcbf0ae to b64a8cf Compare October 10, 2024 15:39
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 39a2206 to 7210dda Compare October 10, 2024 15:39
@anikiki
Copy link
Contributor Author

anikiki commented Oct 10, 2024

@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 👍 I added a commit that fixes it.

@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from b64a8cf to b73f27f Compare October 11, 2024 16:06
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 7210dda to f929c92 Compare October 11, 2024 16:07
@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from b73f27f to 941fff0 Compare October 18, 2024 12:10
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from f929c92 to 322af6b Compare October 18, 2024 12:10
@anikiki anikiki force-pushed the feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions branch from 941fff0 to d0da845 Compare October 21, 2024 15:15
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 322af6b to bf286af Compare October 21, 2024 15:15
Task/Issue URL:
https://app.asana.com/0/1200581511062568/1208264037618748/f

### Description
Updated the autosuggest algorithm to include open tabs.

### Steps to test this PR

_Feature 1_
- [x] Install from this branch.
- [x] Open a few tabs.
- [x] Search for something matching an open tab. Notice open tabs are
suggested if there is a match.
- [x] Mark one of the open tabs as bookmark and don't close it.
- [x] Search for something matching that bookmark. Notice that both the
open tab and the bookmark are shown.

### NO UI changes

---------

Co-authored-by: Dax The Translator <[email protected]>
@anikiki anikiki merged commit 192b423 into feature/ana/include_open_tabs_that_match_the_query_in_the_suggestions Oct 22, 2024
4 checks passed
@anikiki anikiki deleted the feature/ana/handle_clicks_on_switch_to_tab branch October 22, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants