GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Consent field in the data-protection-policy editor with token picker · Issue #769 · OpenResilienceInitiative/ORISO-Admin

Consent field in the data-protection-policy editor with token picker #769

New issue
Copy link
New issue
Copy link
Closed
Task
Closed
Consent field in the data-protection-policy editor with token picker#769
Task
Copy link
Assignees
shanzaeimran

Description

@Storypapst
Storypapst
opened on Aug 16, 2026
Issue body actions

Part of EPIC OpenResilienceInitiative/ORISO-AgencyService#250 · Governed by ADR-021 decisions 2, 4 and 6

Affected repos: ORISO-Admin (primary) · ORISO-AgencyService (stores the field, owns the authoritative validation)

Why

ADR-021 decision 4 makes the consent sentence a field of the data-protection policy, so the place to edit it is the DPP editor — not a new screen and not a new document type. A Träger who wants a different consent wording publishes a new DPP version whose body text may be unchanged.

The tool for this already exists: LegalConsentTemplateEditor in the Admin PlaceholderTemplate module, with the tokens {{Beratungsstelle}}, {{Thema}}, {{legal_links}}, sample values and a checkbox preview. It lives in Storybook today without a backing feature. This issue gives it one.

ADR-021 decision 2 makes {{legal_links}} mandatory at publication. The server is the authority on that (sibling AgencyService issue), but a Träger should learn it while typing, not after pressing Publish.

What to build

  • Mount LegalConsentTemplateEditor as the consent field inside the data-protection-policy editor, on every level that owns a DPP (Träger, Beratungsstelle, Fachbereich).
  • A token picker offering {{Beratungsstelle}}, {{Thema}} and {{legal_links}}, inserting at the cursor. {{key}} syntax only — never Freemarker ${key} (ADR-021 decision 6); the picker must make the correct dialect the easy path.
  • The existing checkbox preview with sample values stays: the editor shows what the help-seeker will actually tick, including the fixed cookie/authentication addendum rendered as non-editable text beneath the sentence.
  • Client-side publication block when {{legal_links}} is missing: Publish is refused with a clear, specific message naming the missing token and pointing at the picker. This mirrors the server rule; the server remains authoritative and its error is surfaced verbatim if it ever fires.
  • Saving a draft without the token stays allowed — only publication is blocked.
  • Empty consent field is allowed and means "fall back to the inherited or default sentence"; make that explicit in the UI rather than leaving a blank box ambiguous.
  • Follows the existing Admin card design system; no bespoke component.

Acceptance

  • The DPP editor contains a consent field backed by LegalConsentTemplateEditor on all three levels
  • The token picker inserts {{Beratungsstelle}}, {{Thema}} and {{legal_links}} at the cursor, in {{key}} syntax
  • The preview shows the rendered sentence with sample values, as a real checkbox, with the fixed cookie/authentication addendum below it
  • Publishing is blocked client-side with a specific message when {{legal_links}} is absent
  • Saving a draft without the token succeeds
  • A server-side validation error is displayed to the editor rather than swallowed
  • An empty consent field is presented as "inherited / default", not as an error

Reviewer test plan

  • Open a Fachbereich data-protection policy in the Admin panel — expect: below the policy text there is a consent-sentence field with a preview showing a real checkbox
  • Place the cursor in the sentence and use the token picker to insert the Beratungsstelle placeholder — expect: the placeholder appears at the cursor in double-curly-brace form, and the preview immediately shows a sample Beratungsstelle name in its place
  • Insert the topic placeholder the same way — expect: same behaviour with a sample topic
  • Delete the legal-links placeholder from the sentence and press Publish — expect: publication is refused with a message that names the legal-links placeholder and points you at the picker; nothing is published
  • Press Save instead — expect: the draft saves without complaint
  • Re-insert the legal-links placeholder and press Publish — expect: publication succeeds and the version history gains a new entry carrying this sentence
  • Look at the preview — expect: the cookie/authentication notice is shown beneath your sentence and there is no way to edit or delete it
  • Clear the consent field entirely and save — expect: the UI states plainly that the inherited or default sentence will be used, rather than showing an error or an empty checkbox label
  • Type ${responsible} into the sentence and look at the preview — expect: it is shown as literal text, not evaluated
  • Check the editor at 320px viewport width — expect: the token picker is reachable, the preview checkbox and its label wrap without horizontal scrolling, and the error message under Publish is fully readable
  • Check the same at 412px viewport width — expect: same, and the token picker opens without covering the field you are editing

References

