[PR #3815] [MERGED] refactor: simplify tracker panel plumbing #6115

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

📋 Pull Request Information

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

Base: staging ← Head: tracker-panel-simplification


📝 Commits (3)

  • 7a06766 refactor: simplify tracker panel plumbing
  • c286cc2 refactor: reuse tracker record validation
  • acd3603 Merge branch 'staging' into tracker-panel-simplification

📊 Changes

17 files changed (+47 additions, -223 deletions)

View changed files

📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+0 -9)
📝 packages/client/src/features/tracker-panel/components/TrackerLockContext.tsx (+1 -21)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+0 -3)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerCard.tsx (+9 -5)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterPortrait.tsx (+4 -4)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx (+15 -10)
📝 packages/client/src/features/tracker-panel/components/controls/TrackerProfileChrome.tsx (+0 -20)
📝 packages/client/src/features/tracker-panel/components/sections/CharacterTrackerPanel.tsx (+0 -3)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+2 -2)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts (+3 -4)
📝 packages/client/src/features/tracker-panel/lib/sprite-expressions.ts (+2 -2)
📝 packages/client/src/features/tracker-panel/lib/tracker-metadata.ts (+7 -16)
📝 packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts (+0 -11)
📝 packages/client/src/features/tracker-panel/lib/tracker-profile-layout.ts (+2 -12)
📝 packages/client/src/features/tracker-panel/lib/tracker-profile-style.ts (+0 -32)
📝 packages/client/src/features/tracker-panel/lib/tracker-stat-layout.ts (+2 -17)
📝 packages/client/src/lib/tracker-card-colors.ts (+0 -52)

📄 Description

Linked issue

No linked issue. This is a behavior-preserving cleanup of inherited tracker-panel duplication and dead plumbing.

Why this change

  • Reduce duplicate representations, dead API surface, and unnecessary prop plumbing in the tracker panel while preserving rendered behavior and persistence.

What changed

  • Read hide mode from TrackerLockContext in compact and featured cards, removing the duplicate prop chain and dead callbacks.
  • Consolidate identical stat-density selection and metadata record parsing.
  • Remove unused tracker constants, profile CSS-variable forwarding, and the now-dead upstream style projections and calculations.

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

Validation performed by the implementing agent:

  • pnpm check passed.
  • The staged diff passed git diff --cached --check.

Manual verification notes

  • Seeded isolated roleplay data.
  • Verified compact and featured tracker cards can hide a field.
  • Reloaded and confirmed the hidden state persisted.
  • Unhid the fields, reloaded, and confirmed the cleared state persisted.
  • Confirmed the server stored and then cleared the matching hidden-field keys and locks.
  • Confirmed no browser console warnings or errors during this flow.

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 documentation or release metadata changes are needed because this refactor preserves existing behavior and public exports.

UI evidence (if applicable)

No visual change is intended.

Summary by CodeRabbit

  • Bug Fixes

    • Improved tracker field visibility and locking behavior for more consistent hide-mode interactions.
    • Corrected default portrait positioning when character-specific focus settings are unavailable.
    • Improved handling of tracker metadata and settings from different data formats.
  • Style

    • Refined tracker profile layouts, portrait sizing, card colors, borders, and visual layering.
    • Improved stat density selection so tracker panels adapt more cleanly to available space.

🔄 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/3815 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/19/2026 **Status:** ✅ Merged **Merged:** 7/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `tracker-panel-simplification` --- ### 📝 Commits (3) - [`7a06766`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7a0676671e0035f64be53d195da1e3d4c28153b2) refactor: simplify tracker panel plumbing - [`c286cc2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c286cc259ff8297ff2e7fc63d249af38c5f7bc5b) refactor: reuse tracker record validation - [`acd3603`](https://github.com/Pasta-Devs/Marinara-Engine/commit/acd360378a2f594a472125764dfb349e88940df7) Merge branch 'staging' into tracker-panel-simplification ### 📊 Changes **17 files changed** (+47 additions, -223 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+0 -9) 📝 `packages/client/src/features/tracker-panel/components/TrackerLockContext.tsx` (+1 -21) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+0 -3) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerCard.tsx` (+9 -5) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterPortrait.tsx` (+4 -4) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx` (+15 -10) 📝 `packages/client/src/features/tracker-panel/components/controls/TrackerProfileChrome.tsx` (+0 -20) 📝 `packages/client/src/features/tracker-panel/components/sections/CharacterTrackerPanel.tsx` (+0 -3) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+2 -2) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts` (+3 -4) 📝 `packages/client/src/features/tracker-panel/lib/sprite-expressions.ts` (+2 -2) 📝 `packages/client/src/features/tracker-panel/lib/tracker-metadata.ts` (+7 -16) 📝 `packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts` (+0 -11) 📝 `packages/client/src/features/tracker-panel/lib/tracker-profile-layout.ts` (+2 -12) 📝 `packages/client/src/features/tracker-panel/lib/tracker-profile-style.ts` (+0 -32) 📝 `packages/client/src/features/tracker-panel/lib/tracker-stat-layout.ts` (+2 -17) 📝 `packages/client/src/lib/tracker-card-colors.ts` (+0 -52) </details> ### 📄 Description ## Linked issue No linked issue. This is a behavior-preserving cleanup of inherited tracker-panel duplication and dead plumbing. ## Why this change - Reduce duplicate representations, dead API surface, and unnecessary prop plumbing in the tracker panel while preserving rendered behavior and persistence. ## What changed - Read hide mode from `TrackerLockContext` in compact and featured cards, removing the duplicate prop chain and dead callbacks. - Consolidate identical stat-density selection and metadata record parsing. - Remove unused tracker constants, profile CSS-variable forwarding, and the now-dead upstream style projections and calculations. ## 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` Validation performed by the implementing agent: - `pnpm check` passed. - The staged diff passed `git diff --cached --check`. ### Manual verification notes - Seeded isolated roleplay data. - Verified compact and featured tracker cards can hide a field. - Reloaded and confirmed the hidden state persisted. - Unhid the fields, reloaded, and confirmed the cleared state persisted. - Confirmed the server stored and then cleared the matching hidden-field keys and locks. - Confirmed no browser console warnings or errors during this flow. ## 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 documentation or release metadata changes are needed because this refactor preserves existing behavior and public exports. ## UI evidence (if applicable) No visual change is intended. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved tracker field visibility and locking behavior for more consistent hide-mode interactions. * Corrected default portrait positioning when character-specific focus settings are unavailable. * Improved handling of tracker metadata and settings from different data formats. * **Style** * Refined tracker profile layouts, portrait sizing, card colors, borders, and visual layering. * Improved stat density selection so tracker panels adapt more cleanly to available space. <!-- 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-23 04:07:13 +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#6115
No description provided.