fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Sign in and managing account settings

Open sblatz opened this issue 7 years ago • 22 comments

Design

User stories:

  • As a user, I want to be notified if there was something wrong with the sync (screen and [screen|url) ==> addressed in #3523
  • As a user, when sync issues occur, I want an option to re-connect/login or remove my account to prevent any further warnings to pop up (screen) ==> addressed in #3946
  • As a user, I want to option to disconnect my account from the device but want to be made aware of what that means for my data across other devices (screen) ==> addressed in #3134

Acceptance Criteria

  • I can update their account settings and it persists (across devices)
  • I know if/when if I am successfully logged in or out
  • I can see any issues or warnings if sync failed

Requirements

  • Handle logic for updating [initial settings page|#288] if logged in
  • Handle sign in logic from initial settings page
  • Create logic for managing account
  • Create UI for managing account

┆Issue is synchronized with this Jira Task

sblatz avatar Jan 29 '19 19:01 sblatz

@bbinto I recommend we move this out of the milestone 2 backlog, and instead tie it to whatever milestone https://github.com/mozilla-mobile/fenix/issues/212 will be in.

sblatz avatar Feb 08 '19 21:02 sblatz

@ryanfeeley can eng get started on this task in this sprint?

lime124 avatar Mar 13 '19 21:03 lime124

@lime124 will share mocks with team for feedback

vesta0 avatar Mar 27 '19 19:03 vesta0

@vesta0 shared with colin earlier today and i believe he's scheduling some time to review it tomorrow. i will post the UI in the ux issue.

lime124 avatar Mar 28 '19 03:03 lime124

I think we need to get a size estimate on this, @vesta0.

sblatz avatar Apr 03 '19 20:04 sblatz

@bbinto please confirm user stories and acceptance criteria reflects what we are doing in MVP and open issue to cover Sync error pages

vesta0 avatar Apr 11 '19 19:04 vesta0

@ryanfeeley what will "Manage account" do? https://mozilla.invisionapp.com/share/QSR2F8UD4PN#/screens/357473544 - do we have UI for this?

bbinto avatar Apr 12 '19 10:04 bbinto

@vesta0 - updated according to latest screens.

bbinto avatar Apr 12 '19 10:04 bbinto

@bbinto @sblatz Manage account does what it does on every Firefox, it opens accounts.firefox.com/settings in a tab (or WebView, your choice for MVP), though there are some special parameters you will want to pass. @shane-tomlinson can provide those.

ryanfeeley avatar Apr 12 '19 15:04 ryanfeeley

edit: see Vlad's response below, what is true for fennec probably won't be true for Fenix, sorry!

So currently on Fennec the equivalent UI will open about:accounts?action=manage which displays a uri that is built using this https://searchfox.org/mozilla-central/source/mobile/android/chrome/content/aboutAccounts.js#181

I believe that will translate to https://accounts.firefox.com/settings?service=sync&context=fx_fennec_v1

furthermore, although we don't do it currently for fennec, we should be appending an entrypoint parameter that would tell us where the user entered from (for metrics purposes), e.g:

https://accounts.firefox.com/settings?service=sync&context=fx_fennec_v1&entrypoint=sync-settings

however, @shane-tomlinson or @vladikoff should weigh in to confirm all this (is the context parameter value staying the same for Fenix, for example? are there are other parameters that we need to handle the case of Fenix specifically?)

irrationalagent avatar Apr 12 '19 18:04 irrationalagent

@irrationalagent Hm short answer would probably be - nothing is staying the same as Fennec. Fenix is using an OAuth flow for login. For manage account, I don't think we have anything setup yet from the UI. Once we have a "Manage Account" button we can add an entrypoint parameter to it.

vladikoff avatar Apr 12 '19 18:04 vladikoff

@sblatz I didn't think device name was in for MVP, but was imagining we use standard Android. image

ryanfeeley avatar Apr 12 '19 20:04 ryanfeeley

@ryanfeeley @vladikoff - ok, so to recap, we can and should include "Manage Account" in MVP.

@ryanfeeley - what source do you reference that device name change is out of MVP?

@sblatz - can you please let us know if you are blocked/any further information you need?

bbinto avatar Apr 14 '19 22:04 bbinto

The FxA component should provide a method to call to get the "manage account" URL, rather than requiring the application to construct it by hand, ref https://github.com/mozilla/application-services/issues/750

rfk avatar Apr 15 '19 00:04 rfk

@ryanfeeley - what source do you reference that device name change is out of MVP?

The first reference I've seen to device renaming was just added to this issue a few days ago.

Our other mobile apps lacked this feature for a very long time, so I would not prioritize it highly.

That said, above is a solution that can work if you choose to include device renaming.

ryanfeeley avatar Apr 15 '19 14:04 ryanfeeley

@ryanfeeley can you give me an update on this? Do we need a decision to be made?

bifleming avatar Apr 17 '19 22:04 bifleming

@bifleming This is not my call, but as I stated above, I can't imagine device renaming is an MVP feature.

ryanfeeley avatar Apr 22 '19 14:04 ryanfeeley

Device renaming is currently blocked by https://github.com/mozilla-mobile/android-components/pull/2670, which is going to land in the next few days. I just filed an issue to integrate device management URLs in a-c: https://github.com/mozilla-mobile/android-components/issues/2824

grigoryk avatar Apr 22 '19 17:04 grigoryk

We might need a separate bug for this, but as a first step we should prioritize and build the UI from @ryanfeeley soon:

(https://mozilla.invisionapp.com/share/QSR2F8UD4PN#/screens/357470305) cc @st3fan

vladikoff avatar Apr 29 '19 18:04 vladikoff

@grigoryk is this still blocked?

bifleming avatar May 03 '19 22:05 bifleming