Files
GearBox/.planning/todos/pending/2026-04-13-fix-add-candidate-button-shows-wrong-modal-on-thread-page.md

16 lines
835 B
Markdown

---
created: 2026-04-13T11:39:30.356Z
title: Fix Add Candidate button shows wrong modal on thread page
area: ui
files:
- src/client/routes/threads/$threadId.tsx
---
## Problem
The "Add Candidate" button at the top of the thread detail page opens a manual-add modal (plain form fields) instead of the catalog search dialogue. The FAB (floating action button) in the bottom right of the same page correctly opens the catalog search dialog where you can browse and pick from global items. Both buttons should behave the same way — showing the catalog search dialog as the primary add flow.
## Solution
Wire the top "Add Candidate" button to open the same catalog search dialog/overlay that the FAB triggers. The manual-add form should still be reachable as a fallback (e.g., "Can't find it? Add manually") but not be the default.