Remove Cupertino remnants from runs and pipelines
Keep the assigned runs and pipelines UI Material-only by removing alternate icons, host branches, and Cupertino color usage while preserving compatibility parameters needed by other callers. Update mirrored tests and record focused verification for the cleanup.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart' show CupertinoColors;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
@@ -26,7 +25,7 @@ class RunDecisionNotice extends StatelessWidget {
|
||||
// colour, the title over its meta line, and the action on the trailing
|
||||
// edge. The strip is already the frame, so the banner draws no card,
|
||||
// border or tint of its own.
|
||||
final color = CupertinoColors.systemTeal.resolveFrom(context);
|
||||
final color = Theme.of(context).colorScheme.tertiary;
|
||||
final metaStyle = Theme.of(context).textTheme.bodySmall;
|
||||
return Container(
|
||||
key: const Key('run-decision-banner'),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// The run-detail sections in the web's order: Summary first, the run Graph
|
||||
@@ -8,23 +7,17 @@ import 'package:flutter/material.dart';
|
||||
/// are the same words. `renderedRunDetailTabs` decides which keys the strip
|
||||
/// draws, so Input and Output stay addressable without being tabs.
|
||||
enum RunDetailTab {
|
||||
summary('Summary', Icons.summarize_outlined, CupertinoIcons.doc_text),
|
||||
graph('Graph', Icons.account_tree_outlined, CupertinoIcons.arrow_branch),
|
||||
input('Input', Icons.input, CupertinoIcons.arrow_down_doc),
|
||||
output('Output', Icons.output, CupertinoIcons.arrow_up_doc),
|
||||
timeline('Timeline', Icons.timeline, CupertinoIcons.list_bullet),
|
||||
artifacts('Artifacts', Icons.inventory_2_outlined, CupertinoIcons.cube_box),
|
||||
changes(
|
||||
'Changes',
|
||||
Icons.difference_outlined,
|
||||
CupertinoIcons.arrow_right_arrow_left,
|
||||
);
|
||||
summary('Summary', Icons.summarize_outlined),
|
||||
graph('Graph', Icons.account_tree_outlined),
|
||||
input('Input', Icons.input),
|
||||
output('Output', Icons.output),
|
||||
timeline('Timeline', Icons.timeline),
|
||||
artifacts('Artifacts', Icons.inventory_2_outlined),
|
||||
changes('Changes', Icons.difference_outlined);
|
||||
|
||||
const RunDetailTab(this.label, this.icon, this.cupertinoIcon);
|
||||
const RunDetailTab(this.label, this.icon);
|
||||
|
||||
final String label;
|
||||
|
||||
/// The tab's glyph, so a tab is recognisable at a glance.
|
||||
final IconData icon;
|
||||
final IconData cupertinoIcon;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
@@ -18,30 +17,20 @@ import '../../../ui/adaptive/floating_bar_layout.dart';
|
||||
/// client follows: the turn's Input and Output, its Artifacts, the files this
|
||||
/// visit changed, its Session and the authored Definition.
|
||||
enum RunVisitSection {
|
||||
summary('Summary', Icons.summarize_outlined, CupertinoIcons.doc_text),
|
||||
more('More', Icons.more_horiz, CupertinoIcons.ellipsis_circle),
|
||||
input('Input', Icons.input, CupertinoIcons.arrow_down_doc),
|
||||
output('Output', Icons.output, CupertinoIcons.arrow_up_doc),
|
||||
artifacts('Artifacts', Icons.inventory_2_outlined, CupertinoIcons.cube_box),
|
||||
changes(
|
||||
'Changes',
|
||||
Icons.difference_outlined,
|
||||
CupertinoIcons.arrow_right_arrow_left,
|
||||
),
|
||||
session('Session', Icons.forum_outlined, CupertinoIcons.text_bubble),
|
||||
definition(
|
||||
'Definition',
|
||||
Icons.description_outlined,
|
||||
CupertinoIcons.doc_plaintext,
|
||||
);
|
||||
summary('Summary', Icons.summarize_outlined),
|
||||
more('More', Icons.more_horiz),
|
||||
input('Input', Icons.input),
|
||||
output('Output', Icons.output),
|
||||
artifacts('Artifacts', Icons.inventory_2_outlined),
|
||||
changes('Changes', Icons.difference_outlined),
|
||||
session('Session', Icons.forum_outlined),
|
||||
definition('Definition', Icons.description_outlined);
|
||||
|
||||
const RunVisitSection(this.label, this.icon, this.cupertinoIcon);
|
||||
const RunVisitSection(this.label, this.icon);
|
||||
|
||||
final String label;
|
||||
|
||||
/// The section's glyph, so a tab is recognisable at a glance.
|
||||
final IconData icon;
|
||||
final IconData cupertinoIcon;
|
||||
}
|
||||
|
||||
/// The stage page's tabs: the app's floating glass tab bar, full width on a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
import '../../../ui/status/run_status_icon.dart';
|
||||
@@ -54,7 +54,7 @@ class RunPathMini extends StatelessWidget {
|
||||
final stages = path.stages.length > maxStages
|
||||
? path.stages.sublist(path.stages.length - maxStages)
|
||||
: path.stages;
|
||||
final line = CupertinoColors.separator.resolveFrom(context);
|
||||
final line = Theme.of(context).colorScheme.outlineVariant;
|
||||
Widget box(RunPathStage stage) => Container(
|
||||
width: 14,
|
||||
height: 10,
|
||||
|
||||
Reference in New Issue
Block a user