Closed
Bug 1372946
Opened 7 years ago
Closed 7 years ago
Spike: research feasibility of Places menu using only panelviews
Categories
(Firefox :: Toolbars and Customization, enhancement, P1)
Tracking
()
VERIFIED
FIXED
Iteration:
56.3 - Jul 24
People
(Reporter: mikedeboer, Assigned: mikedeboer)
References
Details
(Whiteboard: [photon-structure])
Attachments
(1 file)
At the moment, the bookmarks panel menu displays the contents of its folders and alternative views in menupopups that do not really fit in. With Photon we emphasize and make a lot more use of the panel subviews to display secondary UI. Perhaps this is also a good time to move the Places views over to be properly part of the Photon panels. The drag 'n drop functionality is not part of this spike; if we can get the views to populate and work consistently, implementing drag 'n drop is a matter of doing the work and porting much of the places menupanel code over to PanelMultiView.jsm.
Flags: qe-verify-
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8877649 -
Flags: review?(mak77) → feedback?(mak77)
Updated•7 years ago
|
Whiteboard: [photon-structure] → [photon-structure] [triage]
Updated•7 years ago
|
Iteration: --- → 56.1 - Jun 26
Priority: P2 → P1
Whiteboard: [photon-structure] [triage] → [photon-structure]
Assignee | ||
Comment 2•7 years ago
|
||
You can see it in action here: https://vimeo.com/221608472
Comment 3•7 years ago
|
||
Comment on attachment 8877649 [details] Bug 1372946 - Experiment with using only panelviews for Places. As I said in the other bug, this is a good start. I'm a bit missing info about the global direction, since this bug is investigating a full view, the other one just recent bookmarks. What are we targeting? I didn't test the patch directly, things to check in new views are: 1. does it update properly when bookmarks change and the view is open? (this may want a test, for the old menu we have http://searchfox.org/mozilla-central/source/browser/components/places/tests/browser/browser_views_liveupdate.js that is a bit legacy but what matters is the scope of it) 2. is the contextual menu correct on the various areas of the view? For example on the "static" part of the menu (not the user bookmarks) it is different than on bookmarks. In "Recent Tags" it should not be possible to Cut (since queries are read-only), and so on. I can eventually do some manual testing when you're ready for that. 3. Does drag&drop work? Is it possible to reorder items, and is a drop indicator shown in the proper place? is it possible to drop into subfolders or out of subfolder? is it possible to drop outside the menu, and viceversa? Or maybe you decided D&D is polish that will happen after 57.
Attachment #8877649 -
Flags: feedback?(mak77) → feedback+
Assignee | ||
Comment 4•7 years ago
|
||
(In reply to Marco Bonardo [::mak] from comment #3) > I didn't test the patch directly, things to check in new views are: > 1. does it update properly when bookmarks change and the view is open? (this > may want a test, for the old menu we have > http://searchfox.org/mozilla-central/source/browser/components/places/tests/ > browser/browser_views_liveupdate.js that is a bit legacy but what matters is > the scope of it) Didn't check this yet, but I think it works out-of-the-box. I'll add a test for sure when we move to a concrete implementation. > 2. is the contextual menu correct on the various areas of the view? For > example on the "static" part of the menu (not the user bookmarks) it is > different than on bookmarks. In "Recent Tags" it should not be possible to > Cut (since queries are read-only), and so on. I can eventually do some > manual testing when you're ready for that. I think I skipped setting the correct attribute on the nodes atm, but that will be something to ensure later. > 3. Does drag&drop work? Is it possible to reorder items, and is a drop > indicator shown in the proper place? is it possible to drop into subfolders > or out of subfolder? is it possible to drop outside the menu, and viceversa? > Or maybe you decided D&D is polish that will happen after 57. No, because I descoped that feature for this spike. I can't see us _not_ having DnD support, so I'll need to (re-)implement that for sure. Thanks for the feedback!! This'll be super useful once we start moving this and other panels/ views to the sliding views system.
Updated•7 years ago
|
Iteration: 56.1 - Jun 26 → 56.2 - Jul 10
Updated•7 years ago
|
Iteration: 56.2 - Jul 10 → 56.3 - Jul 24
Assignee | ||
Comment 5•7 years ago
|
||
Spiked has finished (successfully) and part of the code is used for the Bookmarks subview in the Library panel. Thanks again, Marco!
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•