Remove Cupertino branches from probe fixtures

Keep the chat and graph fixtures aligned with the app's Material-only UI by removing alternate Cupertino hosts, imports, and query-controlled rendering paths. Preserve the existing Material scenarios and document the focused probe coverage.
This commit is contained in:
2026-11-11 20:08:06 +00:00
parent 3f05421e8b
commit 13a5e1dee0
16 changed files with 44 additions and 285 deletions
+2 -20
View File
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/core/api_gateway.dart';
@@ -86,15 +85,14 @@ JsonMap _finishedRun() => <String, dynamic>{
/// Isolated browser fixture for `RunGraphView` only.
///
/// `style=cupertino` selects the Cupertino host, `dark=1` its dark theme and
/// `scale=2` a real 2x text scale. `case=finished` records a resolved success
/// `dark=1` selects the dark theme and `scale=2` a real 2x text scale.
/// `case=finished` records a resolved success
/// terminal instead of the running path; `case=missing` omits the graph. A
/// click reports the exact visited stage key; unvisited nodes report nothing.
void main() {
final parameters = Uri.base.queryParameters;
runApp(
_ProbeApp(
cupertino: parameters['style'] == 'cupertino',
dark: parameters['dark'] == '1',
scale: double.tryParse(parameters['scale'] ?? '') ?? 1,
fixture: parameters['case'] ?? 'running',
@@ -104,13 +102,10 @@ void main() {
class _ProbeApp extends StatelessWidget {
const _ProbeApp({
required this.cupertino,
required this.dark,
required this.scale,
required this.fixture,
});
final bool cupertino;
final bool dark;
final double scale;
final String fixture;
@@ -122,19 +117,6 @@ class _ProbeApp extends StatelessWidget {
graph: fixture == 'missing' ? null : _graph(),
run: fixture == 'finished' ? _finishedRun() : _runningRun(),
);
if (cupertino) {
return CupertinoApp(
theme: CupertinoThemeData(
brightness: dark ? Brightness.dark : Brightness.light,
),
home: CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(
middle: Text('Run graph'),
),
child: SafeArea(child: page),
),
);
}
return MaterialApp(
theme: ThemeData(
platform: TargetPlatform.android,