feat(viewer): artifact modal renders structured text, never raw JSON

ArtifactView's fallback (StructuredValue) turns any object/array into labelled
sections, bullet lists and paragraphs (strings as markdown). Verified against the
real F1 gate (kind:"text", {recap, chiarimenti_risolti[], ...}). MarkdownView
uses the real .thot-prose class (Tailwind Typography is not installed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 18:15:48 +02:00
co-authored by Claude Opus 4.8
parent cec6620c00
commit a719ad5990
3 changed files with 66 additions and 8 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ const components: Components = {
export function MarkdownView({ source }: { source: string }) {
return (
<div className="markdown-view overflow-auto max-h-[60vh] prose prose-sm dark:prose-invert p-3">
<div className="markdown-view thot-prose">
<ReactMarkdown remarkPlugins={[remarkGfm]} components={components}>
{source}
</ReactMarkdown>