[PR #878] [MERGED] Add tracker card color customization settings #4814

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

📋 Pull Request Information

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

Base: staging ← Head: polish/tracker-card-color-sources


📝 Commits (10+)

  • 4886c82 Add tracker card color controls with live preview
  • 5c18f49 Centralize tracker skin finish computations
  • 0a45322 Add paint opacity and blend mode controls to tracker cards
  • 06d05d3 Add configurable portrait stage background for tracker cards
  • 3981ddb Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources
  • 5560c96 Add light and rim layers to portrait stage backdrop
  • 6e291fe Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources
  • 2e46002 Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources
  • 47408cb Extract paint opacity, improve persona import
  • 80e21f4 Merge remote-tracking branch 'origin/staging' into polish/tracker-card-color-sources

📊 Changes

21 files changed (+2149 additions, -215 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+57 -2)
📝 packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerCard.tsx (+15 -13)
📝 packages/client/src/components/layout/tracker-data-sidebar/FeaturedCharacterTrackerCard.tsx (+31 -29)
📝 packages/client/src/components/layout/tracker-data-sidebar/PersonaTrackerPanel.tsx (+27 -23)
📝 packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.controls.tsx (+96 -33)
📝 packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.helpers.ts (+194 -75)
📝 packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.stats.tsx (+12 -8)
📝 packages/client/src/components/modals/ImportPersonaModal.tsx (+26 -7)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+54 -0)
📝 packages/client/src/components/ui/ColorPicker.tsx (+52 -21)
➕ packages/client/src/components/ui/TrackerCardColorControls.tsx (+701 -0)
📝 packages/client/src/hooks/use-characters.ts (+2 -0)
➕ packages/client/src/lib/tracker-card-colors.ts (+824 -0)
📝 packages/server/src/db/migrate.ts (+6 -0)
📝 packages/server/src/db/schema/characters.ts (+2 -0)
📝 packages/server/src/routes/backup.routes.ts (+4 -0)
📝 packages/server/src/routes/characters.routes.ts (+1 -0)
📝 packages/server/src/services/import/marinara.importer.ts (+4 -0)
📝 packages/server/src/services/storage/characters.storage.ts (+5 -0)
📝 packages/server/test/db-migrations.test.ts (+7 -4)

...and 1 more files

📄 Description

Linked issue

No linked issue yet; this came from direct tracker-card customization work.

Why this change

  • Tracker cards used to be limited to the character or persona profile colors, so the card frame, portrait area, inventory slot, and stat surfaces had to inherit from colors that were primarily meant for chat names, dialogue, and message bubbles.
  • Users need tracker cards to have their own presentation controls so a character/persona can keep their chat identity while tuning the tracker card separately for readability, mood, and contrast.

What changed

  • Added persisted tracker-card color settings for characters and personas.
  • Added tracker-card color source modes: default theme colors, existing chat/profile colors, or custom tracker-card paint.
  • Added custom paint controls for display, accent, and surface colors, including per-layer strength/opacity.
  • Added portrait stage background options for Ambient, Spotlight, Haze, and Plain tracker-card portraits.
  • Added card finish controls for tint, glow, and contrast, with live preview feedback.
  • Applied the new tracker-card color config to character tracker cards, featured character tracker cards, and persona tracker panels.
  • Wired the config through character storage, backup/import paths, persona import, shared types, and database migration defaults.
  • Polished the editor UI: moved the color explanation above tracker-card sections, made tracker-card sections collapsible, compacted the grouped controls, and made solid color picking more discoverable.

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

  • Ran pnpm check locally.
  • Ran a Luka-style Chromium browser pass against the local app.
  • Checked Persona and Character color editors on desktop width.
  • Checked the Persona tracker-card controls at a 390px mobile viewport.
  • Verified tracker sections expand/collapse, Source/Stage selections do not repeat in section corners, Finish percent labels do not collide, Custom paint color pickers remain inside the viewport, and the browser console reported 0 errors after the backend was running.

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 docs or release files were changed.

UI evidence (if applicable)

Browser-pass evidence was reviewed locally; add final before/after screenshots during human PR review if desired.

