Skip to content

v0.13.2-pl.1

Choose a tag to compare

@TBarregren TBarregren released this 12 May 15:20
· 68 commits to main since this release

Step 2 follow-up — picker UX and duplicate-preserves-original

Three user-reported edge cases fixed:

  • Cases 1 & 2 — broken-binding picker: the SelectControl rendered with a stale mapId fell back to showing the first option as selected and swallowed clicks on that option. Now prepends an empty placeholder option ("— Select a GPX Map —") whenever the binding is broken, so the displayed selection is clearly empty and any real option can be picked with a single click.

  • Case 3 — duplicating a GPX Map block no longer breaks Elevation's binding: useEnsureUniqueMapId now only regenerates a Map block's id when an earlier Map (in pre-order document traversal) already carries the same id. The original keeps its id; only the duplicate gets a fresh one. Elevation blocks bound to the original survive the duplication intact.

Touches the GPX Map block (use-ensure-unique-map-id.ts) — a deliberate exception to the Steps 0-7 no-touch rule, documented in the file's docblock.

All gates green at HEAD: build, Pest (475 tests), PHPStan max, Jest (284 tests), wp-scripts lint-js src/blocks/.