[PR #750] [MERGED] Fix Connected Chat placeholder branch names #4760

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/750
Author: @Xelvanis
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @Xelvanis

Base: main ← Head: fix/issue-740-connected-chat-name


📝 Commits (2)

  • c76de73 Fix connected chat branch placeholder display
  • 8ccee77 Keep branch placeholder labels in branch UI

📊 Changes

4 files changed (+23 additions, -13 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+8 -8)
📝 packages/client/src/lib/chat-display.ts (+11 -1)

📄 Description

Linked issue

Closes #740

Why this change

  • Connected Chat uses chat display names for picker labels and search.
  • Newly created branches are seeded with metadata.branchName set to New Branch, which is useful inside branch-management UI but confusing in Connected Chat because unrenamed RP/game links can appear as identical New Branch rows instead of their stable chat names.

What changed

  • Restored getChatDisplayName so branch-management UI can still show branch labels, including the New Branch placeholder.
  • Added getConnectedChatDisplayName for connected-chat surfaces, where the New Branch placeholder falls back to chat.name.
  • Updated Connected Chat labels/search to use the connected-chat-specific helper.

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

  • Reproduced the original helper behavior before the first fix: getChatDisplayName({ name: "Moonlit RP", metadata: { branchName: "New Branch" } }) returned New Branch.
  • Verified the final helper behavior with tsx: branch UI helper keeps New Branch; connected-chat helper falls back to Moonlit RP; real branch label Chapter 2 still displays; blank branch labels fall back; stringified JSON metadata follows the connected-chat placeholder fallback.
  • Ran pnpm check; it passed locally.

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)

No browser screenshot attached. The affected Connected Chat surfaces now use getConnectedChatDisplayName; branch management keeps using getChatDisplayName.

Summary by CodeRabbit

  • Bug Fixes
    • Connected chat labels now properly display branch names when available instead of generic placeholders across chat interfaces, toolbars, and settings.

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/750 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/12/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `fix/issue-740-connected-chat-name` --- ### 📝 Commits (2) - [`c76de73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c76de73b82bed67ff9530a31d4ba5e84c438373a) Fix connected chat branch placeholder display - [`8ccee77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ccee77dca44328087ab0d1316f6c070249dad2f) Keep branch placeholder labels in branch UI ### 📊 Changes **4 files changed** (+23 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+8 -8) 📝 `packages/client/src/lib/chat-display.ts` (+11 -1) </details> ### 📄 Description ## Linked issue Closes #740 ## Why this change - Connected Chat uses chat display names for picker labels and search. - Newly created branches are seeded with `metadata.branchName` set to `New Branch`, which is useful inside branch-management UI but confusing in Connected Chat because unrenamed RP/game links can appear as identical `New Branch` rows instead of their stable chat names. ## What changed - Restored `getChatDisplayName` so branch-management UI can still show branch labels, including the `New Branch` placeholder. - Added `getConnectedChatDisplayName` for connected-chat surfaces, where the `New Branch` placeholder falls back to `chat.name`. - Updated Connected Chat labels/search to use the connected-chat-specific helper. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Reproduced the original helper behavior before the first fix: `getChatDisplayName({ name: "Moonlit RP", metadata: { branchName: "New Branch" } })` returned `New Branch`. - Verified the final helper behavior with `tsx`: branch UI helper keeps `New Branch`; connected-chat helper falls back to `Moonlit RP`; real branch label `Chapter 2` still displays; blank branch labels fall back; stringified JSON metadata follows the connected-chat placeholder fallback. - Ran `pnpm check`; it passed locally. ## Docs and release impact - [x] 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) No browser screenshot attached. The affected Connected Chat surfaces now use `getConnectedChatDisplayName`; branch management keeps using `getChatDisplayName`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** - Connected chat labels now properly display branch names when available instead of generic placeholders across chat interfaces, toolbars, and settings. [![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/750) <!-- 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:10:25 +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#4760
No description provided.