mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5540] [MERGED] Let the Local Model card header toggle in every state #6805
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#6805
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/5540
Author: @kolacheee
Created: 8/25/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @kolacheee
Base:
staging← Head:fix/5538-local-model-card-expand📝 Commits (3)
cbfc0bcfix(connections): let the Local Model card header toggle in every state9ea2bd9fix(connections): announce the Local Model card's expanded state properlyc475571fix(connections): only reference the card body id while it is rendered📊 Changes
2 files changed (+21 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+17 -4)📄 Description
Linked issue
Closes #5538
Why this change
The Connections panel's Local Model card only expanded on a header click while the model was not downloaded (
if (!isDownloaded) setExpanded(true), introduced in08583a7e7). Once the download finished, the card body — including the "Use local model for all tracker agents" action — was reachable only through the small chevron. That hid the action from exactly the users who can use it: a user in the report behind #5537 concluded the button had been removed from the app and reassigned every agent's connection by hand.What changed
One conditional in
SidecarCard(packages/client/src/components/panels/ConnectionsPanel.tsx): the header click now toggles expansion unconditionally (setExpanded((current) => !current)), matching what the chevron already does, and thecursor-pointerclass is applied in every state. A comment records why the gate must not come back.Safety of the wider click target: both header buttons (settings, chevron) already call
event.stopPropagation(), and the expanded body is a sibling of the header div, not a child — so clicks on body controls never reach the new handler. The chevron is unchanged and keeps itsaria/title behavior.The existing e2e helper (
openExpandedLocalModeline2e/core-flows.e2e.ts) clicks the header while collapsed and expects the body — a first click still expands under the toggle, so it keeps passing.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated, from this branch: client ESLint passes; the touched file is Prettier-clean (
--end-of-line auto; repo-wideformat:checkfails pre-existing on CRLF Windows checkouts).Manual steps for whoever ticks the boxes:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG entry added under
[Unreleased] → Fixed. No user-facing docs describe this card, so nodocs/ordocs-i18nimpact.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.