5.6 KiB
Discovery popouts (#1440)
Search, Command Palette, and Keyboard Shortcuts adopt the shared popout contract. Search uses one primary body scroller instead of a nested collection scroller and fixed 500px results area. Command Palette keeps its query and shared footer outside its command scroller, with a visible shared header/close action and consistent row insets. Shortcut help uses the shared body/footer and is mounted in the application shell; previously its component was never rendered despite the keyboard state changing.
Rendered handoff checks exposed two focus failures: effect replay replaced the original opener with a background heading, and opening another overlay could cancel queued opener restoration. The shared modal retains the original opener through effect replay and interrupted exit, then restores it before an exit handoff. Search and Command Palette use one cancellable handoff helper; reopening or unmounting cancels queued work, and a newer selection invalidates an older callback. External links still open synchronously from the user gesture.
This slice depends on Settings #1437. Its legacy first-mount focus behavior is not accepted as a substitute for the pending shared Settings implementation.
Twenty-one focused unit tests pass across the shared overlay, command, and search slices. Web typecheck, changed-file lint, formatting, and both source-review axes pass. Browser acceptance passes both themes at 1700×900/16px, 1180×760/20px, and 900×480/20px, plus an animation-enabled interrupted reopening case. Checks cover scrolling, fixed footer, bounds, disabled commands, query/backend selection, Search-to-Settings and command-to-Search/Settings/Create handoffs, route navigation, help mounting, and exact opener restoration. Screenshots were visually inspected; command-row padding was corrected after inspection. A fixture selector initially used the wrong label case; that setup error is separate from the reproduced production focus failures.
Rebuilt packaged macOS acceptance passed on integration candidate 6044bd62ea7265153a9e878c9e3b865605b161aa. The full pnpm desktop:package:mac:dir command succeeded, and NATIVE_SCOPE=discovery pnpm --filter @veritas-kanban/server exec tsx /tmp/vk-native-ui-1389.8cJNtK/verify.mjs launched the unsigned arm64 application with app.isPackaged asserted and a disposable isolated profile. The packaged web index SHA-256 is 79f1d0fc46dfa115279fc5ce5a8978765e313809dbd205894ccd4b60fec3aa68; its main JavaScript asset index-q7X4xg9m.js is dc1e6bcc9f6e7504152008282fc911d15624b869b0b409de10e126389e0e7645.
The complete discovery flow passed in light and dark themes at 1700×900/16px and 1180×760/20px, with normal animations enabled. Initial focus, scrolling, footer containment, disabled-command behavior, nested menu Escape, route navigation, chained Search/Settings/Create handoffs, and exact opener restoration passed. Search responses were deterministic fixtures; no real save, launch, or provider message was sent. The native harness initially expected the full-mode Settings title; the packaged Board Only badge correctly contributes to its accessible name. The selector now explicitly accepts either exact title. That was a harness mismatch, not a failed handoff. The previously reported Settings controls were also visibly aligned in the native capture.
Native captures live under /private/tmp/vk-native-ui-1389.8cJNtK/discovery-*.png. Screenshots are diagnostic acceptance evidence, not final maintained media. This remains an unsigned version-6.1.6 candidate; installed-app replacement, final maintained screenshots/GIFs, full integration CI, and release completion are not claimed.
Interrupted-reopen timing correction
Integration QA 33830608672 caught Escape failing immediately after an animated palette was reopened. The original browser regression reproduced locally with no test changes. A targeted key-event trace then caught Escape while the palette's ancestor was still inert: passive stack registration had not made the reopened overlay active yet. Registration now runs in a layout effect, completing before the next browser input. Stack ordering, opener retention, cleanup, and handoff cancellation are unchanged.
After the correction, the unchanged rapid-reopen regression passed 100 consecutive runs with normal animations, zero retries, and all debug instrumentation removed. Both complete discovery browser flows also passed at their three viewport/text sizes. Sixteen focused overlay/command unit tests, web typecheck, and changed-source lint passed. Specification and standards reviews found no actionable findings.
Integration candidate b1b167a784e4adb8bd901bf781daa27f0b34957f rebuilt successfully with pnpm desktop:package:mac:dir. Its packaged web index SHA-256 is 0a43c7a7b7834b43cbdc2a5f76efa4b75655a63384cb08b87498524e5a67977f; index-RL49OtTu.js is b9d4a582de4cb37a713a0cbe08985080485c6ac5a97c772f59be3ab2fc0a9bee and matches the built source asset byte-for-byte. The strengthened native discovery scope passed both themes at 1700×900/16px and 1180×760/20px, with five rapid-reopen/Escape cycles per combination followed by the complete discovery flow. All 20 rapid cycles retained exact opener focus and canceled the stale Create Task command. The initial harness attempt wrongly required a palette toolbar button at the compact size; the corrected harness uses the supported keyboard shortcut from visible Search, matching the existing discovery helper. No product assertion was relaxed. No unexpected write occurred and the isolated unsigned app was closed. Full integration CI, installed-app acceptance, and final maintained media remain outstanding.