thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Onboarding Re-work

Open philipwhiuk opened this issue 10 years ago • 47 comments

I expect this ticket to be continually updated to cover the bits of onboarding we need to add. It's a meta-ticket for the Onboarding milestone to avoid opening tons of issues on an already busy repository

Future comments will cover design, planning new activities and workflows

Expected behaviour

Users should be able to easily setup accounts, identities and encryption etc.

The default case should be as simple as possible.

Actual behaviour

Current setup doesn't support lots of stuff

Things to support

  • [ ] Manual configuration
  • [ ] Autoconfiguration of email settings
  • [ ] - Mozilla
  • [ ] - Outlook
  • [ ] Existing provider list
  • [ ] Identity setup
  • [ ] Client certificates
  • [ ] Using both client certificates and password auth #793
  • [ ] Google XOAuth
  • [ ] Hotmail & Yahoo XOAuth
  • [ ] Read only e-mail
  • [ ] Certificate viewing and pinning
  • [ ] User friendly certificate error handling
  • [ ] - Expired
  • [ ] - Self-Signed
  • [ ] User friendly TLS / SSL error handling
  • [ ] Encryption key set-up
  • [ ] Signature
  • [ ] Connection testing

philipwhiuk avatar Nov 25 '16 10:11 philipwhiuk

Activities

The current flow is shown below. To start account the Basics activity is launched. It then passes control to one of two activities depending on whether we have information on the email provider.

Note that several call CheckSettings with it being responsible for checking incoming and outgoing settings. It then returns control to the activity that called it.

screen shot 2016-11-26 at 23 47 00

Currently we don't pass around much data between the activities. Instead we manipulate an Account which is created incomplete in the Accounts list.

AcceptCertificateDialog

We currently have a dialog (in CheckSettings) that is shown when a certificate isn't valid. But it needs to be reworked to use either a DialogFragment or become a full activity. Also it doesn't display certificates and errors in a friendly way

An initial mock-up for this:

screen shot 2016-11-26 at 23 58 53

philipwhiuk avatar Nov 27 '16 00:11 philipwhiuk

