[PR #5451] [MERGED] fix(ui): unify tracker and Chat Settings controls #6772

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5451
Author: @SpicyMarinara
Created: 8/23/2026
Status: ✅ Merged
Merged: 8/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5450-unified-tracker-settings-ui


📝 Commits (3)

  • 097726b chore: start unified tracker settings pass
  • f5d0452 fix(ui): unify tracker and settings controls
  • 9530590 fix: address tracker UI review findings

📊 Changes

29 files changed (+440 additions, -871 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/agents/ContextInjectionPanel.tsx (+1 -1)
📝 packages/client/src/components/agents/SecretPlotPanel.tsx (+22 -12)
📝 packages/client/src/components/chat/AgentSettingsControls.tsx (+9 -5)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatRoleplayPanels.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+65 -141)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+64 -149)
📝 packages/client/src/components/chat/RoleplayHUDPanels.tsx (+12 -226)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+18 -12)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+1 -1)
📝 packages/client/src/components/presets/PresetEditor.tsx (+2 -4)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+78 -13)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+3 -0)
📝 packages/client/src/features/chat-settings/sections/ChatNameSection.tsx (+3 -3)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+33 -12)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+13 -12)
📝 packages/client/src/features/tracker-panel/components/sections/InventoryTrackerPanel.tsx (+3 -2)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+4 -72)
➖ packages/client/src/features/tracker-panel/components/sections/PersonaInventoryRow.tsx (+0 -94)

...and 9 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5450

Why this change

Roleplay trackers and Chat Settings had accumulated duplicate inventory ownership, inconsistent ordering, stale toggle geometry, rounded badges, mismatched compact fields, and prompt editors without the shared macro/expand controls. Package-owned trackers also need stable host slots so installed UI keeps the same layout and theme vocabulary.

What changed

  • Uses the canonical tracker order in the Roleplay toolbar and Tracker Panel: World State, Persona Stats, Present Characters, Quests, Inventory, Memory Nags, Custom, other package trackers, and Beholder.
  • Removes Persona Stats' legacy inventory prompt, hidden update path, toolbar box, and Tracker Panel shelf; the standalone Inventory Tracker remains authoritative.
  • Gives package tracker slots chroma-aware host styling and preserves their panels even before a built-in tracker snapshot exists.
  • Replaces stale Group Chat and Connected Chats toggles with the shared Settings switch.
  • Uses shared expandable macro text fields for summary prompts, Author's Notes, Scenario Override, advanced parameter prompts, and package agent prompt fields.
  • Normalizes Chat Name, injection depth, numeric parameters, prompt-preset actions, Push Story, branch badges, Inventory chips, and Lorebook Keeper actions.
  • Adds the user-facing changelog entry and English localization updates.

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

Automated evidence

  • pnpm check — localization, formatting, lint, TypeScript, server build, and production client build passed.
  • Focused Playwright run — 6/6 desktop/mobile cases passed for unified switch geometry, Author's Notes macro/expand controls, and Summary prompt layering.
  • pnpm regression:prompt reached all affected macro, agent, and tracker cases successfully; the full aggregate remains red on unrelated staging fixture expectations documented in the PR discussion if needed.

Manual verification requested

  • Verify the complete toolbar and Tracker Panel ordering with every listed tracker enabled.
  • Verify Memory Nag and Beholder installed from the companion package PR.
  • Spot-check light/dark theme and compact mobile tracker controls.

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
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Automated desktop and mobile browser coverage is included above. Manual visual verification remains unchecked for the maintainer.

Summary by CodeRabbit

  • New Features
    • Tracker panels now display Memory Nag, Beholder, and other trackers in a consistent order across devices.
    • Inventory tracking is presented separately from persona details, with newly acquired items recorded more reliably.
    • Text editors support expanded macro editing, improved accessibility labels, and clearer validation states.
  • Bug Fixes
    • Preserved draft edits more reliably when leaving or closing expanded editors.
    • Standardized tracker and chat settings ordering for existing saved layouts.
  • Style
    • Refined controls, badges, buttons, icons, spacing, and corner rounding throughout chat and tracker panels.

