test: add MVP QA gate

This commit is contained in:
vince 2026-06-18 19:41:29 +02:00
parent af09f705b1
commit 081d6085a5
10 changed files with 413 additions and 7 deletions

View file

@ -2,13 +2,24 @@
import type { UiModuleBlock } from "../types";
import IconGlyph from "./IconGlyph.svelte";
const generatedId = $props.id();
let { module }: { module: UiModuleBlock } = $props();
let titleId = $derived(`${generatedId}-title`);
let ariaLabel = $derived(module.title ? undefined : module.label || module.id);
</script>
<aside class="module-card" data-severity={module.severity || "neutral"} data-model-id={module.id}>
<aside
class="module-card"
data-severity={module.severity || "neutral"}
data-model-id={module.id}
aria-labelledby={module.title ? titleId : undefined}
aria-label={ariaLabel}
>
<div>
{#if module.title}
<h2>{module.title}</h2>
<h2 id={titleId}>{module.title}</h2>
{/if}
{#if module.value}
<strong>{module.value}</strong>