Summary by CodeRabbit

  • New Features

    • Added tracker card color configuration to character and persona editors with multiple color modes and customization options.
    • Support for portrait stage background selection and finish texture controls (tint, glow, contrast).
    • Enhanced import/export workflows to preserve tracker card color settings.
  • Style

    • Updated tracker interface styling with refined color variables for improved visual consistency and theming.

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/878 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/15/2026 **Status:** ✅ Merged **Merged:** 5/15/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `staging` ← **Head:** `polish/tracker-card-color-sources` --- ### 📝 Commits (10+) - [`4886c82`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4886c826fee0e28a83fe2e6ddc581e5d393b2b46) Add tracker card color controls with live preview - [`5c18f49`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c18f49dbf0169c75b1b8e2e3d580943dd0a8d02) Centralize tracker skin finish computations - [`0a45322`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0a45322400f5eba3fae7f8df8104fa8ad8e9fbd0) Add paint opacity and blend mode controls to tracker cards - [`06d05d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06d05d33cc64e716a7e077b7648e7624557d62c4) Add configurable portrait stage background for tracker cards - [`3981ddb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3981ddb85dcfc1ebe11365f50e724f6aac8836bb) Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources - [`5560c96`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5560c96fc716536de26c3e2e993eeb8a7c4fb37d) Add light and rim layers to portrait stage backdrop - [`6e291fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e291fe38957865fe4af245f63b7c6d38848cfd9) Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources - [`2e46002`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e4600294ad299ba2ff083c05552b0b0864b1c24) Merge remote-tracking branch 'origin/main' into polish/tracker-card-color-sources - [`47408cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47408cb694b4150153050c8c8a969d205a0fec02) Extract paint opacity, improve persona import - [`80e21f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80e21f45bf33649a9508f7f3da2f8031de60516c) Merge remote-tracking branch 'origin/staging' into polish/tracker-card-color-sources ### 📊 Changes **21 files changed** (+2149 additions, -215 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+57 -2) 📝 `packages/client/src/components/layout/tracker-data-sidebar/CharacterTrackerCard.tsx` (+15 -13) 📝 `packages/client/src/components/layout/tracker-data-sidebar/FeaturedCharacterTrackerCard.tsx` (+31 -29) 📝 `packages/client/src/components/layout/tracker-data-sidebar/PersonaTrackerPanel.tsx` (+27 -23) 📝 `packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.controls.tsx` (+96 -33) 📝 `packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.helpers.ts` (+194 -75) 📝 `packages/client/src/components/layout/tracker-data-sidebar/tracker-data-sidebar.stats.tsx` (+12 -8) 📝 `packages/client/src/components/modals/ImportPersonaModal.tsx` (+26 -7) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+54 -0) 📝 `packages/client/src/components/ui/ColorPicker.tsx` (+52 -21) ➕ `packages/client/src/components/ui/TrackerCardColorControls.tsx` (+701 -0) 📝 `packages/client/src/hooks/use-characters.ts` (+2 -0) ➕ `packages/client/src/lib/tracker-card-colors.ts` (+824 -0) 📝 `packages/server/src/db/migrate.ts` (+6 -0) 📝 `packages/server/src/db/schema/characters.ts` (+2 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+4 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+1 -0) 📝 `packages/server/src/services/import/marinara.importer.ts` (+4 -0) 📝 `packages/server/src/services/storage/characters.storage.ts` (+5 -0) 📝 `packages/server/test/db-migrations.test.ts` (+7 -4) _...and 1 more files_ </details> ### 📄 Description ## Linked issue No linked issue yet; this came from direct tracker-card customization work. ## Why this change - Tracker cards used to be limited to the character or persona profile colors, so the card frame, portrait area, inventory slot, and stat surfaces had to inherit from colors that were primarily meant for chat names, dialogue, and message bubbles. - Users need tracker cards to have their own presentation controls so a character/persona can keep their chat identity while tuning the tracker card separately for readability, mood, and contrast. ## What changed - Added persisted tracker-card color settings for characters and personas. - Added tracker-card color source modes: default theme colors, existing chat/profile colors, or custom tracker-card paint. - Added custom paint controls for display, accent, and surface colors, including per-layer strength/opacity. - Added portrait stage background options for Ambient, Spotlight, Haze, and Plain tracker-card portraits. - Added card finish controls for tint, glow, and contrast, with live preview feedback. - Applied the new tracker-card color config to character tracker cards, featured character tracker cards, and persona tracker panels. - Wired the config through character storage, backup/import paths, persona import, shared types, and database migration defaults. - Polished the editor UI: moved the color explanation above tracker-card sections, made tracker-card sections collapsible, compacted the grouped controls, and made solid color picking more discoverable. ## 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 - Ran `pnpm check` locally. - Ran a Luka-style Chromium browser pass against the local app. - Checked Persona and Character color editors on desktop width. - Checked the Persona tracker-card controls at a 390px mobile viewport. - Verified tracker sections expand/collapse, Source/Stage selections do not repeat in section corners, Finish percent labels do not collide, Custom paint color pickers remain inside the viewport, and the browser console reported 0 errors after the backend was running. ## 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 docs or release files were changed. ## UI evidence (if applicable) Browser-pass evidence was reviewed locally; add final before/after screenshots during human PR review if desired. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added tracker card color configuration to character and persona editors with multiple color modes and customization options. * Support for portrait stage background selection and finish texture controls (tint, glow, contrast). * Enhanced import/export workflows to preserve tracker card color settings. * **Style** * Updated tracker interface styling with refined color variables for improved visual consistency and theming. <!-- review_stack_entry_start --> [![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/878) <!-- review_stack_entry_end --> <!-- 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:52 +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#4814
No description provided.