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

Support close tabs to left and move close actions to submenu #2664

Merged
merged 7 commits into from
Apr 22, 2024

Conversation

SlayterDev
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1199230911884351/1207117125840765/f
Tech Design URL:
CC: @ayoy

Description:
This PR adds the option to close all tabs to the left when right clicking a tab. It also moves this action as well as "close to right" and "close other tabs" to a submenu in the tab context menu.

Steps to test this PR:

  1. Open some tabs
  2. Right click a tab, ensure "Close Other Tabs" opens a sub menu
  3. Clicking "Close Tabs to the Left" should close all tabs to the left of the clicked tab except pinned tabs
  4. "Close to the right" and "Close all other tabs" should work as expected.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@SlayterDev SlayterDev requested a review from ayoy April 18, 2024 18:58
@SlayterDev SlayterDev changed the base branch from main to brad/address-tab-feedback April 18, 2024 19:11
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

Hey @SlayterDev! The changes look good, but I've found some issues while testing – they're related to updating selected tab after closing a few tabs. I've updated unit tests to indicate these failures.

The selection basically needs to be updated (offset by the index of the tab for which all tabs to the left are removed), and the new selection index should be adjusted to the number of remaining tabs.

Let me know if anything is unclear. Thanks!

@SlayterDev SlayterDev assigned ayoy and unassigned SlayterDev Apr 19, 2024
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

LGTM, works great now :) thanks @SlayterDev!

@ayoy ayoy assigned SlayterDev and unassigned ayoy Apr 22, 2024
@SlayterDev SlayterDev merged commit 585742d into brad/address-tab-feedback Apr 22, 2024
17 checks passed
@SlayterDev SlayterDev deleted the brad/close-all-left branch April 22, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants