Files
pipelines/app/tool/app_host_probe_entry.dart
T
alan 3c56db37fd Share one list row across runs, pipelines, chat, search and schedules
AppListRow (Material + Cupertino) with avatar, bold title and trailing
time, one muted line, one overflow menu style, inset dividers, selected
and emphasised states and a compact mode. Pipelines get a legible initial
avatar, schedule rows shrink to two lines with Edit/Pause/Delete in an
overflow menu, and the shell chat list scrolls behind the bar.
2026-10-31 04:15:01 +00:00

27 lines
1.0 KiB
Dart

// The normal application composition with an explicit host, for browser
// captures of the Cupertino app (the web build is Material by design, see
// `prefersCupertino`).
//
// Build and capture (from app/):
// flutter build web --target tool/app_host_probe_entry.dart \
// -o build/probe-app-host
// serve it with the runs or pipelines fixture server
// (`tool/runs_probe_server.mjs`, `tool/pipelines_wiring_probe_server.mjs`)
// and open `/runs?host=cupertino`; without `host=cupertino` it is Material.
//
// It connects only to the page's own origin, like the web app.
import 'package:flutter/widgets.dart';
import 'package:pipelines_app/application/app_url_strategy.dart';
import 'package:pipelines_app/application/pipelines_app.dart';
import 'package:pipelines_app/application/server_endpoint.dart';
void main() {
useAppUrlStrategy();
runApp(
PipelinesApp(
server: ServerEndpoint.resolve(base: Uri.base, web: true),
cupertino: Uri.base.queryParameters['host'] == 'cupertino',
),
);
}