Dashboard riverpod refactor#287
Conversation
|
Caution Review failedFailed to post review comments. We encountered an issue with GitHub. Use ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (19)
🧰 Additional context used📓 Path-based instructions (1)**/*.dart⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (2)📚 Learning: 2026-05-26T07:21:25.705ZApplied to files:
📚 Learning: 2026-03-08T08:56:34.450ZApplied to files:
WalkthroughAdds shared responsive layout helpers, Riverpod-backed app and dashboard state, and shared CORS handling across Supabase edge functions. ChangesResponsive layout primitives
Riverpod app state and dashboard wiring
Supabase CORS handling
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ 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 |
Description
This PR refactors the dashboard to use the existing Riverpod-based state management architecture by wiring
DashboardScreentoDashboardControllerandDashboardState.The goal of this refactor is to eliminate duplicated widget state, centralize dashboard workflow state in Riverpod, and improve consistency across the application without changing the existing user experience.
No new functionality or UI redesign is introduced in this PR. Existing dashboard behavior is preserved while reducing local state management.
Changes Made
Dashboard State Management
DashboardScreento aConsumerStatefulWidgetdashboardControllerProviderDashboardStatewhere appropriateRiverpod Integration
Migrated dashboard workflow state to Riverpod:
These values are now managed through the existing
DashboardController, removing duplicate sources of truth.Dashboard Behavior
DashboardControllerandDashboardStateResponsive Improvements
Architecture Decisions
This PR intentionally builds on the existing Riverpod foundation instead of introducing additional abstractions.
Specifically:
DashboardControllerDashboardStateOut of Scope
This PR intentionally does not include:
Motivation
This refactor is part of the ongoing effort to migrate dashboard workflows to Riverpod-based state management, reducing duplicated state while making the dashboard easier to maintain and extend in future development.
✅ Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Refactor