[PR #228] [CLOSED] Feature: Add a default opened chat toggle in the settings panel #4518

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/228
Author: @ghost
Created: 4/25/2026
Status: ❌ Closed

Base: main ← Head: main


📝 Commits (4)

  • aee87a2 Feature: Add a default opened chat toggle in the settings panel
  • 6abb3e0 fix: accessibility gap
  • 71432da Merge branch 'main' into main
  • 0765740 Merge branch 'main' into main

📊 Changes

3 files changed (+68 additions, -1 deletions)

View changed files

📝 packages/client/src/components/layout/ChatSidebar.tsx (+9 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+51 -0)
📝 packages/client/src/stores/ui.store.ts (+8 -0)

📄 Description

Add a toggle to select the default chat to open when no chat is selected.

Why this change

The default behavior of the app is to open the conversation tab when no chat is selected. This feature is useful for user who doesn’t leave their last chat open but has a specific preference for a particular mode, whether conversation, RP, or GM

What changed

  • Added a new setting in General tab: "Default opened chats", used the same inline 3-button toggle style as "Send on Enter"

  • SettingsPanel.tsx: new toggle UI block above "Send on Enter"

  • ui.store.ts:

    • added persisted state field defaultOpenChatTab
    • Added setter setDefaultOpenChatTab
    • Included in synced/persisted settings shaping
  • ChatSidebar.tsx

    • Sidebar now initializes from defaultOpenChatTab
    • If no chat is active, tab follows this default setting

Validation

  • pnpm check
  • Manual verification

Confirmed that the app opens with the (Convo, RP, GM) chat tab according to what the user selected in the default opened chat toggle

Docs and release impact

  • No docs changes needed

Screenshot

Screenshot 2026-04-25 085928

Summary by CodeRabbit

  • New Features
    • Users can choose a preferred default chat tab (Conversation, Roleplay, or Game) from General Settings; the choice is persisted.
    • When there is no active chat, the sidebar now automatically opens the user’s selected default tab, keeping navigation consistent across sessions.

🔄 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/228 **Author:** [@ghost](https://github.com/ghost) **Created:** 4/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`aee87a2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aee87a25ba29a9e20324ca0a460addda9dc669d2) Feature: Add a default opened chat toggle in the settings panel - [`6abb3e0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6abb3e08c09bb84fb329d9a09f6a281bfbf9b151) fix: accessibility gap - [`71432da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/71432da2d3d0f821983f6f6cc896bfb4f296580b) Merge branch 'main' into main - [`0765740`](https://github.com/Pasta-Devs/Marinara-Engine/commit/076574032bf706b4c4735cd63b644e893bcc9280) Merge branch 'main' into main ### 📊 Changes **3 files changed** (+68 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+9 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+51 -0) 📝 `packages/client/src/stores/ui.store.ts` (+8 -0) </details> ### 📄 Description Add a toggle to select the default chat to open when no chat is selected. ## Why this change The default behavior of the app is to open the conversation tab when no chat is selected. This feature is useful for user who doesn’t leave their last chat open but has a specific preference for a particular mode, whether conversation, RP, or GM ## What changed - Added a new setting in General tab: "Default opened chats", used the same inline 3-button toggle style as "Send on Enter" - `SettingsPanel.tsx`: new toggle UI block above "Send on Enter" - `ui.store.ts`: - added persisted state field `defaultOpenChatTab` - Added setter `setDefaultOpenChatTab` - Included in synced/persisted settings shaping - `ChatSidebar.tsx` - Sidebar now initializes from `defaultOpenChatTab` - If no chat is active, tab follows this default setting ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` - [x] Manual verification Confirmed that the app opens with the (Convo, RP, GM) chat tab according to what the user selected in the default opened chat toggle ## Docs and release impact - [x] No docs changes needed ## Screenshot <img width="50%" alt="Screenshot 2026-04-25 085928" src="https://github.com/user-attachments/assets/f3e1456b-3db4-404b-b2fd-cfc0a3ab0234" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Users can choose a preferred default chat tab (Conversation, Roleplay, or Game) from General Settings; the choice is persisted. * When there is no active chat, the sidebar now automatically opens the user’s selected default tab, keeping navigation consistent across sessions. <!-- 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:21 +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#4518
No description provided.