rill
rill copied to clipboard
Fix ui reset on wake project navigation
Fixes an issue where the "waking project" UI banner would disappear when navigating between project pages (e.g., to settings).
The problem stemmed from:
BillingCTAHandlerinstances not correctly sharing state across components.- The
BillingCTAHandler.get()method incorrectly resetting thewakingProjectsstate. - The project layout (
/[organization]/[project]/+layout.svelte) not being aware of the organization-level project wake process.
The fix ensures the wake state persists across navigation by:
- Consistently using the singleton
BillingCTAHandler.get(). - Removing the problematic state reset from
BillingCTAHandler.get(). - Updating the project layout to check and display the organization-level wake status, providing a consistent UI experience during the wake process.
Checklist:
- [x] Covered by tests (manual testing performed, unit tests not applicable for this UI state fix)
- [x] Ran it and it works as intended
- [x] Reviewed the diff before requesting a review
- [x] Checked for unhandled edge cases
- [x] Linked the issues it closes (Closes ENG-46)
- [ ] Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
- [ ] Intend to cherry-pick into the release branch
- [x] I'm proud of this work!
Linear Issue: ENG-46
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents