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

Unify bookmarks context menu across different views #3138

Merged
merged 37 commits into from
Aug 30, 2024

Conversation

mallexxx
Copy link
Collaborator

@mallexxx mallexxx commented Aug 22, 2024

Task/Issue URL: https://app.asana.com/0/1202406491309510/1207775978136617/f
Project: https://app.asana.com/0/1202406491309510/1207775978136617/f
Includes:
#3106
#3107
#3110
#3111
#3138
#3112
#3113

Description:

Steps to test this PR:

  1. Validate all menu items work the same way as before in the Bookmarks bar (for a bookmark, folder, empty space)
  2. Bookmark Manager - tree view (for a folder and empty space)
  3. Bookmark Manager - main view (for bookmarks, folders, nested folders, empty space, from "…" button)
  4. Bookmarks Popover - (for bookmarks, folders, nested folders, empty space, from "…" button)

Definition of Done:


Internal references:

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

Copy link
Contributor

github-actions bot commented Aug 22, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against 36a070b

Group&align code, add MARK-s, fix naming, cleanup
…#3110)

- Add "Open all in new tabs" menu items
- Fix bookmarks menu not closed when nested bookmarks menu item (or open
all action) selected
- Bookmarks drag&drop support unified to act the same way in different
places of UI: drag&drop support moved to BookmarkDragDropManager
- Implemented drag&drop support for the Bookmarks Bar menus
- Add keyboard controls support to Bookmarks Bar menu
- Activate search by typing any letter in the Navigation Bar Bookmarks
menu
- Close search in the Navigation Bar Bookmarks menu first on Esc press
- Switching between the search bar and the search results using keyboard
in the Navigation Bar Bookmarks menu
Adjust Bookmarks Menu popover size when number of items changes
Copy link
Collaborator

@jotaemepereira jotaemepereira left a comment

Choose a reason for hiding this comment

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

@mallexxx This is looking good, but I found some issues. I’m requesting changes because I found the following:

  • Tapping the three dots on a bookmark on the bookmarks manager does not open the menu
  • The Manage Bookmarks menu item should be disabled when the menu is opened from a bookmark on the bookmarks manager (at the moment, it is enabled)
  • Adding a folder is not working as expected. If I have Folder > Bookmark, and I select the folder in the Bookmarks Manager and then tap the three dots to create a folder, the folder is created in the root while it should be created inside the Folder (this works correctly in the panel but not in the manager)
  • If you have Folder > Bookmark and select the Bookmark menu and tap on Move to end it will move it to the end but in the root folder, instead of moving it inside the current folder.

@@ -75,7 +75,7 @@
{
"identity" : "lottie-spm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/airbnb/lottie-spm.git",
"location" : "https://github.com/airbnb/lottie-spm",
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔍 This should be reverted

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess it shouldn‘t as it‘s without .git in Package.swift

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.

I've retested issues found by @jotaemepereira and reviewed the code added after his review. All looks good to me and everything works as expected now. Thanks a lot @mallexxx!

@mallexxx mallexxx merged commit ca75397 into main Aug 30, 2024
22 checks passed
@mallexxx mallexxx deleted the alex/bookmarks-context-menu branch August 30, 2024 11:22
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.

3 participants