fix(variety): remove unused total, add warning border, fix abbreviation, aria

- EffortBar: remove unused \`total\` derived variable
- VarietyWarningCards: add border border-[var(--yellow-light)] to cards
- variety page: protein abbreviation uses split(' ')[0].slice(0,3).toUpperCase()
- variety page: breadcrumb separator span gets aria-hidden="true"

Addresses Kai blocker: unused total. Atlas blockers: yellow-light border,
protein abbreviation, breadcrumb aria.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 11:37:26 +02:00
parent cb15143c30
commit 8e82213d1e
3 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
hard: number; hard: number;
} = $props(); } = $props();
let total = $derived(easy + medium + hard);
</script> </script>
<!-- Labels below the bar --> <!-- Labels below the bar -->

View File

@@ -10,7 +10,7 @@
{#each warnings as warning} {#each warnings as warning}
<div <div
data-testid="warning-card" data-testid="warning-card"
class="rounded-[var(--radius-lg)] bg-[var(--yellow-tint)] px-4 py-3" class="rounded-[var(--radius-lg)] border border-[var(--yellow-light)] bg-[var(--yellow-tint)] px-4 py-3"
> >
<p class="font-[var(--font-sans)] text-[13px] font-medium text-[var(--yellow-text)]"> <p class="font-[var(--font-sans)] text-[13px] font-medium text-[var(--yellow-text)]">
{warning.title} {warning.title}

View File

@@ -129,7 +129,7 @@
> >
Planer Planer
</a> </a>
<span class="font-[var(--font-sans)] text-[13px] text-[var(--color-text-muted)]">/</span> <span aria-hidden="true" class="font-[var(--font-sans)] text-[13px] text-[var(--color-text-muted)]">/</span>
<h1 class="font-[var(--font-display)] text-[20px] font-[300] text-[var(--color-text)]"> <h1 class="font-[var(--font-display)] text-[20px] font-[300] text-[var(--color-text)]">
Abwechslungs-Analyse Abwechslungs-Analyse
</h1> </h1>
@@ -191,7 +191,7 @@
: 'bg-[var(--color-subtle)] text-[var(--color-text-muted)]'} : 'bg-[var(--color-subtle)] text-[var(--color-text-muted)]'}
{isRepeated ? 'ring-2 ring-[var(--yellow)]' : ''}" {isRepeated ? 'ring-2 ring-[var(--yellow)]' : ''}"
> >
{protein ? protein.slice(0, 3) : '—'} {protein ? protein.split(' ')[0].slice(0, 3).toUpperCase() : '—'}
</div> </div>
</div> </div>
{/each} {/each}