Skip to content

feat(customiser): generate embed URL live as options change - #10

Merged
markmybytes merged 2 commits into
mainfrom
feat/live-embed-url
Oct 16, 2026
Merged

markmybytes merged 2 commits into
mainfrom
feat/live-embed-url

Conversation

@markmybytes

@markmybytes markmybytes commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner
  • Embed URL in the customiser is now derived live from form state (useMemo); the Generate button, outUrl/cityError state, and the empty-city error flash are gone
  • No city selected: the field shows a localized hint explaining that the embed URL updates automatically; copy/open stay disabled until a URL exists
  • Removed the now-unused generate/emptyCityValidation message keys and the hasError prop on CityPicker; urlHint added to all 11 locales

The Generate button only fired once, so tweaking a widget option
afterwards produced a stale URL nobody noticed. The URL is fully
derived from the form state, so it is now a useMemo — the field
updates as controls change, no button, no stale link.

With no city selected the field shows a localized hint instead of
the removed cityError flash; copy/open stay disabled until a URL
exists.
@markmybytes
markmybytes merged commit d1124c7 into main Oct 16, 2026
2 checks passed
@markmybytes
markmybytes deleted the feat/live-embed-url branch October 16, 2026 15:26
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.

1 participant