[PR #638] [MERGED] feat: add tracker data sidebar #4708

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

📋 Pull Request Information

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

Base: main ← Head: feat/tracker-data-sidebar


📝 Commits (2)

  • 55f1a1a feat: add tracker data sidebar
  • 0aefc37 Address tracker sidebar review feedback

📊 Changes

34 files changed (+6460 additions, -799 deletions)

View changed files

➕ .cursor/.gitignore (+1 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+18 -4)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+175 -774)
📝 packages/client/src/components/chat/RoleplayHUDPanels.tsx (+19 -1)
📝 packages/client/src/components/layout/AppShell.tsx (+421 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+12 -1)
➕ packages/client/src/components/layout/TrackerDataSidebar.tsx (+1 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/CharacterThoughtBubbles.tsx (+227 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerCard.tsx (+381 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerPanel.tsx (+151 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/CustomTrackerPanel.tsx (+149 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/FeaturedCharacterTrackerCard.tsx (+825 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/PersonaTrackerPanel.tsx (+309 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/QuestTrackerPanel.tsx (+319 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/TrackerDataSidebar.tsx (+590 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/TrackerSidebarHeader.tsx (+110 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/TrackerSkeleton.tsx (+15 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/WorldStatePanel.tsx (+392 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.constants.ts (+55 -0)
➕ packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.controls.tsx (+573 -0)

...and 14 more files

📄 Description

Linked issue

Closes # one of em, Mari killed it already

Why this change

  • Adds a dedicated tracker data sidebar so users can view and edit roleplay/game state without relying only on HUD widgets.
  • Makes tracker data easier to scan, customize, and keep in sync across world state, persona, characters, quests, and custom fields.
  • Improves tracker presentation for character-heavy chats with compact cards, featured cards, profile color accents, expression sprite portraits, and reorderable sections.

What changed

  • Added the Tracker Data Sidebar with sections for World State, Persona, Present Characters, Quests, and Custom tracker fields.
  • Added tracker panel settings, including card order controls and expression sprite portrait support.
  • Connected tracker panel edits through the shared tracker/game-state save flow so HUD widgets and the sidebar stay aligned.
  • Split the large tracker sidebar implementation into focused component/helper files.
  • Added character/persona profile color accents, fitted text for long names/stat labels, compact card layouts, and polished portrait/nameplate styling.
  • Added a use-game-state-patcher hook for debounced tracker/game-state updates.
  • Updated AppShell/TopBar/Roleplay HUD integration so the tracker panel can coexist with existing HUD behavior.

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

  • pnpm check was run locally after the final rebase/squash and passed.
  • Build still reports the existing Vite large chunk warning for GameSurface, but no new TypeScript, ESLint, or build errors were reported.
  • Everything seems to work ¯_(ツ)_/¯

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)

No version or release files were changed.

Summary by CodeRabbit

  • New Features

    • Added a Tracker data sidebar with panels for characters, featured cards, world state, persona, quests, and custom stats — inline editing, add/delete modes, collapsible sections, thought bubbles, and a skeleton/loading UI
    • Tracker panel can be anchored left/right, resized, toggled, and reordered via Appearance settings
    • Featured portrait controls and optional expression-sprite portraits; new tracker icon
  • Improvements

    • Batched/debounced game-state patching for smoother updates
    • HUD spacing adjustments to avoid overlap with tracker UI

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/638 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/10/2026 **Status:** ✅ Merged **Merged:** 5/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `feat/tracker-data-sidebar` --- ### 📝 Commits (2) - [`55f1a1a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/55f1a1a3d019eebdf14798489d925b6b9e8cb39d) feat: add tracker data sidebar - [`0aefc37`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0aefc37835f53dbaf47bd5270872a9523b9ed9fd) Address tracker sidebar review feedback ### 📊 Changes **34 files changed** (+6460 additions, -799 deletions) <details> <summary>View changed files</summary> ➕ `.cursor/.gitignore` (+1 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+18 -4) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+175 -774) 📝 `packages/client/src/components/chat/RoleplayHUDPanels.tsx` (+19 -1) 📝 `packages/client/src/components/layout/AppShell.tsx` (+421 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+12 -1) ➕ `packages/client/src/components/layout/TrackerDataSidebar.tsx` (+1 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/CharacterThoughtBubbles.tsx` (+227 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerCard.tsx` (+381 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerPanel.tsx` (+151 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/CustomTrackerPanel.tsx` (+149 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/FeaturedCharacterTrackerCard.tsx` (+825 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/PersonaTrackerPanel.tsx` (+309 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/QuestTrackerPanel.tsx` (+319 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/TrackerDataSidebar.tsx` (+590 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/TrackerSidebarHeader.tsx` (+110 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/TrackerSkeleton.tsx` (+15 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/WorldStatePanel.tsx` (+392 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.constants.ts` (+55 -0) ➕ `packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.controls.tsx` (+573 -0) _...and 14 more files_ </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes # one of em, Mari killed it already ## Why this change - Adds a dedicated tracker data sidebar so users can view and edit roleplay/game state without relying only on HUD widgets. - Makes tracker data easier to scan, customize, and keep in sync across world state, persona, characters, quests, and custom fields. - Improves tracker presentation for character-heavy chats with compact cards, featured cards, profile color accents, expression sprite portraits, and reorderable sections. ## What changed - Added the Tracker Data Sidebar with sections for World State, Persona, Present Characters, Quests, and Custom tracker fields. - Added tracker panel settings, including card order controls and expression sprite portrait support. - Connected tracker panel edits through the shared tracker/game-state save flow so HUD widgets and the sidebar stay aligned. - Split the large tracker sidebar implementation into focused component/helper files. - Added character/persona profile color accents, fitted text for long names/stat labels, compact card layouts, and polished portrait/nameplate styling. - Added a `use-game-state-patcher` hook for debounced tracker/game-state updates. - Updated AppShell/TopBar/Roleplay HUD integration so the tracker panel can coexist with existing HUD behavior. ## Validation - [X] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [X] 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 - `pnpm check` was run locally after the final rebase/squash and passed. - Build still reports the existing Vite large chunk warning for `GameSurface`, but no new TypeScript, ESLint, or build errors were reported. - Everything seems to work ¯\_(ツ)_/¯ ## 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) No version or release files were changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Tracker data sidebar with panels for characters, featured cards, world state, persona, quests, and custom stats — inline editing, add/delete modes, collapsible sections, thought bubbles, and a skeleton/loading UI * Tracker panel can be anchored left/right, resized, toggled, and reordered via Appearance settings * Featured portrait controls and optional expression-sprite portraits; new tracker icon * **Improvements** * Batched/debounced game-state patching for smoother updates * HUD spacing adjustments to avoid overlap with tracker UI [![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/638) <!-- 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:09:59 +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#4708
No description provided.