[PR #3904] [MERGED] Fix mobile themes and Roleplay backgrounds #6150

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3904
Author: @SpicyMarinara
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3903-mobile-theme-background


📝 Commits (3)

  • 574e665 fix mobile themes and roleplay backgrounds
  • 5ee576a test mobile roleplay background sizing
  • d3eaf43 Strengthen active theme regression

📊 Changes

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

View changed files

📝 e2e/core-flows.e2e.ts (+5 -2)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -2)
📝 packages/server/src/routes/themes.routes.ts (+2 -1)
📝 scripts/regressions/open-issues.regression.ts (+29 -0)

📄 Description

Linked issue

Closes #3903

Why this change

  • Mobile clients reach Marinara over the server LAN address, so the privileged-access gate blocked them from selecting or clearing an already-installed theme.
  • Roleplay backgrounds used object-fill, which stretched images to the phone viewport and distorted their proportions.

What changed

  • Allow any same-origin client to activate or clear an existing synced theme while keeping theme installation, editing, and deletion privileged.
  • Use proportional object-cover rendering for Roleplay backgrounds below the mobile breakpoint while preserving the existing desktop sizing behavior.
  • Add regression assertions and update the existing Roleplay background browser test to require cover on mobile and fill on desktop.

Validation

Automated evidence:

  • pnpm regression:issues passes locally.

  • pnpm check passes locally.

  • Targeted Roleplay background Playwright test passes in mobile and desktop Chromium (2 passed).

  • Full pnpm smoke:ui reached 72 passed and 47 skipped. It initially reported the now-corrected background expectation plus two unrelated failures in the Roleplay setup and Noodle mobile tests; the corrected background test passes when rerun in both projects.

  • 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 theme activation and reset from a phone connected through the server LAN address.
  • Manually verify Roleplay background proportions in portrait and landscape mobile viewports.
  • Manually verify the desktop Roleplay background behavior remains unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Browser screenshots are pending real-device verification.

Summary by CodeRabbit

  • Bug Fixes

    • Improved roleplay background image scaling on mobile devices to preserve proportions and provide a more consistent visual experience.
    • Theme activation remains available for mobile and same-origin network clients while installation, editing, and deletion continue to require appropriate access.
  • Tests

    • Added regression coverage for responsive background styling and theme access behavior across supported client types.

🔄 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/3904 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/21/2026 **Status:** ✅ Merged **Merged:** 7/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3903-mobile-theme-background` --- ### 📝 Commits (3) - [`574e665`](https://github.com/Pasta-Devs/Marinara-Engine/commit/574e66526ef510a80f2ad5c14e7d58507e861b21) fix mobile themes and roleplay backgrounds - [`5ee576a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5ee576a05a2f94feebf25c276c1efbc6c93ae2e2) test mobile roleplay background sizing - [`d3eaf43`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d3eaf43f3b5a2f584286e1f69b4c4ddc49ceaf44) Strengthen active theme regression ### 📊 Changes **4 files changed** (+38 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+5 -2) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -2) 📝 `packages/server/src/routes/themes.routes.ts` (+2 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+29 -0) </details> ### 📄 Description ## Linked issue Closes #3903 ## Why this change - Mobile clients reach Marinara over the server LAN address, so the privileged-access gate blocked them from selecting or clearing an already-installed theme. - Roleplay backgrounds used `object-fill`, which stretched images to the phone viewport and distorted their proportions. ## What changed - Allow any same-origin client to activate or clear an existing synced theme while keeping theme installation, editing, and deletion privileged. - Use proportional `object-cover` rendering for Roleplay backgrounds below the mobile breakpoint while preserving the existing desktop sizing behavior. - Add regression assertions and update the existing Roleplay background browser test to require `cover` on mobile and `fill` on desktop. ## Validation Automated evidence: - `pnpm regression:issues` passes locally. - `pnpm check` passes locally. - Targeted Roleplay background Playwright test passes in mobile and desktop Chromium (2 passed). - Full `pnpm smoke:ui` reached 72 passed and 47 skipped. It initially reported the now-corrected background expectation plus two unrelated failures in the Roleplay setup and Noodle mobile tests; the corrected background test passes when rerun in both projects. - [ ] `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 theme activation and reset from a phone connected through the server LAN address. - Manually verify Roleplay background proportions in portrait and landscape mobile viewports. - Manually verify the desktop Roleplay background behavior remains unchanged. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Browser screenshots are pending real-device verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved roleplay background image scaling on mobile devices to preserve proportions and provide a more consistent visual experience. - Theme activation remains available for mobile and same-origin network clients while installation, editing, and deletion continue to require appropriate access. - **Tests** - Added regression coverage for responsive background styling and theme access behavior across supported client types. <!-- 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:07:33 +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#6150
No description provided.