Retitle all 49 stories into a sidebar that makes the DDD seam visible: Foundations (curriculum) -> Design System (Atoms/Molecules/Organisms/ Templates/Devtools, everything in shared/ui + shared/layout) -> Domein (Registratie/Herregistratie/Auth/Brief, everything in a context's ui/). Pin the order via storySort. Add layers.mdx explaining the split and linking the enforcing eslint rules; document the story-title convention in CLAUDE.md. Fix a stale "status banner" reference in atomic-design.mdx left over from WP-13's upload-status-banner deletion. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/angular';
|
|
import { RegistrationSummaryComponent } from './registration-summary.component';
|
|
import { Registration } from '@registratie/domain/registration';
|
|
|
|
const base = {
|
|
bigNummer: '19012345601',
|
|
naam: 'Dr. A. (Anna) de Vries',
|
|
beroep: 'Arts',
|
|
registratiedatum: '2012-09-01',
|
|
geboortedatum: '1985-03-14',
|
|
} satisfies Omit<Registration, 'status'>;
|
|
|
|
const meta: Meta<RegistrationSummaryComponent> = {
|
|
title: 'Domein/Registratie/Registration Summary',
|
|
component: RegistrationSummaryComponent,
|
|
};
|
|
export default meta;
|
|
type Story = StoryObj<RegistrationSummaryComponent>;
|
|
|
|
// Each story feeds a different union variant; the datablock renders only the rows
|
|
// that variant's data supports (note Doorgehaald has no herregistratie date).
|
|
export const Geregistreerd: Story = {
|
|
args: { reg: { ...base, status: { tag: 'Geregistreerd', herregistratieDatum: '2027-09-01' } } },
|
|
};
|
|
export const Geschorst: Story = {
|
|
args: {
|
|
reg: {
|
|
...base,
|
|
status: { tag: 'Geschorst', geschorstTot: '2026-12-31', reden: 'Lopend tuchtonderzoek' },
|
|
},
|
|
},
|
|
};
|
|
export const Doorgehaald: Story = {
|
|
args: {
|
|
reg: {
|
|
...base,
|
|
status: { tag: 'Doorgehaald', doorgehaaldOp: '2024-05-01', reden: 'Op eigen verzoek' },
|
|
},
|
|
},
|
|
};
|