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

Update algorithm to show the open tabs in the correct place #5063

Conversation

anikiki
Copy link
Contributor

@anikiki anikiki commented Sep 25, 2024

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

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

NO UI changes

@anikiki anikiki mentioned this pull request Sep 25, 2024
4 tasks
@anikiki anikiki changed the title Updated the autosuggest algorithm to include open tabs. Update algorithm to show the open tabs in the correct place Sep 25, 2024
@anikiki anikiki marked this pull request as ready for review September 25, 2024 14:09
@anikiki anikiki marked this pull request as draft September 25, 2024 14:13
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 7c832f6 to c584008 Compare September 26, 2024 11:23
@anikiki anikiki force-pushed the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from 2a01940 to b7105cf Compare September 26, 2024 11:23
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from c584008 to 717d20a Compare September 26, 2024 11:45
@anikiki anikiki force-pushed the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch 2 times, most recently from 2ee8aac to bdf3526 Compare September 26, 2024 12:10
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from ec962a9 to 21cda6f Compare September 26, 2024 12:12
@anikiki anikiki force-pushed the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from bdf3526 to bdd704e Compare September 26, 2024 12:12
@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/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from bdd704e to 72671a1 Compare October 10, 2024 15:29
@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 anikiki force-pushed the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from 72671a1 to e19f6c8 Compare October 10, 2024 15:39
@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/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from 25144d4 to 673212b Compare October 11, 2024 16:07
@anikiki anikiki marked this pull request as ready for review October 14, 2024 12:12
@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/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from 673212b to 9ba4a97 Compare October 18, 2024 12:10
@anikiki anikiki force-pushed the feature/ana/handle_clicks_on_switch_to_tab branch from 322af6b to bf286af Compare October 21, 2024 15:15
@anikiki anikiki force-pushed the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place branch from 9ba4a97 to 24d6f50 Compare October 21, 2024 15:15
Task/Issue URL:
https://app.asana.com/0/1200581511062568/1208283215616231/f

### Description
Added pixels.

### Steps to test this PR

- [x] Install from this branch.
- [x] Filter logcat by `m_autocomplete_click_switch_to_tab |
m_autocomplete_displayed_switch_to_tab`.
- [x] Navigate to `https://www.wikipedia.org`.
- [x] Open another tab.
- [x] Type `wiki.
- [x] Notice the first suggestion is the open tab.
- [x] Tap on the suggestion.
- [x] Notice in the logs (2 pixels sent with the correct params ->
`switch_to_tab_capable=true`, `showed_switch_to_tab=true`):
`Pixel sent: m_autocomplete_displayed_switch_to_tab with params: {} {}`
`Pixel sent: m_autocomplete_click_switch_to_tab with params: {sb=false,
sf=false, bc=false, fc=false, hc=true, sh=false,
switch_to_tab_capable=true, showed_switch_to_tab=true} {}`
- [x] Open another tab.
- [x] Type `duck`.
- [x] Tap on the first search suggestion. Notice nothing in the logs
with the initial filter.
- [x] Filter logcat by `showed_switch_to_tab`.
- [x] Notice in the logs:
`Pixel sent: m_autocomplete_click_phrase with params: {sb=false,
sf=false, bc=false, fc=false, hc=true, sh=false,
switch_to_tab_capable=true, showed_switch_to_tab=false} {}`
- [x] Close all tabs.
- [x] Open a new tab and type `duck`.
- [x] Tap on the first search suggestion and notice in logs:
`Pixel sent: m_autocomplete_click_phrase with params: {sb=false,
sf=false, bc=false, fc=false, hc=true, sh=true,
switch_to_tab_capable=false, showed_switch_to_tab=false} {}`

### NO UI changes

---------

Co-authored-by: Dax The Translator <[email protected]>
@anikiki anikiki merged commit ae96cc6 into feature/ana/handle_clicks_on_switch_to_tab Oct 22, 2024
4 checks passed
@anikiki anikiki deleted the feature/ana/update_algorithm_to_show_the_open_tabs_in_the_correct_place 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