[PR #5662] [MERGED] fix(ui): resolve mobile roleplay and library layout issues #6869

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5648-mobile-ui-layout


📝 Commits (5)

  • 5ecceb7 fix(ui): align mobile libraries and context chrome
  • b104c8b fix(ui): preserve mobile roleplay edit space
  • ceb3b22 test(ui): attach mobile layout evidence
  • 3481213 test(ui): handle desktop library panel state
  • 05f0ae5 Merge branch 'staging' into fix/5648-mobile-ui-layout

📊 Changes

12 files changed (+262 additions, -270 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+185 -21)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+7 -214)
📝 packages/client/src/components/chat/ChatMessage.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+14 -9)
📝 packages/client/src/components/chat/ContextBudgetIndicator.tsx (+5 -19)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+2 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+2 -2)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/client/src/styles/globals.css (+4 -0)
📝 scripts/regressions/open-issues.regression.ts (+37 -1)

📄 Description

Important

This PR targets staging and closes the reported iOS UI regressions without changing desktop behavior.

Linked issue

Closes #5648

Why this change

  • On iPhone-sized Roleplay views, the context meter ignored the configured chat chroma text color, agent windows consumed the edit viewport, and the flag/eye actions could disappear during editing.
  • Characters and Personas full libraries used a fixed-width sort field; Characters also exposed an unexplained bulk-summary action and verbose search placeholder that broke the shared control schema.

What changed

  • Use the chat chroma text token for the context gauge and progress bar, with the existing derived panel text tokens for the labels.
  • Reuse the existing message edit marker to hide Roleplay HUD, Echo Chamber, and package-provided agent surfaces only below 768 px; restore them automatically when editing ends.
  • Keep message actions visible throughout editing, remove the extra mobile gap above Save/Cancel, and retain 44 px touch targets.
  • Use Search characters, let both full-library sort selects fill their grid cells, and remove the character-only Generate missing summaries selection flow.
  • Add a concise [Unreleased] changelog entry and focused source/browser regression proof.

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

Automated evidence collected during implementation:

  • pnpm check — passed (impeccable context, localization, formatting, lint, E2E types, shared/server/client builds).
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts — passed.
  • Focused mobile WebKit tests for Roleplay editing/context and both full libraries — 2 passed.
  • The same focused issue paths in mobile Chromium — 2 passed.

Manual verification notes

  • Headless iPhone/WebKit proof verifies the configured teal chroma against an intentionally pink app accent, visible flag/eye actions, temporary agent-surface suppression and restoration, zero extra edit-control gap, 44 px Save/Cancel targets, concise search copy, missing-summary action removal, and equal sort-field/container widths.
  • The native iOS software-keyboard accessory row cannot be invoked or resized by headless WebKit; manually verify the final viewport with the real iOS keyboard before release.
  • Manually verify the same flow with real Tracker and Echo Chamber packages enabled on Safari.

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)

CHANGELOG.md is updated. No install, release, or user-guide documentation changes are needed.

UI evidence

Before: the seven reporter screenshots are embedded in #5648. After images below use synthetic fixture data from mobile WebKit.

Context meter uses chat chroma text

Mobile Roleplay context after

Edit state keeps flag and crossed-eye actions visible while agent surfaces are hidden

Mobile Roleplay edit after

Character Full Library matches the shared toolbar schema

Character Full Library after

Persona Full Library uses the same component and is additionally covered by an exact rendered-width assertion.

Summary by CodeRabbit

  • Bug Fixes

    • Synchronized Roleplay context-budget colors with the chat interface.
    • Improved mobile message editing by hiding overlapping panels and keeping message actions accessible.
    • Fixed Roleplay layout spacing, controls, and touch-target behavior.
    • Improved Characters and Personas library search and sorting layouts.
  • Improvements

    • Standardized the character search field to display “Search characters.”
    • Updated character selection behavior for a more consistent browsing experience.

