mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1259] [MERGED] Fix mobile sidebar browser back escape #5007
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5007
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1259
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1223-mobile-sidebar-exit📝 Commits (2)
0eaf14eFix mobile sidebar browser back escape17333c8Add issue 1223 mobile sidebar proof📊 Changes
6 files changed (+66 additions, -0 deletions)
View changed files
➕
docs/evidence/issue-1223-mobile-sidebar/issue-1223-after-after-browser-back.png(+0 -0)➕
docs/evidence/issue-1223-mobile-sidebar/issue-1223-after-resize-sidebar-open.png(+0 -0)➕
docs/evidence/issue-1223-mobile-sidebar/issue-1223-after-sidebar-open.png(+0 -0)➕
docs/evidence/issue-1223-mobile-sidebar/issue-1223-before-after-browser-back.png(+0 -0)➕
docs/evidence/issue-1223-mobile-sidebar/issue-1223-before-sidebar-open.png(+0 -0)📝
src/app/shell/AppShell.tsx(+66 -0)📄 Description
Linked issue
Closes #1223
Why this change
refactor, but browser Back still had no mobile-panel state to consume, so Back could leave the app instead of returning users to the main surface.What changed
popstateso browser Back returns users to the main app surface first.Refactor impact
Primary owner:
App shell
Impact areas reviewed:
Boundary notes:
Pressure points touched:
src/app/shell/AppShell.tsxmobile active-panel handling.ModeSurface,GameSurface, Rust command registration, import modules, or prompt/runtime pressure points touched.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch/mobile-sidebar-repro.mjs http://127.0.0.1:5178 beforebefore the fix. The mobile sidebar opened at320x568, and browser Back left the app instead of closing the panel.node scratch/mobile-sidebar-repro.mjs http://127.0.0.1:5178 afterafter the fix. Browser Back closed the mobile sidebar and keptAppShellvisible at the same URL.Back to chatcontrol still closes the sidebar at320x568.390x844; browser Back closed the sidebar and kept the app visible.pnpm check; dependency cruiser, Rust structure, TypeScript build, cargo check, and docs check passed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json; proof gate passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Before: sidebar open at
320x568.After: browser Back closes the sidebar and keeps the app visible.
Resize path: desktop sidebar resized down to mobile still has an escape path.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.