ADR-021 decision 2 (mandatory {{legal_links}}, fixed cookie addendum), decision 4 (consent is a field of the DPP), decision 6 ({{key}} never ${key}) · CONTEXT-legal-documents.md "Einwilligungstext" · 0 - Docs/ENTSCHEIDUNGEN-einwilligungstext-2026-08-16.md E3, E7, E8 · existing component: LegalConsentTemplateEditor (PlaceholderTemplate module, Storybook-only today)

Activity

  1. Storypapst
    self-assigned this
    on Aug 16, 2026
  2. github-project-automation
    added this to ORISO Roadmapon Aug 16, 2026
  3. github-project-automation
    moved this to Backlog in ORISO Roadmapon Aug 16, 2026
  4. Storypapst
    added the
    Task
    issue type on Aug 16, 2026
  5. Storypapst
    added a parent issue on Aug 16, 2026
    • EPIC: Legal-text version history, consent text and server-side inheritance (ADR-021/022 foundation) ORISO-AgencyService#250
  6. Storypapst
    updated Priority Urgent and Platform release v2.0.4 on Aug 16, 2026
  7. Storypapst
    moved this from Backlog to In progress in ORISO Roadmapon Aug 16, 2026
  8. Storypapst
    moved this from In progress to In review in ORISO Roadmapon Aug 16, 2026
  9. Storypapst
    added a commit that references this issue on Aug 16, 2026

    Wire legal-text version selection and the consent field onto the lega…

    6430feb
  10. Storypapst commented on Aug 16, 2026

    @Storypapst
    Storypapst
    on Aug 16, 2026
    CollaboratorAuthor
    More actions

    Delivered in #770, merged into pre-dev as 6430feb9.

    LegalConsentTemplateEditor is mounted as the consent field inside the data-protection editor on all three levels (Träger via LegalText, Beratungsstelle via LegalTextSettings, Fachbereich via DepartmentDataProtectionCard), wrapped in LegalConsentField. Token picker inserts {{key}} at the cursor, the checkbox preview with sample values and the fixed cookie/authentication addendum stay, and publishing is refused client-side when {{legal_links}} is missing — naming the affected languages. Draft saves without the token remain allowed; an empty field states explicitly that the level above applies.

    Post-review additions: the field goes fully inert (input, token picker, template chooser) for an admin without the legal-text right — suppressing only the callback left a field that accepted keystrokes and snapped back. Ready for acceptance.

  11. Storypapst commented on Aug 24, 2026

    @Storypapst
    Storypapst
    on Aug 24, 2026
    CollaboratorAuthor
    More actions

    Verified as delivered: PR #770 (merged to pre-dev) mounts LegalConsentTemplateEditor as the consent field on the DPP editor with a {{key}}-syntax token picker, checkbox preview with sample values plus fixed cookie/authentication addendum, client-side publish blocking when {{legal_links}} is missing, and an 'inherited/default' state for an empty field, across all three levels. PR #817 (merged to pre-dev) closed a gap PR #770 left open: the Beratungsstelle-level card it edited (LegalTextSettings) turned out to be dead, unrendered code, so #817 wires the consent field into the actually-live AgencyLegalTextContainer and deletes the dead components — together the two PRs deliver the feature on all three DPP levels as required.

    Moving to QA external Dev for external review. cc @BjoernLudwig

  12. Storypapst
    assigned
    BjoernLudwig
    on Aug 24, 2026
  13. Storypapst
    moved this from In review to QA external Dev in ORISO Roadmapon Aug 24, 2026
  14. Storypapst
    assigned
    shanzaeimran
    and unassigned
    Storypapst
    on Sep 7, 2026
  15. Storypapst commented on Sep 7, 2026

    @Storypapst
    Storypapst
    on Sep 7, 2026
    CollaboratorAuthor
    More actions

    @shanzaeimran I had my coding agent check the board: Frank requested this development handoff. Please take ownership of the remaining validation in this card’s current QA lane, confirm the running environment and attach the acceptance result or the precise open defect. The reassignment does not claim that validation passed.

  16. BjoernLudwig
    moved this from QA external Dev to QA external Staging in ORISO Roadmapon Sep 10, 2026
  17. BjoernLudwig
    moved this from QA external to QA internal in ORISO Roadmapon Sep 18, 2026
  18. BjoernLudwig
    removed their assignment
    on Sep 19, 2026
  19. Storypapst
    moved this from QA internal to QA external in ORISO Roadmapon Nov 4, 2026
  20. HelenaSKloeckner
    moved this from QA external to Done in ORISO Roadmapon Nov 18, 2026
  21. HelenaSKloeckner
    closed this as completedby moving to Done in ORISO Roadmapon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @shanzaeimran
    shanzaeimran

Labels

No labels
No labels

Type

Task

Fields

Priority

Urgent

Platform release

v2.0.4

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.