feat(app): turn documents in the artifact gallery
This commit is contained in:
@@ -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>{
|
||||
|
||||
Reference in New Issue
Block a user