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
@@ -23,22 +23,20 @@ class ChatImageViewer extends StatelessWidget {
@override
Widget build(BuildContext context) {
final body = SafeArea(
child: InteractiveViewer(
key: const Key('chat-image-viewer-zoom'),
maxScale: 8,
child: Center(
child: Semantics(
image: true,
label: name,
child: Image.memory(
bytes,
key: const Key('chat-image-viewer-image'),
fit: BoxFit.contain,
gaplessPlayback: true,
errorBuilder: (context, _, _) => Icon(
cupertino ? CupertinoIcons.photo : Icons.broken_image_outlined,
),
final body = InteractiveViewer(
key: const Key('chat-image-viewer-zoom'),
maxScale: 8,
child: Center(
child: Semantics(
image: true,
label: name,
child: Image.memory(
bytes,
key: const Key('chat-image-viewer-image'),
fit: BoxFit.contain,
gaplessPlayback: true,
errorBuilder: (context, _, _) => Icon(
cupertino ? CupertinoIcons.photo : Icons.broken_image_outlined,
),
),
),
@@ -47,10 +45,14 @@ class ChatImageViewer extends StatelessWidget {
void close() => Navigator.of(context).maybePop();
if (cupertino) {
return CupertinoPageScaffold(
backgroundColor: CupertinoColors.black,
navigationBar: SegmentedBar(
cupertino: true,
automaticallyImplyLeading: false,
title: name,
backgroundColor: CupertinoColors.black,
pillColor: CupertinoColors.darkBackgroundGray,
foregroundColor: CupertinoColors.white,
leading: CupertinoButton(
key: const Key('chat-image-viewer-close'),
padding: const EdgeInsets.symmetric(horizontal: 16),
@@ -63,6 +65,7 @@ class ChatImageViewer extends StatelessWidget {
}
return Scaffold(
extendBodyBehindAppBar: true,
backgroundColor: Colors.black,
appBar: SegmentedBar(
cupertino: false,
automaticallyImplyLeading: false,
@@ -73,6 +76,9 @@ class ChatImageViewer extends StatelessWidget {
icon: const Icon(Icons.close),
),
title: name,
backgroundColor: Colors.black,
pillColor: Colors.white24,
foregroundColor: Colors.white,
),
body: body,
);