[PR #4923] [CLOSED] In-chat search/find and jump to message #6544

Closed
opened 2026-10-23 04:11:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4923
Author: @luma-inibitor
Created: 8/11/2026
Status: ❌ Closed

Base: staging ← Head: claude/chat-search-ui-ux-h6qgyu


📝 Commits (10+)

  • 012858c fix(chat): let /goto reach messages outside the mounted transcript window
  • 3c70fce feat(chat): add naive in-chat message search
  • 9090645 feat(chat): add the Find in chat panel and toolbar entry point
  • d67f2a4 docs(chats): document Find in chat
  • aedce8a fix(chat): jump by message id so search survives duplicate paginated entries
  • f3a3a8a fix(chat): make the search result highlight legible in light mode
  • 68962bf fix(chat): move Find in chat into the chat toolbar overflow menu
  • 63d7644 fix(chat): drop the redundant scope subtitle from the search panel
  • de3144b fix(chat): close the search panel when a mobile shell drawer opens
  • 1b15b62 feat(chat): sort search results, newest first by default

📊 Changes

17 files changed (+1107 additions, -11 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/chats/managing-chats.md (+2 -0)
📝 docs/chats/messages.md (+23 -0)
📝 package.json (+3 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+33 -7)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+33 -1)
➕ packages/client/src/components/chat/ChatSearchButton.tsx (+41 -0)
➕ packages/client/src/components/chat/ChatSearchPanel.tsx (+464 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+31 -1)
➕ packages/client/src/hooks/use-chat-search.ts (+40 -0)
➕ packages/client/src/lib/chat-search.ts (+109 -0)
📝 packages/client/src/lib/transcript-render-window.ts (+28 -0)
📝 packages/client/src/localization/locales/en.json (+18 -0)
📝 packages/client/src/stores/chat.store.ts (+39 -1)
📝 packages/client/src/styles/globals.css (+26 -0)
➕ scripts/regressions/chat-search.regression.ts (+139 -0)
➕ scripts/regressions/transcript-render-window.regression.ts (+76 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

https://github.com/Pasta-Devs/Marinara-Engine/issues/4922
https://discord.com/channels/1417099416812392641/1536485442319548497/1536485442319548497

Closes #4922

Why this change

What changed

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Desktop (1600×1000)

Results, newest first (default) Same query, sorted oldest first
desktop1resultsnewestfirst desktop2resultsoldestfirst
Jumped to a hit — counter reads 1 of 3, message ringed in the transcript Roleplay surface — 7 matches, jumped
desktop3jumpedtomessage desktop4roleplay

Mobile (390×844)

··· menu — Find in chat sits last Bottom sheet with results After jumping — collapses to the stepper pill Settings drawer opens clean — panel dismissed
mobile1overflowmenu mobile2bottomsheet mobile3jumpedstepperpill mobile4settingsdrawerdismissespanel

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4923 **Author:** [@luma-inibitor](https://github.com/luma-inibitor) **Created:** 8/11/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `claude/chat-search-ui-ux-h6qgyu` --- ### 📝 Commits (10+) - [`012858c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/012858cf9328af23f8e389cc6423aa8fb7d33815) fix(chat): let /goto reach messages outside the mounted transcript window - [`3c70fce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c70fce8406736d69ed2526b266c4cd5fdb7e12b) feat(chat): add naive in-chat message search - [`9090645`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9090645ef6fa15eb2a088f20c61d93cf37cf5a90) feat(chat): add the Find in chat panel and toolbar entry point - [`d67f2a4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d67f2a47ba89f52f2adc43af320d764def7754d1) docs(chats): document Find in chat - [`aedce8a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aedce8a5ac964c0bd681dc48658af8595425bbb2) fix(chat): jump by message id so search survives duplicate paginated entries - [`f3a3a8a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3a3a8a1e801d09082039bfe2b23340396f2c4c7) fix(chat): make the search result highlight legible in light mode - [`68962bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68962bf6d2537426bd0bae5fa6db90bca77945cc) fix(chat): move Find in chat into the chat toolbar overflow menu - [`63d7644`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63d7644f45640ddf642c5d5b403a346eb0cd7117) fix(chat): drop the redundant scope subtitle from the search panel - [`de3144b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de3144b48ccb21e8a55b96b316d36139d294c81e) fix(chat): close the search panel when a mobile shell drawer opens - [`1b15b62`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b15b62f2b93dfe04e11474df7d3f71e676fc8de) feat(chat): sort search results, newest first by default ### 📊 Changes **17 files changed** (+1107 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/chats/managing-chats.md` (+2 -0) 📝 `docs/chats/messages.md` (+23 -0) 📝 `package.json` (+3 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+33 -7) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+33 -1) ➕ `packages/client/src/components/chat/ChatSearchButton.tsx` (+41 -0) ➕ `packages/client/src/components/chat/ChatSearchPanel.tsx` (+464 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+31 -1) ➕ `packages/client/src/hooks/use-chat-search.ts` (+40 -0) ➕ `packages/client/src/lib/chat-search.ts` (+109 -0) 📝 `packages/client/src/lib/transcript-render-window.ts` (+28 -0) 📝 `packages/client/src/localization/locales/en.json` (+18 -0) 📝 `packages/client/src/stores/chat.store.ts` (+39 -1) 📝 `packages/client/src/styles/globals.css` (+26 -0) ➕ `scripts/regressions/chat-search.regression.ts` (+139 -0) ➕ `scripts/regressions/transcript-render-window.regression.ts` (+76 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> https://github.com/Pasta-Devs/Marinara-Engine/issues/4922 https://discord.com/channels/1417099416812392641/1536485442319548497/1536485442319548497 Closes #4922 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - ## What changed <!-- List the key changes in this PR --> - ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] ~~Version/release files updated (only if this PR includes a version bump)~~ ## UI evidence (if applicable) ### Desktop (1600×1000) | Results, newest first (default) | Same query, sorted oldest first | | :--- | :--- | | <img width="100%" alt="desktop1resultsnewestfirst" src="https://github.com/user-attachments/assets/85d6811c-21f1-4bf8-97a9-6569b09a5963" /> | <img width="100%" alt="desktop2resultsoldestfirst" src="https://github.com/user-attachments/assets/31552a99-a4bd-4a9a-9b14-01dfa112b19a" /> | | **Jumped to a hit** — counter reads `1 of 3`, message ringed in the transcript | **Roleplay surface** — 7 matches, jumped | | <img width="100%" alt="desktop3jumpedtomessage" src="https://github.com/user-attachments/assets/3c1524e8-9bd0-4838-a57a-35a85f173709" /> | <img width="100%" alt="desktop4roleplay" src="https://github.com/user-attachments/assets/c22ff0af-e587-4307-b5b1-803db17c2b24" /> | ### Mobile (390×844) | `···` menu — Find in chat sits last | Bottom sheet with results | After jumping — collapses to the stepper pill | Settings drawer opens clean — panel dismissed | | :--- | :--- | :--- | :--- | | <img height="600" alt="mobile1overflowmenu" src="https://github.com/user-attachments/assets/20ab220d-ee61-4a43-b974-8bc7258070cc" /> | <img height="600" alt="mobile2bottomsheet" src="https://github.com/user-attachments/assets/981548d9-dbfb-41fe-a101-3ba7860901d1" /> | <img height="600" alt="mobile3jumpedstepperpill" src="https://github.com/user-attachments/assets/fc5bfeb1-9bbb-4ce0-b402-47d0ba7b37d3" /> | <img height="600" alt="mobile4settingsdrawerdismissespanel" src="https://github.com/user-attachments/assets/527a0fff-9fe1-445d-86bf-23f9b7e3b913" /> | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:11:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6544
No description provided.