[PR #2226] [MERGED] Fix mobile game party bar #5489

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/2226
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2146-mobile-party-bar


📝 Commits (3)

  • 7b05cd4 Fix mobile game party bar
  • 27361b7 Add party bar menu semantics
  • bdaf00a Remove incorrect party bar ARIA

📊 Changes

1 file changed (+178 additions, -47 deletions)

View changed files

📝 src/features/modes/game/components/GamePartyBar.tsx (+178 -47)

📄 Description

Linked issue

Closes #2146

Why this change

  • Game mode lost the mobile-collapsed party bar from the legacy UI. Below the md breakpoint, the refactor branch showed the full horizontally scrolling avatar strip instead of a single rotating preview avatar with a count badge and tap-open member popover.

What changed

  • Restored the mobile-only collapsed party preview with a rotating avatar, numeric count badge, and member popover.
  • Kept the desktop md party bar as the horizontal strip.
  • Shared avatar rendering between mobile and desktop so avatar crop/name-color behavior remains consistent.

Refactor impact

Primary owner:

game mode

Impact areas reviewed:

  • src/features/modes/game/components/GamePartyBar.tsx
  • src/features/modes/game/components/GameSurface.tsx call site was reviewed for the party bar container and props.

Boundary notes:

  • Feature-only React UI change under src/features.
  • No engine, shared API, Rust, storage, prompt, dependency, schema, or remote-runtime boundary changes.

Pressure points touched:

  • Game mode party HUD inside GameSurface; no ModeSurface or shared mode UI changes.

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

  • Focused Vite/Playwright proof harness:
    • Before fix at 375px: mobile viewport showed four visible character buttons and no party-members toggle.
    • After fix at 375px: collapsed state showed one accessible Open party members toggle with count badge 4.
    • After fix at 375px: tapping the preview opened all four members in the popover.
    • After fix at 375px: selecting Cai opened the character sheet and closed the popover.
    • After fix at 375px: tapping outside closed the popover.
    • After fix at 1024px: desktop kept the horizontal four-member strip and did not show the mobile toggle.
  • pnpm typecheck passed.
  • pnpm check passed locally on 2026-06-04.
  • Bunny review pass: no blocking findings before opening the PR.
  • Local proof artifact: scratch/bugfix-verification.json.
  • Local helper note: .agents/automation/scripts/workflow-health.mjs and C:/Users/celia/.codex/tools/marinara-proof-gate.mjs were not present in this checkout, so validation used the focused browser proof plus pnpm check.

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:

  • This restores existing mobile Game mode party-bar behavior; it does not add a new discoverable feature.

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

Before, mobile viewport shows the full party strip:

Before mobile party strip

After, mobile viewport is collapsed with count badge:

After mobile collapsed

After, tapping opens the member popover:

After mobile popover

After, desktop still shows the horizontal strip:

After desktop strip

Raw proof log:

https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/3bf04b6e2227496f35af216065d47af57d8ecc67/party-bar-proof-results.txt


🔄 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/2226 **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-2146-mobile-party-bar` --- ### 📝 Commits (3) - [`7b05cd4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7b05cd45831d9de629e9fefb75b44a29ca588b84) Fix mobile game party bar - [`27361b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/27361b709e2c80dd26a3b07cddf53c7bffc00620) Add party bar menu semantics - [`bdaf00a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bdaf00abfe8c8b5b045190255c7de620bfb028e9) Remove incorrect party bar ARIA ### 📊 Changes **1 file changed** (+178 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GamePartyBar.tsx` (+178 -47) </details> ### 📄 Description ## Linked issue Closes #2146 ## Why this change - Game mode lost the mobile-collapsed party bar from the legacy UI. Below the `md` breakpoint, the refactor branch showed the full horizontally scrolling avatar strip instead of a single rotating preview avatar with a count badge and tap-open member popover. ## What changed - Restored the mobile-only collapsed party preview with a rotating avatar, numeric count badge, and member popover. - Kept the desktop `md` party bar as the horizontal strip. - Shared avatar rendering between mobile and desktop so avatar crop/name-color behavior remains consistent. ## Refactor impact Primary owner: game mode Impact areas reviewed: - `src/features/modes/game/components/GamePartyBar.tsx` - `src/features/modes/game/components/GameSurface.tsx` call site was reviewed for the party bar container and props. Boundary notes: - Feature-only React UI change under `src/features`. - No engine, shared API, Rust, storage, prompt, dependency, schema, or remote-runtime boundary changes. Pressure points touched: - Game mode party HUD inside `GameSurface`; no `ModeSurface` or shared mode UI changes. ## 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 - Focused Vite/Playwright proof harness: - Before fix at 375px: mobile viewport showed four visible character buttons and no party-members toggle. - After fix at 375px: collapsed state showed one accessible `Open party members` toggle with count badge `4`. - After fix at 375px: tapping the preview opened all four members in the popover. - After fix at 375px: selecting `Cai` opened the character sheet and closed the popover. - After fix at 375px: tapping outside closed the popover. - After fix at 1024px: desktop kept the horizontal four-member strip and did not show the mobile toggle. - `pnpm typecheck` passed. - `pnpm check` passed locally on 2026-06-04. - Bunny review pass: no blocking findings before opening the PR. - Local proof artifact: `scratch/bugfix-verification.json`. - Local helper note: `.agents/automation/scripts/workflow-health.mjs` and `C:/Users/celia/.codex/tools/marinara-proof-gate.mjs` were not present in this checkout, so validation used the focused browser proof plus `pnpm check`. ## 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: - This restores existing mobile Game mode party-bar behavior; it does not add a new discoverable feature. ## 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 Before, mobile viewport shows the full party strip: ![Before mobile party strip](https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/cacf540602862ca2cc1aed794deebc7df33e5568/party-bar-before.svg) After, mobile viewport is collapsed with count badge: ![After mobile collapsed](https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/9e405b6ec1348f29bd9da36823fb758d63bf419d/party-bar-after-collapsed.svg) After, tapping opens the member popover: ![After mobile popover](https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/e9371dec2383c236182b28765c6e372a6f0ead20/party-bar-after-popover.svg) After, desktop still shows the horizontal strip: ![After desktop strip](https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/dffad76f06da543bf3ea9fa542e2e16a1dbcf8d4/party-bar-after-desktop.svg) Raw proof log: https://gist.githubusercontent.com/cha1latte/bda992db62e7ea7dc561259b150e293d/raw/3bf04b6e2227496f35af216065d47af57d8ecc67/party-bar-proof-results.txt --- <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#5489
No description provided.