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:
@@ -46,9 +46,11 @@ Future<void> _pumpScreen(WidgetTester tester) async {
|
||||
Future<void> _openGraphTab(WidgetTester tester, int pipelineId) async {
|
||||
await tester.tap(find.byKey(Key('pipeline-row-$pipelineId')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.ensureVisible(find.text('Graph'));
|
||||
await tester.ensureVisible(
|
||||
find.byKey(const Key('pipeline-detail-tab-graph')),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
}
|
||||
|
||||
@@ -61,9 +61,11 @@ Future<void> _openGraphTab(WidgetTester tester, int pipelineId) async {
|
||||
// The detail header scrolls when content-driven title/tab height needs it
|
||||
// (the header gained the native Run action), so reach the tab like an
|
||||
// operator would instead of requiring it to fit without scrolling.
|
||||
await tester.ensureVisible(find.text('Graph'));
|
||||
await tester.ensureVisible(
|
||||
find.byKey(const Key('pipeline-detail-tab-graph')),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
}
|
||||
@@ -203,9 +205,9 @@ void main() {
|
||||
|
||||
// The selection belongs to the panel, so an in-place tab round trip keeps
|
||||
// the same node marked (the web keeps its graph selection across tabs).
|
||||
await tester.tap(find.text('Summary'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-summary')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(tester.widget<GraphStageNode>(_node('review')).selected, isTrue);
|
||||
@@ -227,14 +229,14 @@ void main() {
|
||||
|
||||
// The selection belongs to the pinned definition: changing version must not
|
||||
// carry a same-named node's mark into the other version.
|
||||
await tester.tap(find.text('Summary'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-summary')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.ensureVisible(find.byKey(const Key('pipeline-version-1')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byKey(const Key('pipeline-version-1')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Viewing v1 (latest v2).'), findsOneWidget);
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(tester.widget<GraphStageNode>(_node('review')).selected, isFalse);
|
||||
|
||||
@@ -75,14 +75,14 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(gateway.callsOf('list_schedules').single.fields, {'pipeline_id': 1});
|
||||
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pump();
|
||||
expect(find.text('name: alpha'), findsOneWidget);
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(find.byKey(scheduleAddKey), findsNothing);
|
||||
await tester.tap(find.text('Summary'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-summary')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Research batteries'), findsOneWidget);
|
||||
});
|
||||
|
||||
@@ -81,7 +81,7 @@ void main() {
|
||||
expect(rect.left, greaterThanOrEqualTo(pill.left), reason: tab.name);
|
||||
expect(rect.right, lessThanOrEqualTo(pill.right), reason: tab.name);
|
||||
}
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(selected, PipelineDetailTab.source);
|
||||
expect(tester.takeException(), isNull);
|
||||
|
||||
@@ -68,9 +68,11 @@ void main() {
|
||||
await tester.tap(find.byKey(const Key('pipeline-row-1')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
await tester.ensureVisible(find.text('Source'));
|
||||
await tester.ensureVisible(
|
||||
find.byKey(const Key('pipeline-detail-tab-source')),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(tester.takeException(), isNull);
|
||||
expect(
|
||||
@@ -153,7 +155,7 @@ void main() {
|
||||
await tester.tap(find.byKey(const Key('pipeline-version-1')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Viewing v1 (latest v2).'), findsOneWidget);
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pump();
|
||||
expect(
|
||||
selectableText(
|
||||
@@ -199,9 +201,11 @@ void main() {
|
||||
// The header scrolls instead of squeezing the tab out; the tabs stay
|
||||
// reachable inside it and the tab keeps a bounded slot.
|
||||
expect(tester.takeException(), isNull);
|
||||
await tester.ensureVisible(find.text('Graph'));
|
||||
await tester.ensureVisible(
|
||||
find.byKey(const Key('pipeline-detail-tab-graph')),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Graph'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-graph')));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
expect(tester.takeException(), isNull);
|
||||
|
||||
@@ -45,7 +45,7 @@ void main() {
|
||||
'version': 2,
|
||||
});
|
||||
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pump();
|
||||
expect(
|
||||
selectableText('name: Alpha review\nstages:\n review:\n type: model'),
|
||||
@@ -73,7 +73,7 @@ void main() {
|
||||
});
|
||||
expect(find.text('Viewing v1 (latest v2).'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.text('Source'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-source')));
|
||||
await tester.pump();
|
||||
expect(
|
||||
selectableText(
|
||||
@@ -83,7 +83,7 @@ void main() {
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
await tester.tap(find.text('Summary'));
|
||||
await tester.tap(find.byKey(const Key('pipeline-detail-tab-summary')));
|
||||
await tester.pump();
|
||||
await tester.tap(find.byKey(const Key('pipeline-latest-version')));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in New Issue
Block a user