openpencil/tests/e2e/app
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
..
command-palette.spec.ts feat(app): jump between pages from the command palette (#801) 2026-10-01 20:26:35 +04:00
home-view.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
menu.spec.ts fix: refresh Undo and Redo command availability 2026-09-14 00:25:36 +03:00
recent-files.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
support-gate.spec.ts fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
tab-close.spec.ts refactor(ui): compose shared editor controls (#670) 2026-09-10 12:09:06 +03:00
tab-preparation.spec.ts feat(app): prepare documents atomically per tab (#592) 2026-08-30 12:21:49 +03:00
unsaved-changes.spec.ts fix: protect unsaved documents and defer credential access (#713) 2026-09-17 15:25:15 +03:00
webmcp.spec.ts feat(settings): unify preferences and integration editors 2026-09-15 16:34:05 +03:00