Purpose
List of trademarks owned by the company. File: frontend/kundkort/components/sections/VarumarkenSection.tsx.
Data shape
data.agda_varumarken: VarumarkenData is a discriminated union (types/kundkort.ts:30-40):
type VarumarkenData =
| { available: false; data_gap_note: string }
| {
available: true;
trademarks: Array<{
trademark_name: string;
status: string | null;
registration_no: string | null;
nice_classes: number[] | null;
}>;
};Rendering
available === false→data_gap_noteplus GapBadgeavailable === true→ one row per trademark in a--bg-raisedpill- Status pill is green (
--status-ok-bg) when status (case-insensitive) contains"gälland"or equals"registrerat"(VarumarkenSection.tsx:59-65); otherwise muted - Nice classes: shows first 3 as “Klass 35, 41, 42” — extras silently dropped (
VarumarkenSection.tsx:70-74) registration_nois in the type but not rendered
See also
Koncern Section, UI Primitives.