Skip to content

fix(begrootmodule): add missing default values for explanation and text fields#1404

Open
rawand-shakir-draad wants to merge 1 commit intomainfrom
fix/begrootmodule-missing-defaults
Open

fix(begrootmodule): add missing default values for explanation and text fields#1404
rawand-shakir-draad wants to merge 1 commit intomainfrom
fix/begrootmodule-missing-defaults

Conversation

@rawand-shakir-draad
Copy link
Contributor

@rawand-shakir-draad rawand-shakir-draad commented Feb 17, 2026

Summary

  • Add 9 missing default fields (step0-step3, step3success, voteMessage, thankMessage, showNewsletterButton, newsLetterLink) to begrootmodule defaultConfig in widget-settings.js
  • Remove duplicate showOriginalResource entry in widget-settings.js
  • Remove hardcoded Dutch defaults from admin explanation.tsx and text.tsxwidget-settings.js is now the single source of truth

Closes #1405

Context

The explanation fields in the begrootmodule were empty on the frontend. The admin showed hardcoded fallback text (via ??), but these values were never stored in the DB or merged into the frontend IIFE because they were missing from widget-settings.js defaultConfig.

The frontend IIFE serving route already merges widget-settings.js defaults via merge.recursive, so adding the fields there is sufficient to fix the frontend.

Test plan

  • Create a new begrootmodule widget → verify explanation fields are pre-filled in admin and visible on frontend
  • Open an existing begrootmodule widget that never had explanation saved → verify frontend shows default text
  • Edit and save explanation fields → verify custom values persist and override defaults

…xt fields

The explanation fields (step0-3, voteMessage, thankMessage, etc.) were
empty on the frontend because they were missing from widget-settings.js
defaultConfig. The admin showed hardcoded fallbacks via ?? but these
never reached the DB or frontend IIFE merge.

- Add 9 missing fields to begrootmodule defaultConfig in widget-settings.js
- Remove duplicate showOriginalResource entry
- Remove hardcoded Dutch defaults from admin explanation.tsx and text.tsx
  (widget-settings.js is now the single source of truth)
@cypress
Copy link

cypress bot commented Feb 17, 2026

Openstad Headless    Run #1387

Run Properties:  status check passed Passed #1387  •  git commit 94241875f5 ℹ️: Merge 83a7d00e85fd0ef98ef9a4d8e19cad84d0d893b5 into f8de8df42276933845a338ab47fa...
Project Openstad Headless
Branch Review fix/begrootmodule-missing-defaults
Run status status check passed Passed #1387
Run duration 20m 11s
Commit git commit 94241875f5 ℹ️: Merge 83a7d00e85fd0ef98ef9a4d8e19cad84d0d893b5 into f8de8df42276933845a338ab47fa...
Committer rawand-shakir-draad
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 1
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Begrootmodule: explanation fields and text defaults are empty on the frontend

1 participant

Comments