[PR #4202] [MERGED] Add CYOA quick toggle and tracker bootstrap panels #6279

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

📋 Pull Request Information

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

Base: staging ← Head: feat/cyoa-tracker-improvements


📝 Commits (5)

  • 4ec3fcc Add CYOA post and impersonate toggle
  • 093c12a Show active tracker panels before first run
  • bae52ba Guard tracker bootstrap against load failures
  • 0fdb1ed Handle tracker card load failures
  • d816350 Merge branch 'staging' into feat/cyoa-tracker-improvements

📊 Changes

9 files changed (+125 additions, -37 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/chat/CyoaChoices.tsx (+42 -8)
📝 packages/client/src/components/layout/AppShell.tsx (+4 -2)
📝 packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx (+13 -2)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+29 -10)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-game-state.ts (+31 -12)
📝 packages/client/src/hooks/use-game-state-patcher.ts (+1 -1)
📝 packages/client/src/localization/locales/en.json (+3 -1)
📝 packages/client/src/localization/locales/ko.json (+0 -1)

📄 Description

Linked issue

Closes #4201

Why this change

  • Make CYOA actions quicker to switch between a normal post and an impersonation request.
  • Keep CYOA choices visually centered while respecting the tracker overlay.
  • Let users bootstrap tracker data before the tracker agent has produced its first result.

What changed

  • Added a quick Post/Impersonate toggle to CYOA actions.
  • Applied symmetric tracker-safe spacing to CYOA controls, choices, and editor content.
  • Show active tracker agents as empty, editable panels before their first successful run.
  • Kept failed tracker loads non-editable and added an explicit retry state.
  • Updated the changelog and English/Korean UI strings.

Validation

  • pnpm check passes locally
  • Container build/runtime still works (if touching Docker, startup, networking, or runtime dependencies)
  • Ran the app and exercised the changed behavior
  • Checked relevant edge cases and failure paths
  • Above manual checks were performed on the final diff
  • Read and followed CONTRIBUTING.md

Automated results:

  • pnpm check passed locally (one pre-existing NoodleHome.tsx hook warning; zero errors).
  • git diff --check origin/staging...HEAD passed.
  • pnpm smoke:ui did not start its tests because Playwright timed out waiting 180 seconds for the development web server. No smoke assertions ran.

Manual verification notes

  • Verified the CYOA Post/Impersonate toggle sends through the selected path.
  • Verified CYOA choices remain centered and do not render beneath the tracker panel.
  • Activated a tracker agent with no existing tracker data and verify its empty panel opens and accepts bootstrap data.

Docs and release impact

  • No docs changes needed
  • Updated docs (README.md, android/README.md, CONTRIBUTING.md, docs/CONFIGURATION.md, docs/TROUBLESHOOTING.md, and/or docs/FAQ.md)
  • Translated docs were updated, or a follow-up issue is linked
  • Version/release files are synchronized (package.json files, packages/shared/src/constants/defaults.ts, installer files, and android/app/build.gradle)

Updated CHANGELOG.md; no documentation pages or version files changed.

UI evidence (if applicable)

Not attached. Manual browser verification remains for the contributor.

Summary by CodeRabbit

  • New Features

    • Added a Post/Impersonate toggle for CYOA choices.
    • Tracker panels now appear as soon as their associated agents become active, allowing earlier data entry.
    • Added clearer tracker loading states and a retry option for failed loads.
  • Bug Fixes

    • Improved tracker panel positioning to prevent overlap with surrounding interface elements.
    • Updated empty states to distinguish between loading, errors, and unavailable tracker panels.
    • Standardized control disabling while actions are processing.

🔄 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/4202 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/cyoa-tracker-improvements` --- ### 📝 Commits (5) - [`4ec3fcc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ec3fcc68ff4563a41f31b6a3f6f8039e4860b66) Add CYOA post and impersonate toggle - [`093c12a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/093c12a78c2ce23699ed218a5a01c6aed22ce6de) Show active tracker panels before first run - [`bae52ba`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bae52ba636cd4b4946aef96125838e6d31d53dec) Guard tracker bootstrap against load failures - [`0fdb1ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0fdb1ed533f81bdd912adcb55eb3876cc4e08118) Handle tracker card load failures - [`d816350`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8163509ed7694d48f292c8d429b2647dcc8fd04) Merge branch 'staging' into feat/cyoa-tracker-improvements ### 📊 Changes **9 files changed** (+125 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/chat/CyoaChoices.tsx` (+42 -8) 📝 `packages/client/src/components/layout/AppShell.tsx` (+4 -2) 📝 `packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx` (+13 -2) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+29 -10) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-game-state.ts` (+31 -12) 📝 `packages/client/src/hooks/use-game-state-patcher.ts` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+3 -1) 📝 `packages/client/src/localization/locales/ko.json` (+0 -1) </details> ### 📄 Description ## Linked issue Closes #4201 ## Why this change - Make CYOA actions quicker to switch between a normal post and an impersonation request. - Keep CYOA choices visually centered while respecting the tracker overlay. - Let users bootstrap tracker data before the tracker agent has produced its first result. ## What changed - Added a quick Post/Impersonate toggle to CYOA actions. - Applied symmetric tracker-safe spacing to CYOA controls, choices, and editor content. - Show active tracker agents as empty, editable panels before their first successful run. - Kept failed tracker loads non-editable and added an explicit retry state. - Updated the changelog and English/Korean UI strings. ## Validation - [x] `pnpm check` passes locally - [ ] Container build/runtime still works (if touching Docker, startup, networking, or runtime dependencies) - [x] Ran the app and exercised the changed behavior - [x] Checked relevant edge cases and failure paths - [x] Above manual checks were performed on the final diff - [x] Read and followed `CONTRIBUTING.md` Automated results: - `pnpm check` passed locally (one pre-existing `NoodleHome.tsx` hook warning; zero errors). - `git diff --check origin/staging...HEAD` passed. - `pnpm smoke:ui` did not start its tests because Playwright timed out waiting 180 seconds for the development web server. No smoke assertions ran. ### Manual verification notes - [X] Verified the CYOA Post/Impersonate toggle sends through the selected path. - [X] Verified CYOA choices remain centered and do not render beneath the tracker panel. - [X] Activated a tracker agent with no existing tracker data and verify its empty panel opens and accepts bootstrap data. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (`README.md`, `android/README.md`, `CONTRIBUTING.md`, `docs/CONFIGURATION.md`, `docs/TROUBLESHOOTING.md`, and/or `docs/FAQ.md`) - [ ] Translated docs were updated, or a follow-up issue is linked - [ ] Version/release files are synchronized (`package.json` files, `packages/shared/src/constants/defaults.ts`, installer files, and `android/app/build.gradle`) Updated `CHANGELOG.md`; no documentation pages or version files changed. ## UI evidence (if applicable) Not attached. Manual browser verification remains for the contributor. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Post/Impersonate toggle for CYOA choices. * Tracker panels now appear as soon as their associated agents become active, allowing earlier data entry. * Added clearer tracker loading states and a retry option for failed loads. * **Bug Fixes** * Improved tracker panel positioning to prevent overlap with surrounding interface elements. * Updated empty states to distinguish between loading, errors, and unavailable tracker panels. * Standardized control disabling while actions are processing. <!-- 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:08:53 +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#6279
No description provided.