[PR #7989] [MERGED] fix(game): name the inventory's close button and close it on Escape #8045

Closed
opened 2026-10-24 04:09:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7989
Author: @kolacheee
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @kolacheee

Base: staging ← Head: claude/project-thread-ztsq0l


📝 Commits (3)

  • 72b52d0 fix(game): name the inventory's close button and close it on Escape
  • b4312f9 Merge remote-tracking branch 'origin/staging' into claude/project-thread-ztsq0l
  • a82a179 fix(game): keep Escape in the inventory's give-to dropdown for the give

📊 Changes

4 files changed (+53 additions, -9 deletions)

View changed files

📝 e2e/game-inventory-bags.e2e.ts (+9 -1)
📝 e2e/game-ruleset-money.e2e.ts (+16 -7)
📝 packages/client/src/components/game/GameInventory.tsx (+27 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)

📄 Description

Linked issue

Closes #6904

Why this change

  • The X in the Game Mode inventory window was named only "Close", unlike other close buttons in the app ("Close Professor Mari chat", "Close Trackers"), so a screen reader could not tell what it closes.
  • Pressing Escape did nothing, although the window is a modal dialog.

What changed

  • The inventory window's close button is named "Close inventory".
  • Escape closes the inventory window. A picker opened on top of it (adding items from the ruleset, starting gear) still takes the press first and closes alone, and Escape typed in one of the window's own fields keeps doing what it did (resetting a name, dropping a split or a give).

Validation

  • pnpm check passes locally (format, locales, lint, e2e and token types, build)
  • 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

  • e2e/game-ruleset-money.e2e.ts no longer reloads the page to close the inventory: it presses Escape with the ruleset picker open (only the picker closes), then closes the inventory with Escape, reopens it and closes it with the "Close inventory" button.
  • game-ruleset-money, game-inventory-bags and game-inventory-stacks e2e pass on desktop-chromium and mobile-chromium (8 of 8).

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Generated by Claude Code


🔄 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/7989 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-ztsq0l` --- ### 📝 Commits (3) - [`72b52d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72b52d0e21158b2abfa602bfa03efff2ea78a9ef) fix(game): name the inventory's close button and close it on Escape - [`b4312f9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4312f9748158793e102438aa6be76b141253d96) Merge remote-tracking branch 'origin/staging' into claude/project-thread-ztsq0l - [`a82a179`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a82a1795a4c6269cab0020a036ae2c7b8b7a5c25) fix(game): keep Escape in the inventory's give-to dropdown for the give ### 📊 Changes **4 files changed** (+53 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `e2e/game-inventory-bags.e2e.ts` (+9 -1) 📝 `e2e/game-ruleset-money.e2e.ts` (+16 -7) 📝 `packages/client/src/components/game/GameInventory.tsx` (+27 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #6904 ## Why this change - The X in the Game Mode inventory window was named only "Close", unlike other close buttons in the app ("Close Professor Mari chat", "Close Trackers"), so a screen reader could not tell what it closes. - Pressing Escape did nothing, although the window is a modal dialog. ## What changed - The inventory window's close button is named "Close inventory". - Escape closes the inventory window. A picker opened on top of it (adding items from the ruleset, starting gear) still takes the press first and closes alone, and Escape typed in one of the window's own fields keeps doing what it did (resetting a name, dropping a split or a give). ## Validation - [x] `pnpm check` passes locally (format, locales, lint, e2e and token types, build) - [ ] 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) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `e2e/game-ruleset-money.e2e.ts` no longer reloads the page to close the inventory: it presses Escape with the ruleset picker open (only the picker closes), then closes the inventory with Escape, reopens it and closes it with the "Close inventory" button. - `game-ruleset-money`, `game-inventory-bags` and `game-inventory-stacks` e2e pass on desktop-chromium and mobile-chromium (8 of 8). ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) --- _Generated by [Claude Code](https://claude.ai/code/session_01MTYkYf4XtiA3Ba72RdRXk4)_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:55 +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#8045
No description provided.