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
+3 -17
View File
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/core/api_gateway.dart';
@@ -36,35 +35,22 @@ JsonMap _definition() => <String, dynamic>{
/// Isolated browser fixture for `DefinitionGraphView` only.
///
/// Not wired into the app or shell. `style=cupertino` selects the native
/// Cupertino host, `scale=2` applies a real 2x text scale to the graph viewport,
/// Not wired into the app or shell. `scale=2` applies a real 2x text scale to the graph viewport,
/// and a click reports the exact stage key in the status line.
void main() {
final parameters = Uri.base.queryParameters;
final cupertino = parameters['style'] == 'cupertino';
final scale = double.tryParse(parameters['scale'] ?? '') ?? 1;
runApp(_ProbeApp(cupertino: cupertino, scale: scale));
runApp(_ProbeApp(scale: scale));
}
class _ProbeApp extends StatelessWidget {
const _ProbeApp({required this.cupertino, required this.scale});
const _ProbeApp({required this.scale});
final bool cupertino;
final double scale;
@override
Widget build(BuildContext context) {
final page = _ProbePage(scale: scale);
if (cupertino) {
return CupertinoApp(
home: CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(
middle: Text('Definition graph'),
),
child: SafeArea(child: page),
),
);
}
return MaterialApp(
theme: ThemeData(platform: TargetPlatform.android),
darkTheme: ThemeData(