Background: CommandPalette.tsx exists but only handles navigation. It should also search invoices by debtor name, invoice ID, or amount.
What "done" looks like:
- Typing in the command palette shows invoice results filtered by debtor name, token ID, or face value
- Selecting a result navigates to
/marketplace/[id]
- Results are debounced (300ms) to avoid hammering the store
Key files: components/command/CommandPalette.tsx, hooks/useCommandPalette.ts, store/invoiceStore.ts
Constraints:
- Search is client-side against loaded invoices — no new API calls
- Results show invoice status badge and funded % alongside the name
- Keyboard navigation (↑↓ arrows, Enter to select) must work
PR must include: Search integration + keyboard nav + tests.
Background:
CommandPalette.tsxexists but only handles navigation. It should also search invoices by debtor name, invoice ID, or amount.What "done" looks like:
/marketplace/[id]Key files:
components/command/CommandPalette.tsx,hooks/useCommandPalette.ts,store/invoiceStore.tsConstraints:
PR must include: Search integration + keyboard nav + tests.