feat(app): run and stage artifacts share one gallery grid with image thumbnails and file-type icons

This commit is contained in:
2026-10-23 18:46:49 +01:00
parent 403fa6cd07
commit 0d98be0d8b
10 changed files with 432 additions and 197 deletions
@@ -52,18 +52,11 @@ void main() {
expect(find.text('ok'), findsOneWidget);
await openVisitTab(tester, RunVisitSection.artifacts);
expect(find.text('plan.csv'), findsOneWidget);
await tester.tap(find.text('plan.csv'));
await tester.pumpAndSettle();
// The section is the run's gallery, focused on this visit: exactly the
// stage's files, without the session evidence file.
expect(find.byType(ArtifactGalleryPage), findsOneWidget);
// The opened page lists exactly the pane's stage files: the session
// evidence file is not stage output and stays out of both.
expect(find.text('plan · visit 1'), findsOneWidget);
expect(find.text('plan.csv'), findsOneWidget);
expect(find.text('session.html'), findsNothing);
expect(find.text('Artifacts · 1 recorded'), findsOneWidget);
await tester.pageBack();
await tester.pumpAndSettle();
await openVisitTab(tester, RunVisitSection.session);
expect(find.text('Session'), findsWidgets);
@@ -172,14 +165,7 @@ void main() {
await openVisitTab(tester, RunVisitSection.artifacts);
expect(find.text('plan-2.csv'), findsOneWidget);
expect(find.text('public/shared.csv'), findsNothing);
await tester.tap(find.text('plan-2.csv'));
await tester.pumpAndSettle();
expect(find.byType(ArtifactGalleryPage), findsOneWidget);
expect(find.text('plan · visit 2'), findsOneWidget);
expect(find.text('plan-2.csv'), findsOneWidget);
expect(find.text('public/shared.csv'), findsNothing);
expect(find.text('Artifacts · 1 recorded'), findsOneWidget);
});
testWidgets('${platform.name} missing definition uses exact wording', (