App: run tabs under the header on wide layouts, stable Artifacts tab, spelled-out pipeline status, shared list selection, code block header and edge fades

- Run detail: on a wide window (>= 840, pane >= 600) the tabs are Material
  segments under the run header; phones keep the floating bottom bar.
  Artifacts is always a tab, badged with its count and disabled with 0 (its
  tooltip says why), so Changes never moves.
- Pipelines list: 'Failed · last run 19 Oct' beside the status dot; facts on
  the next line; compact rows keep 'Failed · 19 Oct'.
- Settings: Disconnect is outlined beside a tonal Reconnect.
- Lists: one selection style (tonal fill plus one leading accent bar) for
  runs, pipelines and chats; chat's border, fill and pointer removed.
- Transcript: overflowing blocks fade at the edge with a chevron instead of
  a 'Scroll horizontally' line (semantics hint kept); code blocks get a
  header strip with language and Copy; lighter light-mode code fill.
- Runs list: rows under a day heading show only the time of day.
- Artifact search reveal re-centres once the lazy list's extent settles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 00:55:50 +00:00
parent accb9970b6
commit a6db4ba20e
37 changed files with 848 additions and 399 deletions
@@ -0,0 +1,49 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/features/settings/settings_controls.dart';
Widget _actions({required bool connected}) => MaterialApp(
home: Scaffold(
body: SettingsActions(
primaryLabel: connected ? 'Disconnect' : 'Connect',
secondaryLabel: 'Reconnect',
primaryKey: const Key('primary'),
secondaryKey: const Key('secondary'),
primaryOutlined: connected,
onPrimary: () {},
onSecondary: () {},
),
),
);
void main() {
testWidgets('connected: Reconnect is tonal and leads, Disconnect outlined', (
tester,
) async {
await tester.pumpWidget(_actions(connected: true));
final disconnect = find.byKey(const Key('primary'));
final reconnect = find.byKey(const Key('secondary'));
expect(tester.widget(disconnect), isA<OutlinedButton>());
expect(tester.widget(reconnect), isA<FilledButton>());
// Never the filled primary emphasis on the action that drops the link.
expect(find.byType(OutlinedButton), findsOneWidget);
expect(
tester.getTopLeft(reconnect).dx,
lessThan(tester.getTopLeft(disconnect).dx),
);
});
testWidgets('disconnected: Connect is filled, Reconnect outlined', (
tester,
) async {
await tester.pumpWidget(_actions(connected: false));
final connect = find.byKey(const Key('primary'));
final reconnect = find.byKey(const Key('secondary'));
expect(tester.widget(connect), isA<FilledButton>());
expect(tester.widget(reconnect), isA<OutlinedButton>());
expect(
tester.getTopLeft(connect).dx,
lessThan(tester.getTopLeft(reconnect).dx),
);
});
}