mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4046] [MERGED] feat(chat-settings): inline prompt-preset editing + remembered section state #6217
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#6217
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/4046
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feature/chat-settings-prompt-preset-ux📝 Commits (2)
efec21afeat(chat-settings): inline prompt-preset editing + remembered section state23675fffix(chat-settings): use hardcoded English in Conversation prompt section📊 Changes
16 files changed (+198 additions, -284 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+0 -26)📝
packages/client/src/features/chat-settings/ChatSettingsSection.tsx(+16 -4)📝
packages/client/src/features/chat-settings/sections/ChatNameSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/CombatStyleSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/ConnectionSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/ConversationPromptSection.tsx(+62 -91)📝
packages/client/src/features/chat-settings/sections/FunctionCallingSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx(+90 -127)📝
packages/client/src/features/chat-settings/sections/ImpersonateSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/LorebooksSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/PromptPresetSection.tsx(+10 -36)📝
packages/client/src/features/chat-settings/sections/SceneInstructionsSection.tsx(+1 -0)📝
packages/client/src/features/chat-settings/sections/TranslationSection.tsx(+1 -0)📝
packages/client/src/localization/locales/en.json(+1 -0)📝
packages/client/src/stores/ui.store.ts(+10 -0)📄 Description
Why
Change request for the Chat Settings Prompt Preset area:
What changed
PromptPresetSection.tsx(Roleplay) — once a preset is selected, the preset-section editor renders directly (no collapsible toggle). Removed thequickEditorOpen/onQuickEditorToggleprops and the drawer'squickPresetEditorOpenstate.ConversationPromptSection.tsx/GameExtraPromptSection.tsx— the effective prompt (chat-local edit → preset prompt → built-in default) is now edited inline viaMacroTextarea(type directly, expand to a full window, browse the macro reference). Editing saves a chat-local override; clearing back to the base drops it. Removed the modal-only "Edit Prompt" flow and the "open selected preset" (ExternalLink) button, plus the now-unused drawer state/callbacks (gamePromptDraft,gamePromptExpanded,openSelectedModePromptPreset).ChatSettingsSection.tsx+ui.store.ts— each section takes a stableid; expand/collapse is persisted inchatSettingsExpandedSectionsand restored on reopen. Applied ids to all 11 sections.Test plan
pnpm checkpasses. (Passed in the authoring session; re-verify locally.)Note: no linked issue — this is a direct maintainer change request.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.