[PR #3849] [MERGED] Simplify tracker panel color plumbing #6127

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

📋 Pull Request Information

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

Base: staging ← Head: chore/tracker-panel-simplification


📝 Commits (1)

  • 53b1265 refactor: simplify tracker panel color plumbing

📊 Changes

13 files changed (+92 additions, -129 deletions)

View changed files

📝 packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx (+23 -31)
📝 packages/client/src/components/ui/TrackerCardColorControls.tsx (+19 -23)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+0 -2)
📝 packages/client/src/features/tracker-panel/components/TrackerLockContext.tsx (+1 -1)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+1 -2)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerField.tsx (+1 -1)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts (+7 -9)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts (+2 -5)
📝 packages/client/src/features/tracker-panel/lib/tracker-metadata.ts (+17 -20)
📝 packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts (+8 -6)
📝 packages/client/src/features/tracker-panel/lib/tracker-profile-style.ts (+7 -15)
📝 packages/client/src/features/tracker-panel/lib/world-custom-field-icons.tsx (+1 -1)
📝 packages/client/src/lib/tracker-card-colors.ts (+5 -13)

📄 Description

Linked issue

Not linked. The contributor explicitly waived the issue-first step for this focused maintenance refactor.

Why this change

  • Reduce accumulated tracker-panel and tracker-card color plumbing now that the behavior has stabilized.
  • Keep live-state reconciliation and persisted compatibility behavior intact while making the data flow easier to follow.

What changed

  • Consolidated character lookup construction and removed redundant tracker model fields and prop forwarding.
  • Simplified tracker-card color controls, preview identity, saved-config serialization, finish data, and rendering projections.
  • Narrowed the preview-key type boundary and removed one-use aliases, dead layers, and unnecessary exports.
  • Retained legacy tint migration, portrait merging, mutation reconciliation, lock normalization, rerun flushing, and section routing.

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

pnpm check passed locally on the final branch, including workspace lint/type checks and production builds.

Manual verification notes

  • Started the client from this exact worktree on a separate port and verified the Vite process path before testing.
  • Exercised tracker-card Material save and revert, then restored the persisted value to 50.
  • Switched between persona and character targets and between chats.
  • Verified unsaved preview cleanup across a full reload/remount.
  • Switched Dark → Light → Dark and Chat colors → Custom → Default → Revert.
  • Confirmed no browser warnings or errors during the pass.
  • Mobile viewport, container, empty-state, and forced error-path checks were not run.

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 is a behavior-preserving internal refactor.

UI evidence (if applicable)

No screenshots included because the refactor has no intended visual change. The interactive behavior was verified manually as described above.

Summary by CodeRabbit

  • New Features

    • Improved tracker card color previews, saving, and reverting for more consistent results.
    • Streamlined character matching for names and aliases.
    • Avatar-generation settings now stay synchronized with tracker settings.
  • Bug Fixes

    • Refined tracker card finishes, portrait controls, and background styling for more predictable visual results.
    • Improved lookup behavior when displaying character sprites and metadata.

🔄 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/3849 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/20/2026 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/tracker-panel-simplification` --- ### 📝 Commits (1) - [`53b1265`](https://github.com/Pasta-Devs/Marinara-Engine/commit/53b1265db7420269883e233f837d27dc75d40aa8) refactor: simplify tracker panel color plumbing ### 📊 Changes **13 files changed** (+92 additions, -129 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx` (+23 -31) 📝 `packages/client/src/components/ui/TrackerCardColorControls.tsx` (+19 -23) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+0 -2) 📝 `packages/client/src/features/tracker-panel/components/TrackerLockContext.tsx` (+1 -1) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+1 -2) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerField.tsx` (+1 -1) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-panel-model.ts` (+7 -9) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts` (+2 -5) 📝 `packages/client/src/features/tracker-panel/lib/tracker-metadata.ts` (+17 -20) 📝 `packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts` (+8 -6) 📝 `packages/client/src/features/tracker-panel/lib/tracker-profile-style.ts` (+7 -15) 📝 `packages/client/src/features/tracker-panel/lib/world-custom-field-icons.tsx` (+1 -1) 📝 `packages/client/src/lib/tracker-card-colors.ts` (+5 -13) </details> ### 📄 Description ## Linked issue Not linked. The contributor explicitly waived the issue-first step for this focused maintenance refactor. ## Why this change - Reduce accumulated tracker-panel and tracker-card color plumbing now that the behavior has stabilized. - Keep live-state reconciliation and persisted compatibility behavior intact while making the data flow easier to follow. ## What changed - Consolidated character lookup construction and removed redundant tracker model fields and prop forwarding. - Simplified tracker-card color controls, preview identity, saved-config serialization, finish data, and rendering projections. - Narrowed the preview-key type boundary and removed one-use aliases, dead layers, and unnecessary exports. - Retained legacy tint migration, portrait merging, mutation reconciliation, lock normalization, rerun flushing, and section routing. ## 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` `pnpm check` passed locally on the final branch, including workspace lint/type checks and production builds. ### Manual verification notes - Started the client from this exact worktree on a separate port and verified the Vite process path before testing. - Exercised tracker-card Material save and revert, then restored the persisted value to 50. - Switched between persona and character targets and between chats. - Verified unsaved preview cleanup across a full reload/remount. - Switched Dark → Light → Dark and Chat colors → Custom → Default → Revert. - Confirmed no browser warnings or errors during the pass. - Mobile viewport, container, empty-state, and forced error-path checks were not run. ## 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 is a behavior-preserving internal refactor. ## UI evidence (if applicable) No screenshots included because the refactor has no intended visual change. The interactive behavior was verified manually as described above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved tracker card color previews, saving, and reverting for more consistent results. * Streamlined character matching for names and aliases. * Avatar-generation settings now stay synchronized with tracker settings. * **Bug Fixes** * Refined tracker card finishes, portrait controls, and background styling for more predictable visual results. * Improved lookup behavior when displaying character sprites and metadata. <!-- 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:20 +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#6127
No description provided.