[PR #5317] [MERGED] fix: normalize Android chat controls and text #6726

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-sweep-5315-5316


📝 Commits (5)

  • 9fc8a9c docs: note Android UI issue sweep
  • 6d79d03 fix: normalize Android text and version switches
  • 00fd606 fix: contain Android parameter toggle
  • e107eb2 test: scope Android issue regressions
  • 1d424e2 test: validate chat regression boundaries

📊 Changes

6 files changed (+57 additions, -56 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+1 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+10 -27)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+3 -3)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+10 -26)
📝 scripts/regressions/open-issues.regression.ts (+32 -0)

📄 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 #5315
Closes #5316
Closes #5318

Why this change

  • Android WebView can enlarge chat prose beyond the explicit app typography, making Conversation, Roleplay, and Game messages impractically large in the APK wrapper.
  • Enlarged Android text can force the New Chat parameter toggle outside its card because the adjacent description does not shrink.
  • Character and Persona versioning use a bespoke toggle whose inactive color and thumb treatment drift from the shared settings control.

What changed

  • Pin Android WebView text zoom to the app's authored typography.
  • Let the New Chat parameter description shrink while keeping its toggle inside the card.
  • Reuse the shared settings switch for card versioning.
  • Add focused regression guards 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

Automated verification completed by the authoring agent:

  • pnpm check
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts
  • gradle :app:compileDebugJavaWithJavac
  • Full pnpm regression:ui: 235 passed, 107 skipped, and 18 unrelated existing/stale expectations failed; issue-adjacent Android bridge, mobile layout, Character editor, and Persona editor cases passed.

Manual verification notes

  • Manually verify Conversation, Roleplay, and Game message typography on an Android APK.
  • Manually enable Customize Parameters in New Conversation and New Roleplay at Android width and confirm the toggle stays inside its card.
  • Manually verify Character and Persona versioning switches in dark and light themes.

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
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Before evidence for the parameter overflow is attached to #5318.
  • The signed Discord CDN images on #5315 and #5316 have expired.
  • After evidence is pending manual Android verification because no controllable local browser session was available to the authoring agent.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed Android text sizing to maintain consistent message readability.
    • Improved the New Chat parameter toggle layout at larger text sizes.
    • Corrected alignment and inactive-state colors for automatic versioning controls.
    • Standardized versioning switches across character and persona editors.
  • Tests
    • Added regression coverage for Android text scaling, responsive toggle layouts, and versioning controls.
  • Documentation
    • Documented these fixes in the unreleased changelog.

🔄 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/5317 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-5315-5316` --- ### 📝 Commits (5) - [`9fc8a9c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9fc8a9c15038bb57f1d5b357cc356c75ae3eab5d) docs: note Android UI issue sweep - [`6d79d03`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d79d0322bd82e7281b1186d5408d4e1f207758c) fix: normalize Android text and version switches - [`00fd606`](https://github.com/Pasta-Devs/Marinara-Engine/commit/00fd606f74478545702883e91a63e4947cc92a31) fix: contain Android parameter toggle - [`e107eb2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e107eb279f892ac4148dab4b4b8e574abcc028a7) test: scope Android issue regressions - [`1d424e2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1d424e22c80a27c98087ac30b325760d8ad7ee61) test: validate chat regression boundaries ### 📊 Changes **6 files changed** (+57 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+1 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+10 -27) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+3 -3) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+10 -26) 📝 `scripts/regressions/open-issues.regression.ts` (+32 -0) </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 #5315 Closes #5316 Closes #5318 ## Why this change - Android WebView can enlarge chat prose beyond the explicit app typography, making Conversation, Roleplay, and Game messages impractically large in the APK wrapper. - Enlarged Android text can force the New Chat parameter toggle outside its card because the adjacent description does not shrink. - Character and Persona versioning use a bespoke toggle whose inactive color and thumb treatment drift from the shared settings control. ## What changed - Pin Android WebView text zoom to the app's authored typography. - Let the New Chat parameter description shrink while keeping its toggle inside the card. - Reuse the shared settings switch for card versioning. - Add focused regression guards 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` Automated verification completed by the authoring agent: - `pnpm check` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts` - `gradle :app:compileDebugJavaWithJavac` - Full `pnpm regression:ui`: 235 passed, 107 skipped, and 18 unrelated existing/stale expectations failed; issue-adjacent Android bridge, mobile layout, Character editor, and Persona editor cases passed. ### Manual verification notes - Manually verify Conversation, Roleplay, and Game message typography on an Android APK. - Manually enable Customize Parameters in New Conversation and New Roleplay at Android width and confirm the toggle stays inside its card. - Manually verify Character and Persona versioning switches in dark and light themes. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Before evidence for the parameter overflow is attached to #5318. - The signed Discord CDN images on #5315 and #5316 have expired. - After evidence is pending manual Android verification because no controllable local browser session was available to the authoring agent. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Android text sizing to maintain consistent message readability. * Improved the New Chat parameter toggle layout at larger text sizes. * Corrected alignment and inactive-state colors for automatic versioning controls. * Standardized versioning switches across character and persona editors. * **Tests** * Added regression coverage for Android text scaling, responsive toggle layouts, and versioning controls. * **Documentation** * Documented these fixes in the unreleased changelog. <!-- 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:13:07 +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#6726
No description provided.