Remove alternate hosts from tooling probes

Keep the probe suite on the Material composition so browser fixtures and capture drivers no longer render or select Cupertino hosts. Record the final residual legacy arguments and implementation checks for the delivery gate.
This commit is contained in:
2026-11-11 21:38:30 +00:00
parent 7cb95471cb
commit b60ad6d98f
68 changed files with 405 additions and 747 deletions
+4 -27
View File
@@ -6,12 +6,11 @@
// python3 -I -m http.server 0 --bind 127.0.0.1 \
// --directory build/probe-floating-tabs
// Chrome --headless=new --window-size=W,H --screenshot=OUT \
// 'http://127.0.0.1:PORT/?platform=cupertino&theme=dark'
// 'http://127.0.0.1:PORT/?theme=dark'
//
// Query: platform=cupertino (else Material), theme=dark, tab=runs|chat|...
// Query: theme=dark, tab=runs|chat|...
// The destinations are long local lists, so the capture shows content passing
// behind the bar and the last row clearing it. No server is involved.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/shell/adaptive_shell.dart';
import 'package:pipelines_app/shell/destination.dart';
@@ -19,25 +18,22 @@ import 'package:pipelines_app/shell/shell_bar.dart';
void main() {
final params = Uri.base.queryParameters;
final cupertino = params['platform'] == 'cupertino';
final dark = params['theme'] == 'dark';
final tab = AppDestination.values.firstWhere(
(value) => value.name == params['tab'],
orElse: () => AppDestination.pipelines,
);
final end = params['end'] == '1';
runApp(_Probe(cupertino: cupertino, dark: dark, tab: tab, end: end));
runApp(_Probe(dark: dark, tab: tab, end: end));
}
class _Probe extends StatelessWidget {
const _Probe({
required this.cupertino,
required this.dark,
required this.tab,
required this.end,
});
final bool cupertino;
final bool dark;
final AppDestination tab;
@@ -45,12 +41,11 @@ class _Probe extends StatelessWidget {
final bool end;
Widget _list(String noun, {required int count}) =>
_ProbeList(noun: noun, count: count, cupertino: cupertino, end: end);
_ProbeList(noun: noun, count: count, end: end);
@override
Widget build(BuildContext context) {
final shell = AdaptiveShell(
cupertino: cupertino,
destination: tab,
attentionCount: 3,
destinationBodies: {
@@ -67,15 +62,6 @@ class _Probe extends StatelessWidget {
),
},
);
if (cupertino) {
return CupertinoApp(
debugShowCheckedModeBanner: false,
theme: CupertinoThemeData(
brightness: dark ? Brightness.dark : Brightness.light,
),
home: shell,
);
}
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
@@ -91,13 +77,11 @@ class _ProbeList extends StatefulWidget {
const _ProbeList({
required this.noun,
required this.count,
required this.cupertino,
required this.end,
});
final String noun;
final int count;
final bool cupertino;
final bool end;
@override
@@ -137,13 +121,6 @@ class _ProbeListState extends State<_ProbeList> {
final subtitle = index.isEven
? 'Succeeded · 2m 05s'
: 'Running · started 1m ago';
if (widget.cupertino) {
return CupertinoListTile(
leading: const Icon(CupertinoIcons.circle_fill, size: 12),
title: Text(title),
subtitle: Text(subtitle),
);
}
return ListTile(
leading: Icon(
index.isEven ? Icons.check_circle_outline : Icons.timelapse,