feat(drawnix): add map layout selection to style settings #5

Merged
jesse merged 4 commits from feature/drawnix-style-settings-button into master 2026-05-05 05:25:10 +02:00
Owner

Summary

  • Add a map layout selection swatch to the style settings dialog map tab, with six layouts: Horizontal, Horizontal Up, Horizontal Down, Vertical, Top Down, Fishbone, Outline
  • Introduce map-layout.ts — a canonical registry mapping UI ids to MindLayoutType values with alias support so the dropdown accurately reflects on-board state
  • Coalesce multi-node layout patches into a single undo batch and clear incompatible child layout overrides on root layout switch
  • Expand MapLayout union type; remove unused radial/orgChart variants
  • Add i18n keys for all layout labels across all five locales (en, ar, ru, vi, zh)

Test plan

  • Unit tests for getBoardMapLayoutId and applyMapLayoutToBoard in map-layout.spec.ts
  • Style settings dialog and tab integration specs updated
  • All CI checks passing (build, test, lint, e2e)
## Summary - Add a map layout selection swatch to the style settings dialog map tab, with six layouts: Horizontal, Horizontal Up, Horizontal Down, Vertical, Top Down, Fishbone, Outline - Introduce `map-layout.ts` — a canonical registry mapping UI ids to `MindLayoutType` values with alias support so the dropdown accurately reflects on-board state - Coalesce multi-node layout patches into a single undo batch and clear incompatible child layout overrides on root layout switch - Expand `MapLayout` union type; remove unused `radial`/`orgChart` variants - Add i18n keys for all layout labels across all five locales (en, ar, ru, vi, zh) ## Test plan - [ ] Unit tests for `getBoardMapLayoutId` and `applyMapLayoutToBoard` in `map-layout.spec.ts` - [ ] Style settings dialog and tab integration specs updated - [ ] All CI checks passing (build, test, lint, e2e)
Reworks the style settings dialog with a translucent, blurred surface,
animated tab indicator, staggered section entrance, and refined controls;
tightens the dialog footprint to a 640x640 ceiling. Bundles the
accompanying refactor (state module, error boundary, keyboard helpers,
spec support) and i18n updates across ar/en/ru/vi/zh.
feat(drawnix): add map layout selection to style settings
All checks were successful
CI / changes (pull_request) Successful in 12s
CI / lint (pull_request) Successful in 11m29s
CI / test (pull_request) Successful in 11m43s
CI / build (pull_request) Successful in 12m37s
CI / e2e (pull_request) Successful in 18m0s
1651acf46b
- Introduce `map-layout.ts` with a canonical layout-options registry that
  maps UI ids (horizontal, horizontalUp, horizontalDown, vertical, topDown,
  fishbone, outline) to MindLayoutType values with alias support so the
  dropdown accurately reflects the on-board state
- Add `MapLayoutIcon` swatch component and wire it into the map tab
- Expand MapLayout union type with horizontalUp, horizontalDown, topDown,
  outline; remove unused radial/orgChart variants
- Add i18n keys for all six layout labels across all five locales
- Coalesce multi-node layout patches into a single undo batch and clear
  incompatible child layout overrides on root layout switch
- Full test coverage: unit tests for getBoardMapLayoutId, applyMapLayoutToBoard,
  and updated dialog/tab integration specs
jesse merged commit 750e7f4317 into master 2026-05-05 05:25:10 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jesse/mindnest!5
No description provided.