RD-03 moved the dashboard page to overzicht/ui/overzicht.page.ts and left four sections in registratie/ui/dashboard/. The folder was named after a page that lives in another context. A reader who opened it found four sections that are not the dashboard. The folder is now overzicht-secties/ — registratie's sections for the overzicht page. The alias does not change, because the sections stay in the registratie context. The story titles do not change, because they name the context. Five documents cited registratie/ui/dashboard.page.ts, a file that RD-03 renamed. They now name overzicht.page.ts, or the section that owns the behaviour they describe. The /dashboard route keeps its path. It is a user-visible URL. npm run ci --full passes: 67 and 45 storybook suites, 306 axe tests. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
5.6 KiB
RD-36 — ui/dashboard/ becomes ui/overzicht-secties/
Status: done Phase: 5 — fix the docs that describe this flow
Why
RD-03 moved the dashboard page to overzicht/ui/overzicht.page.ts and left four data sections
in registratie/ui/dashboard/. The folder is now named after a page that lives somewhere else.
A reader who opens registratie/ui/dashboard/ finds four sections that are not the dashboard,
and the page it is named for is in another context.
RD-04 recorded the name as stale and left it. This ticket fixes it.
Read first
docs/project/readable-codebase/PLAN.md:267-282— the decision and its measured cost.apps/ssp/src/app/overzicht/ui/overzicht.page.ts— the only importer.
Decisions (pre-made, do not relitigate)
- The new name is
overzicht-secties/. It says what the four files are: registratie's sections for the overzicht page. It keeps the Dutch that CLAUDE.md requires of a domain context. - Flattening into
registratie/ui/is rejected. That directory holds one folder per component. Eight loose files would break its shape. - The alias does not change. The four sections stay in the
registratiecontext, so the imports stay@registratie/ui/…. Only the folder segment changes. - Story titles do not change. They are
Domein/Registratie/<Name>, which is a context name, not a folder name. Both Storybook globs are recursive, so no config changes. - Fold in the two stale
dashboard.pagepaths named in PLAN.docs/reference/feature-flags.md:55and.claude/skills/new-ssp/SKILL.md:65both citeregistratie/ui/dashboard.page, a file that no longer exists. The flag logic they describe lives inapps/ssp/src/app/overzicht/ui/wat-wilt-u-doen.section.tsnow. - Fix the other live citations of the deleted file too. Same defect, same commit:
docs/reference/architecture/ARCHITECTURE.md:55(the pages node in the Mermaid diagram) and:79(theui/row of the layer table), andlibs/shared/docs/remote-data.mdx:64. Each namesdashboard.page.tsas a live example. The current name isoverzicht.page.ts. - Leave
docs/project/archive/and the shipped RD ticket records alone. They describe the tree as it was when they ran. A historical record that cites a path from its own time is correct, not stale.
Files
The move — 8 files, git mv the directory:
apps/ssp/src/app/registratie/ui/dashboard/ → apps/ssp/src/app/registratie/ui/overzicht-secties/
mijn-aanvragen.section.ts mijn-aanvragen.section.stories.ts
mijn-registratie.section.ts mijn-registratie.section.stories.ts
specialismen.section.ts specialismen.section.stories.ts
wat-moet-ik-regelen.section.ts wat-moet-ik-regelen.section.stories.ts
The importer — one file, four import lines plus one comment:
apps/ssp/src/app/overzicht/ui/overzicht.page.ts:3-6, and the comment at line 12 that says "four sections stay inregistratie/ui/dashboard/".
RD-31 added two more. Its rewrite of ARCHITECTURE.md §6a links the read walkthrough to
registratie/ui/dashboard/mijn-registratie.section.ts and
registratie/ui/dashboard/wat-moet-ik-regelen.section.ts by full path. Both move here. Fix
them, or §6a's links break the day this ticket lands.
The five doc citations: docs/reference/feature-flags.md:55,
.claude/skills/new-ssp/SKILL.md:65, docs/reference/architecture/ARCHITECTURE.md:55 and :79,
libs/shared/docs/remote-data.mdx:64.
Steps
git mvthe directory.- Fix the four imports and the comment in
overzicht.page.ts. - Fix the five doc citations per decisions 5 and 6.
npm run ci --full.
Acceptance criteria
apps/ssp/src/app/registratie/ui/dashboard/no longer exists.grep -rn "ui/dashboard" apps libs docs/reference libs/shared/docs .claudereturns nothing outside the.xlfextraction metadata named in Out of scope.- No live document cites
dashboard.page. Historical records underdocs/project/archive/and the shippedRD-*.mdfiles are exempt. git diff --stat -Mshows renames plus small edits, no rewritten files.npm run ci --fullis green.
Verification
npm run ci --full. The four story files move, and onlybuild-storybookproves that both Storybook globs still pick them up.npm run storybook— the fourDomein/Registratie/…stories are still in the sidebar under the same titles.npm start, openhttp://localhost:4200/dashboard. All six sections render.
Out of scope
- The
<context context-type="sourcefile">metadata inapps/*/src/locale/messages*.xlf. It still namessrc/app/registratie/ui/dashboard.page.ts, which RD-03 renamed. That metadata comes fromng extract-i18nand no build reads it, so it is stale extraction output from before RD-03, not a citation this ticket created. Regenerating it is its own job. - Renaming the
/dashboardroute to/overzicht.PLAN.mdputs it under "Deliberately out of scope": it needs a redirect and it is user-visible. - Moving the four sections into the
overzichtcontext. They readBigProfileStoreand belong toregistratie;overzichtcomposes them. That is RD-03's decision and it stands.
Risks
- A missed specifier fails the typecheck, not the build. Run
npm run ci --full, which typechecks all four tsconfigs. git mvof a directory, then edits, can look like deletes and adds. Commit the rename and the edits together and checkgit diff --stat -Mbefore you push.- The route stays
/dashboard. Do not "tidy" it while renaming the folder. The folder name and the URL are separate decisions, and only one of them is in this ticket.