-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[WIP] Try to rethink Stepper and logins #91074
base: trunk
Are you sure you want to change the base?
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~3937 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~73456 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~54 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
@daledupreez I think we can have as a baby step move the Login verification to the Flow describing a step is required![]() Add logic to verify if the user is loggingI am trying to think how we can have more compositions and explore better other layers we have. What do you think? |
I agree with @gabrielcaires! I think it's great info to have for the future, too, to know which steps require auth and which steps don't. I like the intentionality of that design. It should also be easy to redirect the user back to the step that caused them to be forced to log in. |
Related to #90680
Proposed Changes
usesLocalLogin
flag to opt in to the new handlinguseSteps()
, as the framework will add the user step as the first step if the current user isn't logged in. This also means the fallback/default logic for no step (''
) will show the user step.user
step, but we detect that the user isn't logged in and the flow is opted in to the new behaviour, we redirect to theuser
step.Why are these changes being made?
Testing Instructions
/
/setup/new-hosted-site-user-included
user
step/setup/new-hosted-site-user-included/
/setup/new-hosted-site-user-included/plans
(or any other step)We'll also want to triple-check that these changes have no impact on the standard/existing Stepper functionality. (They shouldn't but we should check!)
Pre-merge Checklist