feat(app): a file diff opens as its own page with previous and next file chevrons

This commit is contained in:
2026-10-23 17:09:57 +01:00
parent f7c34b5f40
commit 4b1e74cf61
4 changed files with 190 additions and 63 deletions
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
import '../../../core/api_gateway.dart';
import '../domain/change_capture.dart';
import '../domain/change_wording.dart';
import '../domain/file_change.dart';
import '../domain/run_changes.dart';
import 'capture_section.dart';
import 'change_style.dart';
@@ -169,7 +170,15 @@ class _ChangesViewerState extends State<ChangesViewer> {
StageCaptureSection(
stage: visit,
query: _query,
onOpen: (file) => showFileDiffViewer(context, file),
// The page steps through the files this visit shows.
onOpen: (file) => showFileDiffViewer(
context,
file,
files: filterFileChanges(
visit.capture?.files ?? const <FileChange>[],
_query,
),
),
),
],
),