feat(app): compact runs filter and sort toolbar

Replace the full-width runs dropdowns and status chips with web-shaped
controls: a Material filter popup with checked statuses and triggers, a
sort menu, and removable applied-filter chips; Cupertino gets a compact
Filter/Sort row plus one action sheet with live check marks. Add
RunsController.activeFilterCount and clearFilters(), and use the shared
seven-state run vocabulary. Clarify the singular active-filter tooltip.
This commit is contained in:
2026-10-22 14:20:05 +01:00
parent dc0a52380b
commit 535dee0805
6 changed files with 440 additions and 82 deletions
@@ -380,4 +380,23 @@ void main() {
expect(controller.runs.first['title'], 'Late rename');
},
);
test('active filter count treats each facet once and clears all', () {
expect(controller.activeFilterCount, 0);
controller.setStatus('failed');
controller.setStatus('running');
expect(controller.activeFilterCount, 1);
controller.setScheduled('scheduled');
controller.setPipeline(4);
expect(controller.activeFilterCount, 3);
controller.clearFilters();
expect(controller.activeFilterCount, 0);
expect(controller.statuses, isEmpty);
expect(controller.pipelineId, isNull);
expect(controller.scheduled, 'any');
expect(controller.timeRange, 'any_time');
});
}