[PR #350] [MERGED] feat(chat-presets): star icon to mark default preset for new chats #4573

Closed
opened 2026-10-22 04:08:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/350
Author: @LukaTheHero
Created: 5/2/2026
Status: ✅ Merged
Merged: 5/2/2026
Merged by: @LukaTheHero

Base: main ← Head: feat/preset-default-star


📝 Commits (1)

  • ac16ea8 feat(chat-presets): star icon to mark default preset for new chats

📊 Changes

6 files changed (+124 additions, -11 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+35 -2)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+12 -4)
📝 packages/client/src/components/chat/NewChatConnectionGate.tsx (+16 -1)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+27 -2)
📝 packages/client/src/components/panels/BotBrowserPanel.tsx (+17 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+17 -1)

📄 Description

Summary

  • Adds a yellow star toggle in the Chat Settings drawer (between the preset dropdown and the help icon) that marks the selected chat-settings preset as the default for new chats of its mode. Filled when active, outline when not, disabled when already active.
  • New chats created via the sidebar + button, the right-click "Quick Start Roleplay/Conversation" menus in both the Characters panel and the Bot Browser, and the new-chat connection gate now auto-apply the user's starred preset on creation.
  • The roleplay wizard's "Use Settings Presets" shortcut now pre-selects the chat's already-applied preset → starred preset → built-in Default (instead of always defaulting to the built-in Default).

Why

Users with a customized chat-settings preset previously had to manually open Chat Settings and pick it for every new chat. Marking one preset as the per-mode default makes new chats start where the user actually wants them.

Notes

  • No DB / shared schema / server changes. The isActive flag on ChatPreset, the setActive storage method, the useSetActiveChatPreset hook, and the POST /chat-presets/:id/set-active route already existed but had no UI affordance — this wires them up.
  • Built-in Default presets are skipped when applying on creation (applying them is a no-op), saving a round-trip in the common case.
  • No issue is currently linked; one should be opened before merging.

Manual verification

  • Open Chat Settings on a roleplay chat: star button appears next to the dropdown and toggles correctly between filled/outline state.
  • Star a non-default preset, then open Chat Settings on a different chat in the same mode: the star is on the same preset.
  • Right-click a character in the Characters panel → Quick Start Roleplay: new chat opens with the starred preset's settings applied.
  • Same via the Bot Browser panel for both Quick Start Roleplay and Quick Start Conversation.
  • Click + in the chat sidebar for both roleplay and conversation modes: new chat opens with the starred preset applied.
  • In the roleplay setup wizard, click "Use Settings Presets": the dropdown is pre-selected to the starred preset.
  • Mobile view: star button doesn't break the dropdown row layout or escape any boundaries.
  • Visual novel mode shares roleplay presets — verify the star/auto-apply still behaves correctly.

Summary by CodeRabbit

Release Notes

  • New Features
    • Added ability to mark chat presets as default for new chats in your current mode.
    • New chats now automatically apply your starred preset settings when created in conversation or roleplay mode.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/350 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 5/2/2026 **Status:** ✅ Merged **Merged:** 5/2/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `feat/preset-default-star` --- ### 📝 Commits (1) - [`ac16ea8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ac16ea809669e7bcd6774f701e3922be48b8af7b) feat(chat-presets): star icon to mark default preset for new chats ### 📊 Changes **6 files changed** (+124 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+35 -2) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+12 -4) 📝 `packages/client/src/components/chat/NewChatConnectionGate.tsx` (+16 -1) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+27 -2) 📝 `packages/client/src/components/panels/BotBrowserPanel.tsx` (+17 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+17 -1) </details> ### 📄 Description ## Summary - Adds a yellow star toggle in the Chat Settings drawer (between the preset dropdown and the help icon) that marks the selected chat-settings preset as the default for new chats of its mode. Filled when active, outline when not, disabled when already active. - New chats created via the sidebar `+` button, the right-click "Quick Start Roleplay/Conversation" menus in both the Characters panel and the Bot Browser, and the new-chat connection gate now auto-apply the user's starred preset on creation. - The roleplay wizard's "Use Settings Presets" shortcut now pre-selects the chat's already-applied preset → starred preset → built-in Default (instead of always defaulting to the built-in Default). ## Why Users with a customized chat-settings preset previously had to manually open Chat Settings and pick it for every new chat. Marking one preset as the per-mode default makes new chats start where the user actually wants them. ## Notes - No DB / shared schema / server changes. The `isActive` flag on `ChatPreset`, the `setActive` storage method, the `useSetActiveChatPreset` hook, and the `POST /chat-presets/:id/set-active` route already existed but had no UI affordance — this wires them up. - Built-in Default presets are skipped when applying on creation (applying them is a no-op), saving a round-trip in the common case. - No issue is currently linked; one should be opened before merging. ## Manual verification - [x] Open Chat Settings on a roleplay chat: star button appears next to the dropdown and toggles correctly between filled/outline state. - [x] Star a non-default preset, then open Chat Settings on a different chat in the same mode: the star is on the same preset. - [x] Right-click a character in the Characters panel → Quick Start Roleplay: new chat opens with the starred preset's settings applied. - [x] Same via the Bot Browser panel for both Quick Start Roleplay and Quick Start Conversation. - [x] Click `+` in the chat sidebar for both roleplay and conversation modes: new chat opens with the starred preset applied. - [x] In the roleplay setup wizard, click "Use Settings Presets": the dropdown is pre-selected to the starred preset. - [x] Mobile view: star button doesn't break the dropdown row layout or escape any boundaries. - [x] Visual novel mode shares roleplay presets — verify the star/auto-apply still behaves correctly. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added ability to mark chat presets as default for new chats in your current mode. * New chats now automatically apply your starred preset settings when created in conversation or roleplay mode. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:50 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4573
No description provided.