feat(app): artifact viewer renders HTML documents inertly (sandboxed iframe on web, script-free web view on mobile)

This commit is contained in:
2026-10-23 15:05:44 +01:00
parent 0fe3bfb5bb
commit e77628ac46
10 changed files with 188 additions and 3 deletions
@@ -109,6 +109,14 @@ void main() {
artifactPreviewFormat('text/markdown', 'plan'),
ArtifactPreviewFormat.markdown,
);
expect(
artifactPreviewFormat('text/html', 'report.html'),
ArtifactPreviewFormat.html,
);
expect(
artifactPreviewFormat('', 'session-repair-3-ab12.html'),
ArtifactPreviewFormat.none,
);
for (final (contentType, name) in <(String, String)>[
('text/html', 'session.html'),
('application/zip', 'bundle.zip'),