feat(app): icon-only tab bars, Settings from the Pipelines bar, main bar bottom right with detail bars above it

Settings leaves the tab bar (Pipelines, Runs, Chat, Search) and opens as a
page from a gear in the Pipelines bar, keeping /settings, its keys and a Back
to Pipelines (also the system Back). Every floating tab bar shows icons only,
named for assistive technology. On wide windows the shell's tab bar stays at
the bottom right; a split detail learns its height plus a 12px gap, so its
tabs or the chat composer float above it, and pages the detail opens (the
stage page) stay in its pane through its own navigator.
This commit is contained in:
2026-10-31 14:57:56 +00:00
parent 33cb9ca121
commit a1c4c1c402
40 changed files with 1057 additions and 228 deletions
+16 -10
View File
@@ -14,11 +14,6 @@ void main() {
matching: find.byType(GlassPill),
);
Finder barText(String label) => find.descendant(
of: find.byType(FloatingDestinationBar),
matching: find.text(label),
);
Future<void> setSize(WidgetTester tester, Size size) async {
tester.view.physicalSize = size;
tester.view.devicePixelRatio = 1;
@@ -74,7 +69,14 @@ void main() {
expect(rect.right, 1200 - 16);
expect(rect.bottom, 800 - 16);
expect(rect.width, lessThan(1200 * 0.6));
expect(rect.width, greaterThan(5 * 72));
// Four icon-only tabs (Settings opens from the Pipelines bar).
expect(
rect.width,
4 *
(cupertino
? FloatingDestinationBar.cupertinoTabWidth
: FloatingDestinationBar.materialTabWidth),
);
// No rail or sidebar: the content starts at the left edge.
expect(find.byType(NavigationRail), findsNothing);
expect(find.byType(CupertinoListTile), findsNothing);
@@ -143,12 +145,16 @@ void main() {
await tester.pumpWidget(shell(cupertino: cupertino));
await tester.tap(find.byKey(const ValueKey('shell.destination.runs')));
await tester.pumpAndSettle();
expect(
tester.getSemantics(barText('Runs')),
isSemantics(isSelected: true),
final runs = tester.getSemantics(
find.byKey(const ValueKey('shell.destination.runs')),
);
expect(runs, isSemantics(isSelected: true));
// Icon-only, yet the tab keeps its name for assistive technology.
expect(runs.label, startsWith('Runs'));
expect(
tester.getSemantics(barText('Chat')),
tester.getSemantics(
find.byKey(const ValueKey('shell.destination.chat')),
),
isNot(isSemantics(isSelected: true)),
);
semantics.dispose();