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
+8 -35
View File
@@ -6,7 +6,6 @@
//
// These are server-shaped fixtures for rendering only. They are not a live run
// and never mutate a server.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/core/api_gateway.dart';
import 'package:pipelines_app/features/changes/changes.dart';
@@ -210,52 +209,26 @@ List<JsonMap> probeVisitSteps() => [
void main() {
final params = Uri.base.queryParameters;
final cupertino = params['platform'] == 'cupertino';
final brightness = params['theme'] == 'light'
? Brightness.light
: Brightness.dark;
final steps = params['visits'] == '1' ? probeVisitSteps() : probeSteps();
if (cupertino) {
runApp(
CupertinoApp(
title: 'Changes probe',
theme: CupertinoThemeData(brightness: brightness),
home: _ProbeHome(cupertino: true, steps: steps),
),
);
} else {
runApp(
MaterialApp(
title: 'Changes probe',
theme: ThemeData(
brightness: brightness,
// Chrome on macOS reports a macOS default platform; the fixture
// states Material explicitly so both control sets are capturable.
platform: TargetPlatform.android,
),
home: _ProbeHome(cupertino: false, steps: steps),
),
);
}
runApp(
MaterialApp(
title: 'Changes probe',
theme: ThemeData(brightness: brightness, platform: TargetPlatform.android),
home: _ProbeHome(steps: steps),
),
);
}
class _ProbeHome extends StatelessWidget {
const _ProbeHome({required this.cupertino, required this.steps});
final bool cupertino;
const _ProbeHome({required this.steps});
final List<JsonMap> steps;
@override
Widget build(BuildContext context) {
final viewer = ChangesViewer(steps: steps);
if (cupertino) {
return CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(
middle: Text('Changes probe'),
),
child: SafeArea(child: viewer),
);
}
return Scaffold(
appBar: AppBar(title: const Text('Changes probe')),
body: viewer,