-
Notifications
You must be signed in to change notification settings - Fork 286
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
Simplify experience when additional scopes are required to view the dashboard #5497
Comments
Hi @aaemnnosttv if you are not actively working on this, could you un-assign yourself so someone else can pick up? Thanks! |
@marrrmarrr @aaemnnosttv As I thought, we do have multiple "red box" errors if this happens. The UI is chaotic with the Dialog box (popup), a banner in the header and the red boxes all showing at once. We can definitely get rid of the Banner - even though it has some more detail, it pretty much conveys the same message as the error boxes. We could also get rid of the default popup that shows (although this behaviour is standard throughout the app if there is a lack of scope and we'll have to make a special case here). Then we can simply add a CTA within the error boxes. But there will be multiple CTAs in multiple error boxes - so not sure if that is "less overwhelming / disjointed". On a side note, the "Get help" link on this error simply takes us to the "Using the Troubleshooting mode plugin" page. Since scopes and permissions is a common error, perhaps we should have a dedicated section in the "Fixing common issues with Site Kit page". Saying this, the fix is explained in the error and is simply clicking a CTA. So simply hiding the "Get help" link here or linking it to something more generic than "Troubleshooting mode" such as "Site Kit support" may make more sense. |
@marrrmarrr We discussed this again in our AC Sync and decided to hide the modal and keep everything else as it is. So the banner will have a CTA and the red boxes remain unchanged. c.c. @aaemnnosttv |
ACs 👍🏻 |
@sashadoes since both variables are arrays, we need to check whether all scopes from the permissions error exist in the unsatisfied scopes array. If at least one scope from the error does not exist in the unsatisfied scopes, then the permission modal should still be shown. |
IB ✔️ |
Feature Description
Currently when additional scopes are required for simply displaying the dashboard, the experience is a bit disjointed, with multiple notices/errors/CTAs appearing simultaneously which makes for a bit of a chaotic UI:
This is easy to recreate:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
_googlesitekitLegacyData.setup.unsatisfiedScopes
.Implementation Brief
assets/js/components/PermissionsModal/AuthenticatedPermissionsModal.js
:unsatisfiedScopes
by usinggetUnsatisfiedScopes
selectornull
early if allpermissionsError.data.scopes
exists inunsatisfiedScopes
permissionsError.data.scopes
does not exist in theunsatisfiedScopes
, then the permission modal should still be shown.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: