[PR #8209] [MERGED] fix(client): let the branch graph fill its window's height, and move its button #8186

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8209
Author: @ylli-selmani
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/chat-branch-graph-fill-height


📝 Commits (3)

  • fe46560 fix(client): let the branch graph fill its window's height
  • 3383dd1 docs(chats): say where the branch graph stops filling and shrinking
  • 2b3a156 fix(client): move the branch graph button above the export buttons

📊 Changes

6 files changed (+41 additions, -27 deletions)

View changed files

📝 docs/chats/branches.md (+2 -2)
📝 packages/client/src/components/chat/ChatBranchGraphWindow.tsx (+11 -8)
📝 packages/client/src/components/chat/ChatBranchesPanel.tsx (+2 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+0 -3)
📝 packages/client/src/lib/chat-branch-graph-layout.ts (+12 -10)
📝 scripts/regressions/chat-branch-graph-layout.regression.ts (+14 -4)

📄 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

Small QoL fix on maintainer direction.

Why this change

  • After #8192, a long chat that is still too wide for the branch graph window with every stretch folded could not zoom. Each lane was also capped at 48px, so the graph filled only part of the window's height.
  • The button that opens the graph sat in the Chat Branches header and in the popped-out window's title bar, which broke the pattern those controls follow (maintainer feedback).

What changed

  • layoutChatBranchGraph:
    • The lanes always share the window's full height; the 48px cap is gone.
    • A graph a little too wide for the window shrinks to fit, down to 0.75×, before it scrolls. Small graphs still zoom in up to 2×.
  • ChatBranchGraphWindow: chat names never shrink with the graph, so they stay readable.
  • Moving the button: ChatBranchGraphButton is now one long Branch graph button above the section's export buttons, in ChatBranchesPanel. ChatSettingsDrawer no longer passes it as the section's header actions or detachedHeaderControls, so the drawer and the popped-out window show the same button. It reuses the existing chat.settings.branchGraph label (branchGraphOpen is now its tooltip), so no locale key was added.
  • The chat-branch-graph-layout regression covers the shrink, the 0.75× floor and full-height lanes.
  • docs/chats/branches.md: the sentence on how the graph fills its window now mentions shrinking and full-height rows, and the step for opening the graph points at the new button. The translation follow-up is added to #8163.

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

  • node scripts/run-regressions.mjs --filter chat-branch-graph passed (2/2), and the chat-branch-tree and floating-window regressions passed after the button move. The client type-check, ESLint and Prettier passed.
  • Seeded three groups (620, 240 and 6 messages, each with branches) and resized the graph window: the lanes fill the height, and the 240-message graph fits the width.
  • Opened the graph from the new button in a popped-out Chat Branches window, and checked that the title bar no longer carries it.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

A 240-message group with two branches, fitted to the window:

Branch graph filling its window

The Branch graph button above the export buttons, in a popped-out Chat Branches window:

Branch graph button above the export buttons

🤖 Generated with Claude Code


🔄 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/8209 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/chat-branch-graph-fill-height` --- ### 📝 Commits (3) - [`fe46560`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fe4656024e62a2adbce3f4d3735427a3ddc878c3) fix(client): let the branch graph fill its window's height - [`3383dd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3383dd187d845ba5b3dd4223c2ef82d69fab81bb) docs(chats): say where the branch graph stops filling and shrinking - [`2b3a156`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b3a15682bb607c548be7a46369c3031323332ad) fix(client): move the branch graph button above the export buttons ### 📊 Changes **6 files changed** (+41 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `docs/chats/branches.md` (+2 -2) 📝 `packages/client/src/components/chat/ChatBranchGraphWindow.tsx` (+11 -8) 📝 `packages/client/src/components/chat/ChatBranchesPanel.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+0 -3) 📝 `packages/client/src/lib/chat-branch-graph-layout.ts` (+12 -10) 📝 `scripts/regressions/chat-branch-graph-layout.regression.ts` (+14 -4) </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 Small QoL fix on maintainer direction. ## Why this change - After #8192, a long chat that is still too wide for the branch graph window with every stretch folded could not zoom. Each lane was also capped at 48px, so the graph filled only part of the window's height. - The button that opens the graph sat in the Chat Branches header and in the popped-out window's title bar, which broke the pattern those controls follow (maintainer feedback). ## What changed - `layoutChatBranchGraph`: - The lanes always share the window's full height; the 48px cap is gone. - A graph a little too wide for the window shrinks to fit, down to 0.75×, before it scrolls. Small graphs still zoom in up to 2×. - `ChatBranchGraphWindow`: chat names never shrink with the graph, so they stay readable. - Moving the button: `ChatBranchGraphButton` is now one long **Branch graph** button above the section's export buttons, in `ChatBranchesPanel`. `ChatSettingsDrawer` no longer passes it as the section's header `actions` or `detachedHeaderControls`, so the drawer and the popped-out window show the same button. It reuses the existing `chat.settings.branchGraph` label (`branchGraphOpen` is now its tooltip), so no locale key was added. - The `chat-branch-graph-layout` regression covers the shrink, the 0.75× floor and full-height lanes. - `docs/chats/branches.md`: the sentence on how the graph fills its window now mentions shrinking and full-height rows, and the step for opening the graph points at the new button. The translation follow-up is added to #8163. ## 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 - `node scripts/run-regressions.mjs --filter chat-branch-graph` passed (2/2), and the `chat-branch-tree` and `floating-window` regressions passed after the button move. The client type-check, ESLint and Prettier passed. - Seeded three groups (620, 240 and 6 messages, each with branches) and resized the graph window: the lanes fill the height, and the 240-message graph fits the width. - Opened the graph from the new button in a popped-out Chat Branches window, and checked that the title bar no longer carries it. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) A 240-message group with two branches, fitted to the window: ![Branch graph filling its window](https://raw.githubusercontent.com/ylli-selmani/Marinara-Engine-Ylli-Edits/pr-assets/pr-assets/chat-branch-graph-fill-height/medium-graph.png) The **Branch graph** button above the export buttons, in a popped-out Chat Branches window: ![Branch graph button above the export buttons](https://raw.githubusercontent.com/ylli-selmani/Marinara-Engine-Ylli-Edits/pr-assets/pr-assets/chat-branch-graph-fill-height/graph-button.png) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:04:32 +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#8186
No description provided.