[PR #6198] [MERGED] fix: theme Roleplay action borders and save translator defaults #7086

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6198
Author: @SpicyMarinara
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/chroma-story-combat


📝 Commits (3)

  • 73a7f0d docs: track Chroma action border fix
  • c2f3c38 fix: theme Roleplay action borders and save translator defaults
  • 7450e85 fix: ignore invalid translator profile overrides

📊 Changes

16 files changed (+515 additions, -22 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 e2e/chat-sweep.e2e.ts (+169 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -1)
📝 packages/client/src/components/chat/EncounterModal.tsx (+16 -16)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+8 -2)
📝 packages/client/src/features/chat-settings/sections/TranslationSection.tsx (+46 -2)
➕ packages/client/src/hooks/use-translator-defaults.ts (+37 -0)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/server/src/routes/app-settings.routes.ts (+2 -0)
📝 packages/server/src/services/storage/chat-presets.storage.ts (+10 -0)
📝 packages/server/src/services/storage/chats.storage.ts (+5 -0)
📝 packages/shared/src/index.ts (+1 -0)
➕ packages/shared/src/utils/translator-defaults.ts (+48 -0)
📝 scripts/regressions/chat-wizard-defaults.regression.ts (+33 -0)
📝 scripts/regressions/open-issues.regression.ts (+127 -0)

📄 Description

Linked issue

Closes #6197
Closes #6199

Why this change

Push Story and Roleplay Combat retain pink outlines after choosing another Chroma accent. Users also have to configure translation again for each new chat.

What changed

  • Use existing Chroma panel, input, button and divider tokens for Push Story and Combat borders.
  • Add Save translator defaults and Forget saved defaults in Chat Settings → Translator. Reuse app-settings storage and central chat creation for Conversation, Roleplay and Game. Save includes provider, languages, connection, prompts and switches; it waits for pending Translator edits.
  • Preserve explicit wizard/profile choices, including legacy language/prompt settings and false, empty or reset values. The Game wizard starts from inherited translation choices. Saving or forgetting defaults leaves existing chats unchanged.

Validation

  • pnpm check passed, including localization, formatting, types and production builds. Existing GameNarration hook and Vite circular-chunk warnings remain.

  • Real storage/profile and wizard-default regressions passed (2/2), including malformed defaults/profile values, legacy aliases, explicit overrides, stored-profile preservation and existing-chat preservation.

  • Translator browser regression passed in desktop Chromium, mobile Chromium and mobile WebKit (3/3). It reproduced an immediate-save race before the fix and now verifies the same held metadata update, reload, all three new-chat modes, Game wizard inheritance and Forget affecting future chats only.

  • Focused Chroma browser proof passed across both themes and all three browser projects (6/6): all 144 computed-border comparisons matched existing Chroma tokens and changed with blue/orange accents. Screenshots inspected.

  • Docker runtime validation was unavailable because the local Docker daemon is not running. No live translation provider calls or physical-device testing were performed.

  • 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

Manually verify Push Story and Combat with a non-pink accent on desktop and a physical phone. Save Translator defaults immediately after changing a prompt, create a chat in each mode, and verify translation with your configured provider. Check that explicit saved wizard/profile choices still take precedence. Forget defaults and confirm existing chats retain their settings.

Docs and release impact

Both user-facing changes are recorded under CHANGELOG Unreleased. No version or documentation contract changes.

UI evidence

Before/after Chroma borders and desktop/mobile Translator screenshots. Download the HTML and open it to view embedded images. All screenshots use synthetic fixtures.

Summary by CodeRabbit

  • New Features
    • Save Translator settings as defaults for new chats, including provider, language, connection, prompts, and automatic translation options.
    • Saved defaults apply to newly created chats and game setup, with an option to forget them.
    • Game setup now reflects inherited automatic translation and language preferences.
  • Style
    • Push Story and Combat box borders now use the selected Chroma accent color instead of fixed pink outlines.

🔄 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/6198 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/14/2026 **Status:** ✅ Merged **Merged:** 9/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/chroma-story-combat` --- ### 📝 Commits (3) - [`73a7f0d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73a7f0de3074850318aa0626f5ea21c95db4d2e2) docs: track Chroma action border fix - [`c2f3c38`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2f3c38b5d82c71f44314e73fa8582beb92f61cc) fix: theme Roleplay action borders and save translator defaults - [`7450e85`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7450e85c17295ee9eb061cead40b1fdbd99d8c58) fix: ignore invalid translator profile overrides ### 📊 Changes **16 files changed** (+515 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `e2e/chat-sweep.e2e.ts` (+169 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -1) 📝 `packages/client/src/components/chat/EncounterModal.tsx` (+16 -16) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+8 -2) 📝 `packages/client/src/features/chat-settings/sections/TranslationSection.tsx` (+46 -2) ➕ `packages/client/src/hooks/use-translator-defaults.ts` (+37 -0) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/server/src/routes/app-settings.routes.ts` (+2 -0) 📝 `packages/server/src/services/storage/chat-presets.storage.ts` (+10 -0) 📝 `packages/server/src/services/storage/chats.storage.ts` (+5 -0) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `packages/shared/src/utils/translator-defaults.ts` (+48 -0) 📝 `scripts/regressions/chat-wizard-defaults.regression.ts` (+33 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+127 -0) </details> ### 📄 Description ## Linked issue Closes #6197 Closes #6199 ## Why this change Push Story and Roleplay Combat retain pink outlines after choosing another Chroma accent. Users also have to configure translation again for each new chat. ## What changed - Use existing Chroma panel, input, button and divider tokens for Push Story and Combat borders. - Add Save translator defaults and Forget saved defaults in Chat Settings → Translator. Reuse app-settings storage and central chat creation for Conversation, Roleplay and Game. Save includes provider, languages, connection, prompts and switches; it waits for pending Translator edits. - Preserve explicit wizard/profile choices, including legacy language/prompt settings and false, empty or reset values. The Game wizard starts from inherited translation choices. Saving or forgetting defaults leaves existing chats unchanged. ## Validation - `pnpm check` passed, including localization, formatting, types and production builds. Existing GameNarration hook and Vite circular-chunk warnings remain. - Real storage/profile and wizard-default regressions passed (2/2), including malformed defaults/profile values, legacy aliases, explicit overrides, stored-profile preservation and existing-chat preservation. - Translator browser regression passed in desktop Chromium, mobile Chromium and mobile WebKit (3/3). It reproduced an immediate-save race before the fix and now verifies the same held metadata update, reload, all three new-chat modes, Game wizard inheritance and Forget affecting future chats only. - Focused Chroma browser proof passed across both themes and all three browser projects (6/6): all 144 computed-border comparisons matched existing Chroma tokens and changed with blue/orange accents. Screenshots inspected. - Docker runtime validation was unavailable because the local Docker daemon is not running. No live translation provider calls or physical-device testing were performed. - [ ] `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 Manually verify Push Story and Combat with a non-pink accent on desktop and a physical phone. Save Translator defaults immediately after changing a prompt, create a chat in each mode, and verify translation with your configured provider. Check that explicit saved wizard/profile choices still take precedence. Forget defaults and confirm existing chats retain their settings. ## Docs and release impact Both user-facing changes are recorded under CHANGELOG Unreleased. No version or documentation contract changes. ## UI evidence [Before/after Chroma borders and desktop/mobile Translator screenshots](https://gist.github.com/SpicyMarinara/f42b4132682277898aa007c36e829092). Download the HTML and open it to view embedded images. All screenshots use synthetic fixtures. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Save Translator settings as defaults for new chats, including provider, language, connection, prompts, and automatic translation options. - Saved defaults apply to newly created chats and game setup, with an option to forget them. - Game setup now reflects inherited automatic translation and language preferences. - **Style** - Push Story and Combat box borders now use the selected Chroma accent color instead of fixed pink outlines. <!-- 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:16:25 +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#7086
No description provided.