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
+1 -19
View File
@@ -1,6 +1,5 @@
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:pipelines_app/core/api_gateway.dart';
@@ -10,7 +9,7 @@ import 'package:pipelines_app/features/chat/screen.dart';
/// the real thread render one server-shaped conversation whose assistant text
/// is formatted markdown and whose user text must stay byte-exact.
///
/// Material and Cupertino hosts are the same fixture built with
/// The Material host is the same fixture built with
/// `CHAT_MARKDOWN_WIRE_PROBE_STYLE`.
class _FixtureGateway implements ApiGateway {
final _frames = StreamController<JsonMap>.broadcast();
@@ -86,28 +85,11 @@ const String _answer =
'\n'
'Literal <b>markup</b> and [unsafe](javascript:alert) stay visible.';
const _style = String.fromEnvironment(
'CHAT_MARKDOWN_WIRE_PROBE_STYLE',
defaultValue: 'material',
);
void main() {
final screen = ChatScreen(
gateway: _FixtureGateway(),
onSessionSelected: null,
);
if (_style == 'cupertino') {
runApp(
CupertinoApp(
theme: const CupertinoThemeData(brightness: Brightness.dark),
home: CupertinoPageScaffold(
navigationBar: const CupertinoNavigationBar(middle: Text('Chat')),
child: SafeArea(child: screen),
),
),
);
return;
}
runApp(
MaterialApp(
theme: ThemeData(