mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-18 00:44:29 -05:00
[PR #1856] [MERGED] fix(staffml): mount the command palette and shortcuts overlay #27318
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1856
Author: @farhan523
Created: 6/12/2026
Status: ✅ Merged
Merged: 6/16/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/staffml-mount-command-palette📝 Commits (1)
06b6679fix(staffml): mount the command palette and shortcuts overlay📊 Changes
2 files changed (+64 additions, -0 deletions)
View changed files
📝
interviews/staffml/src/app/layout.tsx(+8 -0)➕
interviews/staffml/tests/command-palette.spec.ts(+56 -0)📄 Description
Problem
CommandPaletteandKeyboardShortcutsOverlaywere added in the client-UX overhaul (cefa8bfe63) — complete with unit tests and docblocks stating they are "mounted inapp/layout.tsx" — but the mount line was never actually added.git log -S CommandPalette -- src/app/layout.tsxreturns nothing: they have been dead since introduction.As a result, on every route:
staffml:open-paletteinto the void (no listener mounted),?does nothing.Fix
Render both overlays once in
RootLayout, inside<Providers>so the palette can read the vault viauseVault()(it would throw outsideCorpusProvider).Test
Adds a Playwright smoke test (
tests/command-palette.spec.ts) covering the three previously-dead entry points: Ctrl+K, the navbar search icon, and?.tsc --noEmitis clean.How to verify
npm run dev, open any page.?→ keyboard-shortcuts overlay opens. Esc closes either.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.