mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8646] [MERGED] fix(chat-profiles): keep sidebars accessible and simplify field pickers #8722
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#8722
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/8646
Author: @Gunterlie
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @Gunterlie
Base:
staging← Head:the-library-has-left-the-building📝 Commits (7)
10d6d34fix(chat-profiles): allow sidebar drops and simplify field pickers5ccd88aMerge remote-tracking branch 'origin/staging' into the-library-has-left-the-building68d6925fix(chat-profiles): close the editor when switching chatsa6e2a54fix(chat-profiles): preserve existing settings-window dismissal exemptions815da78fix(chat-profiles): pin edited profiles and isolate browser fixtures166cbccfix(chat-profiles): scope Escape and close deleted-profile draftsb3b36c0fix(chat-profiles): preserve modal escape regression guard📊 Changes
8 files changed (+415 additions, -199 deletions)
View changed files
📝
docs/chats/settings-profiles.md(+3 -2)➕
e2e/profile-editor.e2e.ts(+192 -0)📝
packages/client/src/components/chat/ChatProfileBuilder.tsx(+155 -176)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+12 -3)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+6 -3)📝
packages/client/src/components/ui/Modal.tsx(+40 -13)📝
packages/client/src/hooks/use-dialog-focus-scope.ts(+5 -2)📝
packages/client/src/localization/locales/en.json(+2 -0)📄 Description
Linked issue
Closes #8644.
Why this change
The Profile Editor invited users to drop resources into fields while its blocking dialog hid the sidebars those resources came from. Its separate bottom tray duplicated the library, and chip pickers made selecting settings awkward.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdLocal validation:
pnpm checkpassed after merging current staging. After the final draft-safety fixes,pnpm check:e2e-types, client lint, and the focusede2e/profile-editor.e2e.tspassed on desktop and Android Chromium. The sevenpnpm smoke:uicases passed during implementation. Browser proof also verifies that changing the background profile dropdown preserves the open editor's draft, and that switching chats closes it.Final reviewed source revision:
815da785a6. Independent final review found no blocking findings. iPhone WebKit was attempted but cannot launch because this host lacks its OS libraries; Docker, real-phone keyboard behavior, and light-theme screenshots are unverified.Manual verification notes
Automated browser proof selects/deselects tools, drags a persona from the real sidebar on desktop, saves the profile, and checks the persisted persona and tool IDs. Screenshots were inspected at 390, 768, and 1440 px. No production data or deployment was used.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English profile-guide instructions are updated; translated guides are tracked in #8645. No version, storage-format, or changelog changes.
UI evidence (if applicable)
Local screenshots of the running app cover desktop, tablet, and phone widths, with the dotted visual treatment preserved and the sidebar open on desktop. The focused browser regression records screenshots with its results.
Proof
Local CodeRabbit findings were traced and addressed: stable accessible labels, focus restoration between save steps, distinct field descriptions for Clear selection, browser fixture cleanup, fixed source-chat/profile ownership, and phone-appropriate hints. Existing settings-window portal/navigation exemptions are preserved. Both editor entry points capture the profile selected when Edit is opened.
Investigated and left unchanged: explicit Chat Settings Close can discard an open unsaved editor, consistent with the editor's existing Cancel/Close behavior. Incidental library presses are protected. This warning was not treated as a defect requiring a new discard-confirmation flow.
The last CodeRabbit rerun was attempted but refused because included reviews were exhausted and no assigned organization seat was available. Earlier local reviews completed; a separate independent final review traced the latest fixes and found no blocking findings. Required GitHub checks and Dottore Review must finish on the final PR head before merge.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.