Skip to content

feat(search): per-project configurable search & postcode filter labels#46

Open
rawand-shakir-draad wants to merge 3 commits into
mainfrom
feature/configurable-search-postcode-filter
Open

feat(search): per-project configurable search & postcode filter labels#46
rawand-shakir-draad wants to merge 3 commits into
mainfrom
feature/configurable-search-postcode-filter

Conversation

@rawand-shakir-draad

Copy link
Copy Markdown

Make the label, hint and placeholder of the search and postcode fields configurable per project for both the resource overview and budgeting (stem-begroot) widgets. The placeholder is on by default and can be toggled off; the hint is off by default and opt-in.

Also fix postcode space-sensitivity: raw input keeps the space while a sanitized value (spaces stripped) is used for the autofill API lookup, so "1234 AA" works like "1234AA".

Default texts live solely in widget-settings.js as the single source of truth; admin forms fall back to empty strings.

Make the label, hint and placeholder of the search and postcode fields
configurable per project for both the resource overview and budgeting
(stem-begroot) widgets. The placeholder is on by default and can be
toggled off; the hint is off by default and opt-in.

Also fix postcode space-sensitivity: raw input keeps the space while a
sanitized value (spaces stripped) is used for the autofill API lookup, so
"1234 AA" works like "1234AA".

Default texts live solely in widget-settings.js as the single source of
truth; admin forms fall back to empty strings.
rudivanhierden and others added 2 commits July 2, 2026 14:38
- Replace title tooltips on the reset/apply buttons with aria-labels that
  include the visible button text, so keyboard and screen-reader users get
  the explanation too (title is mouse-only and unreliably announced)
- Extract the postcode whitespace sanitizer into src/location/sanitize-zip.ts
  and cover it with unit tests (space-tolerant "1234 AA" lookup)
@rudivanhierden

Copy link
Copy Markdown
Member

Onderdeel van de StukkenBeter puntenlijst, punt 215

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.

2 participants