Closed Bug 1867385 Opened 2 years ago Closed 7 days ago

Replace bespoke preferences navigation sidebar with Category Navigation reusable component

Categories

(Firefox :: Settings UI, task, P3)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: mconley, Assigned: fterdal, NeedInfo)

References

(Blocks 4 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 file, 1 obsolete file)

kcochrane is working on making the page navigation sidebar from Firefox View be more reusable in bug 1850591. It offers a number of accessibility improvements over the bespoke one written for preferences (the heading for wayfinding, the notch to indicate the selected page), and has had a lot of recent attention from the UX / a11y teams. We should definitely consider switching about:preferences over to it once bug 1850591 is closed out and the reusable component is ready for use.

Severity: -- → S4
Priority: -- → P3
Depends on: 1877826
Whiteboard: [recomp]
Depends on: 1927211
Depends on: 1927214

This will be needed to complete the SRD work. The new nav will need to:

  • include the search bar
  • support displaying a notice when an enterprise policy is enabled
  • support displaying a notice about the user's current profile

You can see examples of what these will look like together here.

Not sure about the sequencing here - maybe we want to do the nav switch behind a pref so that it's not visible until we've reorganized the settings pages.

Blocks: srd-2025
See Also: → 1983388
Blocks: 1996819
See Also: → 1999550

FYI there was a Bug 2002923 that was cutting of the focus outline in an element in an area that appears to be getting replaced in this work. In the meantime, we've added a temporary hack to resolve it and just referenced this bug in that patch, so we remember to remove the hack when this work is complete. cc: mstriemer

I just filed bug 2013918 to add accesskeys. I made it depend on this since it could definitely be a follow-up, but it may make sense to treat that as the bug to add the accesskey support to moz-page-nav and then do the conversion here and use it right away after. No preference personally on the order

Assignee: nobody → fterdal

A couple of things to note about this bug:

  • we are no longer planning on displaying a profiles notice, so we only need to show the enterprise notice
  • we have a nav-notice component that can be placed in the subheading slot of moz-page-nav for the enterprise notice (the component is probably a bit overbuilt/unnecessary now, but it seemed useful when we were gonna need to show themed profiles)
  • there's a pretty full working example of what the nav should look like here (storybook code can be found here)

I guess whether or not we put the new nav behind the SRD feature flag kinda comes down to whether or not we want to deal with test failures up front, and if we're ok with handling showing different navigation options based on the flag since the IA is changing in redesigned settings.

See Also: → 2015941
Attachment #9544716 - Attachment description: WIP: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer
Attachment #9544716 - Attachment description: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers
Status: NEW → ASSIGNED
Attachment #9544716 - Attachment description: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers → WIP: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers
Attachment #9544716 - Attachment description: WIP: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7f28fcc4f508 https://hg.mozilla.org/integration/autoland/rev/b5de3d4199c3 Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fd88ac7e9877 https://hg.mozilla.org/integration/autoland/rev/ad9283ecf026 Revert "Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod" for causing mochitest related failures at browser_aiFeatures_block_dialog.js

Backed out for causing mochitest related failures at browser_aiFeatures_block_dialog.js and browser_cookies_exceptions.js
Backout link
Push with failures
Failure log(s) 1
Failure log(s) 2

Flags: needinfo?(fterdal)

Also this failure

And also this and this.

Thanks! I'll try and reproduce these locally and push again

Flags: needinfo?(fterdal)
Attachment #9554376 - Attachment is obsolete: true
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/613ba80ff33f https://hg.mozilla.org/integration/autoland/rev/0661305eb697 Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod

Backout for causing bc failures at preferences/tests/browser_usage_telemetry_support_link.js
Backout link
Push with failures
Failure log
Failure line TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_usage_telemetry_support_link.js | testSupportLinkTelemetry - Test timed out

Flags: needinfo?(fterdal)
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a8173a841491 https://hg.mozilla.org/integration/autoland/rev/1782ec6b83f1 Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3efa36a198bb https://hg.mozilla.org/integration/autoland/rev/5b1d2e55fb32 Revert "Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod" for causing bc failures at browser_usage_telemetry.js

Backed out for causing bc failures at browser_usage_telemetry.js
Backout link
Push with failures
Failure log(s)

Hi, @Finn, it also causes those failures

Hi @rperta, thank you for the links and for your patience with this revision! I've just submitted another landing request after resolving those test failures. Let me know if you find any others.

Flags: needinfo?(fterdal)
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/60744662cbb5 https://hg.mozilla.org/integration/autoland/rev/698b68830672 Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod
Pushed by imoraru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/236bbe7ac2d9 https://hg.mozilla.org/integration/autoland/rev/9f9b05febe3b Revert "Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod" for causing bc failures on browser_syncedtabs_firefoxview.js.

Revert for causing bc failures on browser_syncedtabs_firefoxview.js.

Flags: needinfo?(fterdal)
Attachment #9544716 - Attachment description: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers
Attachment #9544716 - Attachment description: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers

I believe my recent changes to moz-page-nav.css have fixed the browser_syncedtabs_firefoxview.js test failures. It looks like they were only failing on the tsan builds, and the failure isn't recurring (at least according to the latest Try).

I've just submitted another land request. Let me know if anything else requires fixing.

Flags: needinfo?(fterdal)
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dd7944feed76 https://hg.mozilla.org/integration/autoland/rev/6db322a78849 Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/35767038f714 https://hg.mozilla.org/integration/autoland/rev/9711c665ab42 Revert "Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod" for causing Marionette failures @ test_default_launcher_visible.py

Backed out for causing marionette failures

Flags: needinfo?(fterdal)
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9a6eee0ef119 https://hg.mozilla.org/integration/autoland/rev/96a7e76b45cd Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod,sfoster
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/290ed847dde4 https://hg.mozilla.org/integration/autoland/rev/d1c08baa9c2f Revert "Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod,sfoster" for causing bc failures @ browser_syncedtabs_firefoxview.js

Backed out for causing bc failures @ browser_syncedtabs_firefoxview.js

Backout link

Push with failures

Failure log

Attachment #9544716 - Attachment description: Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r?jhirsch,hjones,mstriemer,#settings-reviewers → Bug 1867385 - Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod,sfoster
Pushed by fterdal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e89b670cf578 https://hg.mozilla.org/integration/autoland/rev/c6a8ac01b19b Replace Preferences Navbar with reusable Category Navigation component r=hjones,fluent-reviewers,desktop-theme-reviewers,bolsson,flod,sfoster
Status: ASSIGNED → RESOLVED
Closed: 7 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: