feat(app): turn documents in the artifact gallery

This commit is contained in:
2026-10-22 03:24:40 +01:00
parent 4f684ba467
commit 3fa4657be7
18 changed files with 1365 additions and 168 deletions
+58
View File
@@ -121,6 +121,64 @@ List<JsonMap> _steps(String origin, String state) {
},
];
}
if (state == 'documents') {
return <JsonMap>[
<String, dynamic>{
'stage': 'reviewer',
'sequence': 1,
'status': 'completed',
'control': <String, dynamic>{'visit': 1},
'artifacts': [
_file(
'report.csv',
url: '$origin/fixture/report.csv',
contentType: 'text/csv',
sizeBytes: 23,
),
_file(
'input.md',
url: '$origin/fixture/input.md',
contentType: 'text/markdown',
sizeBytes: 120,
),
_file(
'output.md',
url: '$origin/fixture/output.md',
contentType: 'text/markdown',
sizeBytes: 240,
),
// Deliberately sniffed as text/plain: the session export must still
// stay external-only.
_file(
'session.html',
url: '$origin/fixture/session.html',
contentType: 'text/plain',
sizeBytes: 512,
),
],
},
<String, dynamic>{
'stage': 'reviewer',
'sequence': 2,
'status': 'completed',
'control': <String, dynamic>{'visit': 2},
'artifacts': [
_file(
'input.md',
url: '$origin/fixture/input-2.md',
contentType: 'text/markdown',
sizeBytes: 130,
),
_file(
'memory.md',
url: '$origin/fixture/memory.md',
contentType: 'text/markdown',
sizeBytes: 256,
),
],
},
];
}
if (state == 'files') {
return <JsonMap>[
<String, dynamic>{