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

Alessandro/bookmarks shortcut panel #2245

Conversation

alessandroboron
Copy link
Contributor

@alessandroboron alessandroboron commented Feb 23, 2024

Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f
CC: @samsymons

Description:

Figma Mockup

  1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel
  2. Add star icon for favorite bookmarks
  3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks
  4. Present Add/Edit Bookmarks/Folder dialogs

NOTE

This PR doesn’t include the new structure for the contextual menu as per design. It just includes the “Edit…” menu item

Steps to test this PR:

Scenario 1: Adding a new Bookmark to Root Folder from top button 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Bookmark” icon.
  3. Insert Name, URL, tick as favorite and leave root Bookmarks folder as destination.
  4. Click on "Add Bookmark”.
    Expected Result: The new bookmark should appear in the list within the root bookmarks folder.

Scenario 2: Adding a new Bookmark to specific folder from top button 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Bookmark" icon.
  3. Insert Name, URL, tick as favorite and select a specific folder as destination.
  4. Click on "Add Bookmark”.
    Expected Result: The new bookmark should appear in the list within the specified folder.

**Scenario 3: Adding a new Bookmark with same address and location of an existing one but different name ** ❌

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Bookmark" icon.
  3. Insert random name.
  4. Insert same URL and same location of an existing bookmark.
  5. Click on "Add Bookmark”.
    Expected Result: The bookmark shouldn’t be duplicated and the existing one should update name.
    Actual Result: The bookmark list does not update. only upon close and re-open.
    Update: This seems similar to an issue in production where when adding a new bookmark with same URL and different name we cannot see the changes upon reopening the panel. I suspect that there’s an issue in BookmarkOutlineViewDataSource as the BookmarkListViewController sink on the List and receives the right items. This requires a bit of investigation.

Scenario 4: Adding a new Bookmark with same address of an existing one but different name & location 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Bookmark" icon.
  3. Insert random name.
  4. Insert same URL of an existing bookmark.
  5. Click on "Add Bookmark”.
    Expected Result: The bookmark should be updated and move to a different location.

Scenario 5: Adding a new Folder to Root Folder from top button 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Folder" icon.
  3. Insert name and leave root Bookmarks folder as location.
  4. Click on "Add Folder”.
    Expected Result: The folder should be added to the root bookmarks folder.

Scenario 6: Adding a new Folder to specific folder from top button 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Folder" icon.
  3. Insert name.
  4. Select a specific folder as location.
  5. Click on "Add Folder”.
    Expected Result: The folder should be added as child within the specified folder.

Scenario 7: Adding a new Folder with same name of an exisiting one 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Click on "Add Folder" icon.
  3. Insert same name of an existing folder.
  4. Click on "Add Folder”.
    Expected Result: The folder should be duplicated (as per existing behaviour in production).

Scenario 8: Editing a Folder from Context Menu 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired folder.
  3. Change name/location.
  4. Click on “Save”.
    Expected Result: The folder should update name/location and its content should still be available.

Scenario 9: Editing a Bookmark from Context Menu - Change Name 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired bookmark.
  3. Change name and leave same URL.
  4. Click on “Save”.
    Expected Result: The bookmark should update name.

Scenario 10: Editing a Bookmark from Context Menu - Change Name and URL

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired bookmark.
  3. Change name and URL.
  4. Click on “Save”.
    Expected Result: The bookmark should update name.
    Actual Result: The bookmark updates upon closing & reopening the panel.
    Update:This seems similar to an issue in production where when adding a new bookmark with same URL and different name we cannot see the changes upon reopening the panel. I suspect that there’s an issue in BookmarkOutlineViewDataSource as the BookmarkListViewController sink on the List and receives the right items. This requires a bit of investigation.

Scenario 11: Editing a Bookmark from Context Menu -Change Name, URL and Location 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired bookmark.
  3. Change name, URL and location.
  4. Click on “Save”.
    Expected Result: The bookmark should update name and URL and move to the specified location.

**Scenario 12: Adding to Favorites” 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired bookmark.
  3. Check favorites checkbox.
  4. Click on “Save”.
    Expected Result: The bookmark should show a star icon.

**Scenario 13: Removing from Favorites” 🟢

  1. Open bookmark panel from Bookmark shortcut.
  2. Right-click or click on the “…" button for the desired bookmark.
  3. Uncheck favorites checkbox.
  4. Click on “Save”.
    Expected Result: The bookmark should not show a star icon.

**Scenario 14: Adding a Bookmark from Tab that has a loaded web page” 🟢

  1. Load a web page.
  2. Open bookmark panel from Bookmark shortcut.
  3. Tap on the “New Bookmark” button.
    Expected Result: The bookmark name and title should be prefilled with the web page information.

Internal references:

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

Copy link
Contributor

🚫 The Asana task linked in the PR description is not added to macOS App Board project.

  1. Verify that the correct task is linked in the PR.
    • ⚠️ Please use the actual implementation task, rather than the Code Review subtask.
  2. Verify that the task is added to macOS App Board project.
  3. When ready, remove the bot: not in app board label to retrigger the check.

@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Feb 23, 2024
Base automatically changed from alessandro/address-bookmarks-feedback-bookmark-logic to alessandro/address-bookmarks-feedback February 26, 2024 10:11
@alessandroboron alessandroboron force-pushed the alessandro/bookmarks-shortcut-panel branch from ab4226e to 8b60abf Compare February 26, 2024 10:17
Copy link
Collaborator

@SabrinaTardio SabrinaTardio 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 as described…
Did you find out what was wrong with those cases yet?

@alessandroboron
Copy link
Contributor Author

alessandroboron commented Feb 26, 2024

LGTM works as described… Did you find out what was wrong with those cases yet?

No yet, but I made myself a task to investigate the issue https://app.asana.com/0/0/1206687983236914/f

@alessandroboron alessandroboron merged commit e9e5e7e into alessandro/address-bookmarks-feedback Feb 26, 2024
16 of 17 checks passed
@alessandroboron alessandroboron deleted the alessandro/bookmarks-shortcut-panel branch February 26, 2024 23:54
alessandroboron added a commit that referenced this pull request Feb 27, 2024
Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f

**Description**:
1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel.
2. Add “Star" icon for favorite bookmarks.
3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks.
4. Present Add/Edit Bookmarks/Folder dialogs.
alessandroboron added a commit that referenced this pull request Mar 7, 2024
Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f

**Description**:
1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel.
2. Add “Star" icon for favorite bookmarks.
3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks.
4. Present Add/Edit Bookmarks/Folder dialogs.
alessandroboron added a commit that referenced this pull request Mar 7, 2024
Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f

**Description**:
1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel.
2. Add “Star" icon for favorite bookmarks.
3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks.
4. Present Add/Edit Bookmarks/Folder dialogs.
alessandroboron added a commit that referenced this pull request Mar 7, 2024
Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f

**Description**:
1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel.
2. Add “Star" icon for favorite bookmarks.
3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks.
4. Present Add/Edit Bookmarks/Folder dialogs.
alessandroboron added a commit that referenced this pull request Mar 14, 2024
Task/Issue URL: https://app.asana.com/0/0/1206670741563549/f

**Description**:
1. “Three dots hover” menu button for Bookmarks and Folders in the bookmarks shortcut panel.
2. Add “Star" icon for favorite bookmarks.
3. Enhance Contextual Menu with "Edit…” for both folders and bookmarks.
4. Present Add/Edit Bookmarks/Folder dialogs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants