mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6211
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/4033
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feature/4024-quick-replies-translation📝 Commits (2)
1d5fdbffeat(chat): custom quick replies and translation display options07d5da9fix: address CodeRabbit review on #4024📊 Changes
12 files changed (+251 additions, -18 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+7 -1)📝
packages/client/src/components/chat/ChatInput.tsx(+35 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+33 -8)📝
packages/client/src/components/chat/ConversationInput.tsx(+37 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+69 -0)📝
packages/client/src/features/chat-settings/sections/TranslationSection.tsx(+6 -0)📝
packages/client/src/hooks/use-generate.ts(+1 -1)📝
packages/client/src/hooks/use-translate.ts(+3 -1)📝
packages/client/src/stores/translation.store.ts(+23 -6)📝
packages/client/src/stores/ui.store.ts(+33 -0)📝
packages/shared/src/types/chat.ts(+2 -0)📄 Description
Why
Two QoL requests from #4024 (maintainer agreed to both in the Discord thread):
What changed
Custom quick replies
ui.store.ts: new persistedcustomQuickReplieslist ({ id, label, content }) withaddCustomQuickReply/updateCustomQuickReply/removeCustomQuickReply.SettingsPanel.tsx: a Custom quick replies manager inside Settings → General → Quick replies (add / edit label + content / remove).ChatInput.tsx(Roleplay/Game) andConversationInput.tsx(Conversation): custom entries are appended to the quick replies menu; selecting one writes its content into the composer and sends it through the normal send path, so macros and/slashcommands execute as if typed.Translation display options
packages/sharedChatMetadata: newtranslationDisplayOnly?: boolean.TranslationSection.tsx: Show Only Translation toggle.ChatMessage.tsx: translated text now renders through the samerenderContentmarkdown pipeline as messages (bold/italics/quotes) in both the Conversation and Roleplay surfaces; when Show Only Translation is on and a translation exists, the translation replaces the original in place instead of appearing below it.Notes / decisions
useLocalizedUiText()pattern used by the surrounding quick-reply settings (English source, community locales fall back to English).Test plan
/slashcommand, e.g./sys ...); confirm it appears in the quick replies menu beside Send in a Roleplay chat and a Conversation chat, and that selecting it runs the command.{{macro}}; confirm the macro resolves when sent.pnpm checkpasses. (It passed in the authoring session; re-verify locally.)Fixes #4024.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.