Allow collapsing of top sites and the rest of Discovery Stream content
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
People
(Reporter: wolasi, Assigned: Mardak)
References
Details
(Keywords: github-merged)
Attachments
(1 file)
(deleted),
text/x-github-pull-request
|
Details |
We’re bring back some of the original Section Actions to New Tab. And exposing the Collapse/Expand action in the Section Header.
Section Header Components
- Collapse/Expand Button
- Section Title
- Optional Info Link
- Open Menu Button
- Section Menu (triggered by the Open Menu button)
Implementation Details
- Let's reuse as much of the existing Section Menu code as possible.
- Note Actions available in the menu depend on the section.
- Note For the section content collapse and expand UX we'll need to create container for each section, and track the section content collapse/expand state.
Spec
https://codepen.io/otbog/pen/XGEOxZ?editors=1100
https://www.figma.com/file/0xZkmT86rSXbGRB4eIvrn0ts/Home-New-Tab-Spec-for-Fx-v68?node-id=12%3A0
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
There might be some overlap with bug 1533601 although SectionManager separately tracked whether a section should show via about:config prefs while collapsed was via indexedb.
Currently I don't think there's any per-discovery-stream-section state, so some storage mechanism is needed ?
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Hi everyone,
Is this bug available? If so, I would be interest in working on it!
Thanks.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Thank you for volunteering, Mellina! This bug is not currently available for contribution, but please check out this wiki page to find a good next step: https://wiki.mozilla.org/Good_first_bug Thanks again!
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Renaming to reflect the reduction of scope. The more general approach with server controllable collapsible is being tracked in bug 1542866.
Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
I have verified this issue with the latest Firefox Nightly (68.0a1 Build ID - 20190414214746) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, the sections can be collapsed/expanded and a section menu is present for the "Top Sites" and the "Recommended by Pocket" sections containing the following options:
Options for the "Top Sites" section:
- Add Top Site:
- Add Search Engine
- Remove Section
- Collapse/Expand Section
- Manage Section
Options for the "Recommended by Pocket" section:
- Remove Section
- Collapse/Expand Section
- Privacy Notice
- Manage Section
Updated•5 years ago
|
Updated•5 years ago
|
Description
•