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 === falsedata_gap_note plus GapBadge
  • available === true → one row per trademark in a --bg-raised pill
  • 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_no is in the type but not rendered

See also

Koncern Section, UI Primitives.

See also