🔄 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/5451 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/23/2026 **Status:** ✅ Merged **Merged:** 8/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5450-unified-tracker-settings-ui` --- ### 📝 Commits (3) - [`097726b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/097726b8fda2c5eab657083d4458f411ef2fd6bf) chore: start unified tracker settings pass - [`f5d0452`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f5d04526c3ef32b86d171ca8fef209efe14e751d) fix(ui): unify tracker and settings controls - [`9530590`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9530590b6ac2435c32f199e610e73c3d87e6cdcc) fix: address tracker UI review findings ### 📊 Changes **29 files changed** (+440 additions, -871 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/agents/ContextInjectionPanel.tsx` (+1 -1) 📝 `packages/client/src/components/agents/SecretPlotPanel.tsx` (+22 -12) 📝 `packages/client/src/components/chat/AgentSettingsControls.tsx` (+9 -5) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatRoleplayPanels.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+65 -141) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+64 -149) 📝 `packages/client/src/components/chat/RoleplayHUDPanels.tsx` (+12 -226) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+18 -12) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+1 -1) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+2 -4) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+78 -13) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+3 -0) 📝 `packages/client/src/features/chat-settings/sections/ChatNameSection.tsx` (+3 -3) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+33 -12) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+13 -12) 📝 `packages/client/src/features/tracker-panel/components/sections/InventoryTrackerPanel.tsx` (+3 -2) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+4 -72) ➖ `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryRow.tsx` (+0 -94) _...and 9 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5450 ## Why this change Roleplay trackers and Chat Settings had accumulated duplicate inventory ownership, inconsistent ordering, stale toggle geometry, rounded badges, mismatched compact fields, and prompt editors without the shared macro/expand controls. Package-owned trackers also need stable host slots so installed UI keeps the same layout and theme vocabulary. ## What changed - Uses the canonical tracker order in the Roleplay toolbar and Tracker Panel: World State, Persona Stats, Present Characters, Quests, Inventory, Memory Nags, Custom, other package trackers, and Beholder. - Removes Persona Stats' legacy inventory prompt, hidden update path, toolbar box, and Tracker Panel shelf; the standalone Inventory Tracker remains authoritative. - Gives package tracker slots chroma-aware host styling and preserves their panels even before a built-in tracker snapshot exists. - Replaces stale Group Chat and Connected Chats toggles with the shared Settings switch. - Uses shared expandable macro text fields for summary prompts, Author's Notes, Scenario Override, advanced parameter prompts, and package agent prompt fields. - Normalizes Chat Name, injection depth, numeric parameters, prompt-preset actions, Push Story, branch badges, Inventory chips, and Lorebook Keeper actions. - Adds the user-facing changelog entry and English localization updates. ## 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` ### Automated evidence - `pnpm check` — localization, formatting, lint, TypeScript, server build, and production client build passed. - Focused Playwright run — 6/6 desktop/mobile cases passed for unified switch geometry, Author's Notes macro/expand controls, and Summary prompt layering. - `pnpm regression:prompt` reached all affected macro, agent, and tracker cases successfully; the full aggregate remains red on unrelated staging fixture expectations documented in the PR discussion if needed. ### Manual verification requested - Verify the complete toolbar and Tracker Panel ordering with every listed tracker enabled. - Verify Memory Nag and Beholder installed from the companion package PR. - Spot-check light/dark theme and compact mobile tracker controls. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence Automated desktop and mobile browser coverage is included above. Manual visual verification remains unchecked for the maintainer. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Tracker panels now display Memory Nag, Beholder, and other trackers in a consistent order across devices. * Inventory tracking is presented separately from persona details, with newly acquired items recorded more reliably. * Text editors support expanded macro editing, improved accessibility labels, and clearer validation states. * **Bug Fixes** * Preserved draft edits more reliably when leaving or closing expanded editors. * Standardized tracker and chat settings ordering for existing saved layouts. * **Style** * Refined controls, badges, buttons, icons, spacing, and corner rounding throughout chat and tracker panels. <!-- 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:13:34 +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#6772
No description provided.