From d91d32deafb2e1b9689134ed05f250d30302a4db Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 13 Apr 2026 13:39:58 +0200 Subject: [PATCH] docs: capture todo - Fix Add Candidate button shows wrong modal on thread page --- .planning/STATE.md | 2 +- ...ate-button-shows-wrong-modal-on-thread-page.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .planning/todos/pending/2026-04-13-fix-add-candidate-button-shows-wrong-modal-on-thread-page.md diff --git a/.planning/STATE.md b/.planning/STATE.md index eb05059..52b1f81 100644 --- a/.planning/STATE.md +++ b/.planning/STATE.md @@ -80,7 +80,7 @@ v2.1 decisions: ### Pending Todos -None active. +- Fix Add Candidate button shows wrong modal on thread page (ui) ### Blockers/Concerns diff --git a/.planning/todos/pending/2026-04-13-fix-add-candidate-button-shows-wrong-modal-on-thread-page.md b/.planning/todos/pending/2026-04-13-fix-add-candidate-button-shows-wrong-modal-on-thread-page.md new file mode 100644 index 0000000..7d23082 --- /dev/null +++ b/.planning/todos/pending/2026-04-13-fix-add-candidate-button-shows-wrong-modal-on-thread-page.md @@ -0,0 +1,15 @@ +--- +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.