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

bookmarks management improvements #362

Merged
merged 15 commits into from
Dec 6, 2021
Merged

Conversation

brindy
Copy link
Contributor

@brindy brindy commented Dec 3, 2021

Task/Issue URL: https://app.asana.com/0/392891325557410/1201320333982208
Tech Design URL:
CC:

Description:

Improve hover states and allow multiple selections in the bookmarks management UI.

Fixes bug to re-show popver when adding a bookmark.

Steps to test this PR:

Bookmarks Popover:

  1. In bookmarks popover ensure that rows are highlighted on hover.
  2. Click to open/close folders

Management UI:

  1. Ensure that rows are highlighted on hover.
  2. Ensure items are selected when clicked.
  3. Ensure double click opens items.
  4. Modifier keys + click also open items.

Bug fix:

  1. Add a bookmark
  2. Ensure that the popover is shown

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@@ -238,6 +238,7 @@ final class AddressBarButtonsViewController: NSViewController {
}

if !bookmarkPopover.isShown {
bookmarkButton.isHidden = false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bug fix to show popover when adding a bookmark

@brindy brindy requested a review from samsymons December 3, 2021 16:15
@samsymons samsymons self-assigned this Dec 3, 2021
Comment on lines +61 to +70
/*
1 2
c4 _______ c1
/ \
8 | | 3
| |
7 | | 4
c3 \_______/ c2
6 5
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

I love this


}

convenience init(roundedRect rect: CGRect, forCorners corners: [Corners], cornerRadius: CGFloat) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sucks that this isn't an official part of the SDK. Nice work here though 🙂

Copy link
Collaborator

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

No complaints at all here, beyond the change to Command+Click that we discussed so that the UI better matches macOS conventions. That's it though – this is awesome and makes a surprisingly big difference 👏

@brindy brindy merged commit d9697dc into develop Dec 6, 2021
@brindy brindy deleted the brindy/bookmarks-higlighting branch December 6, 2021 11:12
@bstandaert-ddg
Copy link

@brindy Sorry for not getting a chance to review this before it was merged, but I'm seeing a couple of bugs with this:

  1. Editing a bookmark doesn't work for me anymore with this PR (in Big Sur) - the title field appears and disappears, and selecting the title and URL fields only works intermittently:
Screen.Recording.2021-12-06.at.10.32.45.AM.mov
  1. If you start editing one bookmark and then select another, it's possible to have multiple edit views open at the same time, which I don't think is intended:
Screen.Recording.2021-12-06.at.10.34.43.AM.mov
  1. With an item selected, the URL and menu button aren't very visible:

Screen Shot 2021-12-06 at 10 36 04 AM

  1. If I select multiple items and then double-click, only the individual item I clicked on opens - I'd expect all selected items to open.

I can file these as followups somewhere else if you want.

@brindy
Copy link
Contributor Author

brindy commented Dec 6, 2021

Thanks @bstandaert-ddg !

For 1 can you create a task and assign that to me, please? Feels like it should get fixed.

As for the others, can you create sub-tasks under https://app.asana.com/0/1177771139624306/1200857259881361 please?

Thanks

@bstandaert-ddg
Copy link

Done.

samsymons added a commit that referenced this pull request Dec 13, 2021
# By Alexey Martemyanov (3) and others
# Via GitHub
* develop:
  Point to updated BSK version (#371)
  Fixing macOS desktop app retention metrics (#370)
  fix bookmark editing and colors (#364)
  ATB -> PixelDataStore (#356)
  Fix deallocation (#369)
  Initialize user scripts when setting up the WebView (#363)
  bookmarks management improvements (#362)
  BSK branch setting changed to exact commit (#360)
  Tweak the alignment of the home page search bar. (#353)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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