mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1469] [Feature]: Split Chat Settings Drawer into focused modules #729
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#729
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?
Originally created by @Xelvanis on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1469
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsxhas grown into a very large mixed UI file, currently around 6,900 lines. It owns the drawer shell plus many unrelated settings surfaces: chat metadata parsing, character/persona/lorebook selection, agents/tools settings, sprites/selfies, Spotify/haptics/game settings, memory and notes modals, schedule editing, and local UI widgets.That size makes focused settings changes harder to review and increases the chance that unrelated chat, roleplay, or game settings behavior gets touched while editing one small area.
Proposed behavior
Split the drawer into focused feature-local modules without changing behavior.
A good target shape would keep the public drawer entrypoint stable while moving leaf pieces under
src/features/modes/shared/chat-ui/components/settings/, for example:chat-settings-utils.tsfor pure normalizers and small helpers.Section.tsxorChatSettingsSection.tsxfor the local collapsible section chrome.MemoryRecallMemoriesModal.tsx.ConversationNotesSection.tsx.AdvancedParametersSection.tsx.ConversationPromptSection.tsx.ImpersonateSettingsContent.tsx.ScheduleEditor.tsx.After leaf extraction, consider focused hooks for computed state such as active lorebooks, available agents, sprite subjects, and preset actions if that reduces coupling without creating a generic router.
Expected owner or impact area
Refactor branch considerations
Keep the split feature-local unless a piece is truly generic. Generic UI can move to
src/shared, but chat/settings-specific components should stay under the chat UI feature package.Do not turn this into a behavior-changing PR. The first pass should be mechanical extraction with stable props, same imports where possible, and no new cross-mode imports. Avoid widening existing raw runtime/API coupling while splitting; issue #1457 separately tracks migrating remaining raw
invokeTauricallers to focused shared API wrappers.Validation should include at least
pnpm typecheck; usepnpm check:architectureif imports or ownership boundaries change.Alternatives considered
Leaving the drawer as one file preserves local context but keeps the current review and maintenance cost. A single giant cleanup PR would be risky; staged leaf-component extraction is safer and easier to review.
Additional context
There is already precedent in the same folder:
components/settings/HapticConnectionPanel.tsxis extracted, andsrc/shared/components/ui/GenerationParametersEditor.tsxalready owns the reusable generation parameter controls.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 28, 2026):
Addressed on refactor in commit
390990ec. Implemented the first focused Chat Settings drawer extraction by moving shared section, picker, and slider primitives into ChatSettingsSections while preserving behavior and visuals.