[WIP] Redirect the user to the budget page regardless of accounts#6978
[WIP] Redirect the user to the budget page regardless of accounts#6978PratikSilwal5 wants to merge 6 commits intoactualbudget:masterfrom
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hello contributor! We would love to review your PR! Before we can do that, please make sure:
We do this to reduce the TOIL the core contributor team has to go through for each PR and to allow for speedy reviews and merges. For more information, please see our Contributing Guide. |
✅ Deploy Preview for actualbudget-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for actualbudget-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe root-route navigation logic in FinancesApp was simplified to always redirect to the budget page after accounts finish loading, removing the conditional redirect based on account count. A release notes entry documents this bug fix. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 Auto-generated Release Notes Hey @PratikSilwal5! I've automatically created a release notes file based on CodeRabbit's analysis: Category: Features If you're happy with this release note, you can add it to your pull request. If not, you'll need to add your own before a maintainer can review your change. |
This comment has been minimized.
This comment has been minimized.
|
/update-vrt |
Auto-generated by VRT workflow PR: actualbudget#6978
This comment has been minimized.
This comment has been minimized.
|
/update-vrt |
Auto-generated by VRT workflow PR: actualbudget#6978
|
VRT tests ❌ failed. View the test report. To update the VRT screenshots, comment |
|
/update-vrt |
Fixes #6977
The issue is that we are checking explicitly for this condition. So, if users don't have accounts setup, which is true when they are creating a fresh budget, we redirect them to "all accounts" to prompt them to create new accounts. Based on the issue, I think we can remove this check to redirect them to the budget page.
https://github.com/actualbudget/actual/blob/master/packages/desktop-client/src/components/FinancesApp.tsx#L248-L260
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/components/FinancesApp.tsxView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
Unchanged
loot-core
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
api
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged