[PR #5680] [MERGED] fix(client): honor theme colors in message counts and preset feedback #6883

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5679-theme-aware-feedback


📝 Commits (1)

  • 1872c83 fix(client): honor theme colors in preset feedback

📊 Changes

5 files changed (+150 additions, -7 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+140 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+5 -3)
📝 packages/client/src/components/modals/ImportPresetModal.tsx (+2 -2)
📝 packages/client/src/components/presets/PresetEditor.tsx (+2 -2)

📄 Description

Linked issue

Closes #5679

Why this change

  • Mobile Roleplay and Game message counts bypass Chat Chrome Text Color, while Marinara preset transfer feedback uses fixed green and amber styling instead of the selected theme.

What changed

  • Route every shared Roleplay/Game message-number variant through the existing chat chrome text token.
  • Route successful preset imports and preset save/export feedback through existing accent tokens.
  • Keep actual import failures on the destructive token and preserve their icon/text distinction.
  • Add desktop Chromium, mobile Chromium, and mobile WebKit regression coverage plus an Unreleased changelog entry.

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

  • Automated browser proof: pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --grep "mobile Roleplay message numbers|preset import and save-export feedback"
  • Verify a custom Chat Chrome Text Color on a mobile Roleplay message number.
  • Verify a custom accent on preset import success, Save and export feedback, and the unsaved warning on desktop and mobile.
  • Verify a failed preset import remains destructive rather than looking successful.

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] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

  • The focused Playwright regression attaches screenshots for the mobile message number and every preset feedback state on desktop Chromium, mobile Chromium, and mobile WebKit.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed mobile Roleplay and Game message numbers to use the configured theme colors.
    • Updated preset import success indicators to match the active theme.
    • Updated preset editor saved and unsaved-change feedback to use the configured editor accent color.
  • Tests
    • Added end-to-end coverage for theme-aware colors across mobile chat and preset workflows.

🔄 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/5680 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/30/2026 **Status:** ✅ Merged **Merged:** 8/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5679-theme-aware-feedback` --- ### 📝 Commits (1) - [`1872c83`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1872c83f49b2a4779908f465fd9590f8fe9d0cc3) fix(client): honor theme colors in preset feedback ### 📊 Changes **5 files changed** (+150 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+140 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+5 -3) 📝 `packages/client/src/components/modals/ImportPresetModal.tsx` (+2 -2) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #5679 ## Why this change - Mobile Roleplay and Game message counts bypass Chat Chrome Text Color, while Marinara preset transfer feedback uses fixed green and amber styling instead of the selected theme. ## What changed - Route every shared Roleplay/Game message-number variant through the existing chat chrome text token. - Route successful preset imports and preset save/export feedback through existing accent tokens. - Keep actual import failures on the destructive token and preserve their icon/text distinction. - Add desktop Chromium, mobile Chromium, and mobile WebKit regression coverage plus an Unreleased changelog entry. ## 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 - Automated browser proof: `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --grep "mobile Roleplay message numbers|preset import and save-export feedback"` - Verify a custom Chat Chrome Text Color on a mobile Roleplay message number. - Verify a custom accent on preset import success, Save and export feedback, and the unsaved warning on desktop and mobile. - Verify a failed preset import remains destructive rather than looking successful. ## 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] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence - The focused Playwright regression attaches screenshots for the mobile message number and every preset feedback state on desktop Chromium, mobile Chromium, and mobile WebKit. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed mobile Roleplay and Game message numbers to use the configured theme colors. * Updated preset import success indicators to match the active theme. * Updated preset editor saved and unsaved-change feedback to use the configured editor accent color. * **Tests** * Added end-to-end coverage for theme-aware colors across mobile chat and preset workflows. <!-- 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:14: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#6883
No description provided.