feat(app): glass viewer bars, graph controls and immersive image viewer

Review findings F12, F13, F25 and F1 for viewers: the artifact viewer's
actions/pager and the Changes pager float as glass pills over content,
file facts move to the top bar, graph overlay controls are one glass pill
(duplicate fullscreen glyph removed), the image viewer is immersive, and
diff/artifact/graph views let content pass behind the bar. Implemented by
pipeline run #204 (Terra); its Review stopped after three rejections, the
last being an empty glass bar for a single unresolved artifact, which the
manager fixed here with a regression test.
This commit is contained in:
2026-10-31 04:26:22 +00:00
parent 6ab8551348
commit fde086cc4a
13 changed files with 301 additions and 199 deletions
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import '../../../ui/adaptive/segmented_bar.dart';
import '../../../ui/adaptive/host.dart';
import '../../../ui/adaptive/floating_bar_layout.dart';
import 'graph_viewport.dart';
import 'graph_viewport_controller.dart';
@@ -116,7 +117,7 @@ class _GraphExpandedViewState extends State<GraphExpandedView> {
),
],
),
child: SafeArea(child: body),
child: BelowTopBar(child: body),
);
}
return Scaffold(
@@ -133,7 +134,7 @@ class _GraphExpandedViewState extends State<GraphExpandedView> {
),
],
),
body: SafeArea(child: body),
body: BelowTopBar(child: body),
);
}
}
@@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../ui/adaptive/host.dart';
import '../../../ui/adaptive/glass_pill.dart';
import 'graph_viewport_controller.dart';
/// The fit control's web wording (`Fit graph to view`).
@@ -113,23 +114,26 @@ class _GraphViewportState extends State<GraphViewport> {
PositionedDirectional(
top: 8,
end: 8,
child: Wrap(
spacing: 8,
children: [
_ViewportButton(
buttonKey: const Key('graph-fit'),
icon: _fitIcon(context),
label: graphFitLabel,
onPressed: widget.controller.fitToViewport,
),
if (widget.onExpand != null)
child: GlassPill(
cupertino: usesCupertinoHost(context),
child: Wrap(
spacing: 2,
children: [
_ViewportButton(
buttonKey: const Key('graph-expand'),
icon: _expandIcon(context),
label: graphExpandLabel,
onPressed: widget.onExpand,
buttonKey: const Key('graph-fit'),
icon: _fitIcon(context),
label: graphFitLabel,
onPressed: widget.controller.fitToViewport,
),
],
if (widget.onExpand != null)
_ViewportButton(
buttonKey: const Key('graph-expand'),
icon: _expandIcon(context),
label: graphExpandLabel,
onPressed: widget.onExpand,
),
],
),
),
),
],
@@ -145,7 +149,7 @@ class _GraphViewportState extends State<GraphViewport> {
usesCupertinoHost(context) ? CupertinoIcons.fullscreen : Icons.fullscreen;
}
/// One native graph control: a tinted icon button on either host.
/// One native graph control inside the shared floating glass pill.
///
/// The label and the button's own tap action must reach the same semantics
/// node: the icon is the only excluded child, and [MergeSemantics] folds the
@@ -172,7 +176,7 @@ class _ViewportButton extends StatelessWidget {
button: true,
label: label,
child: usesCupertinoHost(context)
? CupertinoButton.tinted(
? CupertinoButton(
key: buttonKey,
padding: const EdgeInsets.all(8),
onPressed: onPressed,
@@ -183,7 +187,7 @@ class _ViewportButton extends StatelessWidget {
// The merged node already carries the label; the tooltip is
// only the pointer affordance.
excludeFromSemantics: true,
child: IconButton.filledTonal(
child: IconButton(
key: buttonKey,
onPressed: onPressed,
icon: ExcludeSemantics(child: Icon(icon)),