feat(app): Pipelines filter, sort and refresh are app-bar icons

This commit is contained in:
2026-10-23 18:39:57 +01:00
parent 168cc963ae
commit ac74fc6769
5 changed files with 134 additions and 63 deletions
@@ -14,20 +14,15 @@ import 'test_helpers.dart';
/// last run, separated from each other, and a one-line detail identity header
/// whose recorded facts live at the top of Summary.
void main() {
testWidgets('toolbar, rows and separators share the web list inset', (
tester,
) async {
testWidgets('rows and separators share the web list inset', (tester) async {
final fixture = PipelineFixture();
await pumpWide(tester, gatewayFor(fixture));
final list = find.byKey(const Key('pipeline-list'));
final listLeft = tester.getTopLeft(list).dx;
expect(
tester.getTopLeft(find.byKey(const Key('pipeline-toolbar'))).dx -
listLeft,
kPipelineListInset,
);
// Filter and sort are app-bar actions; no toolbar row without a filter.
expect(find.byKey(const Key('pipeline-toolbar')), findsNothing);
expect(
tester.getTopLeft(find.text('Alpha review')).dx - listLeft,
kPipelineListInset,
@@ -18,7 +18,7 @@ void main() {
await tester.enterText(find.byType(TextField), 'beta');
await tester.tap(find.text('Done'));
await tester.pumpAndSettle();
expect(find.text('Filter (1)'), findsOneWidget);
expect(find.text('Clear filters (1)'), findsOneWidget);
expect(find.text('Beta deploy'), findsOneWidget);
expect(find.text('Alpha review'), findsNothing);
@@ -62,7 +62,7 @@ void main() {
await tester.tap(find.text('Name Z\u2013A'));
await tester.pumpAndSettle();
expect(find.text('Sort: Name Z\u2013A'), findsOneWidget);
expect(find.byTooltip('Sort pipelines: Name Z\u2013A'), findsOneWidget);
final gamma = tester.getTopLeft(find.text('Gamma legacy')).dy;
final beta = tester.getTopLeft(find.text('Beta deploy')).dy;
final alpha = tester.getTopLeft(find.text('Alpha review')).dy;