mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7943] [MERGED] fix(client): keep chat controls and quick switching responsive #8017
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#8017
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/7943
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/issue-7928-responsive-chat-controls📝 Commits (7)
d918832feat(client): add connection-only quick switching (#7928)8273156fix(client): align chat buttons and coalesce drag work (#7928)4dc8d2bfix(client): explain automatic button positioning (#7928)bfe481cstyle(client): keep button layout hints concise (#7928)3854fa0fix(ui): verify switcher preference persistence and touch targets1a82c5cfix(client): honor late model-switcher preference sync39ce085fix(client): preserve focus when switcher models close📊 Changes
14 files changed (+410 additions, -27 deletions)
View changed files
📝
e2e/chat-control-windows.e2e.ts(+47 -1)📝
e2e/connection-model-switcher.e2e.ts(+164 -9)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+3 -0)📝
packages/client/src/components/chat/QuickConnectionSwitcher.tsx(+11 -2)📝
packages/client/src/components/chat/QuickSwitcherMobile.tsx(+17 -5)➕
packages/client/src/components/connections/QuickSwitcherModelsToggle.tsx(+23 -0)📝
packages/client/src/components/ui/WindowBubble.tsx(+17 -7)➕
packages/client/src/features/chat-settings/ChatButtonLayoutSettings.tsx(+30 -0)📝
packages/client/src/hooks/use-chat-window-layout.ts(+2 -1)📝
packages/client/src/lib/floating-window-layout.ts(+42 -1)📝
packages/client/src/localization/locales/en.json(+8 -0)📝
packages/client/src/stores/floating-window.store.ts(+9 -1)📝
packages/client/src/stores/ui.store.ts(+6 -0)📝
scripts/regressions/floating-window.regression.ts(+31 -0)📄 Description
Linked issue
Closes #7928
Why this change
Users need to arrange chat tools and switch connections without disruptive drag work or waiting on model catalogs. The issue reports a severe stall and asks for predictable row/column layouts and an option to skip model listing.
What changed
Validation
39ce085192d2f824d9eb279a8d725ed66067a693:pnpm checkpassed (one pre-existing HomeProfessorMariChat hook warning; no errors). All 18 connection-model switcher cases passed across desktop Chromium, mobile Chromium and mobile WebKit. All 15 prior cases remain unchanged, covering dark/light catalog-free switching, withheld catalog responses, a changed preference surviving reload and a 44 CSS pixel touch target. The three new cases hold the startup settings response until a real model picker is open, then verify disabled models unmount, connection choices remain, focus returns and Escape dismisses the menu; mobile Back focus is checked too. Negative controls reproduced the original mobile lifecycle defect and the focus defect in all three projects before their respective fixes.pnpm smoke:ui: 7/7 passed. Those layout/shell results precede the isolated Models toggle height and test follow-up.39ce085192d2f824d9eb279a8d725ed66067a693completed in run 39598562210. It raised one LOW on the pre-existing Personas-tab/unavailable-connection path and one Safari-comment nit. The LOW was traced to the unchanged mount gates and Personas handler in pre-PR base87a9e7b7b33467158d23caa469e1fe42699d109f, and declined as a non-regression outside this Models-preference repair, per the maintainer scope decision. The comment nit was declined because the component already documents Safari button-focus behavior. These are explicit dispositions, not a zero-findings claim; existing tab/removal paths are not claimed fixed.Manual verification and limits
The reported 30-second stall was not independently reproduced. The tested improvements provide automatic arrangement, a catalog-free switching path, and bounded per-frame drag calculations; they are not proof of that exact reported stall's original cause.
UI evidence
Synthetic local Game chat: Free positioning before selection, Horizontal rows after selection, Vertical columns after selection, and Chat Settings selector. These four captures use core layout head
bfe481cb425f8f31d7d8ab4aa95df4804fdda2b7; “before” means before choosing an automatic layout, and Free positioning preserves the existing behavior. An extra focused capture run passed.Quick-switcher light-theme proof uses
4dc8d2bd67c8fa23f21d36ae0f1f2252f32529e3; only the two layout hint strings changed afterward. Screenshots were visually inspected and published on a separate evidence branch, outside the application diff.Models toggle light-theme proof at 3854fa08 was captured and visually inspected at
3854fa0813d5f30fda9bc99050df5e6c6645350e; the browser checks also measured the 44px target in all three projects.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.