Purpose

Top-left card on the Översikt tab. Displays static identity facts about the company. File: frontend/kundkort/components/sections/IdentityCard.tsx.

Fields rendered

LabelSource field
Orgnummerdata.org_nr (formatted via formatOrgNr as XXXXXX-XXXX)
Landdata.country
Statusdata.is_active (Aktivt / Inaktivt / —)
Registreraddata.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ärkefirst 3 from data.trade_names, only shown if non-empty
Senast enrichaddata.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.

See also