-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: load user info before main content flow #528
Conversation
This commit ensures that the user is loaded from the "splash router" before the home page is shown. This means everything below the "home page" widget will have access to a loaded user cubit state. Extracted from #413 and therefore also a prerequesite for that PR.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #528 +/- ##
==========================================
+ Coverage 73.93% 74.18% +0.24%
==========================================
Files 128 128
Lines 1527 1534 +7
==========================================
+ Hits 1129 1138 +9
+ Misses 398 396 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Should ensure test coverage in changed lines before proceeding
test initialize() simplify initialize() to reduce cope duplication user cubit state: convert constructor parameters to positional + make constructors const
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 commit ensures that the user is loaded from the "splash router" before the home page is shown.
This means everything below the "home page" widget will have access to a loaded user cubit state.
Extracted from #413 and therefore also a prerequesite for that PR.