mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #40] [MERGED] feat: Add Quick Connection & Persona Switchers to chat input #4410
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#4410
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/40
Author: @LukaTheHero
Created: 4/1/2026
Status: ✅ Merged
Merged: 4/1/2026
Merged by: @SpicyMarinara
Base:
main← Head:feature/quick-switchers📝 Commits (1)
571d9f4feat: add Quick Connection and Persona switchers to chat input📊 Changes
5 files changed (+608 additions, -0 deletions)
View changed files
📝
packages/client/src/components/chat/ChatInput.tsx(+13 -0)📝
packages/client/src/components/chat/ConversationInput.tsx(+11 -0)➕
packages/client/src/components/chat/QuickConnectionSwitcher.tsx(+132 -0)➕
packages/client/src/components/chat/QuickPersonaSwitcher.tsx(+178 -0)➕
packages/client/src/components/chat/QuickSwitcherMobile.tsx(+274 -0)📄 Description
Summary
Adds inline Quick Switcher components to the chat input area for both Roleplay and Conversation modes, allowing users to change the active connection or persona without opening Chat Settings.
New Files
QuickConnectionSwitcher.tsx— Link icon button that opens a dropdown to switch API connections. Includes a "Random" option. Shows ✓ next to the active connection.QuickPersonaSwitcher.tsx— Circular avatar button that opens a dropdown to switch personas. Shows avatar, name, and comment for each persona. Includes a "None" option.QuickSwitcherMobile.tsx— Mobile-only chevron button that opens a single tabbed menu combining both Connections and Personas. Menu aligns to the input box edges for a clean mobile UI.Modified Files
ChatInput.tsx— Added switchers to the roleplay input bar. Desktop shows both inline; mobile shows the combined chevron.ConversationInput.tsx— Added switchers to the conversation input bar. Same desktop/mobile behavior.Desktop vs Mobile
Technical Details
useConnections(),usePersonas(),useUpdateChat(), anduseChat()hooksposition: fixedwith dynamic positioning above the triggerhidden sm:flex/sm:hiddenbreakpoints🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.