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-07-07 08:27:26 -07:00
2026-07-07 22:06:17 -07:00
2026-07-07 22:06:17 -07:00
2026-07-07 22:06:17 -07:00
2026-07-06 19:03:06 -07:00
2026-07-02 14:31:16 -07:00
2026-07-01 18:01:17 -07:00
2026-06-27 12:20:42 -07:00
2026-07-04 13:43:59 -07:00
2026-07-06 19:03:06 -07:00
2026-07-06 19:03:06 -07:00
2026-07-03 07:47:03 -07:00
2026-06-23 10:43:14 -07:00
2026-07-05 12:38:01 -07:00
2026-06-21 00:12:57 -07:00