mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6775] [MERGED] feat: add chat search, story exports and activity insights #7324
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6775
Author: @SirAdoni
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:contrib/6698-chat-tools📝 Commits (10+)
a2807e4feat: add chat search exports and activity insights31a884afix: verify chat tools navigation and search shortcut7b5d1c7Merge staging and verify chat tools integrationa9b41b2Merge staging inventory update into chat toolse6d764bMerge commit '3355c32277' into contrib/6698-chat-tools274bcd5fix: refresh chat insights reliably after edits and cleared searchesea62c74fix: preserve narrator identity in game story exports9aa2719fix: keep story avatars compact and reject repeated timezone values98206c8Merge latest staging into reviewed chat insightsae09851test: allow slower native server restarts📊 Changes
30 files changed (+3974 additions, -28 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)➕
e2e/chat-insights.e2e.ts(+234 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+14 -0)📝
packages/client/src/components/chat/ChatBranchSelector.tsx(+48 -1)📝
packages/client/src/components/layout/AppShell.tsx(+35 -0)📝
packages/client/src/components/layout/ChatSidebar.tsx(+21 -0)📝
packages/client/src/components/layout/ModalRenderer.tsx(+20 -0)➕
packages/client/src/components/modals/ActivityOverviewModal.tsx(+252 -0)➕
packages/client/src/components/modals/ChatStatsModal.tsx(+244 -0)➕
packages/client/src/components/modals/GlobalSearchModal.tsx(+321 -0)➕
packages/client/src/hooks/use-chat-insights.ts(+79 -0)📝
packages/client/src/hooks/use-chats.ts(+12 -3)➕
packages/client/src/lib/chat-insights-display.ts(+153 -0)➕
packages/client/src/lib/chat-insights.ts(+34 -0)📝
packages/client/src/localization/locales/en.json(+102 -0)➕
packages/server/src/routes/chat-insights.routes.ts(+73 -0)📝
packages/server/src/routes/chats.routes.ts(+90 -22)📝
packages/server/src/routes/index.ts(+2 -0)➕
packages/server/src/services/chat-insights/chat-insights.service.ts(+508 -0)➕
packages/server/src/services/chat-insights/transcript-avatars.ts(+38 -0)...and 10 more files
📄 Description
Linked issue
Closes #6802. Partial implementation of #6698; the umbrella issue remains open.
Why this change
Chats need searchable history, readable story exports and useful activity summaries without exposing hidden messages or private notes.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdpnpm check; 23 focused chat regressions; six desktop/mobile Chromium/WebKit browser cases; seven shell smoke cases passed.
Local CodeRabbit completed; valid findings were fixed and documented. The latest hosted findings were fixed in
9aa27191b. Follow-up review and current-head GitHub checks remain merge gates.Manual verification
Manually verify search, activity timezone changes, and downloaded story exports with a representative long chat.
Automated browser evidence does not claim physical-device or manual container verification. Human checklist states are preserved.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedAdded an Unreleased changelog entry. No release metadata or user-facing docs changed.
UI evidence
Browser evidence (download the HTML to view the embedded screenshots). Captions distinguish before/after captures from current feature screenshots.
Summary by CodeRabbit
Maintainer verification
Published
f4255e335completes the print review follow-up. Included reasoning is rendered once, reused in a screen disclosure and a print-only block, and shown exactly once per medium using ordinary display rules. This avoids depending on the newer details-content pseudo-element while retaining offline, script-free exports. The small HTML duplication and removal condition are documented in the code. Screen captures are unchanged; the evidence gist includes print before/after images.The original print defect failed on desktop Chromium, mobile Chromium and mobile WebKit. The final behavioral proof passes all three projects, including collapsed/expanded screen behavior, one visible reasoning copy in print, return to screen, offline avatars and no scripts. Exact branch validation passed pnpm check, the chat-story-export regression and smoke7/7. The final local CodeRabbit review of this compatibility follow-up completed with zero findings; prior valid findings were fixed and review decisions remain recorded.
The branch also retains reviewed search/activity/export fixes, compact embedded avatars and the native restart fixture correction. The slow replacement-startup failure has an injected-delay red/green proof; process ownership, old-process exit and lease assertions remain intact. The combined integration build passed before the final print-only compatibility delta, whose identical renderer is validated on this branch. Current-head hosted CodeRabbit and CI remain merge gates. Human validation checkboxes are unchanged.
Local build and container verification
Tested commit:
f4255e3351. Full local pnpm check passed. The full Docker image built successfully and ran with synthetic data; HTTP readiness and embedded build commit were verified. These results do not claim completion of the remaining manual and UI edge-case checklist.Interactive browser walkthroughs of the feature were completed against the running production container using synthetic fixtures, supported by focused automated browser checks. This was agent-operated browser interaction, not physical-device testing. The broader theme, empty-state and error-path checklist remains separate.
Remaining interactive verification
Native Windows save-picker behavior and interactive activity-timezone changes remain unverified. The automated download-fallback export test does not verify the native save dialog. Overall manual verification remains unchecked.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.