mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1639] [MERGED] Stop the connections sidebar squishing during panel resize #5172
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#5172
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/1639
Author: @Romuromylus
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Romuromylus
Base:
refactor← Head:fix/connections-resize-lag📝 Commits (1)
14b4b00Stop the connections sidebar squishing during panel resize📊 Changes
6 files changed (+54 additions, -4 deletions)
View changed files
📝
src/app/shell/AppShell.tsx(+4 -1)📝
src/features/shell/connections/components/ConnectionsPanel.tsx(+18 -2)📝
src/features/shell/settings/components/settings/TTSConfigCard.tsx(+1 -1)📝
src/shared/stores/ui.store.test.ts(+24 -0)📝
src/shared/stores/ui.store.ts(+2 -0)📝
src/shared/stores/ui/model.ts(+5 -0)📄 Description
Why this change
The connections right panel was the only right-side panel that lagged and squished while dragging the panel resizer. Two independent causes, both unique to it:
transition-allon inner cards. TheConnectionRowandTTSConfigCardroot divs usedtransition-all, which animateswidth. Every connection card therefore ran a width transition on every resize frame.Reorderlayout animation.ConnectionsPanelis the only right-side panel usingReorder. EachReorder.Itemdefaults tolayout=trueand runs a layout-projection measure/animate on every width change, producing the squish/squash.The AppShell
<aside>already disablestransition-[width]during drag, so the container was fine; the jank was entirely these two inner sources.What changed
ConnectionsPanel.tsx/TTSConfigCard.tsx: swap the twotransition-allroot classes totransition-colors. The only animated effect on either element is a hover/expand color change, so behavior is preserved while the per-frame width animation is gone.ui/model.ts+ui.store.ts: add a transientrightPanelResizingflag and setter, beside the existing transientcenterCompact. Intentionally not added topartializeUiState, so it is never persisted.AppShell.tsx: set the flag on right-panel drag start and clear it in the sharedfinishResizeteardown (covering mouseup and the window-blur path).ConnectionsPanel.tsx(folder rows): read the flag and passlayout=falsetoReorder.Itemwhile resizing, suppressing the per-item layout projection.layoutis omitted fromReorderItemProps's public type even though the runtime forwards it, so it goes through a loosely-typed spread (commented). Drag-to-reorder is unchanged because the reorder measurement is independent of the layout flag.Verification
pnpm exec tsc -bclean (validates the new store field and the typed-omit spread).ui.store.test.tscases pass: flag defaults tofalse, toggles via its setter, and is absent frompartializeUiState(never persisted).transition-colorselement does not animateall; no error from the new symbols.Manual
The perceived smoothness (framer-motion layout suppression) and drag-to-reorder-after-resize are visual/interaction behaviors not capturable by an assertion; verified by driving the connections panel in the browser tier. Worth a quick look on a real display.
Risk
layout={false}is passed via a loosely-typed spread because framer-motion 12 omitslayoutfromReorderItemPropswhile still forwarding it at runtime; a future framer-motion major could change that forwarding (noted in a code comment). Mobile is unaffected (the resize gesture returns early on mobile, so the flag never sets).Linked issue
Closes #1586.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.