-
Notifications
You must be signed in to change notification settings - Fork 293
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
Split SetupUsingProxy
into sub-components for view-only and full-splash variants
#4809
Comments
@aaemnnosttv ACs sgtm, just one thought: Do we think that the splash screen with sign in for when the view-only dashboard doesn't exist yet behaves closely enough to when the view-only dashboard does exist to implement it in the same component? I'm just raising this since we technically have 3 different UI permutations, but only 2 components. I'm not saying we should have 3 components, just wanted to raise this in case. One more detail: That may be obvious to who reads these ACs, but clarifying that the old |
@felixarntz my initial thought was that the difference between those two probably wouldn't justify separate components for each, although I think that's something that we could consider in the definition of #4811.
Sounds good, I'll update this to be more explicit 👍 |
IB ✔️ |
QA Update: ✅Verified:
Additional QA check using the React developer tool based on the ACs
|
Feature Description
Until now, the splash screen has been where we welcome new users before sending them along to sign-in with Google which has been a required prerequisite for using Site Kit for all users. Starting with dashboard sharing, this will no longer be required for all users. When one or more modules are shared with a non-admin user's role, that user will see a new version of the splash screen as a stepping stone to view the shared dashboard. This will be a similar, but new version of the splash screen.
The current splash screen will be updated in #4811 to offer a view-only option to non-authenticated admins under similar circumstances, otherwise the splash will continue to look and work similar to today.
This issue is mostly about splitting the existing splash components into current and new non-admin shared-only variants and scaffolding new components and infrastructure.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
SetupUsingProxy
component should be split into two new components:SetupUsingProxyWithSignIn
– essentially the splash page as it is today, but will evolve to include variations for dashboard sharing in Update splash screen to offer the view-only dashboard to admins #4811SetupUsingProxyViewOnly
– a new placeholder component to be used for the splash page shown to users who can view the shared dashboard, but haven't gone through the splash page yet (this will be implemented in Implement<ViewOnlySplash />
#4810)SetupUsingProxy
should be removed as it will no longer be usedDashboardSplashApp
should be updated to conditionally render one or the other in place ofSetupUsingProxy
(i.e. both still requireusingProxy
) based on the user's ability to authenticate and thedashboardSharing
feature flagdashboardSharing
feature is enabled, renderSetupUsingProxyViewOnly
SetupUsingProxyWithSignIn
SetupUsingProxy
should be updated to useSetupUsingProxyWithSignIn
title
should be updated toSetup / Using Proxy With Sign-in
SetupUsingProxyViewOnly
title
should beSetup / Using Proxy View-Only
Implementation Brief
assets/js/components/setup/SetupUsingProxy.js
toassets/js/components/setup/SetupUsingProxyWithSignIn.js
, renaming the component as well.assets/js/components/setup/SetupUsingProxyViewOnly.js
which exports theSetupUsingProxyViewOnly
functional component.TODO: UI to view only splash page.
.assets/js/components/dashboard-splash/DashboardSplashApp.js
,hasCapability
selector, passingPERMISSION_AUTHENTICATE
to check if the user has the capability to authenticate with Site Kit.dashboardSharing
is enabled via theuseFeature
hook, passingdashboardSharing
as parameter.dashboardSharing
feature flag is enabled andusingProxy
istrue
, render theSetupUsingProxyViewOnly
component. Otherwise, render theSetupUsingProxyWithSignIn
component.assets/js/components/setup/SetupUsingProxy.stories.js
toassets/js/components/setup/SetupUsingProxyWithSignIn.stories.js
, updating the stories to useSetupUsingProxyWithSignIn
as well.assets/js/components/setup/SetupUsingProxyViewOnly.stories.js
which will contain a single story for now.Test Coverage
QA Brief
Setup / Using Proxy View-Only / Start
story. It should display the placeholder for the new setup component.Changelog entry
The text was updated successfully, but these errors were encountered: