Closed Bug 1883162 Opened 1 year ago Closed 8 months ago

Update profiles app menu items to use Selectable Profiles

Categories

(Toolkit :: Startup and Profile System, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: jhirsch, Assigned: jhirsch)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-profile-management] )

Attachments

(2 files)

Once selectable profiles are available in the SelectableProfileService, we'll need to revise the list shown in the profiles submenu to only show profiles linked to the current profile, and to also launch new profiles as linked to the current profile.

Whiteboard: [fidefe-profile-management]
Component: Profiles → Startup and Profile System
Product: Firefox → Toolkit
Target Milestone: --- → 125 Branch
Whiteboard: [fidefe-profile-management] → [fidefe-profile-management]
Assignee: nobody → jhirsch
Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P1
Summary: Update profiles menu items to use Linked Profiles → Update profiles menu items to use Selectable Profiles

Longish commit here with some notes. I just noticed the delete icon should
be removed from the subview; I'll handle that before landing.

Note for reviewers - if there are 0 or 1 profiles, we show something
different in the app menu vs. 2+ profiles. See the Figma for details,
but in short:

  • Case 1: Profiles disabled, the menu item shouldn't be visible
  • Case 2: Profiles enabled, but either haven't created a selectable profile
    yet, or only have 1 profile: show "Profiles" in menu item, limited
    view in the submenu panel.
  • Case 3: Profiles enabled, 2+ selectable profiles. Show avatar +
    profile name in the menu item, full view in the submenu panel.

I've resorted to null-checking SelectableProfileService.currentProfile
in several spots, but I thought it should never be null--am I right? If
so, we should file a bug to figure out what to do.

This patch is based on a WIP SVG commit. I'm hoping UX can give us revised
SVG avatars with the background circle included in the SVG. For now it's
helpful in testing the flows. Also updated the new profile creation code
to pick a random avatar.

Here we respond to "manage profiles" by opening the profile selector in
a tab. Waiting to hear from UX if that's OK or if a separate window is
needed.

Thoughts welcome on tests needed to land here, thanks.

Duplicate of this bug: 1883157
Summary: Update profiles menu items to use Selectable Profiles → Update profiles app menu items to use Selectable Profiles
Attachment #9426659 - Attachment description: Bug 1883162 - Update profiles app menu to latest design using selectable profiles. r?niklas,mossop → Bug 1883162 - Update profiles app menu to latest design using selectable profiles. r?niklas
Pushed by jhirsch@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7719ffbcf2e Update profiles app menu to latest design using selectable profiles. r=niklas,fluent-reviewers,desktop-theme-reviewers,bolsson,dao
Pushed by jhirsch@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f702c1947c9 Update profiles app menu to latest design using selectable profiles. r=niklas,fluent-reviewers,desktop-theme-reviewers,bolsson,dao
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Flags: needinfo?(jhirsch)
Duplicate of this bug: 1886009
Duplicate of this bug: 1886011
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: