[PR #1016] [MERGED] Fix mobile character panel back navigation #4887

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1016
Author: @cha1latte
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-1000-mobile-back-panel


📝 Commits (1)

  • c749f30 Fix mobile character panel back navigation

📊 Changes

4 files changed (+94 additions, -32 deletions)

View changed files

➕ docs/pr-evidence/issue-1000/broken-after-back-home.png (+0 -0)
➕ docs/pr-evidence/issue-1000/fixed-after-back-characters-panel.png (+0 -0)
➕ docs/pr-evidence/issue-1000/open-character-before-back.png (+0 -0)
📝 packages/client/src/stores/ui.store.ts (+94 -32)

📄 Description

Linked issue

Closes #1000

Why this change

  • On mobile, opening a character from the Characters panel hides the right panel while the editor is open. Closing the editor previously discarded that origin, so Back landed on the home/chat surface instead of returning to Characters.

What changed

  • Track the mobile-only right-panel return target when a detail editor is opened from an active panel.
  • Restore that panel when the detail editor closes, while leaving direct editor opens and desktop panel behavior unchanged.
  • Apply the same return-target handling to the shared detail-editor open/close paths so the navigation model stays consistent across editor types.

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

Manual verification notes

  • Reproduced before the fix on a mobile viewport: Characters → open character → Back returned to the home surface.
  • Verified after the fix on a mobile viewport: Characters → open character → Back returned to the Characters panel.
  • Verified edge cases with pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-1000-ui-store-repro.ts: mobile panel restore, mobile direct editor close without inventing a panel, and desktop panel retention all passed.
  • Baseline: pnpm check passed outside the sandbox. The first sandboxed run reached Vite/esbuild and failed with spawn EPERM; rerunning with normal process-spawn permissions passed.
  • Bunny: pre-PR Bunny review passed for the current diff.

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)

No docs, schema, dependency, or release/version files changed.

UI evidence (if applicable)

Before: mobile Back lands on the home surface instead of the originating Characters panel.

Before mobile Back returns home

During: character editor opened from the Characters panel.

Character open before Back

After: mobile Back restores the Characters panel.

After mobile Back restores Characters panel


🔄 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/1016 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/19/2026 **Status:** ✅ Merged **Merged:** 5/19/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1000-mobile-back-panel` --- ### 📝 Commits (1) - [`c749f30`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c749f302242312c68cf626b83efd4b2c1d32e969) Fix mobile character panel back navigation ### 📊 Changes **4 files changed** (+94 additions, -32 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1000/broken-after-back-home.png` (+0 -0) ➕ `docs/pr-evidence/issue-1000/fixed-after-back-characters-panel.png` (+0 -0) ➕ `docs/pr-evidence/issue-1000/open-character-before-back.png` (+0 -0) 📝 `packages/client/src/stores/ui.store.ts` (+94 -32) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1000 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - On mobile, opening a character from the Characters panel hides the right panel while the editor is open. Closing the editor previously discarded that origin, so Back landed on the home/chat surface instead of returning to Characters. ## What changed <!-- List the key changes in this PR --> - Track the mobile-only right-panel return target when a detail editor is opened from an active panel. - Restore that panel when the detail editor closes, while leaving direct editor opens and desktop panel behavior unchanged. - Apply the same return-target handling to the shared detail-editor open/close paths so the navigation model stays consistent across editor types. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Reproduced before the fix on a mobile viewport: Characters → open character → Back returned to the home surface. - Verified after the fix on a mobile viewport: Characters → open character → Back returned to the Characters panel. - Verified edge cases with `pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-1000-ui-store-repro.ts`: mobile panel restore, mobile direct editor close without inventing a panel, and desktop panel retention all passed. - Baseline: `pnpm check` passed outside the sandbox. The first sandboxed run reached Vite/esbuild and failed with `spawn EPERM`; rerunning with normal process-spawn permissions passed. - Bunny: pre-PR Bunny review passed for the current diff. ## 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) No docs, schema, dependency, or release/version files changed. ## UI evidence (if applicable) Before: mobile Back lands on the home surface instead of the originating Characters panel. ![Before mobile Back returns home](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/c749f302/docs/pr-evidence/issue-1000/broken-after-back-home.png) During: character editor opened from the Characters panel. ![Character open before Back](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/c749f302/docs/pr-evidence/issue-1000/open-character-before-back.png) After: mobile Back restores the Characters panel. ![After mobile Back restores Characters panel](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/c749f302/docs/pr-evidence/issue-1000/fixed-after-back-characters-panel.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11: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#4887
No description provided.