Changes: file list beside the selected diff on wide desktop panes
At a window of at least 1000 px with a pane of at least 720 px, the run Changes surface (final changes and visit pages) lists the files on the left (name over folder, line counts, selected row highlighted) and shows the selected file's diff on the right. j/k or ArrowDown/ArrowUp move between files while the list has focus; Enter opens the file's full diff page. Phones and narrow panes keep one row per file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,33 +32,10 @@ class StageCaptureSection extends StatelessWidget {
|
||||
final status = stage.stepStatus.trim().toLowerCase();
|
||||
final pending =
|
||||
capture == null && (status == 'running' || status == 'waiting');
|
||||
final meta = [
|
||||
'Visit ${stage.visit}',
|
||||
if (stage.stepStatus.isNotEmpty) stage.stepStatus,
|
||||
].join(' · ');
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(meta, style: Theme.of(context).textTheme.bodySmall),
|
||||
if (capture != null) ...[
|
||||
Text(
|
||||
fileChangesSummary(capture),
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
),
|
||||
if (capture.scope.isNotEmpty)
|
||||
Text(
|
||||
'Scope: ${capture.scope}',
|
||||
style: Theme.of(context).textTheme.bodySmall,
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
StageCaptureHeading(stage: stage),
|
||||
const Divider(height: 1),
|
||||
if (capture == null)
|
||||
_CaptureNote(
|
||||
@@ -99,6 +76,38 @@ class StageCaptureSection extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// A stage/visit capture's heading: the visit and step status, the capture's
|
||||
/// summary and its scope.
|
||||
class StageCaptureHeading extends StatelessWidget {
|
||||
const StageCaptureHeading({super.key, required this.stage});
|
||||
|
||||
final StageCapture stage;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final capture = stage.capture;
|
||||
final small = Theme.of(context).textTheme.bodySmall;
|
||||
final meta = [
|
||||
'Visit ${stage.visit}',
|
||||
if (stage.stepStatus.isNotEmpty) stage.stepStatus,
|
||||
].join(' · ');
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 16, 16, 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(meta, style: small),
|
||||
if (capture != null) ...[
|
||||
Text(fileChangesSummary(capture), style: small),
|
||||
if (capture.scope.isNotEmpty)
|
||||
Text('Scope: ${capture.scope}', style: small),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// One changed file: its kind, path and line counts; tapping opens its diff.
|
||||
/// [dense] draws it on one compact line (the path, then the counts), for a
|
||||
/// card that lists many files in little space.
|
||||
|
||||
Reference in New Issue
Block a user