mozilla / fx-private-relay-add-on

Companion add-on for Firefox Relay. Keep your email safe from hackers and trackers. Make an email alias with one click, and keep your address to yourself.
https://addons.mozilla.org/en-US/firefox/addon/private-relay
Mozilla Public License 2.0
70 stars 15 forks source link

[MPP-1714] Popup Refactor - Settings Panel #455

Closed maxxcrawford closed 1 year ago

maxxcrawford commented 1 year ago

Related: https://github.com/mozilla/fx-private-relay-add-on/pull/453

Summary

Add "Settings" panel to add-on toolbar

Caveat: The "Report Issue" panel is not completed and will be added in a future PR.

Links:

Work completed so far:

TODO:

Tests

  1. Show Settings when logged out

    • Run add-on
    • Do not log in
    • Open pop-up
    • Expected: Only two links should be visible: Manage and Settings (Stats and News are hidden)
  2. All settings links work

    • Run add-on
    • Log in
    • Open pop-up > Click Gear icon
    • Expected: Settings panel opens
    • Click Toggles
    • Expected: Toggles should flip to grey/inactive
    • Click links
    • Expected: Links should open in new tab (and popup should close)
  3. Report Issue (webcompat) panel should open

    • Run add-on
    • Log-in
    • Open pop-up > Click Gear icon
    • Click "Report Issue"
    • Expected: Report Issue panel should open, and the gear icon should stay "active"
    • Click back button
    • Expected: Settings panel should re-open, and the gear icon should stay "active"

Screenshots

Logged in:

image

Logged out:

image