Purpose
Group-structure card: parent company and subsidiaries. File: frontend/kundkort/components/sections/KoncernSection.tsx.
Data shape
data.koncern: KoncernData is a discriminated union (types/kundkort.ts:20-28):
type KoncernData =
| { available: false; data_gap_note: string }
| {
available: true;
is_in_group: boolean;
parent_org_nr: string | null;
parent_name: string | null;
subsidiaries: Array<{ org_nr: string; name: string }>;
};Rendering
available === false→ rendersdata_gap_notetext plus a GapBadge next to the headingavailable === trueandparent_nameset → “Moderbolag” block with name plus muted org_nravailable === trueand no parent and!is_in_group→ “Ej del av koncern”subsidiaries.length > 0→ “Dotterbolag (N)” header, lists first 5 names, then “+N till” if truncated (KoncernSection.tsx:62-71)
Note
Subsidiaries beyond the first 5 are not linked or expandable from this view. To see them you would need to query the company directly.
See also
Varumarken Section, Identity Card, UI Primitives.