Skip to content

176983 UI state#4957

Merged
auto-submit[bot] merged 17 commits intoflutter:mainfrom
ievdokdm:176983-ui-state
Feb 25, 2026
Merged

176983 UI state#4957
auto-submit[bot] merged 17 commits intoflutter:mainfrom
ievdokdm:176983-ui-state

Conversation

@ievdokdm
Copy link
Contributor

Added every 30 seconds page refresh
Fix: flutter/flutter#176983

@ievdokdm ievdokdm requested a review from jtmcdole February 25, 2026 18:53
…nge logic to PresubmitState similarly to how BuildDashboardPage use BuildState'
Task: Create dashboard/lib/state/presubmit.dart with PresubmitState class, including repo, pr, and sha properties.
Summary: Implemented the initial PresubmitState class with repo, pr, and sha properties and added basic tests.
Files: dashboard/lib/state/presubmit.dart, dashboard/test/state/presubmit_test.dart
Why: Provides the foundation for moving state management out of PreSubmitView.
Task: Implement initialization and update methods for repo, pr, and sha in PresubmitState.
Summary: Added an update method to PresubmitState to manage repo, pr, and sha properties and notify listeners of changes.
Files: dashboard/lib/state/presubmit.dart, dashboard/test/state/presubmit_test.dart
Why: Allows PreSubmitView to update the state when query parameters change or when a new SHA is selected.
… PresubmitState

Task: Implement fetchAvailableShas and fetchGuardStatus in PresubmitState.
Summary: Migrated fetchAvailableShas and fetchGuardStatus logic from PreSubmitView to PresubmitState. These methods now manage the loading state and store results in PresubmitState.
Files: dashboard/lib/state/presubmit.dart, dashboard/test/state/presubmit_test.dart
Why: Centralizes data fetching logic for the PreSubmit View, making it easier to test and share across widgets.
Task: Write unit tests for PresubmitState in dashboard/test/state/presubmit_test.dart.
Summary: Added unit tests covering property initialization, the update method, data fetching methods (fetchAvailableShas, fetchGuardStatus), and edge cases (null PR/SHA, idempotent updates).
Files: dashboard/test/state/presubmit_test.dart
Why: Ensures the reliability of the new state management logic and maintains high code coverage.
Task: Update dashboard/lib/main.dart or the relevant state provider to instantiate and provide PresubmitState.
Summary: Updated StateProvider to include PresubmitState and initialized it in main.dart.
Files: dashboard/lib/main.dart, dashboard/lib/widgets/state_provider.dart
Why: Makes PresubmitState available to PreSubmitView and its child widgets via Provider.
… and enhance build status verification in tests.
…d refine test variable declarations and Future types.
…egrate it into the presubmit view and task attempt summary widget.
@ievdokdm ievdokdm added the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 25, 2026
@auto-submit auto-submit bot merged commit 922e528 into flutter:main Feb 25, 2026
20 checks passed
@ievdokdm ievdokdm deleted the 176983-ui-state branch February 25, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement pr_dashboard_page.dart view in Flutter Dashboard

2 participants