Polish populated workbench states
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 23:03:27 +02:00
parent 5cde19e3ea
commit 9888014bec
8 changed files with 121 additions and 11 deletions
@@ -2,11 +2,7 @@ interface ExportPreviewProps {
content: Record<string, unknown> | null
}
export function ExportPreview({ content }: ExportPreviewProps): JSX.Element | null {
if (!content) {
return null
}
export function ExportPreview({ content }: ExportPreviewProps): JSX.Element {
return (
<section className="export-preview-panel">
<div className="panel-title-row">
@@ -16,7 +12,14 @@ export function ExportPreview({ content }: ExportPreviewProps): JSX.Element | nu
</div>
<span className="count-pill">preview</span>
</div>
<pre className="job-result">{JSON.stringify(content, null, 2)}</pre>
{content ? (
<pre className="job-result">{JSON.stringify(content, null, 2)}</pre>
) : (
<div className="empty-state">
<strong>No export preview selected.</strong>
<p>Use Preview JSON content on a JSON or GeoJSON artifact to inspect the stored payload here.</p>
</div>
)}
</section>
)
}