mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8160] [MERGED] feat(chat): branch graph window from the Chat Branches panel #8134
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#8134
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/8160
Author: @ylli-selmani
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/chat-branches-panel-tree📝 Commits (8)
05f069bfeat(chat): open a branch graph window from the Chat Branches headerbca4a1bfeat(chats): read a group's branch graph in one request43709a5feat(chats): draw the branch graphbe1e329docs(chats): describe the branch graph4172267fix(chats): let a tap on a graph point show its text8cae698docs(chats): mention tapping a graph point4ba6d58fix(client): tighten the branch graph's edge cases5333e97fix(client): don't ring a top chat's fork twice at its tip📊 Changes
14 files changed (+1258 additions, -1 deletions)
View changed files
📝
docs/chats/branches.md(+19 -1)➕
packages/client/src/components/chat/ChatBranchGraphWindow.tsx(+574 -0)📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+2 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+3 -0)📝
packages/client/src/features/chat-settings/ChatSettingsSection.tsx(+8 -0)📝
packages/client/src/hooks/use-chats.ts(+14 -0)➕
packages/client/src/lib/chat-branch-graph-layout.ts(+188 -0)📝
packages/client/src/localization/locales/en.json(+21 -0)📝
packages/server/src/routes/chats.routes.ts(+12 -0)➕
packages/server/src/services/chat-branch-graph.ts(+81 -0)📝
packages/server/src/services/storage/chats.storage.ts(+25 -0)📝
packages/shared/src/types/chat.ts(+29 -0)➕
scripts/regressions/chat-branch-graph-layout.regression.ts(+133 -0)➕
scripts/regressions/chat-branch-graph.regression.ts(+149 -0)📄 Description
Linked issue
Closes #8157
Why this change
What changed
Slice 1: the entry point and the window ✅
GitGraph) in the Chat Branches header. It's in the inline section header and also in the popped-out window's title bar.ChatSettingsSectionnow forwards Drawer'sactionsanddetachedHeaderControlsto make that possible.ChatBranchGraphWindow: aFloatingWindow(chat-branch-graph). It's movable and resizable, opens centred over the chat, and becomes a sheet on phones. Its own close button always closes it; Escape and outside presses leave a pinned window open. It's mounted fromChatCommonOverlays, so every chat mode that has the section gets it.TrackerStateEditorButton(mari-window__controlin a window header). The window follows the Chat Settings and chat-control windows (marinara-chat-popover, neutral surface).Slice 2: graph read route ✅
GET /chats/group/:groupId/branch-graphreturns one entry per chat in a group:listMessageOutlines,getMessageContents). It's read-only, with no schema change.chat-branch-graphcovers:Slice 3: draw the graph ✅
ChatRowPeek.··· N ···pill on the shared axis, so forks still line up across lanes. A pill expands on click, Enter or Space, and "Expand all" toggles every run.#N · speaker · "snippet". A tap on a ring doesn't switch chats, so the text is readable on touch screens.aria-current. The window opens scrolled to the current chat's latest message.useChatBranchGraphis keyed under the chat group, so renames, deletions and new branches refetch it. New messages refetch it after a 1.5 s debounce.lib/chat-branch-graph-layout.ts, kept apart from React. Regressionchat-branch-graph-layoutcovers:Slice 4: docs ⏳
docs/chats/branches.md§ Chat Branches, plus a[docs-i18n]follow-up.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
··· N ···and expand on click, that hovering a ring shows#N · speaker · "snippet", and that clicking a lane switches chats.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Seeded demo group: a 320-message chat with three branches, one of them a branch of a branch.
Desktop: long runs fold into
··· N ···pills, each branch's line leaves its parent at the fork, and the current branch is highlighted. The tree button sits in the Chat Branches title bar, next to "?".Hover text on a tip:
#N · speaker · "snippet", kept inside the window at its right edge.Phone (375px): the graph opens as a sheet, scrolled to the current branch's latest message.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8160] feat(chat): branch graph window from the Chat Branches panelto [PR #8160] [MERGED] feat(chat): branch graph window from the Chat Branches panel