🔄 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/5662 **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/5648-mobile-ui-layout` --- ### 📝 Commits (5) - [`5ecceb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5ecceb7b83cfe73b47692bfb0f5b1ce2d7b14db2) fix(ui): align mobile libraries and context chrome - [`b104c8b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b104c8bcc64a3f31d95312dc7c7ae4227ce5be1d) fix(ui): preserve mobile roleplay edit space - [`ceb3b22`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ceb3b22e9ddf5692599021bd95122a472c350bbd) test(ui): attach mobile layout evidence - [`3481213`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3481213fd67438a10696b80fe13f79a4a77fc921) test(ui): handle desktop library panel state - [`05f0ae5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/05f0ae55a61febde5b393db723cadf8a015e6c53) Merge branch 'staging' into fix/5648-mobile-ui-layout ### 📊 Changes **12 files changed** (+262 additions, -270 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+185 -21) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+7 -214) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+14 -9) 📝 `packages/client/src/components/chat/ContextBudgetIndicator.tsx` (+5 -19) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+2 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+2 -2) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/client/src/styles/globals.css` (+4 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+37 -1) </details> ### 📄 Description > [!IMPORTANT] > This PR targets `staging` and closes the reported iOS UI regressions without changing desktop behavior. ## Linked issue Closes #5648 ## Why this change - On iPhone-sized Roleplay views, the context meter ignored the configured chat chroma text color, agent windows consumed the edit viewport, and the flag/eye actions could disappear during editing. - Characters and Personas full libraries used a fixed-width sort field; Characters also exposed an unexplained bulk-summary action and verbose search placeholder that broke the shared control schema. ## What changed - Use the chat chroma text token for the context gauge and progress bar, with the existing derived panel text tokens for the labels. - Reuse the existing message edit marker to hide Roleplay HUD, Echo Chamber, and package-provided agent surfaces only below 768 px; restore them automatically when editing ends. - Keep message actions visible throughout editing, remove the extra mobile gap above Save/Cancel, and retain 44 px touch targets. - Use `Search characters`, let both full-library sort selects fill their grid cells, and remove the character-only Generate missing summaries selection flow. - Add a concise `[Unreleased]` changelog entry and focused source/browser regression proof. ## 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` Automated evidence collected during implementation: - `pnpm check` — passed (impeccable context, localization, formatting, lint, E2E types, shared/server/client builds). - `node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts` — passed. - Focused mobile WebKit tests for Roleplay editing/context and both full libraries — 2 passed. - The same focused issue paths in mobile Chromium — 2 passed. ### Manual verification notes - Headless iPhone/WebKit proof verifies the configured teal chroma against an intentionally pink app accent, visible flag/eye actions, temporary agent-surface suppression and restoration, zero extra edit-control gap, 44 px Save/Cancel targets, concise search copy, missing-summary action removal, and equal sort-field/container widths. - The native iOS software-keyboard accessory row cannot be invoked or resized by headless WebKit; manually verify the final viewport with the real iOS keyboard before release. - Manually verify the same flow with real Tracker and Echo Chamber packages enabled on Safari. ## 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) `CHANGELOG.md` is updated. No install, release, or user-guide documentation changes are needed. ## UI evidence Before: the seven reporter screenshots are embedded in #5648. After images below use synthetic fixture data from mobile WebKit. ### Context meter uses chat chroma text ![Mobile Roleplay context after](https://gist.githubusercontent.com/SpicyMarinara/671076498d96b5952c5c42d5ed496e26/raw/mobile-roleplay-context-after.png) ### Edit state keeps flag and crossed-eye actions visible while agent surfaces are hidden ![Mobile Roleplay edit after](https://gist.githubusercontent.com/SpicyMarinara/671076498d96b5952c5c42d5ed496e26/raw/mobile-roleplay-edit-after.png) ### Character Full Library matches the shared toolbar schema ![Character Full Library after](https://gist.githubusercontent.com/SpicyMarinara/671076498d96b5952c5c42d5ed496e26/raw/character-full-library-after.png) Persona Full Library uses the same component and is additionally covered by an exact rendered-width assertion. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Synchronized Roleplay context-budget colors with the chat interface. * Improved mobile message editing by hiding overlapping panels and keeping message actions accessible. * Fixed Roleplay layout spacing, controls, and touch-target behavior. * Improved Characters and Personas library search and sorting layouts. * **Improvements** * Standardized the character search field to display “Search characters.” * Updated character selection behavior for a more consistent browsing experience. <!-- 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:27 +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#6869
No description provided.