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

Restore shift click behavior for search button opening as a popup #920

Merged
merged 1 commit into from
May 13, 2024

Conversation

Kuuuube
Copy link
Member

@Kuuuube Kuuuube commented May 12, 2024

Fixes #515

It isn't obvious from the code changes but this is what is going on here:

Old behavior:

shift click search button -> popup search opens -> popup search closes -> new tab opens with search page

This all happens instantly so the popup search is never seen.

New behavior:

shift click search button -> popup search opens -> search page opener sees 'popup' mode and does not open the search page

@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/ui-ux The issue or PR is related to UI/UX/Design regression This issue or PR is related to a regression labels May 12, 2024
@Kuuuube Kuuuube requested a review from a team as a code owner May 12, 2024 12:44
Copy link
Collaborator

@jamesmaa jamesmaa left a comment

Choose a reason for hiding this comment

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

How was this broken in the first place?

*/
async _onCommandOpenSettingsPage(params) {
/** @type {'existingOrNewTab'|'newTab'} */
/** @type {'existingOrNewTab'|'newTab'|'popup'} */
let mode = 'existingOrNewTab';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to make mode an enum in this PR or separate?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can make another pr for that later.

@Kuuuube
Copy link
Member Author

Kuuuube commented May 13, 2024

How was this broken in the first place?

Unsure, I tried bisecting but ended up with 8 commits. 1 bad and 1 good on each side and 6 in the middle which were completely broken and the extension didn't function for testing. It was in the middle of some massive refactoring so no way to really know.

@jamesmaa jamesmaa added this pull request to the merge queue May 13, 2024
Merged via the queue into themoeway:master with commit fc83365 May 13, 2024
10 checks passed
@jamesmaa jamesmaa mentioned this pull request May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-ux The issue or PR is related to UI/UX/Design kind/bug The issue or PR is regarding a bug regression This issue or PR is related to a regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shift+search button no longer opens search pop-up
2 participants