[PR #5826] [MERGED] Fix mobile Roleplay action state and Peek Prompt separator #6957

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5825-mobile-roleplay-action-peek-copy


📝 Commits (4)

  • 343c808 test(ui): reproduce mobile peek prompt regressions
  • 91f2296 fix(ui): keep tapped mobile message actions visible
  • d8797b3 test(ui): clean up mobile peek fixtures on setup failure
  • 8ea522d Merge remote-tracking branch 'origin/staging' into fix/5825-mobile-roleplay-action-peek-copy

📊 Changes

5 files changed (+73 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+69 -5)
📝 packages/client/src/components/chat/MessageActionButton.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/client/src/localization/locales/zh-Hans.json (+1 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5825

Why this change

  • On iPhone, WebKit can retain a tapped Roleplay message action's hover styling, causing that one icon to disappear under some chat-chrome color combinations.
  • Peek Prompt renders the HTML entity name · as user-facing text instead of showing a readable separator.

What changed

  • Add a mobile WebKit regression for the tapped Peek Prompt action and assembled-prompt totals.
  • Restrict message-action hover colors to devices with real hover support.
  • Replace the escaped entity label with a visible middle-dot separator.

Validation

  • pnpm check

  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project mobile-webkit --grep "mobile Roleplay Peek prompt keeps"

  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project mobile-chromium --grep "mobile Roleplay Peek prompt keeps"

  • 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 on iPhone that tapping Peek Prompt leaves its message action visible after the prompt viewer opens and closes.
  • Manually verify Peek Prompt displays sections · ~tokens without an HTML entity name.

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

UI evidence (if applicable)

  • The passing mobile Chromium and WebKit regression runs captured the open Peek Prompt over a still-visible action row.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed mobile message-action icons retaining hover colors after being tapped.
    • Improved Peek Prompt totals formatting with a readable middle dot separator between sections and estimated tokens.
    • Ensured Peek Prompt actions remain attached and retain their color after tapping on mobile devices.
  • Localization
    • Updated English and Simplified Chinese separators to use the correct middle dot character.
  • Tests
    • Added mobile end-to-end coverage for Peek Prompt behavior, action colors, and totals formatting.

🔄 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/5826 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/3/2026 **Status:** ✅ Merged **Merged:** 9/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5825-mobile-roleplay-action-peek-copy` --- ### 📝 Commits (4) - [`343c808`](https://github.com/Pasta-Devs/Marinara-Engine/commit/343c808e11357a1191acae954a56a1c01a34cca2) test(ui): reproduce mobile peek prompt regressions - [`91f2296`](https://github.com/Pasta-Devs/Marinara-Engine/commit/91f2296a549473c52266321eebe753683d85c2f4) fix(ui): keep tapped mobile message actions visible - [`d8797b3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8797b34e011698c047b80d95d8f7fa2b84efd4f) test(ui): clean up mobile peek fixtures on setup failure - [`8ea522d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ea522d698325ea5c79dfa48bbf51871c1ad0cd1) Merge remote-tracking branch 'origin/staging' into fix/5825-mobile-roleplay-action-peek-copy ### 📊 Changes **5 files changed** (+73 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+69 -5) 📝 `packages/client/src/components/chat/MessageActionButton.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+1 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5825 ## Why this change - On iPhone, WebKit can retain a tapped Roleplay message action's hover styling, causing that one icon to disappear under some chat-chrome color combinations. - Peek Prompt renders the HTML entity name `&middot;` as user-facing text instead of showing a readable separator. ## What changed - Add a mobile WebKit regression for the tapped Peek Prompt action and assembled-prompt totals. - Restrict message-action hover colors to devices with real hover support. - Replace the escaped entity label with a visible middle-dot separator. ## Validation - `pnpm check` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project mobile-webkit --grep "mobile Roleplay Peek prompt keeps"` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project mobile-chromium --grep "mobile Roleplay Peek prompt keeps"` - [ ] `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 on iPhone that tapping Peek Prompt leaves its message action visible after the prompt viewer opens and closes. - Manually verify Peek Prompt displays `sections · ~tokens` without an HTML entity name. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - The passing mobile Chromium and WebKit regression runs captured the open Peek Prompt over a still-visible action row. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Fixed mobile message-action icons retaining hover colors after being tapped. - Improved Peek Prompt totals formatting with a readable middle dot separator between sections and estimated tokens. - Ensured Peek Prompt actions remain attached and retain their color after tapping on mobile devices. - **Localization** - Updated English and Simplified Chinese separators to use the correct middle dot character. - **Tests** - Added mobile end-to-end coverage for Peek Prompt behavior, action colors, and totals formatting. <!-- 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:15:14 +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#6957
No description provided.