Hide tags field in the Star ("Bookmark this page") panel when the user has no tags
Categories
(Firefox :: Bookmarks & History, enhancement, P3)
Tracking
()
People
(Reporter: dao, Assigned: klubana)
References
Details
(Whiteboard: [snt])
Attachments
(1 file)
Tags are a nice power user feature, but most people won't need or want them, so let's hide the tags field from the Star panel when the user hasn't tagged any bookmarks. For existing users of tags this means no change. Users who don't have any tags but want to opt into the feature can do so in the full Edit Bookmark dialog or the Library window.
Updated•1 years ago
|
Comment 1•1 years ago
•
|
||
The scope of the bug is to show/hide the tags field depending on whether the user has ANY tags, so the first time the star dialog is shown we must use bookmarks.fetchTags to check if the user has any tags, and cache that information somewhere in browser-places.js. It may be in a boolean property maybe.
After that point, if the result is FALSE (no tags) we must keep this cached result up-to-date, in case the user adds a tag later. We can use the already existing PlacesObserver (handleEvent) implementation in browser-places, and detect when the user is adding a tag, then flip the boolean.
This avoids roundtrip to the database every time the dialog is opened.
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
bugherder |
Updated•1 year ago
|
Confirming this enhancement is implemented on Firefox 116.0b2(build ID: 20230706193912) and Nightly 117.0a1(build ID: 20230707092800) on macOS 12, Windows 11, Ubuntu 22.
Description
•