gsxdsm
6777eea5d2
FN-7631: add content search to Chat sidebar with title-only toggle
Chat sidebar search now matches message content by default, not just the conversation title/agent, with an opt-out toggle to restore title-only filtering.
- Add ChatStore.searchSessionsByMessageContent (parameterized LIKE ... ESCAPE) for server-side content search across sessions
- GET /chat/sessions route (register-chat-routes.ts, legacy.ts) gains q/titleOnly query params, debounced server-side content lookup merged with local title/agent matches
- useChat hook exposes searchInTitleOnly state and wires debounced content search into session list results
- ChatView renders a "Search in title only" toggle beside the search box (desktop + mobile) and shows a "Matched: ..." preview snippet on content-matched rows
- Task-planner sessions remain excluded from content matches via the same common-feed visibility guard used for the normal session list
- Add unit/integration tests: chat-store content-search, chat-routes API test, ChatView content-search test
- Update docs/dashboard-guide.md to document the new content search behavior and toggle
- Add changeset fn-7631-chat-content-search.md (@runfusion/fusion minor)
Files changed:
.changeset/fn-7631-chat-content-search.md | 7 +
docs/dashboard-guide.md | 2 +
.../__tests__/chat-store.content-search.test.ts | 157 +++++++++++++++++++++
packages/core/src/chat-store.ts | 64 +++++++++
packages/core/src/chat-types.ts | 8 ++
packages/dashboard/app/api/legacy.ts | 23 ++-
packages/dashboard/app/components/ChatView.css | 30 ++++
packages/dashboard/app/components/ChatView.tsx | 26 ++++
.../__tests__/ChatView.autosize.test.tsx | 2 +
.../__tests__/ChatView.content-search.test.tsx | 114 +++++++++++++++
.../components/__tests__/ChatView.draft.test.tsx | 2 +
.../__tests__/ChatView.hash-mention.test.tsx | 2 +
.../__tests__/ChatView.mobile-render.test.tsx | 2 +
.../components/__tests__/ChatView.rooms.test.tsx | 2 +
.../__tests__/ChatView.scroll-to-top.test.tsx | 2 +
.../components/__tests__/ChatView.test-harness.tsx | 2 +
packages/dashboard/app/hooks/useChat.ts | 105 ++++++++++++--
.../dashboard/src/__tests__/chat-routes.test.ts | 78 ++++++++++
.../dashboard/src/routes/register-chat-routes.ts | 39 ++++-
packages/i18n/locales/en/app.json | 2 +
packages/i18n/locales/es/app.json | 2 +
packages/i18n/locales/fr/app.json | 2 +
packages/i18n/locales/ko/app.json | 2 +
packages/i18n/locales/zh-CN/app.json | 2 +
packages/i18n/locales/zh-TW/app.json | 2 +
25 files changed, 667 insertions(+), 12 deletions(-)
Fusion-Task-Id: FN-7631
Fusion-Task-Lineage: bc68b489-26a7-453e-901b-bda816af364e
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-07 22:06:17 -07:00
..
2026-06-27 17:11:13 -07:00
2026-06-17 17:57:19 -07:00
2026-06-17 21:37:18 -07:00
2026-05-22 20:20:42 -07:00
2026-06-12 22:55:01 -07:00
2026-05-12 07:47:10 -07:00
2026-06-27 17:11:13 -07:00
2026-05-12 07:47:10 -07:00
2026-05-14 04:32:43 -07:00
2026-06-27 17:11:13 -07:00
2026-05-14 04:32:43 -07:00
2026-05-12 07:47:10 -07:00
2026-05-29 08:45:12 -07:00
2026-06-30 01:50:52 -07:00
2026-06-03 17:14:42 -07:00
2026-06-27 17:11:13 -07:00
2026-06-25 19:51:21 -07:00
2026-06-25 19:51:21 -07:00
2026-06-25 19:51:21 -07:00
2026-07-04 10:42:21 -07:00
2026-06-25 19:51:21 -07:00
2026-05-10 15:33:25 -07:00
2026-05-30 14:20:12 -07:00
2026-05-19 10:39:56 -07:00
2026-07-01 09:45:30 -07:00
2026-05-15 07:10:36 -07:00
2026-05-11 10:54:26 -07:00
2026-06-12 09:46:46 -07:00
2026-05-13 06:29:35 -07:00
2026-06-23 00:08:27 -07:00
2026-06-27 17:11:13 -07:00
2026-06-27 19:37:39 -07:00
2026-07-04 13:57:20 -07:00
2026-07-07 08:49:52 -07:00
2026-05-09 10:31:05 -07:00
2026-07-02 12:27:04 -07:00
2026-06-29 15:34:06 -07:00
2026-06-21 13:25:40 -07:00
2026-06-07 18:51:46 -07:00
2026-05-19 03:21:17 -07:00
2026-07-07 08:27:26 -07:00
2026-06-04 04:32:46 -07:00
2026-07-05 11:31:47 -07:00
2026-07-07 08:49:52 -07:00
2026-07-05 16:10:36 -07:00
2026-06-08 13:32:58 -07:00
2026-07-01 23:15:12 -07:00
2026-07-02 13:07:16 -07:00
2026-05-13 06:29:35 -07:00
2026-07-07 08:49:52 -07:00
2026-07-06 19:03:06 -07:00
2026-07-07 22:06:17 -07:00
2026-06-11 09:21:23 -07:00
2026-06-27 15:56:42 -07:00
2026-06-05 02:38:38 -07:00
2026-07-07 22:06:17 -07:00
2026-06-27 17:22:12 -07:00
2026-07-03 07:47:03 -07:00
2026-07-04 21:28:17 -07:00
2026-07-04 21:28:17 -07:00
2026-07-07 22:06:15 -07:00
2026-07-07 22:06:17 -07:00
2026-07-07 22:06:17 -07:00
2026-07-07 22:06:15 -07:00
2026-07-07 22:06:17 -07:00
2026-07-04 21:28:17 -07:00
2026-07-07 22:06:17 -07:00
2026-07-07 22:06:17 -07:00
2026-06-27 23:25:19 -07:00
2026-06-17 17:49:20 -07:00
2026-06-27 15:56:42 -07:00
2026-07-07 22:06:17 -07:00
2026-07-01 11:01:50 -07:00
2026-06-22 10:26:14 -07:00
2026-06-25 16:11:45 -07:00
2026-05-09 10:31:05 -07:00
2026-07-01 15:39:34 -07:00
2026-05-13 18:05:12 +03:00
2026-06-30 01:23:09 -07:00
2026-06-27 20:27:09 -07:00
2026-06-02 14:14:24 -07:00
2026-05-20 04:13:43 -07:00
2026-07-02 19:26:50 -07:00
2026-06-26 13:32:35 -07:00
2026-06-23 16:47:38 -07:00
2026-06-23 11:26:51 -07:00
2026-07-03 21:45:20 -07:00
2026-07-02 13:44:41 -07:00
2026-06-29 19:36:01 -07:00
2026-07-02 12:00:58 -07:00
2026-06-22 23:42:45 -07:00
2026-07-01 09:30:00 -07:00
2026-07-07 08:27:26 -07:00
2026-06-30 23:45:02 -07:00
2026-06-25 08:35:44 -07:00
2026-07-03 07:47:03 -07:00
2026-05-19 19:32:23 -07:00
2026-07-02 13:44:41 -07:00
2026-07-02 13:44:41 -07:00
2026-06-17 03:29:39 -07:00
2026-05-22 20:20:42 -07:00
2026-07-04 10:42:19 -07:00
2026-07-04 10:42:19 -07:00
2026-07-06 19:03:06 -07:00
2026-06-27 23:47:21 -07:00
2026-07-02 19:01:09 -07:00
2026-06-03 22:35:28 -07:00
2026-05-10 05:29:41 -07:00
2026-07-02 12:34:35 -07:00
2026-06-29 20:24:24 -07:00
2026-06-27 20:02:33 -07:00
2026-06-30 21:59:03 -07:00
2026-07-01 23:15:12 -07:00
2026-06-30 18:15:10 -07:00
2026-06-23 00:20:55 -07:00
2026-07-01 23:58:55 -07:00
2026-07-01 23:15:12 -07:00
2026-07-05 13:15:56 -07:00
2026-06-22 23:58:38 -07:00
2026-05-16 09:21:06 -07:00
2026-06-30 12:21:25 -07:00
2026-06-03 13:02:23 -07:00
2026-07-06 19:03:06 -07:00
2026-07-01 23:15:12 -07:00
2026-06-21 03:53:43 -07:00
2026-06-22 11:08:25 -07:00
2026-05-19 23:04:12 -07:00
2026-06-23 12:17:04 -07:00
2026-07-06 19:03:06 -07:00
2026-06-22 03:57:10 -07:00
2026-05-09 10:31:05 -07:00
2026-05-23 13:06:48 -07:00
2026-05-15 12:07:52 -07:00
2026-05-10 16:53:36 -07:00
2026-05-19 10:39:56 -07:00
2026-06-01 10:17:52 -07:00
2026-06-26 21:31:42 -07:00
2026-06-26 21:31:42 -07:00
2026-05-19 17:54:43 -07:00
2026-07-07 08:27:26 -07:00
2026-05-20 09:42:40 -07:00
2026-06-16 15:08:24 -07:00
2026-06-22 18:21:06 -07:00
2026-06-27 20:27:09 -07:00
2026-06-30 08:35:07 -07:00
2026-06-25 08:35:44 -07:00
2026-05-22 20:20:42 -07:00
2026-07-06 19:03:06 -07:00
2026-06-17 03:12:16 -07:00
2026-06-29 23:31:52 -07:00
2026-07-07 22:04:50 -07:00
2026-07-01 23:01:45 -07:00
2026-06-21 09:00:40 -07:00
2026-07-03 21:47:00 -07:00
2026-06-30 08:20:07 -07:00
2026-06-13 16:30:28 -07:00
2026-07-04 14:26:46 -07:00
2026-07-05 11:31:48 -07:00
2026-05-08 18:44:16 -07:00
2026-05-22 20:20:42 -07:00
2026-06-19 23:16:19 -07:00
2026-05-23 20:44:01 -07:00
2026-07-02 12:10:13 -07:00
2026-07-03 21:45:20 -07:00
2026-06-22 04:39:35 -07:00
2026-06-27 23:25:19 -07:00
2026-06-28 20:11:43 -07:00
2026-07-04 21:28:17 -07:00
2026-07-05 11:31:44 -07:00
2026-06-13 16:30:28 -07:00
2026-07-01 00:20:56 -07:00
2026-06-02 12:42:04 -07:00
2026-07-04 21:28:17 -07:00
2026-07-06 19:03:07 -07:00
2026-06-02 12:42:04 -07:00
2026-06-30 15:04:02 -07:00
2026-06-09 04:27:53 -07:00
2026-07-02 18:06:00 -07:00
2026-07-07 22:04:53 -07:00
2026-07-07 22:04:53 -07:00
2026-06-28 12:10:10 -07:00
2026-06-22 04:39:35 -07:00
2026-05-22 20:20:42 -07:00
2026-06-27 23:42:11 -07:00
2026-06-28 01:17:22 -07:00
2026-06-27 19:54:22 -07:00
2026-06-02 08:49:25 -07:00
2026-06-25 14:37:52 -07:00
2026-06-07 23:03:38 -07:00
2026-06-27 19:54:22 -07:00
2026-05-28 23:31:03 -07:00
2026-05-18 15:50:48 -07:00
2026-05-28 19:50:53 -07:00
2026-06-27 23:37:24 -07:00
2026-06-22 15:23:43 -07:00
2026-07-05 13:15:56 -07:00
2026-06-19 08:06:38 -07:00
2026-06-21 09:00:40 -07:00
2026-07-03 21:47:00 -07:00
2026-06-26 02:45:29 -07:00
2026-06-26 02:45:29 -07:00
2026-06-26 02:45:29 -07:00
2026-06-26 02:45:29 -07:00
2026-06-22 11:36:20 -07:00
2026-06-22 10:26:14 -07:00
2026-06-17 03:29:39 -07:00
2026-07-06 19:03:06 -07:00
2026-07-02 18:28:06 -07:00
2026-07-07 22:04:48 -07:00
2026-07-04 21:28:18 -07:00
2026-05-22 20:20:42 -07:00
2026-07-04 21:28:19 -07:00
2026-07-04 21:28:19 -07:00
2026-06-26 11:56:12 -07:00
2026-05-11 16:06:37 -07:00
2026-05-13 20:08:37 -07:00
2026-07-07 22:04:49 -07:00
2026-07-03 21:45:21 -07:00
2026-06-27 09:28:29 -07:00
2026-07-02 11:38:33 -07:00
2026-07-04 10:42:20 -07:00
2026-07-03 23:16:58 -07:00
2026-06-25 19:35:05 -07:00
2026-06-08 13:32:58 -07:00
2026-06-25 19:35:05 -07:00
2026-06-25 19:35:05 -07:00
2026-07-03 21:45:20 -07:00
2026-07-03 21:45:21 -07:00
2026-07-03 21:45:20 -07:00
2026-06-30 10:26:23 -07:00
2026-06-21 16:13:54 -07:00
2026-06-22 15:23:43 -07:00
2026-06-25 19:35:47 -07:00
2026-05-23 13:06:48 -07:00
2026-06-20 01:52:26 -07:00
2026-07-06 19:03:06 -07:00
2026-06-20 04:51:57 -07:00
2026-06-16 21:37:32 -07:00
2026-06-02 07:40:37 -07:00
2026-05-20 09:42:40 -07:00
2026-07-04 21:28:16 -07:00
2026-06-30 01:57:09 -07:00
2026-06-13 19:17:36 -07:00
2026-06-30 08:30:38 -07:00
2026-07-04 21:28:18 -07:00
2026-07-05 16:33:21 -07:00
2026-05-13 15:05:05 -07:00
2026-06-24 23:32:52 -07:00
2026-07-04 10:42:21 -07:00
2026-07-02 11:38:30 -07:00
2026-07-05 12:38:01 -07:00
2026-07-05 12:38:01 -07:00
2026-07-05 12:24:12 -07:00
2026-05-22 20:20:42 -07:00
2026-05-23 20:44:01 -07:00
2026-07-05 19:51:35 -07:00
2026-06-25 08:34:44 -07:00
2026-06-25 08:34:44 -07:00
2026-06-11 22:11:44 -07:00
2026-07-03 21:48:30 -07:00
2026-06-04 14:01:55 -07:00
2026-07-05 19:39:18 -07:00
2026-05-13 06:29:34 -07:00
2026-06-30 14:58:07 -07:00
2026-06-30 14:58:07 -07:00
2026-07-02 11:38:34 -07:00
2026-07-04 21:28:18 -07:00
2026-06-09 13:57:21 -07:00
2026-07-01 09:30:00 -07:00
2026-07-05 19:39:18 -07:00
2026-07-05 19:39:18 -07:00
2026-05-26 17:19:34 -07:00
2026-07-05 19:39:18 -07:00
2026-07-07 22:04:54 -07:00
2026-07-07 08:49:52 -07:00
2026-07-05 11:31:45 -07:00
2026-06-05 01:16:13 -07:00
2026-07-05 11:31:49 -07:00
2026-07-02 13:07:16 -07:00
2026-06-29 14:59:07 -07:00
2026-06-04 16:16:50 -07:00
2026-07-04 14:26:46 -07:00
2026-05-20 04:13:43 -07:00
2026-07-07 22:06:17 -07:00
2026-06-28 02:04:31 -07:00
2026-06-29 15:46:35 -07:00
2026-07-01 16:43:08 -07:00
2026-06-21 22:43:34 -07:00
2026-07-07 22:04:49 -07:00
2026-05-22 00:15:14 -07:00
2026-07-03 07:47:03 -07:00
2026-07-03 07:47:03 -07:00
2026-06-21 13:25:40 -07:00
2026-07-05 13:15:56 -07:00
2026-05-16 20:13:30 -07:00
2026-05-16 09:20:33 -07:00
2026-06-13 16:30:28 -07:00
2026-06-21 13:25:41 -07:00
2026-05-22 20:20:42 -07:00
2026-07-07 08:27:26 -07:00
2026-07-05 11:31:48 -07:00
2026-07-02 11:38:30 -07:00
2026-06-28 09:09:03 -07:00
2026-06-17 14:52:56 -07:00
2026-06-22 11:58:53 -07:00
2026-06-04 12:44:43 -07:00
2026-06-08 18:14:48 -07:00
2026-06-29 14:50:02 -07:00
2026-07-02 11:38:30 -07:00
2026-06-28 09:09:03 -07:00
2026-05-13 13:11:17 -07:00
2026-05-13 06:29:35 -07:00
2026-07-01 09:30:00 -07:00
2026-06-09 08:14:16 -07:00
2026-07-04 14:26:46 -07:00
2026-07-01 23:15:12 -07:00
2026-06-30 12:21:25 -07:00
2026-05-14 22:16:44 -07:00
2026-06-21 21:07:20 -07:00
2026-05-15 23:39:43 -07:00