Purpose
Top-left card on the Översikt tab. Displays static identity facts about the company. File: frontend/kundkort/components/sections/IdentityCard.tsx.
Fields rendered
| Label | Source field |
|---|---|
| Orgnummer | data.org_nr (formatted via formatOrgNr as XXXXXX-XXXX) |
| Land | data.country |
| Status | data.is_active (Aktivt / Inaktivt / —) |
| Registrerad | data.registration_date (sv-SE locale) |
| SNI-kod(er) | first 3 from data.sni_codes, with description from data.sni_descriptions[code] if present |
| Bifirma / varumärke | first 3 from data.trade_names, only shown if non-empty |
| Senast enrichad | data.last_enriched_at |
Rendering pattern
Each row uses KvRow. Status colour comes from CSS variables --status-ok / --status-error / --text-muted. SNI codes render as monospace pills with the description appended in --text-secondary.
Caps
- SNI list: hard cap at 3 (
IdentityCard.tsx:61) - Trade names: hard cap at 3 (
IdentityCard.tsx:91)
Codes that are blank after trim() are filtered before slicing (IdentityCard.tsx:61).
Date formatting
formatDate() uses toLocaleDateString('sv-SE', { year: 'numeric', month: '2-digit', day: '2-digit' }) and falls back to the raw ISO string if Date parsing throws.
See also
Contacts Section, UI Primitives, Kundkort Page.