-
{t("heading")} {cert.verdict}
-
{t("description")}
+
+
+ {verified ? "✓" : "!"}
+ {t("heading")} · {cert.verdict}
+ {verified ? t("hero-verified") : t("hero-failed")}
+ {t("description")}
+
+ {checks.map((c) => (
+ -
+ {c.ok === null ? "–" : c.ok ? "✓" : "✕"}
+ {c.label}
+
+ ))}
+
+
+
+ {t("details")}
{cert.signed ? (
@@ -88,6 +111,9 @@ export default function VerifyPage({ params }: { params: Promise<{ id: string }>
) : null}
+
+
+ {t("gates")} · {t("chain")}
{t("gates")}
{(cert.gates ?? []).map((g) => (
@@ -98,6 +124,7 @@ export default function VerifyPage({ params }: { params: Promise<{ id: string }>
{c.stage}: {c.event_id ?? "—"}
))}
+
);
}
diff --git a/apps/web/components/CanvasWorkspace.tsx b/apps/web/components/CanvasWorkspace.tsx
index 9e2a1a1..bbbfb26 100644
--- a/apps/web/components/CanvasWorkspace.tsx
+++ b/apps/web/components/CanvasWorkspace.tsx
@@ -31,8 +31,12 @@ type Props = {
management: ReactNode;
composer: ReactNode;
renderPreview: (html: string, title: string) => ReactNode;
+ // First-visit introduction; shown until dismissed once, reopened from the toolbar.
+ welcome?: (close: () => void) => ReactNode;
};
+const WELCOME_KEY = 'evoforge.welcome.seen';
+
export function CanvasWorkspace(props: Props) {
const t = useTranslations('canvas');
const ts = useTranslations('studio');
@@ -46,6 +50,14 @@ export function CanvasWorkspace(props: Props) {
const [compare, setCompare] = useState(true);
const [panel, setPanel] = useState
(null);
const [copied, setCopied] = useState(false);
+ const [welcome, setWelcome] = useState(false);
+ useEffect(() => {
+ try { if (!window.localStorage.getItem(WELCOME_KEY)) setWelcome(true); } catch { setWelcome(true); }
+ }, []);
+ const closeWelcome = () => {
+ setWelcome(false);
+ try { window.localStorage.setItem(WELCOME_KEY, '1'); } catch {}
+ };
const dialog = useRef(null);
const mobileMenu = useRef(null);
const returnFocus = useRef(null);
@@ -101,6 +113,7 @@ export function CanvasWorkspace(props: Props) {
{t(props.busy ? props.doc ? 'running' : 'received' : props.doc ? 'recorded' : 'waiting')}
+ {props.welcome && iconButton('spark', t('about'), () => setWelcome(true))}
{iconButton('users', t('activity'), () => setPanel('activity'))}
{iconButton('history', t('history'), () => setPanel('history'))}
{iconButton('performance', t('metrics'), () => setPanel('metrics'))}{iconButton('settings', t('settings'), () => setPanel('admin'))}
@@ -148,6 +161,7 @@ export function CanvasWorkspace(props: Props) {
;
})}
+ {welcome && props.welcome?.(closeWelcome)}
{props.pollError &&
{t('load-failed')}
}
{props.composer}