[PR #5759] [MERGED] fix: preserve mobile theme colors #6919

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5758-mobile-theme-colors


📝 Commits (2)

  • 9eae746 chore: start mobile theme color fix
  • 41f5961 fix: preserve mobile theme colors

📊 Changes

5 files changed (+80 additions, -4 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+67 -1)
📝 packages/client/src/components/chat/ContextBudgetIndicator.tsx (+10 -2)
📝 packages/client/src/components/chat/QuickSwitcherMobile.tsx (+1 -1)
📝 packages/client/src/hooks/use-touch-folder-drag.ts (+1 -0)

📄 Description

Linked issue

Closes #5758

Why this change

  • On iPhone, the connection touch-drag preview lost its inherited panel Chroma aliases when moved under the document body, changing metadata to the fallback app color.
  • The mobile quick switcher context progress fill should communicate usage with Accent Color while its labels and circular gauge remain tied to Chat Chrome Text Color.

What changed

  • Reapply the existing Chroma token scope to the shared touch-drag preview clone.
  • Let the context indicator opt into Accent Color and enable that only in the mobile quick switcher.
  • Add focused mobile browser regression coverage and 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

Verification notes

Automated validation completed:

  • pnpm check
  • Mobile WebKit: focused Roleplay context and connection touch-drag regressions, 2 passed
  • Mobile Chromium: focused Roleplay context and connection touch-drag regressions, 2 passed
  • Both new assertions were first confirmed to fail on the unfixed code for the reported color mismatch.

Manual maintainer verification still requested:

  • On iPhone, hold and drag a connection and confirm its metadata retains Chat Chrome Text Color.
  • In the mobile Roleplay quick switcher, confirm the Context progress fill follows Accent Color while labels and the circular gauge retain Chat Chrome Text Color.

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)

No user-facing documentation or localization copy changed. CHANGELOG.md includes the Unreleased fix note.

UI evidence

  • Maintainer before/during screenshots are documented in #5758.
  • Focused mobile WebKit and Chromium tests exercise the configured pink Accent versus teal Chroma distinction.

Summary by CodeRabbit

  • New Features

    • Mobile connection drag previews now retain the configured Chat Chrome text color.
    • The Roleplay quick switcher’s context progress bar now uses the configured Accent Color.
  • Bug Fixes

    • Canceled mobile connection drags no longer leave behind a preview.
    • Mobile context budget indicators now display the correct configured color.

🔄 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/5759 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/2/2026 **Status:** ✅ Merged **Merged:** 9/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5758-mobile-theme-colors` --- ### 📝 Commits (2) - [`9eae746`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9eae7460e0518494fbefb51ed134411419b3fb8d) chore: start mobile theme color fix - [`41f5961`](https://github.com/Pasta-Devs/Marinara-Engine/commit/41f5961e84a4dc1e7ef3d829baf9bfc4488d96b3) fix: preserve mobile theme colors ### 📊 Changes **5 files changed** (+80 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+67 -1) 📝 `packages/client/src/components/chat/ContextBudgetIndicator.tsx` (+10 -2) 📝 `packages/client/src/components/chat/QuickSwitcherMobile.tsx` (+1 -1) 📝 `packages/client/src/hooks/use-touch-folder-drag.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #5758 ## Why this change - On iPhone, the connection touch-drag preview lost its inherited panel Chroma aliases when moved under the document body, changing metadata to the fallback app color. - The mobile quick switcher context progress fill should communicate usage with Accent Color while its labels and circular gauge remain tied to Chat Chrome Text Color. ## What changed - Reapply the existing Chroma token scope to the shared touch-drag preview clone. - Let the context indicator opt into Accent Color and enable that only in the mobile quick switcher. - Add focused mobile browser regression coverage and 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 ### Verification notes Automated validation completed: - pnpm check - Mobile WebKit: focused Roleplay context and connection touch-drag regressions, 2 passed - Mobile Chromium: focused Roleplay context and connection touch-drag regressions, 2 passed - Both new assertions were first confirmed to fail on the unfixed code for the reported color mismatch. Manual maintainer verification still requested: - On iPhone, hold and drag a connection and confirm its metadata retains Chat Chrome Text Color. - In the mobile Roleplay quick switcher, confirm the Context progress fill follows Accent Color while labels and the circular gauge retain Chat Chrome Text Color. ## 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) No user-facing documentation or localization copy changed. CHANGELOG.md includes the Unreleased fix note. ## UI evidence - Maintainer before/during screenshots are documented in #5758. - Focused mobile WebKit and Chromium tests exercise the configured pink Accent versus teal Chroma distinction. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Mobile connection drag previews now retain the configured Chat Chrome text color. * The Roleplay quick switcher’s context progress bar now uses the configured Accent Color. * **Bug Fixes** * Canceled mobile connection drags no longer leave behind a preview. * Mobile context budget indicators now display the correct configured color. <!-- 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: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#6919
No description provided.