And here's a rework of AccountCheckSettings. Note that you'd not actually see this exact view (I'm just enabling it for testing) - the spinner and text above it is what you'd see before it had attempted a connection. The later information is what you'd see afterward.

Right now ACS just goes straight through if all your details work. This turns it into more of a review screen.

screen shot 2017-01-15 at 19 40 41

I'm still in two minds about what exactly to display for the cert. Chrome shows OrganisationName, [Country] if it's an EV certificate I think. My guess is most email servers aren't EV certs because nobody shows this info for email connections. So all you're likely to get is the CommonName (something like '*.google.com'). Which is fine. I added the root CA because it seemed useful though it doesn't really tell you that much.

The previous image had the cert details in (what would be if I finished it off) a very detailed format, similar to how you get if you delve into the cert in Chrome. I still want to make that available on this screen but I'm not quite sure the UI right now.

Just to get all this information will require some sizeable modifications to the stores so that ACS can get it from a connection. I'm not quite sure how that API will work.

I don't want to do too much UI work here as it'll have to be re done for #645 but to allow some of the above requirements it does need to be concepted to an extent.

philipwhiuk avatar Jan 15 '17 19:01 philipwhiuk

Should the last screenshot be the one when an invalid cert is presented?

In this case there is

  1. missing a big warning that this whole stuff is insecure (and there could be any values displayed, because well… self.signed certs) and…
  2. missing the display of the fingerprint or hash of the public key, which are the only way to verify that the certificate is legit

Other ideas:

  • smaller "Confirm" button
  • highlight "amend" (why "amend?" should not this be at least "cancel" or so?) and rename it to "back to safety" or so (no joke)

Have a look at how browsers (or Thunderbird e.g.) nowadays do it (when they are presented with self-signed certs). You should do it in a similar way.

rugk avatar Jan 16 '17 22:01 rugk

No. The first screenshot is that and both are very much WIP.

missing the display of the fingerprint or hash of the public key, which are the only way to verify that the certificate is legit

None of that covers pinning. I haven't even got to it yet. It's just reviewing the connection that was tested. There'll be another but that says 'Review Certificate Chain' or something and then another screen which shows the certificate chain and all the details (similar but different to the first image which is for cert errors) with options to pin at each step of the chain.

why "amend?"

Because it goes back to the server details to allow you to amend them. There'll be a separate screen for pinning.

Have a look at how browsers (or Thunderbird e.g.) nowadays do it (when they are presented with self-signed certs). You should do it in a similar way

I agree. And there's a whole ton of stuff to implement. Right now we have very limited certificate management code.

philipwhiuk avatar Jan 16 '17 23:01 philipwhiuk

I'd like a rework of the account setup experience be driven by what we want the UX to be like. Not by the current code structure.

With Let's encrypt being a thing there's no good reason for servers to use self-signed certificates. I'm counting on this becoming an even more exceptional case than it is right now. And I don't see a reason to show any kind of certificate information in the common case. Ideally I want account setup to work automatically. The user enters an email address and a password and the app finds the correct server settings and sets up the account automatically.

Manual certificate pinning is a super-advanced topic that not many people need. I think there are more important features that should get our attention before we even think about how a decent UI for certificate pinning could look like.

cketti avatar Jan 16 '17 23:01 cketti

Yeah, I think I missed the topic of this mockup. I thought it's shown for cert validation failures, but if it is purely "informational" it is of course all right.

rugk avatar Jan 17 '17 15:01 rugk

Ideally I want account setup to work automatically. The user enters an email address and a password and the app finds the correct server settings and sets up the account automatically.

@cketti exactly. There should only be 3 inputs:

  • Display name (can be retrieved automatically from the phone I guess?)
  • Email address (can also be prefilled from the phone, at least the first one? When there is an account with that address already, leave empty)
  • Password (can’t be prefilled, right?)

Then the first field with no content should be automatically focused and keyboard opened. That’s the most seamless flow.

jancborchardt avatar Jan 24 '17 12:01 jancborchardt

Password (can’t be prefilled, right?)

The first screen shouldn't even have a password. OAuth and certificate-only based auth doesn't use them.

philipwhiuk avatar Jan 24 '17 12:01 philipwhiuk

Client certificates are an edge-case. I'd say the user has to manually opt-in for that (hide the option in the overflow menu).

How to support both OAuth and password-based authentication is an interesting question.

cketti avatar Jan 24 '17 14:01 cketti

While I would agree that the ideal default account setup might be fairly automatic, I think that there still needs to be an "advanced" option that allows for manual input of values, including certificate acceptance.

With certificates, an issue with Let's Encrypt is that it requires that at least a dns record for the "servername" be in public view. People running mail servers on intranets (these may be for internal-only mail, or for mail that is moved from public to private servers in some manner) may not feel comfortable with that -- even if the only detail that is in the public DNS for the host is a TXT record -- so may still resort to self-signed certs, so would still need a manual way to accept them.

njeyaakili avatar Jan 31 '17 00:01 njeyaakili

An email account on a phone that only works while connected to work WiFi seems like an awfully odd edge case but we have no intention to remove any functionality here - more to optimize the steps for the default case. It's about making the 90% case a lot easier while maybe adding one or two taps for the weird cases.

philipwhiuk avatar Jan 31 '17 00:01 philipwhiuk

When running mail servers on an intranet, set up your own PKI. If you tell users to manually accept certificates you should feel bad! That being said, we won't remove the ability to shoot yourself in the foot anytime soon. We might make it slightly more difficult, though.

cketti avatar Jan 31 '17 01:01 cketti

Hey all! I'm the designer that worked on the earlier K-9 redesign back in 2013. I've been talking to @cketti + @jancborchardt lately, trying to move things forward design-wise.

Design to me is meaningless without serving actual people. It was imperative to listen to what K-9 users—in the dev community or otherwise—had to say about K-9. I’m excited to have a K-9 user survey out there with over 100 responses! I’ll consolidate findings and will share more info soon. For now, feel free to participate: https://uxquestionnaire.typeform.com/to/SHacN5

Onboarding In light of all this new data, my old K-9 design project needs some re-work. Onboarding is a great start, and an opportunity to improve the overall app experience. I’m attaching a few lo-fi screens I’ve designed as a first pass.

Please ignore the grayscale colors and placeholders: k-9 revised onboarding

It's all work in progress, but feel free to provide your thoughts.

One question I had was around PGP setup. Can we use Android Intent to connect the PGP portion of the flow to a third party like OpenKeychain?



In comparison to the previous attachment, here is K-9’s current flow: k-9 current onboarding flow

And Gmail’s add account flow: gmail add account flow

ghost avatar Feb 11 '17 02:02 ghost

I am sorry, but actually I like @moctodot's design in https://github.com/k9mail/k-9/issues/1859 more. Your suggested flow looks nice from a "how it should work" perspective and is really minimalistic, but currently it looks a bit like Windows Phone/Windows 10 style, especially with the big top title on white background. Also it is not really material design (already the top bar is missing). But good you look at GMail. There you can see how to do it in material design properly and I think you should do it in a similar way (with such a header etc.).

rugk avatar Feb 11 '17 11:02 rugk

concept_intro and setup_mobile

@juliakorbut great work! I was currently working on the onboarding experience aswell :D It's not as detailed as your concept though and the tutorial part is still missing. Once that's finished I'll add it to #1859. Unfortunately I don't have much time right now so that could take a while :(

moctodot avatar Feb 11 '17 12:02 moctodot

Also can you get to server settings screen without selecting the manual setup? Because when I add my account all of that seems to happen automatically.

moctodot avatar Feb 11 '17 12:02 moctodot

Also can you get to server settings screen without selecting the manual setup? Because when I add my account all of that seems to happen automatically.

I think this happens when K9mail does not recognize the mail provider you use. If you use such a big one as gmail you of course should not see this screen.

rugk avatar Feb 11 '17 13:02 rugk

Yeah - so right now we have a manually maintained list of configurations. We want to augment this with automatic configuration.

Ideally manual configuration should be rarely needed but there's always going to be some use for it (and right now we re use those screens for editing server settings).

philipwhiuk avatar Feb 11 '17 13:02 philipwhiuk

@philipwhiuk @rugk good to know! Thanks for clearing that up.

moctodot avatar Feb 11 '17 13:02 moctodot

@rugk that's fair. At this stage this is mostly a wireframe. Larger typography helps simplify the flow and make it appear shorter, even when there are multiple screens such as those I had here. Material design doesn't enforce an app bar in all times.

@moctodot I like how you made the icon face-on, it simplifies the shape. Contextually though, I'd say this flow isn't really the place to configure account color. It's not helping the current task at hand and the user doesn't even know what that means at this stage.

Also, tutorials or overlays like that aren't really effective since the majority of users cancel them right away. It's better to make the interface easier to use in the first place.

I'm working on the rest of the flow right now, and consolidating findings from the user survey. It'll give everyone insight into what's important to users, and where K-9 is sorely lacking. There are a lot of things beyond the core interface, icon, or visuals, that need to be designed.

It would be great if user stories were created for these, and we could tackle the design tasks together. Do you use Sketch? Whats the best way to reach you via email?

ghost avatar Feb 11 '17 16:02 ghost