a44f31b989
Read-only Pipelines screen for the Flutter client: - list_pipelines and list_runs with a last-run join, plus get_pipeline with an explicit version (0 = latest); no mutation requests. - Name, run-presence, last-run-status and schedule filters; six sort orders; clear filters; truthful loading, empty and error states. - Detail Summary, selectable Source and version history with selection and return to latest. - Sequenced list/detail requests so stale replies cannot replace a newer selection or open a cleared one; refresh keeps the selected pipeline and version. - Material controls on Android/desktop and Cupertino on iOS; a per-label segmented tab row at narrow widths and scaled text, with the native control kept wherever an equal share fits. - Fixture probe entry and Chrome scripts for the rendered evidence; widget tests cover filters, sorting, formatting, sequencing, layout and the tab row. Graph rendering remains P2: the Graph tab states that it is pending and exposes a host hook. PipelinesScreen is not yet registered in the shell. Evidence and limits: app/notes/P1.md.
27 lines
812 B
Dart
27 lines
812 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:pipelines_app/features/pipelines/screen.dart';
|
|
|
|
import 'pipelines_probe_fixture.dart';
|
|
|
|
/// Browser fixture preview for the Pipelines item. It is a separate entry
|
|
/// point, so the app's main/shell stay untouched. All replies come from
|
|
/// [PipelinesProbeGateway]; no server or live data is involved.
|
|
void main() {
|
|
runApp(const PipelinesProbeApp());
|
|
}
|
|
|
|
class PipelinesProbeApp extends StatelessWidget {
|
|
const PipelinesProbeApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Pipelines P1 probe',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: ThemeData(),
|
|
darkTheme: ThemeData(brightness: Brightness.dark),
|
|
home: PipelinesScreen(gateway: PipelinesProbeGateway()),
|
|
);
|
|
}
|
|
}
|