-
Notifications
You must be signed in to change notification settings - Fork 3
refactor(providers): Decouple cross-page provider dependencies #584
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
Conversation
…552) - Remove unused healthCheckProvider watch from dashboardHomeProvider The watch was redundant as polling chain already handles reactivity - Replace dashboardHomeProvider dependency with dashboardManagerProvider in wifi_bundle_provider and instant_verify_view for lan/wan connection data
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
AustinChangLinksys
left a comment
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.
looks good to me
User description
Summary
healthCheckProviderwatch fromdashboardHomeProvider(Issue [Architecture][P2] Decouple dashboard → health_check Dependency #552)dashboardHomeProviderdependency withdashboardManagerProviderinwifi_bundle_providerandinstant_verify_viewfor lan/wan connection data (Issue [Architecture][P1] Decouple wifi_bundle ↔ dashboard Dependency #551)Closes #551
Closes #552
PR Type
Enhancement
Description
Remove unused
healthCheckProviderwatch fromdashboardHomeProviderReplace
dashboardHomeProviderwithdashboardManagerProviderin page-level providersDecouple cross-page provider dependencies for cleaner architecture
Update property names to match core-level provider interface
Diagram Walkthrough
File Walkthrough
dashboard_home_provider.dart
Remove unused healthCheckProvider watchlib/page/dashboard/providers/dashboard_home_provider.dart
healthCheckProviderref.watch(healthCheckProvider)call frombuild()method
instant_verify_view.dart
Replace dashboardHomeProvider with dashboardManagerProviderlib/page/instant_verify/views/instant_verify_view.dart
dashboard_home_providerand_dashboard.dart_portsCard()to watchdashboardManagerProviderinstead ofdashboardHomeProviderlanPortConnectionstolanConnectionswanPortConnectiontowanConnectionwifi_bundle_provider.dart
Replace dashboardHomeProvider with dashboardManagerProviderlib/page/wifi_settings/providers/wifi_bundle_provider.dart
dashboardHomeProviderhomeStatevariable frombuild()methodbuild()to usedashboardManagerStateforlanConnectionscheckperformFetch()to usedashboardManagerStateinstead ofhomeStatelanPortConnectionstolanConnections