mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8192] [MERGED] feat(client): fit the branch graph to its window #8178
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#8178
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/8192
Author: @ylli-selmani
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/chat-branch-graph-fit📝 Commits (3)
ebd921bfeat(client): fit the branch graph to its window7b67d20fix(client): measure the branch graph whenever its timeline is shown4b4219frefactor(client): decide once whether the branch graph is drawn📊 Changes
4 files changed (+170 additions, -46 deletions)
View changed files
📝
docs/chats/branches.md(+1 -1)📝
packages/client/src/components/chat/ChatBranchGraphWindow.tsx(+65 -20)📝
packages/client/src/lib/chat-branch-graph-layout.ts(+76 -25)📝
scripts/regressions/chat-branch-graph-layout.regression.ts(+28 -0)📄 Description
Linked issue
Part of #8157. Follow-up to #8160.
Why this change
What changed
layoutChatBranchGraphtakes an optionalfit(the timeline's room in pixels) and uses it:ChatBranchGraphWindowmeasures the timeline with aResizeObserverand passes the room to the layout.viewBox, scaled to pixels.chat-branch-graph-layoutregression covers a narrow window, a wide one, a very wide one and a small graph that zooms in.docs/chats/branches.mdgets one sentence on how the graph fills its window. The translation follow-up is added to #8163.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkpassed, with only the existingserverRunlint warning inHomeProfessorMariChat.node scripts/run-regressions.mjs --filter chat-branch-graphpassed.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)
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.