[GH-ISSUE #2152] [Issue]: Game mode — legacy hud_bottom HUD widgets silently vanish (back-compat remap removed) #1062

Closed
opened 2026-10-21 05:26:11 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2152

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor (legacy-migration edge case). Persisted HUD widgets with the legacy position: "hud_bottom" render in no column at all. Main remapped them onto alternating left/right; the refactor dropped that remap, so legacy-game widgets become invisible (data preserved on disk).

Expected behavior

As in main: normalizedWidgets remaps any hud_bottom widget onto alternating hud_left/hud_right so it stays visible (the panel filter only matches left/right).

Actual behavior

normalizedWidgets = hudWidgets (passthrough); hud_bottom appears nowhere in the refactor (grep = 0); normalizeHudWidgets never touches position. A persisted hud_bottom widget loads but matches neither panel filter -> rendered in no column on desktop or mobile.

Steps to reproduce

  1. Open a game whose persisted gameWidgetState contains a widget with position: "hud_bottom" (produced by an older build).
  2. Refactor: the widget appears in neither HUD column. Main: it is remapped and renders. The data still round-trips in chatMeta.gameWidgetState.

Impact area

  • Game mode

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/client/src/components/game/GameSurface.tsx:7521-7532 (remap).
  • refactor: src/features/modes/game/components/GameSurface.tsx:7768 (const normalizedWidgets = hudWidgets;); filter GameWidgetPanel.tsx:60-61; position type narrowed at src/engine/contracts/types/game.ts:443.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2152 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor (legacy-migration edge case).** Persisted HUD widgets with the legacy `position: "hud_bottom"` render in no column at all. Main remapped them onto alternating left/right; the refactor dropped that remap, so legacy-game widgets become invisible (data preserved on disk). ## Expected behavior As in main: `normalizedWidgets` remaps any `hud_bottom` widget onto alternating `hud_left`/`hud_right` so it stays visible (the panel filter only matches left/right). ## Actual behavior `normalizedWidgets = hudWidgets` (passthrough); `hud_bottom` appears nowhere in the refactor (grep = 0); `normalizeHudWidgets` never touches position. A persisted `hud_bottom` widget loads but matches neither panel filter -> rendered in no column on desktop or mobile. ## Steps to reproduce 1. Open a game whose persisted `gameWidgetState` contains a widget with `position: "hud_bottom"` (produced by an older build). 2. Refactor: the widget appears in neither HUD column. Main: it is remapped and renders. The data still round-trips in `chatMeta.gameWidgetState`. ## Impact area - [x] Game mode ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/client/src/components/game/GameSurface.tsx:7521-7532` (remap). - refactor: `src/features/modes/game/components/GameSurface.tsx:7768` (`const normalizedWidgets = hudWidgets;`); filter `GameWidgetPanel.tsx:60-61`; position type narrowed at `src/engine/contracts/types/game.ts:443`.
bsakaguchi 2026-10-21 05:26:11 +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#1062
No description provided.