mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #94] [MERGED] feat(chat): Chat-settings presets + quick-start context menu #4460
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#4460
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/94
Author: @LukaTheHero
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @LukaTheHero
Base:
main← Head:feat/chat-settings-presets📝 Commits (1)
a2e638bfeat(chat): Chat-settings presets + quick-start context menu📊 Changes
18 files changed (+1462 additions, -62 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+233 -0)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+319 -59)📝
packages/client/src/components/panels/BotBrowserPanel.tsx(+50 -2)📝
packages/client/src/components/panels/CharactersPanel.tsx(+54 -1)➕
packages/client/src/components/ui/ContextMenu.tsx(+101 -0)➕
packages/client/src/hooks/use-chat-presets.ts(+104 -0)📝
packages/client/src/stores/chat.store.ts(+6 -0)📝
packages/server/src/db/migrate.ts(+11 -0)➕
packages/server/src/db/schema/chat-presets.ts(+20 -0)📝
packages/server/src/db/schema/index.ts(+1 -0)➕
packages/server/src/routes/chat-presets.routes.ts(+159 -0)📝
packages/server/src/routes/index.ts(+2 -0)➕
packages/server/src/services/storage/chat-presets.storage.ts(+306 -0)📝
packages/shared/src/index.ts(+2 -0)➕
packages/shared/src/schemas/chat-preset.schema.ts(+30 -0)➕
packages/shared/src/types/chat-preset.ts(+61 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📝
packages/shared/src/types/export.ts(+1 -0)📄 Description
Summary
Adds a per-mode chat-settings preset system so users don't have to reconfigure every new conversation/roleplay from scratch. A preset bundles a chat's connection, prompt preset, agents, tools, translation, memory recall, advanced parameters, autonomous messaging, and similar reusable settings — and explicitly does not touch characters, persona, lorebooks, sprites, summary, tags, or scene prompt (those stay tied to the chat).
What's new
Preset bar at the top of Chat Settings drawer
?HelpTooltip explains what the preset does and doesn't carry.Wizard
Right-click context menu on character rows
shouldOpenWizardInShortcutModechat-store flag.New entities
chat_presetstable (id,name,mode,is_default,is_active,settingsJSON, timestamps) — created via the existing idempotent runtime migration inmigrate.ts./api/chat-presetsroutes: list / get / create / update / delete,PUT /:id/settings(Save),POST /:id/duplicate(Save As),POST /:id/set-active,POST /:id/apply/:chatId,GET /:id/export,POST /import.ChatPreset,ChatPresetSettingsshared types + Zod schemas.ContextMenureusable UI component (portal-rendered, viewport-clamped, closes on outside click / Escape / scroll / resize).Test plan
?tooltip readable..marinara-chat-preset.json), Import (re-uploads it), Delete (with currently-applied preset → confirm settings reset to default).pnpm checkpasses.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.