houserules/packages/chess/src/ui
Joey Yakimowich-Payne 31af101b55
feat(ui): multi-profile stacking in lobby
T3 Wave 4 (T27). Lobby now supports stacking multiple modifier
profiles for solo play. The primary picker stays single-select for
backwards compatibility with multiplayer create/join (which sends
exactly one ModifierProfile on the wire today); a 'Stacked (solo
only)' list below it lets the user append additional profiles, with
up/down reorder and remove buttons per entry.

State:
- additionalProfiles: ModifierProfile[] holds the stack-on-top
  entries. Empty by default; appears in the UI only when the primary
  picker has a selection.

resetToFreshGame branches:
- 0 or 1 profile total → unchanged single-profile fast path through
  EngineOptions.profile (preserves T1/T2 behaviour exactly).
- 2+ profiles → constructs a profile-less engine, then runs
  applyProfilesToSession across the full ordered stack so additive
  contributions compose correctly across profiles. Sets activeProfile
  to the LAST entry as a UI-display canonical (header badge etc.).

UI:
- Primary picker unchanged.
- profile-stack list with data-testids profile-stack, profile-stack-{i},
  profile-stack-{i}-up/down/remove for e2e access.
- profile-stack-add dropdown filters out already-selected ids.

Multiplayer wire shape unchanged — sending the stack to the server is
a future T27 extension that would touch the protocol.

E2E for the new stacking UI defers to T29; existing 9/9 solo-smoke
+ all 1378 unit tests pass.
2026-04-19 20:22:58 -06:00
..
Board.tsx feat(ui): modified-piece indicator on board 2026-04-19 09:16:07 -06:00
ConflictResolutionPanel.tsx chore(sisyphus): complete modifier-profiles-t2 boulder 2026-04-19 10:20:26 -06:00
CustomModifierEditor.tsx feat(ui): custom modifier editor 2026-04-19 20:17:33 -06:00
GameView.tsx feat(ui): consent dialog for modifier profile proposals 2026-04-19 09:43:12 -06:00
ImportExport.tsx feat(chess): polish UI with SVG pieces, motion animations, sound, and confetti 2026-04-17 12:04:56 -06:00
LayoutEditor.tsx style(ui): floor editor modal height at 85vh so empty state isn't flat 2026-04-19 16:52:08 -06:00
LayoutPicker.tsx fix(chess): global Esc handler + stable test selectors for layouts e2e 2026-04-18 20:23:07 -06:00
Lobby.tsx feat(ui): multi-profile stacking in lobby 2026-04-19 20:22:58 -06:00
ModifiedPieceIndicator.tsx refactor(ui): use asEntityId helper at piece-id boundaries 2026-04-19 13:53:45 -06:00
ModifierPinnedPanel.tsx refactor(ui): use asEntityId helper at piece-id boundaries 2026-04-19 13:53:45 -06:00
ModifierProfileEditor.tsx feat(ui): custom modifier editor 2026-04-19 20:17:33 -06:00
ModifierProposalDialog.tsx feat(ui): consent dialog for modifier profile proposals 2026-04-19 09:43:12 -06:00
ModifierTooltip.tsx feat(ui): hide modifier tooltip on pieces with no active modifiers 2026-04-19 16:58:04 -06:00
PerInstancePanel.tsx feat(ui): custom modifiers in modifier profile panels 2026-04-19 20:20:03 -06:00
PerTypePanel.tsx feat(ui): custom modifiers in modifier profile panels 2026-04-19 20:20:03 -06:00
Piece.tsx feat(chess): preset-flexibility architecture — decouple HP, damage, piece-types, state, effects 2026-04-18 16:26:17 -06:00
preset-overlays.tsx feat(chess): flesh out all six remaining stub presets 2026-04-17 16:16:11 -06:00
RulesDrawer.tsx fix(ui): rules drawer Esc handling — unblock board after drawer close 2026-04-19 08:38:05 -06:00
RulesView.tsx feat(chess): piece-hp mechanic + extensible preset-hook infrastructure 2026-04-17 15:54:33 -06:00
SavePanel.tsx feat(chess): polish UI with SVG pieces, motion animations, sound, and confetti 2026-04-17 12:04:56 -06:00
VisualEffectLayer.tsx feat(chess): preset-flexibility architecture — decouple HP, damage, piece-types, state, effects 2026-04-18 16:26:17 -06:00