-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(onboarding): Move onboarding context into onboarding #100770
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
ref(onboarding): Move onboarding context into onboarding #100770
Conversation
| `; | ||
|
|
||
| export default Onboarding; | ||
| export default OnboardingWithProvider; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more of a learning question than anything else, but why don't we have to update the imports for this anywhere? Is this some automatic import regardless of object name or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default imports / exports ignore naming
I could import this as import Foo from 'sentry/views/onboarding/onboarding'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the onboarding context was originally made global because data was shared between onboarding (new users) and project creation. I double-checked, and it’s now only used in the onboarding pages/hooks. We can safely remove it from this file
as well.
Good update! thank you 🙌
…ng/move-onboarding-context-into-onboarding
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #100770 +/- ##
===========================================
- Coverage 81.10% 81.10% -0.01%
===========================================
Files 8666 8666
Lines 384544 384543 -1
Branches 24269 24269
===========================================
- Hits 311867 311866 -1
Misses 72332 72332
Partials 345 345 |
| })} | ||
| /> | ||
| )} | ||
| </GettingStartedLayout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the onboarding context provider into the onboarding route instead of wrapping it around the whole app.
Reduces risk of breaking things and reduces wrong issue assignments via codeowners.