[PR #1094] [MERGED] feat: add fixed top bar shortcuts #4923

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1094
Author: @cha1latte
Created: 5/22/2026
Status: ✅ Merged
Merged: 5/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/issue-1079-topbar-shortcuts


📝 Commits (4)

  • 766afcb feat: add fixed top bar shortcuts
  • 76e940b fix: distinguish roleplay shortcut icon
  • 2069e98 Merge branch 'staging' into feature/issue-1079-topbar-shortcuts
  • 68ab07d Merge branch 'staging' into feature/issue-1079-topbar-shortcuts

📊 Changes

4 files changed (+97 additions, -2 deletions)

View changed files

➕ docs/pr-evidence/issue-1079-topbar-shortcuts/shortcuts-after.png (+0 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+12 -0)
📝 packages/client/src/components/layout/TopBar.tsx (+58 -2)
📝 packages/client/src/stores/ui.store.ts (+27 -0)

📄 Description

Linked issue

Closes #1079

Why this change

  • The top bar center area was unused, and issue #1079 asks for a small fixed-shortcut slice from the broader navigation customization idea.

What changed

  • Added fixed top bar shortcuts for Conversations, Roleplay, and Games on medium+ viewports.
  • Added a transient UI-store request so top bar shortcuts open the sidebar and focus the matching chat-mode tab.
  • Cleared sidebar search/tag/multi-select state when a shortcut changes modes.
  • Added reviewer-visible UI evidence under docs/pr-evidence/issue-1079-topbar-shortcuts/.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm check; it passed.
  • Codex ran scratch/issue_1079_shortcuts_smoke.py against the local app. The script clicked Conversations, Roleplay, and Games from the top bar and confirmed the matching sidebar tab became active each time.
  • UI evidence: shortcuts-after.png.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Top bar shortcuts

Summary by CodeRabbit

New Features

  • Added chat mode shortcut buttons to the top navigation bar for quick switching between conversation, roleplay, and game modes.
  • Selecting a chat mode automatically adjusts sidebar settings, clears active filters, and optimizes the interface state for the selected mode.

Review Change Stack


🔄 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/1094 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/22/2026 **Status:** ✅ Merged **Merged:** 5/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/issue-1079-topbar-shortcuts` --- ### 📝 Commits (4) - [`766afcb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/766afcbfe09efb0f2f064d34fe2760d36bd1bef3) feat: add fixed top bar shortcuts - [`76e940b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/76e940ba0f5814b294557d98fddc40a3176206cd) fix: distinguish roleplay shortcut icon - [`2069e98`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2069e98e82830b6b0f9303970f214022c783c456) Merge branch 'staging' into feature/issue-1079-topbar-shortcuts - [`68ab07d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68ab07d0a67ea09a22f9acb12ce756df2b87c538) Merge branch 'staging' into feature/issue-1079-topbar-shortcuts ### 📊 Changes **4 files changed** (+97 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1079-topbar-shortcuts/shortcuts-after.png` (+0 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+12 -0) 📝 `packages/client/src/components/layout/TopBar.tsx` (+58 -2) 📝 `packages/client/src/stores/ui.store.ts` (+27 -0) </details> ### 📄 Description ## Linked issue Closes #1079 ## Why this change - The top bar center area was unused, and issue #1079 asks for a small fixed-shortcut slice from the broader navigation customization idea. ## What changed - Added fixed top bar shortcuts for Conversations, Roleplay, and Games on medium+ viewports. - Added a transient UI-store request so top bar shortcuts open the sidebar and focus the matching chat-mode tab. - Cleared sidebar search/tag/multi-select state when a shortcut changes modes. - Added reviewer-visible UI evidence under `docs/pr-evidence/issue-1079-topbar-shortcuts/`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm check`; it passed. - Codex ran `scratch/issue_1079_shortcuts_smoke.py` against the local app. The script clicked Conversations, Roleplay, and Games from the top bar and confirmed the matching sidebar tab became active each time. - UI evidence: [shortcuts-after.png](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/76e940ba0f5814b294557d98fddc40a3176206cd/docs/pr-evidence/issue-1079-topbar-shortcuts/shortcuts-after.png). ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) ![Top bar shortcuts](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/76e940ba0f5814b294557d98fddc40a3176206cd/docs/pr-evidence/issue-1079-topbar-shortcuts/shortcuts-after.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## New Features * Added chat mode shortcut buttons to the top navigation bar for quick switching between conversation, roleplay, and game modes. * Selecting a chat mode automatically adjusts sidebar settings, clears active filters, and optimizes the interface state for the selected mode. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1094?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:11:45 +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#4923
No description provided.