[PR #3776] [MERGED] Improve tracker card appearance settings and stat layout #6097

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

📋 Pull Request Information

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

Base: staging ← Head: feat/tracker-card-appearance


📝 Commits (4)

  • 7cf19a5 feat: improve tracker card appearance
  • 05e1e9b fix: serialize tracker card updates
  • 8265ae8 fix: skip persona color snapshots
  • 7727c93 Merge branch 'staging' into feat/tracker-card-appearance

📊 Changes

12 files changed (+446 additions, -326 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx (+65 -188)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+9 -3)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+5 -0)
📝 packages/client/src/features/tracker-panel/components/controls/StatList.tsx (+18 -25)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+31 -50)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts (+23 -1)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts (+27 -4)
📝 packages/client/src/features/tracker-panel/lib/sprite-expressions.ts (+6 -1)
📝 packages/client/src/hooks/use-characters.ts (+44 -44)
📝 packages/client/src/lib/tracker-card-colors.ts (+42 -1)
📝 packages/server/src/routes/characters.routes.ts (+175 -9)

📄 Description

Linked issue

Closes #3777

Why this change

  • Character and Persona tracker-card appearance settings could fail to save and did not update the card preview until after saving.
  • Tracker stat rows needed a connected layout and a clearer empty-slot treatment.

What changed

  • Unified Character and Persona tracker-card color editing around one preview, save, and revert flow.
  • Preserved character-card and portrait data while applying focused tracker-card appearance updates.
  • Updated tracker stat rendering to connect paired bars and show aligned diamond placeholders for unused slots.
  • Tightened tracker sprite lookup and expression handling around the active card.
  • Added an Unreleased changelog entry for the restored save and live-preview 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 completed successfully after rebasing onto the latest origin/staging.
  • In Chrome, changed Persona tracker-card colors and confirmed the card preview updated before save; verified Revert restored the saved value and Save persisted through reload.
  • Repeated the live-preview, Save, reload, and restore flow for a Character.
  • Confirmed HP and Composure share the connected first row, Wine occupies the next row, and four outlined diamonds align in the unused filler area.
  • Confirmed no browser-console errors during these checks.
  • Persona portrait pagehide/drag persistence was not exercised because the available Personas had no avatar and the drag UI was not rendered.

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)

CHANGELOG.md was updated under Unreleased.

UI evidence (if applicable)

image

Summary by CodeRabbit

  • Bug Fixes
    • Restored Character and Persona tracker-card color settings.
    • Color and portrait appearance changes now update previews immediately and persist after saving.
    • Improved portrait positioning saves and tracker-card color updates.
    • Tracker panels now correctly reflect colors for present characters.
    • Refined stat-list placeholder visuals for more consistent layouts.
  • Documentation
    • Added the tracker-card color restoration fix to the changelog.

Summary by CodeRabbit

  • Bug Fixes

    • Restored Character and Persona tracker-card color previews so appearance changes update immediately and persist after saving.
    • Improved portrait-focus saving, including pending changes during navigation or page closure.
    • Prevented tracker-card updates from overwriting existing portrait settings.
    • Improved color previews for characters currently displayed in the tracker.
  • Style

    • Refined empty stat-column placeholders for a cleaner, more consistent appearance.

🔄 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/3776 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/18/2026 **Status:** ✅ Merged **Merged:** 7/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/tracker-card-appearance` --- ### 📝 Commits (4) - [`7cf19a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7cf19a5789ab6a7ffd9f3713d04e9ef3f82960be) feat: improve tracker card appearance - [`05e1e9b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/05e1e9b0bde3900777a22124771912edf742f914) fix: serialize tracker card updates - [`8265ae8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8265ae81bd81ef4614bf8590c4537e4c43ba58f8) fix: skip persona color snapshots - [`7727c93`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7727c933907f2aae9f29a3f57db410d5063d1cd8) Merge branch 'staging' into feat/tracker-card-appearance ### 📊 Changes **12 files changed** (+446 additions, -326 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx` (+65 -188) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+9 -3) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+5 -0) 📝 `packages/client/src/features/tracker-panel/components/controls/StatList.tsx` (+18 -25) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+31 -50) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts` (+23 -1) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts` (+27 -4) 📝 `packages/client/src/features/tracker-panel/lib/sprite-expressions.ts` (+6 -1) 📝 `packages/client/src/hooks/use-characters.ts` (+44 -44) 📝 `packages/client/src/lib/tracker-card-colors.ts` (+42 -1) 📝 `packages/server/src/routes/characters.routes.ts` (+175 -9) </details> ### 📄 Description ## Linked issue Closes #3777 ## Why this change - Character and Persona tracker-card appearance settings could fail to save and did not update the card preview until after saving. - Tracker stat rows needed a connected layout and a clearer empty-slot treatment. ## What changed - Unified Character and Persona tracker-card color editing around one preview, save, and revert flow. - Preserved character-card and portrait data while applying focused tracker-card appearance updates. - Updated tracker stat rendering to connect paired bars and show aligned diamond placeholders for unused slots. - Tightened tracker sprite lookup and expression handling around the active card. - Added an Unreleased changelog entry for the restored save and live-preview 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 completed successfully after rebasing onto the latest origin/staging. - In Chrome, changed Persona tracker-card colors and confirmed the card preview updated before save; verified Revert restored the saved value and Save persisted through reload. - Repeated the live-preview, Save, reload, and restore flow for a Character. - Confirmed HP and Composure share the connected first row, Wine occupies the next row, and four outlined diamonds align in the unused filler area. - Confirmed no browser-console errors during these checks. - Persona portrait pagehide/drag persistence was not exercised because the available Personas had no avatar and the drag UI was not rendered. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG.md was updated under Unreleased. ## UI evidence (if applicable) <img width="611" height="109" alt="image" src="https://github.com/user-attachments/assets/422c95dd-9049-4b7f-b150-bfd9d4f53d2a" /> ## Summary by CodeRabbit * **Bug Fixes** * Restored Character and Persona tracker-card color settings. * Color and portrait appearance changes now update previews immediately and persist after saving. * Improved portrait positioning saves and tracker-card color updates. * Tracker panels now correctly reflect colors for present characters. * Refined stat-list placeholder visuals for more consistent layouts. * **Documentation** * Added the tracker-card color restoration fix to the changelog. <!-- end of auto-generated comment: release notes by coderabbit.ai --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Restored Character and Persona tracker-card color previews so appearance changes update immediately and persist after saving. - Improved portrait-focus saving, including pending changes during navigation or page closure. - Prevented tracker-card updates from overwriting existing portrait settings. - Improved color previews for characters currently displayed in the tracker. - **Style** - Refined empty stat-column placeholders for a cleaner, more consistent appearance. <!-- 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:03 +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#6097
No description provided.