fix(web): Recover frontend startup failures - #824
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough路由初始化失败时,应用会记录错误、导航到 Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The reviewed startup recovery paths have no identified merge-blocking issue. Merge after normal checks. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (1 skipped: 1 unsupported.)
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 |
关联 Issue / Related Issue
None.
变更内容 / Change Content
An initial page-component load failure previously stopped startup at an unstyled error message and required a manual refresh. Recover the modern router to Home before mounting, and load Home and Login with the modern bootstrap so that recovery can use them directly.
The shared entry attempts one full-page recovery at Home when either interface fails to start. If startup still fails, it shows a localized recovery card with a manual reload action instead of leaving a blank page. The card's styles load with the entry and are scoped to its container. Session-storage failures use the current path to prevent reload loops; manual retry resets the recovery attempt.
Validation:
make checkpassed, including lint, formatting, type checks, production build, Go build and Go tests.GroupsViewand refreshing/groupsrecovers to Home.Compatibility: this changes startup recovery only. Home and Login code loads earlier within the modern interface. Classic page routing, authentication contracts and database schemas remain unchanged.
自查清单 / Checklist
make check,或在说明中写明无法运行的原因和未验证范围。 / I ranmake check, or documented why it could not run and what remains unverified.No public documentation changes are required for this fix.