[PR #4241] [MERGED] feat(tracker): add radial stat gauges and icons #6298

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

📋 Pull Request Information

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

Base: staging ← Head: circular-stat-bars


📝 Commits (4)

  • abbceef feat(tracker): add radial stat gauges and icons
  • 4ca77b4 fix(tracker): address radial stat review findings
  • 8c80d32 docs: summarize radial tracker stats
  • 8d9f2f5 Merge branch 'staging' into circular-stat-bars

📊 Changes

40 files changed (+2382 additions, -1343 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+58 -2)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+71 -71)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+53 -12)
➕ packages/client/src/components/ui/StatIconPicker.tsx (+309 -0)
➕ packages/client/src/components/ui/stat-icons.tsx (+224 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+16 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+10 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+90 -38)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterThoughtBubbles.tsx (+30 -118)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerAvatar.tsx (+16 -18)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerCard.tsx (+126 -197)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerField.tsx (+12 -35)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterFields.tsx (+25 -113)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterNameplate.tsx (+25 -31)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterPortrait.tsx (+37 -46)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx (+133 -123)
➕ packages/client/src/features/tracker-panel/components/controls/StatGauge.tsx (+252 -0)
📝 packages/client/src/features/tracker-panel/components/controls/StatList.tsx (+193 -214)
📝 packages/client/src/features/tracker-panel/components/sections/CharacterTrackerPanel.tsx (+49 -38)

...and 20 more files

📄 Description

Linked issue

Closes #4257\n\nThe tracking issue was filed before merge to preserve the contribution rationale.

Why this change

  • Tracker stats need a more intentional compact presentation, particularly on Persona and featured-character cards.
  • Stat icons and radial gauges make compact cards easier to scan without changing prompt or generation behavior.

What changed

  • Added radial stat gauges with percentage readouts, click-to-edit value/max fields, restrained low-stat tinting, and a persisted bars/radial display toggle.
  • Added a shared stat-icon catalog and picker for Persona profiles, Character profiles, and chat-local tracker stats.
  • Kept icon metadata in UI/storage contracts so dynamically assigned tracker stats can retain icons without entering generation prompts.
  • Reworked featured-character card composition, including a dedicated thought row and responsive stat spacing for sparse and dense layouts.
  • Consolidated tracker color, icon, layout, and field controls while preserving the regular stat-bar mode.

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

  • Iterated Persona and Character cards with sparse and dense stat sets, regular and radial modes, icon changes, percentage display, and low-stat tinting.
  • Ran branch-focused Playwright coverage across desktop and mobile before publication, including display-mode persistence, icon persistence/rollback, mobile bounds, overflow, tint clipping, and chat-preset overrides.
  • After rebasing onto current staging, pnpm check passed and the split-stack Tracker run completed without a Vite crash under Node's --no-maglev workaround. Two applicable checks passed and one viewport-specific check skipped.
  • The existing desktop gutter test still expects No tracker data yet. while unchanged current-staging logic renders No enabled tracker panels. when the test activates zero agents; that unrelated stale assertion was left unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

image image

Summary by CodeRabbit

  • New Features
    • Choose custom icons for character and persona stats, with search and profile-icon inheritance options.
    • Switch tracker statistics between horizontal bars and circular gauges.
    • Edit gauge values, maximums, and percentages directly in the tracker.
    • Stat icons remain correctly assigned when stats are renamed or removed.
  • UI Improvements
    • Simplified tracker editing controls for thoughts, character details, custom fields, avatars, and featured profiles.
    • Refined thought-bubble sizing, positioning, and presentation.

🔄 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/4241 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `circular-stat-bars` --- ### 📝 Commits (4) - [`abbceef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abbceefc2bbe435c611d2b1613d210767b913423) feat(tracker): add radial stat gauges and icons - [`4ca77b4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ca77b42332dfde9c6ed1844500840484cf29afe) fix(tracker): address radial stat review findings - [`8c80d32`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8c80d3214ed0f13fbe7e9c3c5706d19f43f264f0) docs: summarize radial tracker stats - [`8d9f2f5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8d9f2f5bd905f6d081ef057d32a8324e8147fe1a) Merge branch 'staging' into circular-stat-bars ### 📊 Changes **40 files changed** (+2382 additions, -1343 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+58 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+71 -71) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+53 -12) ➕ `packages/client/src/components/ui/StatIconPicker.tsx` (+309 -0) ➕ `packages/client/src/components/ui/stat-icons.tsx` (+224 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+16 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+10 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+90 -38) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterThoughtBubbles.tsx` (+30 -118) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerAvatar.tsx` (+16 -18) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerCard.tsx` (+126 -197) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterTrackerField.tsx` (+12 -35) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterFields.tsx` (+25 -113) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterNameplate.tsx` (+25 -31) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterPortrait.tsx` (+37 -46) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx` (+133 -123) ➕ `packages/client/src/features/tracker-panel/components/controls/StatGauge.tsx` (+252 -0) 📝 `packages/client/src/features/tracker-panel/components/controls/StatList.tsx` (+193 -214) 📝 `packages/client/src/features/tracker-panel/components/sections/CharacterTrackerPanel.tsx` (+49 -38) _...and 20 more files_ </details> ### 📄 Description ## Linked issue Closes #4257\n\nThe tracking issue was filed before merge to preserve the contribution rationale. ## Why this change - Tracker stats need a more intentional compact presentation, particularly on Persona and featured-character cards. - Stat icons and radial gauges make compact cards easier to scan without changing prompt or generation behavior. ## What changed - Added radial stat gauges with percentage readouts, click-to-edit value/max fields, restrained low-stat tinting, and a persisted bars/radial display toggle. - Added a shared stat-icon catalog and picker for Persona profiles, Character profiles, and chat-local tracker stats. - Kept icon metadata in UI/storage contracts so dynamically assigned tracker stats can retain icons without entering generation prompts. - Reworked featured-character card composition, including a dedicated thought row and responsive stat spacing for sparse and dense layouts. - Consolidated tracker color, icon, layout, and field controls while preserving the regular stat-bar mode. ## 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` ### Manual verification notes - Iterated Persona and Character cards with sparse and dense stat sets, regular and radial modes, icon changes, percentage display, and low-stat tinting. - Ran branch-focused Playwright coverage across desktop and mobile before publication, including display-mode persistence, icon persistence/rollback, mobile bounds, overflow, tint clipping, and chat-preset overrides. - After rebasing onto current `staging`, `pnpm check` passed and the split-stack Tracker run completed without a Vite crash under Node's `--no-maglev` workaround. Two applicable checks passed and one viewport-specific check skipped. - The existing desktop gutter test still expects `No tracker data yet.` while unchanged current-staging logic renders `No enabled tracker panels.` when the test activates zero agents; that unrelated stale assertion was left unchanged. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <img width="525" height="447" alt="image" src="https://github.com/user-attachments/assets/65407ff7-09b9-4504-8092-a92d3262bcf5" /> <img width="522" height="537" alt="image" src="https://github.com/user-attachments/assets/0b107a05-1854-4813-9307-eb616baea24b" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Choose custom icons for character and persona stats, with search and profile-icon inheritance options. * Switch tracker statistics between horizontal bars and circular gauges. * Edit gauge values, maximums, and percentages directly in the tracker. * Stat icons remain correctly assigned when stats are renamed or removed. * **UI Improvements** * Simplified tracker editing controls for thoughts, character details, custom fields, avatars, and featured profiles. * Refined thought-bubble sizing, positioning, and presentation. <!-- 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:09:04 +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#6298
No description provided.