[PR #1832] [MERGED] Fix game Recent Chats badge #5301

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1832
Author: @cha1latte
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1797-game-recent-badge


📝 Commits (3)

📊 Changes

2 files changed (+95 additions, -1 deletions)

View changed files

➕ src/features/modes/router/components/RecentChats.test.tsx (+89 -0)
📝 src/features/modes/router/components/RecentChats.tsx (+6 -1)

📄 Description

Linked issue

Refs #1797

This fixes the confirmed Recent Chats badge regression from the issue. It intentionally does not close the session-routing product decision described there.

Why this change

  • Game chats on the home Recent Chats row were falling through to the Conversation badge because the router badge map only covered conversation and roleplay.

What changed

  • Added a game entry to the Recent Chats mode badge map using the existing Game sidebar icon/color treatment.
  • Added focused jsdom coverage for Game, existing Roleplay behavior, and the unknown-mode Conversation fallback.

Refactor impact

Primary owner:

  • App shell / mode router

Impact areas reviewed:

  • Home Recent Chats rendering
  • Existing Roleplay badge behavior
  • Unknown mode fallback behavior

Boundary notes:

  • Kept the fix inside src/features/modes/router.
  • Did not touch engine contracts, shared API wrappers, Rust storage, remote runtime routing, or game session routing.

Pressure points touched:

  • RecentChats

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex reproduced the original bug with a focused component run before the fix: pnpm test src/features/modes/router/components/RecentChats.test.tsx failed because [title='Game'] was absent for a game recent chat.
  • Codex verified the fix with pnpm test src/features/modes/router/components/RecentChats.test.tsx: 3 tests passed, covering Game, Roleplay, and unknown-mode fallback rows.
  • Codex ran pnpm typecheck: passed.
  • Codex ran pnpm check: passed.
  • Codex ran the Marinara proof gate against scratch/bugfix-verification.json: passed.
  • Live Tauri UI screenshot is not included. The web-shell cannot query storage_list without embedded Tauri IPC or a configured remote runtime, so this draft should remain draft until a human/Tauri-profile screenshot is added if reviewer-visible visual evidence is required.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • Feature Discoverability N/A with a short reason: this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This is a bugfix for an existing Recent Chats badge and does not add a new discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • No live UI screenshot attached. Component behavior is covered by the focused jsdom proof above; visual app proof requires Tauri storage or a configured remote runtime.

🔄 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/1832 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/1/2026 **Status:** ✅ Merged **Merged:** 6/1/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1797-game-recent-badge` --- ### 📝 Commits (3) - [`6d3abfa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d3abfac3d736704bc91a2cefa7f2698df418906) Fix game recent chat badge - [`8fc601b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8fc601b836f1a4cb5ea96eaa82c51a09317867ac) Refresh PR checks - [`5c0c5c8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c0c5c81f353c9dfbb85eb7ee08e05d5b5fc606d) Refresh discovery check ### 📊 Changes **2 files changed** (+95 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `src/features/modes/router/components/RecentChats.test.tsx` (+89 -0) 📝 `src/features/modes/router/components/RecentChats.tsx` (+6 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Refs #1797 This fixes the confirmed Recent Chats badge regression from the issue. It intentionally does not close the session-routing product decision described there. ## Why this change - Game chats on the home Recent Chats row were falling through to the Conversation badge because the router badge map only covered `conversation` and `roleplay`. ## What changed - Added a `game` entry to the Recent Chats mode badge map using the existing Game sidebar icon/color treatment. - Added focused jsdom coverage for Game, existing Roleplay behavior, and the unknown-mode Conversation fallback. ## Refactor impact Primary owner: - App shell / mode router Impact areas reviewed: - Home Recent Chats rendering - Existing Roleplay badge behavior - Unknown mode fallback behavior Boundary notes: - Kept the fix inside `src/features/modes/router`. - Did not touch engine contracts, shared API wrappers, Rust storage, remote runtime routing, or game session routing. Pressure points touched: - `RecentChats` ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex reproduced the original bug with a focused component run before the fix: `pnpm test src/features/modes/router/components/RecentChats.test.tsx` failed because `[title='Game']` was absent for a `game` recent chat. - Codex verified the fix with `pnpm test src/features/modes/router/components/RecentChats.test.tsx`: 3 tests passed, covering Game, Roleplay, and unknown-mode fallback rows. - Codex ran `pnpm typecheck`: passed. - Codex ran `pnpm check`: passed. - Codex ran the Marinara proof gate against `scratch/bugfix-verification.json`: passed. - Live Tauri UI screenshot is not included. The web-shell cannot query `storage_list` without embedded Tauri IPC or a configured remote runtime, so this draft should remain draft until a human/Tauri-profile screenshot is added if reviewer-visible visual evidence is required. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] Feature Discoverability N/A with a short reason: this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This is a bugfix for an existing Recent Chats badge and does not add a new discoverable feature. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - No live UI screenshot attached. Component behavior is covered by the focused jsdom proof above; visual app proof requires Tauri storage or a configured remote runtime. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:04 +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#5301
No description provided.