feat(frontend): "Waarop het besluit rust" ingeklapt in een sheet, "Op grond van" blijft zichtbaar #63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "besluit-grondslag-inklappen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
"Waarop het besluit rust" (about 20 rows on the parking card) is now folded into a bottom sheet, the same pattern as "volledige keten". This applies to the summary before the decision and to the decision after it. "Op grond van" with the main article stays in view in both places.
What changes
BesluitWeergave.vue: under the heading "Waarop het besluit rust" stands one sentence, "Op welk artikel elk open begrip rust en wat andere partijen antwoordden, staat in de onderbouwing." The link "onderbouwing" opens the list (WaaromLijst, unchanged) in annldd-sheet placement="bottom", teleported tobody, exactly asVolledigeKeten.vuedoes for the chain. The sheet is titled "Onderbouwing", like its link. A decision that rests on no open term and no answer keeps the one-line text inline, since there is nothing to fold; whether it rests on any is one predicate,heeftGrondeningedeeld/waarom.ts, used byWaaromLijst.vuetoo. No custom CSS.The sheet repeats the shape of
VolledigeKeten.vue(link in a sentence, bottom sheet) rather than extracting a shared component, to keep this change small on demo day. Folding both into one component is a possible follow-up.BerichtVerzenden.vue: "Bericht verzenden" hadvariant="primary", whichnldd-buttondoes not know (button.d.tshasappearance). It is nowappearance="primary". Visually, the button goes from the default greyneutral-tintedto the filled blue primary button. "Bericht doorsturen" has the same mistake (variant="secondary") and is left as it is here.components/regelhet-frontend.mdsays the list opens from "onderbouwing".Screenshots (parking card, local test mode)
Before: the list stood open between the outcome and the button
After: folded, with "Op grond van" in view
After: "onderbouwing" opens the list in a bottom sheet
"Bericht verzenden", before (grey) and after (primary)
Tests
BesluitWeergave.test.ts: for the preview and for a decision taken, the sheet is closed by default, "Op grond van" stands outside it, the list is not inline, and the link opens it with the article of each open term. A decision with no grounds shows the sentence inline, with no link and no sheet.BesluitWeergave.test.tsandBehandelenPaneel.test.tspass (34 tests);vue-tsc --buildis clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01XDZRnqjJJ2izeL3kP33bnv
c622dc88b11ee2afced3