-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bug: Disable boomark reordering when searching #3188
Bug: Disable boomark reordering when searching #3188
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thanks @jotaemepereira!
@@ -264,6 +264,13 @@ final class BookmarkOutlineViewDataSource: NSObject, BookmarksOutlineViewDataSou | |||
} | |||
|
|||
let destination = destinationNode.isRoot ? PseudoFolder.bookmarks : destinationNode.representedObject | |||
|
|||
if isSearching { | |||
let result = dragDropManager.validateDropWhileInSearchMode(info, to: destination) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just keep the change in scope of the BookmarkOutlineViewDataSource
? It seems it‘s overcomplicating things and spreading the responsibilities to the class not really meant to deal with search – BookmarkDragDropManager
.
Maybe let‘s just convert it to guard !isSearching || destination is BookmarkFolder else { return .none }
(with a comment explaining why it is so), WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree 👍🏼 . Addressed
055fcfd
to
eeff9bc
Compare
eeff9bc
to
0d6e37b
Compare
* main: (28 commits) Fix bookmark sort UI tests failure (#3219) Add tests for DuckPlayer pixel calculation (#3216) Implement checkbox VPN exclusions UI (#3207) fix zoom updated (#3140) Bump version to 1.105.0 (255) Add DuckPlayer enrollment pixels (#3190) Update PeopleFinders to address broker changes (#3208) Bump BSK with C-S-S to 6.14.0 (#3209) Zoom PDF controls (#3204) Fix exception on Copy in Save dialog (#3205) Remove DuckPlayer onboarding animation (#3198) Fix wrong URL displayed for auth dialog (#3191) Bump version to 1.105.0 (254) UI Ship review feedback for Duck Player onboarding (#3186) Implement bookmarks sort UI tests (#3162) Add bookmarks search UI tests (#3161) Bug: Disable boomark reordering when searching (#3188) Bump version to 1.105.0 (253) Remote feature flag for New Tab Page Improvements (#3176) Fix bookmarks bar issues (#3187) ...
Task/Issue URL: https://app.asana.com/0/1204006570077678/1208204239267626/f
Tech Design URL:
CC:
Description:
Steps to test this PR:
Definition of Done:
—
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation