openpencil/packages/docs/user-guide
Danila Poyarkov 79fee711c7
feat(app): jump between pages from the command palette (#801)
* fix(vue): keep the command palette open when a command opens a step

CommandPaletteRoot emitted select for every item, including one that only opens its children, so a host that closes on select closed the palette instead of showing the step. useCommandPalette.select now reports whether a command ran, and the root emits only then.

Disabled items were marked only with Reka's data-disabled; expose aria-disabled so assistive technology announces them.

* feat(app): jump between pages from the command palette

The palette had no way to reach a page. It now lists the pages visited recently in the tab, offers a Go to page step with every page, and finds any page by name.

Recent pages are tracked per editor session from page changes and reset when the document is replaced. Palette items can be search-only, so pages beyond the recent ones appear only when the query matches them. The divider-page rule moves out of PageListRoot so the palette skips dividers the same way, and useCommandPalette is exported from the package root.

* fix(vue): list every item in a command palette step

The result limit also applied to a step's unfiltered list, so Go to page showed only the first 12 pages. A step the user opened now lists all of its items until they search; search results and the top-level list keep the limit.

The palette spec's page setup and current-page observation move to tests/helpers/pages as a setup mutation, a probe, and a Pages-panel driver.

* test(pages): match page rows by exact name

* refactor(app): express page lists with es-toolkit

Recent pages are take(uniq([visited, ...previous]), max); the palette builds its lookup with keyBy and its lists with without, compact, take, and difference instead of hand-built maps, sets, and slices. Tests count with range.
2026-10-01 20:26:35 +04:00
..
auto-layout.md Release v0.9.0 2026-03-09 17:43:11 +03:00
canvas-navigation.md feat(app): jump between pages from the command palette (#801) 2026-10-01 20:26:35 +04:00
components.md docs: explain component library workflows (#520) 2026-08-14 20:39:47 +03:00
context-menu.md Use <kbd> for keyboard shortcuts across all docs 2026-03-08 12:48:02 +03:00
drawing-shapes.md feat(editor): add Figma-style frame presets (#418) 2026-07-26 00:05:57 +03:00
exporting.md Update README and docs for new formats and SDK 2026-03-28 15:42:21 +03:00
index.md Wrap key names in legend with <kbd> 2026-03-08 13:08:30 +03:00
layers-and-pages.md docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
pen-tool.md update pen tool space drag spec 2026-03-27 21:27:45 +05:00
selection-and-manipulation.md Wrap remaining single-key shortcuts and key names in <kbd> 2026-03-08 13:07:08 +03:00
text-editing.md docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
variables.md Move docs to packages/docs, add Cloudflare Pages deploy 2026-03-01 15:16:16 +03:00
vector-edit.md Quote vector edit docs descriptions 2026-03-27 21:54:54 +03:00