feat(command-palette): publish CommandPalette to @cofoundy/ui#12
Merged
Conversation
…@cofoundy/ui
Extracted from products/cofoundy-platform/docs-ai-vault-search (commit
bc298c2 on feat/vault-search) and generalized for shared consumption.
Public surface:
Components: CommandPalette, CommandPaletteTrigger
Types: CommandPaletteProps, CommandPaletteTriggerProps, SearchHit,
SearchResponse, SearchFn, DocRole, RecentDoc, RecentSearch,
EmptyAction
Generalizations from source (deviations flagged for review):
1. searchFn prop replaces the unused CommandAction kind-union.
2. Hotkey hook (HookDrivenPalette) dropped — consumers wire their own
around controlled `open` state.
3. RECENTS / RECENT_SEARCHES fixtures dropped; props-driven defaults
render a clean idle state.
4. Navigation: <a href> + injected onNavigate(url, hit), with
window.location.href fallback.
5. styled-jsx → plain <style> (packages/ui is Vite, not Next).
6. MobileBaseline story added + 44px min touch-target on trigger pill.
Tests: 7 new tests, all green (vitest 311 ms). Pre-existing baseline
failure in ChatInput.test.tsx unaffected (verified by stash + re-run).
tsc --noEmit clean on new code; pre-existing hero-shader errors unaffected.
Branch: feat/cmdk-publish (off origin/main). Visual QA in Storybook
deferred to human review.
Authored by teammate ui-publisher@ui-package-publish per dual-vantage
convention introduced in cofoundy-orchestrator v0.1.4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CommandPalette+ vault-search types fromproducts/cofoundy-platform/docs-ai-vault-searchinto the shared@cofoundy/uipackageui-publisherteammate per dual-vantage convention introduced incofoundy-orchestratorv0.1.4Public surface
CommandPalette,CommandPaletteTriggerCommandPaletteProps,CommandPaletteTriggerProps,SearchHit,SearchResponse,SearchFn,DocRole,RecentDoc,RecentSearch,EmptyActionGeneralizations from source (deviations flagged)
searchFnprop replaces unusedCommandActionkind-unionkind:'search'wired in v1; collapsing avoids dead APIHookDrivenPalette(project-specific Cmd+K hook)openstateRECENTS_PLACEHOLDER+RECENT_SEARCHES_PLACEHOLDERfixtures<a href>+onNavigate(url, hit)(fallbackwindow.location.href)next/linkfor shared usestyled-jsx→ plain<style>packages/uiis Vite, not NextMobileBaselinestory + 44px min-touch on trigger pillpackages/ui/CLAUDE.mdmobile-first contractTest plan
npx vitest run src/__tests__/components/command-palette/→ 7/7 passnpx tsc --noEmit→ clean on new codenpm run storybook→ all 7 stories render)docs-ai-vault-search(follow-up PR — out of scope here)Notes
ChatInput.test.tsx+hero-shader/*unaffected (verified by stash + re-run)feat/cmdk-publishbefore mergeConvention
This PR was produced by a
claudecatch-all teammate (not a plugin orchestrator) — first ship under the newdual_vantage_post_mortemconvention. Spawn-mode mismatch incident retro atplugins/cofoundy-orchestrator/docs/2026-05-20-teammate-stepper-protocol-gap.md.