[PR #2227] [MERGED] Fix game character sheet background navigation #5490

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2227
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2147-character-sheet-nav


📝 Commits (2)

  • 6486e9b Fix game character sheet mobile nav
  • 5a0458c Address character sheet review feedback

📊 Changes

1 file changed (+39 additions, -19 deletions)

View changed files

📝 src/features/modes/game/components/GameCharacterSheet.tsx (+39 -19)

📄 Description

Linked issue

Closes #2147

Why this change

  • Game mode's character sheet regressed from the legacy behavior: wheel/background-click navigation could fire through the open sheet, and narrow mobile headers lost compact controls, responsive avatar sizing, and accessible labels.

What changed

  • Restored data-game-skip-bg-nav="true" on the sheet backdrop so GameSurface skips wheel/background navigation while the sheet is open.
  • Added labelled dialog semantics without overclaiming modal focus behavior.
  • Restored compact mobile header actions, responsive avatar sizing, constrained action wrapping, visible short mobile labels, and accessible labels/titles for the sheet action controls.

Refactor impact

Primary owner:

  • Game mode UI

Impact areas reviewed:

  • GameSurface background navigation skip selector
  • GameCharacterSheet modal/header mobile layout and action accessibility

Boundary notes:

  • Feature-only React UI change under src/features; no engine, shared API, Tauri, storage, provider, schema, dependency, or prompt assembly changes.

Pressure points touched:

  • GameCharacterSheet only. GameSurface was inspected but not changed.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • node scratch/verify-issue-2147.mjs failed before the fix and passed after the fix for the missing sheet skip marker, dialog semantics, aria-labels, compact visible mobile action labels, responsive avatar sizing, and constrained action wrap.
  • node scratch/render-issue-2147.mjs passed after the fix at a 390x760 viewport: the backdrop and dialog match the same skip selector used by GameSurface, action labels are present, mobile action text is visible but compact, avatar measured 64x64, and no horizontal overflow was detected.
  • pnpm exec prettier --check src/features/modes/game/components/GameCharacterSheet.tsx passed.
  • pnpm exec eslint src/features/modes/game/components/GameCharacterSheet.tsx passed.
  • pnpm typecheck passed.
  • pnpm check passed after rebasing onto current origin/refactor.
  • Bunny manual review passed on the current one-file diff. The local proof-gate helper referenced by the workflow was not present on this machine, so that tooling limitation is recorded in scratch/bugfix-verification.json.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix only; no new discoverable feature or workflow.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • Local Playwright-rendered mobile proof screenshot: scratch/issue-2147-mobile-after.png.
  • gh gist create rejected binary PNG upload in this environment, so this draft does not embed a GitHub-renderable screenshot URL yet.

Summary by CodeRabbit

Release Notes

  • UI/UX Improvements

    • Refined character sheet dialog styling for improved visual consistency
    • Enhanced button layouts with responsive label displays
    • Improved close button positioning and accessibility
    • Updated character avatar fallback display
  • Accessibility

    • Improved dialog header accessibility with proper labeling
    • Added tooltips and labels to action controls for better usability

🔄 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/2227 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2147-character-sheet-nav` --- ### 📝 Commits (2) - [`6486e9b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6486e9beb9bad0b01030df9d597aa26aedb10272) Fix game character sheet mobile nav - [`5a0458c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a0458c8dadc2ca4901a315eb2c650baaac0dcee) Address character sheet review feedback ### 📊 Changes **1 file changed** (+39 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GameCharacterSheet.tsx` (+39 -19) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #2147 ## Why this change - Game mode's character sheet regressed from the legacy behavior: wheel/background-click navigation could fire through the open sheet, and narrow mobile headers lost compact controls, responsive avatar sizing, and accessible labels. ## What changed - Restored `data-game-skip-bg-nav="true"` on the sheet backdrop so `GameSurface` skips wheel/background navigation while the sheet is open. - Added labelled dialog semantics without overclaiming modal focus behavior. - Restored compact mobile header actions, responsive avatar sizing, constrained action wrapping, visible short mobile labels, and accessible labels/titles for the sheet action controls. ## Refactor impact Primary owner: - Game mode UI Impact areas reviewed: - `GameSurface` background navigation skip selector - `GameCharacterSheet` modal/header mobile layout and action accessibility Boundary notes: - Feature-only React UI change under `src/features`; no engine, shared API, Tauri, storage, provider, schema, dependency, or prompt assembly changes. Pressure points touched: - `GameCharacterSheet` only. `GameSurface` was inspected but not changed. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `node scratch/verify-issue-2147.mjs` failed before the fix and passed after the fix for the missing sheet skip marker, dialog semantics, aria-labels, compact visible mobile action labels, responsive avatar sizing, and constrained action wrap. - `node scratch/render-issue-2147.mjs` passed after the fix at a 390x760 viewport: the backdrop and dialog match the same skip selector used by `GameSurface`, action labels are present, mobile action text is visible but compact, avatar measured `64x64`, and no horizontal overflow was detected. - `pnpm exec prettier --check src/features/modes/game/components/GameCharacterSheet.tsx` passed. - `pnpm exec eslint src/features/modes/game/components/GameCharacterSheet.tsx` passed. - `pnpm typecheck` passed. - `pnpm check` passed after rebasing onto current `origin/refactor`. - Bunny manual review passed on the current one-file diff. The local proof-gate helper referenced by the workflow was not present on this machine, so that tooling limitation is recorded in `scratch/bugfix-verification.json`. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix only; no new discoverable feature or workflow. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - Local Playwright-rendered mobile proof screenshot: `scratch/issue-2147-mobile-after.png`. - `gh gist create` rejected binary PNG upload in this environment, so this draft does not embed a GitHub-renderable screenshot URL yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **UI/UX Improvements** * Refined character sheet dialog styling for improved visual consistency * Enhanced button layouts with responsive label displays * Improved close button positioning and accessibility * Updated character avatar fallback display * **Accessibility** * Improved dialog header accessibility with proper labeling * Added tooltips and labels to action controls for better usability <!-- 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-22 04:16:46 +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#5490
No description provided.