Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Apps: Show errors from backend if present #6819

Merged
merged 6 commits into from
Aug 8, 2016

Conversation

klimeryk
Copy link
Contributor

@klimeryk klimeryk commented Jul 15, 2016

Best served with D2121-code which adds proper error handling when fetching Gapps users. This PR refactors a bit the Gapps code to show those errors.
Additionally, I've found and fixed a bug: the Add Google Apps users button on the site-wide Google Apps page added the users to a random domain, it was impossible to select which one. Now, there's a button for each domain.

Before

Selected domain:
screen shot 2016-07-15 at 16 38 45

Site-wide:
screen shot 2016-07-15 at 16 38 17

Site-wide with an error for one of the domains:
screen shot 2016-07-15 at 16 36 57

After

Selected domain:
screen shot 2016-07-15 at 16 04 16

Site-wide:
screen shot 2016-07-15 at 16 05 27

Site-wide with an error for one of the domains:
screen shot 2016-07-15 at 16 26 41

/cc @aidvu @umurkontaci

Test live: https://calypso.live/?branch=fix/gapps-get-users

@klimeryk klimeryk added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature Group] Emails & Domains Features related to email integrations and domain management. G Suite labels Jul 15, 2016
@klimeryk klimeryk self-assigned this Jul 15, 2016
@umurkontaci
Copy link
Contributor

Code 👍

I'm not a big fan of using a notice in place of a card. Do we have another design pattern for empty lists like this? (cc: @breezyskies )

Now that we have a better idea why the user ends up with no user accounts, do we have any plans for letting the users to know and help them fix it if possible? Currently it looks like something went wrong but they have no idea why and how to fix it. Also, if we charge them when the provisioning fails, and the only actionable button here is Add Google Apps Users, which is going to be another charge if they go through.

Though I'm concerned on the fact about UX, this is much better than it was before as it was making the whole site unusable, so none of these are blockers and OK to address them later in another PR.

@umurkontaci umurkontaci added [Status] Needs Author Reply [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jul 23, 2016
@klimeryk
Copy link
Contributor Author

I'm not a big fan of using a notice in place of a card. Do we have another design pattern for empty lists like this?

I'm not a fan too, but this is a special case - no users means something went wrong, this shouldn't happen. Either we are still setting up the Gapps account or there was an error during provisioning and they need to contact support. There's also a possibility that a different error is returned by the backend.

Inspired by your comment, I had a chat about this with @Lochlaer and decided to change the behaviour of the notice based on the subscription's age:

  • If it's been <24 hours since the user signed up for Gapps, show a friendlier message, reassuring that Gapps is being set up and asking them to be patient.
  • If it's been >24 hours, be less confident and ask them to contact support 😁

@breezyskies
Copy link
Contributor

I'm not a big fan of using a notice in place of a card. Do we have another design pattern for empty lists like this?

There isn't another design pattern that I know of for a list view like this. We usually use a whole page empty state, but that doesn't really apply here.

If it's been <24 hours since the user signed up for Gapps, show a friendlier message, reassuring that Gapps is being set up and asking them to be patient.
If it's been >24 hours, be less confident and ask them to contact support 😁

This makes sense to me. +1 for giving them a link to support (if there's an issue, let's give them an actionable way to try and fix it). I would also tone down the colors on the friendlier version, maybe using the default notice style.

@klimeryk
Copy link
Contributor Author

Thanks for the feedback, Brie! 🙇 The changes to make this happen shouldn't be big (and the notice as is now could lead to some confusion and unnecessary HE involvment), so I'll try to implement them as part of this PR.

@klimeryk klimeryk added [Status] In Progress and removed [Status] Needs Author Reply [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Jul 27, 2016
@klimeryk klimeryk force-pushed the fix/gapps-get-users branch from d63091f to 8c64cc0 Compare August 1, 2016 20:47
@klimeryk
Copy link
Contributor Author

klimeryk commented Aug 1, 2016

I've added a friendlier notice when the subscription is younger than 24 hours:
screen shot 2016-08-01 at 22 47 07

And a link to contact support for the less friendly notice after that:
screen shot 2016-08-01 at 23 10 59

@klimeryk klimeryk added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Aug 1, 2016
@breezyskies
Copy link
Contributor

Design changes look good, but I'm not sure about the "please be patient" copy. cc: @ranh

@ranh
Copy link
Contributor

ranh commented Aug 3, 2016

We have a similar notice for new domains, let's reuse that here:

We are setting up mail@example.com for you. It should start working immediately, but may take up to (72 hours).

Just change 72 hours to whatever is relevant here.

@klimeryk
Copy link
Contributor Author

klimeryk commented Aug 3, 2016

Thanks for the feedback and suggestions, @breezyskies and @ranh! 🙇
The "friendly" notice now looks like:
screen shot 2016-08-03 at 21 34 54

@umurkontaci
Copy link
Contributor

LGTM 👍

Just a future idea to step up our game, when something is wrong, instead of telling the user to contact support, we might want to auto-create tickets to solve the problem before ourselves, either with a job or upon producing this error. We can then tell the user that something is wrong and that we are working on it.

@umurkontaci umurkontaci removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 5, 2016
@klimeryk klimeryk merged commit cbe5a9d into master Aug 8, 2016
@klimeryk klimeryk deleted the fix/gapps-get-users branch August 8, 2016 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management. G Suite [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants