[PR #3530] [MERGED] Honor selected chroma and explain missing client builds #5983

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

📋 Pull Request Information

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

Base: staging ← Head: agent/chroma-missing-client-warning


📝 Commits (2)

  • b88aea0 Honor selected chroma in recovery UI
  • c677834 Warn when the client build is missing

📊 Changes

9 files changed (+46 additions, -22 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/App.tsx (+20 -8)
📝 packages/client/src/components/game/GameCombatUI.tsx (+3 -1)
📝 packages/client/src/components/game/GameNarration.tsx (+3 -3)
📝 packages/client/src/components/game/GameWidgetPanel.tsx (+2 -2)
📝 packages/client/src/components/layout/RightPanel.tsx (+5 -1)
📝 packages/client/src/components/layout/TopBar.tsx (+5 -4)
📝 packages/client/src/styles/globals.css (+4 -3)
📝 packages/server/src/app.ts (+2 -0)

📄 Description

Why

The root recovery screen could render before the normal accent effect mounted, causing crash details and leftover application chrome to fall back to the old pink palette instead of the user's saved chroma color.

Separately, when packages/client/dist was missing, the server silently started API-only. Opening the app then showed a bare Fastify 404 without any startup explanation.

Closes #3529.

What changed

  • Hydrate the saved app accent directly inside the root recovery boundary, including gradient accents and early-crash rendering.
  • Replace remaining old pink application-chrome fallbacks with semantic accent or destructive tokens.
  • Log an actionable startup warning when the compiled client is absent, including the resolved path and pnpm build recovery command.
  • Document both fixes in the v2.2.0 changelog.

Automated verification

  • pnpm check
  • Reproduced the missing-build path with isolated temporary data and packages/client/dist temporarily unavailable.
  • Confirmed the warning is emitted before the expected API-only 404 and names both the missing path and recovery command.

Manual verification requested

  • Verify the recovery screen with a non-pink saved solid accent.
  • Verify the recovery screen with a saved gradient accent.
  • Start the packaged server without packages/client/dist and confirm the launcher window shows the warning.

🔄 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/3530 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/12/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/chroma-missing-client-warning` --- ### 📝 Commits (2) - [`b88aea0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b88aea0958150529be968488a3354ade0574a013) Honor selected chroma in recovery UI - [`c677834`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c677834f458299ffd8567a53b09a3ae76e3a3d25) Warn when the client build is missing ### 📊 Changes **9 files changed** (+46 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/App.tsx` (+20 -8) 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+3 -1) 📝 `packages/client/src/components/game/GameNarration.tsx` (+3 -3) 📝 `packages/client/src/components/game/GameWidgetPanel.tsx` (+2 -2) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+5 -1) 📝 `packages/client/src/components/layout/TopBar.tsx` (+5 -4) 📝 `packages/client/src/styles/globals.css` (+4 -3) 📝 `packages/server/src/app.ts` (+2 -0) </details> ### 📄 Description ## Why The root recovery screen could render before the normal accent effect mounted, causing crash details and leftover application chrome to fall back to the old pink palette instead of the user's saved chroma color. Separately, when `packages/client/dist` was missing, the server silently started API-only. Opening the app then showed a bare Fastify 404 without any startup explanation. Closes #3529. ## What changed - Hydrate the saved app accent directly inside the root recovery boundary, including gradient accents and early-crash rendering. - Replace remaining old pink application-chrome fallbacks with semantic accent or destructive tokens. - Log an actionable startup warning when the compiled client is absent, including the resolved path and `pnpm build` recovery command. - Document both fixes in the v2.2.0 changelog. ## Automated verification - `pnpm check` - Reproduced the missing-build path with isolated temporary data and `packages/client/dist` temporarily unavailable. - Confirmed the warning is emitted before the expected API-only 404 and names both the missing path and recovery command. ## Manual verification requested - [ ] Verify the recovery screen with a non-pink saved solid accent. - [ ] Verify the recovery screen with a saved gradient accent. - [ ] Start the packaged server without `packages/client/dist` and confirm the launcher window shows the warning. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05: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#5983
No description provided.