[Menu Redesign] Display the correct state in the Mozilla account button
Categories
(Fenix :: Toolbar, task, P3)
Tracking
(firefox127 fixed)
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: gl, Assigned: gl, NeedInfo)
References
(Regressed 1 open bug)
Details
(Whiteboard: [fxdroid])
Attachments
(3 files)
Followup to https://phabricator.services.mozilla.com/D207053#7108155, where we need to add some form of AccountState
inside of our SyncStore
which is currently missing and as a result we are not properly able to display the state where we need to reauthenticate the account.
Note, I believe that only AccountUiView is displaying the correct sync states in a button at the moment compare to BrowserMenuSIgnIn
The task here is to do the following:
- Add an
AccountState
to theSyncState
that is managed bySyncStore
- Observe the new
AccountState
from theSyncStore
in the menu dialog in order to provide the correct properties toMozillaAccountButton
. - Implement the correct navigation to the appropriate fragments given the
AccountState
. This should follow AccountUiView.
Updated•11 months ago
|
Assignee | ||
Comment 1•11 months ago
|
||
- Adds an
AccountState
to theSyncState
that is managed bySyncStore
- This follows closely to
accountStateSideEffects
in https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/android-components/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/manager/FxaAccountManager.kt#507 where we map theAccountState
to when the observer callbacks are notified.
Assignee | ||
Comment 2•11 months ago
|
||
Assignee | ||
Comment 3•11 months ago
|
||
- Implement the correct navigation to the appropriate Mozilla account fragments given the AccountState
- Navigation flow follows:
https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarMenuController.kt#233
https://searchfox.org/mozilla-central/rev/83ac77eef5a02e3c7d0d6bcc1e28a8f0700d4b5e/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/HomeMenuView.kt#122
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 5•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1a4ab46225c0
https://hg.mozilla.org/mozilla-central/rev/d80c214825c1
https://hg.mozilla.org/mozilla-central/rev/2f0f2cbeef3f
Updated•9 months ago
|
Comment 6•7 months ago
|
||
Hi :gl! I wonder if this patch stack could be causing the assertion in bug 1908838, and the recent spike in Sentry errors from bug 1909779?
Specifically, I'm wondering if calling authenticatedAccount.getProfile()?
inside FxaAccountObserver.onReady()
causes getProfile()
to update the account state and log the user out as a side effect, then notify AccountAbnormalities.onLoggedOut()
before AccountAbnormalities.onReady()
has had a chance to run. Could that explain what's happening here?
Updated•7 months ago
|
Description
•