[PR #8049] [MERGED] feat(game): a sidebar fight screen for ruleset fights on a board #8076

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

📋 Pull Request Information

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

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


📝 Commits (10+)

  • 1ad5fad Game Mode: sidebar layout for fights on a board
  • 4cad15c Regenerate the ruleset JSON schema for the fight screen keys
  • 999cb54 Fight screen: option icons column, caught rings from held cells, settings bubble steps aside
  • 7638944 Game Mode fight screen: phone tabs for the board and the turn
  • e36167f e2e: open the board tab on a phone before reading the board
  • 66ded56 Game Mode fight screen: end-of-fight card and one Ready entry
  • 92f4fbc Game Mode fight menu: one click for a lone alter, readied attack on its only foe
  • ac7b323 Merge remote-tracking branch 'origin/staging' into claude/project-thread-jq4wp7
  • 82d5bc5 Game Mode fight screen: localize the Esc hint and the turn strip's token label
  • ec0eb5e Game Mode fight screen: Dottore findings on #8049

📊 Changes

36 files changed (+2894 additions, -711 deletions)

View changed files

📝 docs/extending/ruleset.schema.json (+49 -0)
📝 docs/extending/writing-rulesets.md (+2 -0)
📝 e2e/game-combat-director.e2e.ts (+13 -1)
📝 e2e/game-world-elements.e2e.ts (+8 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+4 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -2)
📝 packages/client/src/components/game/CombatWeatherSummary.tsx (+13 -2)
📝 packages/client/src/components/game/DirectedCombatUI.tsx (+37 -23)
📝 packages/client/src/components/game/GameSurface.tsx (+13 -4)
➕ packages/client/src/components/game/RulesetBudgetPip.tsx (+72 -0)
📝 packages/client/src/components/game/RulesetCombatBoard.tsx (+99 -96)
➕ packages/client/src/components/game/RulesetCombatLog.tsx (+111 -0)
📝 packages/client/src/components/game/RulesetCombatMenu.tsx (+851 -555)
➕ packages/client/src/components/game/RulesetCombatScreen.tsx (+724 -0)
📝 packages/client/src/components/game/RulesetCombatStatus.tsx (+1 -1)
➕ packages/client/src/components/game/RulesetTurnOrder.tsx (+363 -0)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -1)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+2 -2)
➕ packages/client/src/components/layout/CombatTopbarControls.tsx (+59 -0)
📝 packages/client/src/components/layout/TopBar.tsx (+4 -2)

...and 16 more files

📄 Description

Linked issue

Closes #8048

Why this change

  • A ruleset fight on a board squeezed the board, menu, turn order and log into one strip. The board stayed small until an option was picked, and on a phone the menu and the board competed for the same space.
  • The end of a fight was easy to miss: the header kept saying it was waiting, and Continue story sat below the fold.
  • A ruleset had no say in how its budgets, defense and pools are shown.

What changed

  • Fight screen: a ruleset fight on a board now takes the chat area. The board sits with the log under it, and a side pane holds the turn: who is up, their budgets as lettered pips, movement and pools, the options, the reaction question, the turn order table and the zones. The chat list, map, party bar and Game toolbar bubbles step aside while the fight is up and come back after.
  • Top bar: shows "Combat · Round N", a log toggle and a pane toggle.
  • Board: circles for the party and rounded squares for the other side. Glows mark whose turn it is, who can be targeted and who an area catches. Tints mark reach and the held area, and an AI tag marks companions played by the AI.
  • Log: newest first, with the round named once in its own column, names in their side's colour and each roll's arithmetic in a chip. The line a reaction is asked on is highlighted.
  • Options: grouped by kind, with cost, reach and forecast on each row. The step (pay, target, alter) opens under its row. Standard actions and every readied option each fold into one entry. A readied action with only one possible foe skips the target step, and an alter that can't be combined with another continues in one click.
  • Reactions: a card says who may answer, what is coming and whom it catches, with the answers and "Let it go by".
  • Phone: the board and "Turn and options" are two tabs. A walk, aim or target step moves to the board with its prompt (worded for a tap) and Back in a bar under it. A question opens the pane, with "See it on the board" and "Back to the answer". End turn sits on the board tab, and Leave asks for a second tap. Rows are at least 44 px tall.
  • End of fight: a card at the top of the pane gives the result, the rounds, the foes beaten, how each party member stands and any loot, with Continue story. A phone switches to it.
  • Ruleset keys (Capability API 1.375): a budget's short (one or two letters) and tone (rose, amber, violet, teal, sky, lime, orange, slate), and combat.display: defense.short, defense.hide, and pools (which sheet pools show under the turn, in order). Without them, the screen derives letters, tones, the defense heading and the pools from the ruleset. Documented in writing-rulesets.md; ruleset.schema.json is regenerated.
  • Server view: each combatant carries its pools, and a reaction window carries the cells of an aimed area, so the board can draw what an area will catch.

Validation

  • pnpm check passes locally
  • 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

  • Client and server typecheck, and eslint on the changed client files, pass. Ruleset regressions pass (277/277), as do capability-package regressions (5/5).
  • e2e on desktop-chromium and mobile-chromium: game-combat-director, game-world-elements and the other board files (combat AI, height, initiative, sight, creature art, hybrid terrain, ruleset ammo, item use, weapon modes, weapons, terrain restore, world battlefields, experience setup) pass. game-combat-director and game-world-elements now open the Board tab on a phone.
  • In a 5e fight on desktop (light and dark) and on a 390 px phone with touch: walked, aimed Burning Hands, answered a Counterspell window and played the fight to its end.

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)

The writing-rulesets.md paragraph is tracked for translation on #7512.

UI evidence (if applicable)

Desktop and phone screenshots were reviewed before this PR was opened: the turn, a walk, an aimed spell, a reaction and the end of a fight.


🔄 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/8049 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `claude/project-thread-jq4wp7` --- ### 📝 Commits (10+) - [`1ad5fad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ad5fad3b377425b8e9c4089c6573d10b14f41d6) Game Mode: sidebar layout for fights on a board - [`4cad15c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cad15cce2f7e24a902d0d1665b2ecd7a77816e9) Regenerate the ruleset JSON schema for the fight screen keys - [`999cb54`](https://github.com/Pasta-Devs/Marinara-Engine/commit/999cb549f2839cfe42514ba56d61e9074c93386d) Fight screen: option icons column, caught rings from held cells, settings bubble steps aside - [`7638944`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7638944899c8e1c7f65ec493b62dcc43cbf57866) Game Mode fight screen: phone tabs for the board and the turn - [`e36167f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e36167fa972e7be2a0a35bef96e738f941dfb589) e2e: open the board tab on a phone before reading the board - [`66ded56`](https://github.com/Pasta-Devs/Marinara-Engine/commit/66ded564b4d96cabff9a5ea8f648872d581bb206) Game Mode fight screen: end-of-fight card and one Ready entry - [`92f4fbc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/92f4fbc463dbc377841fc58fdcc1db6524e51821) Game Mode fight menu: one click for a lone alter, readied attack on its only foe - [`ac7b323`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ac7b3235a032560a02263841895a72f3cb867775) Merge remote-tracking branch 'origin/staging' into claude/project-thread-jq4wp7 - [`82d5bc5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82d5bc5be80171df74f17920ad2d8d247bde799f) Game Mode fight screen: localize the Esc hint and the turn strip's token label - [`ec0eb5e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ec0eb5ea7fb64779e38dfa060a85eb683193b6dd) Game Mode fight screen: Dottore findings on #8049 ### 📊 Changes **36 files changed** (+2894 additions, -711 deletions) <details> <summary>View changed files</summary> 📝 `docs/extending/ruleset.schema.json` (+49 -0) 📝 `docs/extending/writing-rulesets.md` (+2 -0) 📝 `e2e/game-combat-director.e2e.ts` (+13 -1) 📝 `e2e/game-world-elements.e2e.ts` (+8 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -2) 📝 `packages/client/src/components/game/CombatWeatherSummary.tsx` (+13 -2) 📝 `packages/client/src/components/game/DirectedCombatUI.tsx` (+37 -23) 📝 `packages/client/src/components/game/GameSurface.tsx` (+13 -4) ➕ `packages/client/src/components/game/RulesetBudgetPip.tsx` (+72 -0) 📝 `packages/client/src/components/game/RulesetCombatBoard.tsx` (+99 -96) ➕ `packages/client/src/components/game/RulesetCombatLog.tsx` (+111 -0) 📝 `packages/client/src/components/game/RulesetCombatMenu.tsx` (+851 -555) ➕ `packages/client/src/components/game/RulesetCombatScreen.tsx` (+724 -0) 📝 `packages/client/src/components/game/RulesetCombatStatus.tsx` (+1 -1) ➕ `packages/client/src/components/game/RulesetTurnOrder.tsx` (+363 -0) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -1) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+2 -2) ➕ `packages/client/src/components/layout/CombatTopbarControls.tsx` (+59 -0) 📝 `packages/client/src/components/layout/TopBar.tsx` (+4 -2) _...and 16 more files_ </details> ### 📄 Description ## Linked issue Closes #8048 ## Why this change - A ruleset fight on a board squeezed the board, menu, turn order and log into one strip. The board stayed small until an option was picked, and on a phone the menu and the board competed for the same space. - The end of a fight was easy to miss: the header kept saying it was waiting, and Continue story sat below the fold. - A ruleset had no say in how its budgets, defense and pools are shown. ## What changed - **Fight screen:** a ruleset fight on a board now takes the chat area. The board sits with the log under it, and a side pane holds the turn: who is up, their budgets as lettered pips, movement and pools, the options, the reaction question, the turn order table and the zones. The chat list, map, party bar and Game toolbar bubbles step aside while the fight is up and come back after. - **Top bar:** shows "Combat · Round N", a log toggle and a pane toggle. - **Board:** circles for the party and rounded squares for the other side. Glows mark whose turn it is, who can be targeted and who an area catches. Tints mark reach and the held area, and an AI tag marks companions played by the AI. - **Log:** newest first, with the round named once in its own column, names in their side's colour and each roll's arithmetic in a chip. The line a reaction is asked on is highlighted. - **Options:** grouped by kind, with cost, reach and forecast on each row. The step (pay, target, alter) opens under its row. Standard actions and every readied option each fold into one entry. A readied action with only one possible foe skips the target step, and an alter that can't be combined with another continues in one click. - **Reactions:** a card says who may answer, what is coming and whom it catches, with the answers and "Let it go by". - **Phone:** the board and "Turn and options" are two tabs. A walk, aim or target step moves to the board with its prompt (worded for a tap) and Back in a bar under it. A question opens the pane, with "See it on the board" and "Back to the answer". End turn sits on the board tab, and Leave asks for a second tap. Rows are at least 44 px tall. - **End of fight:** a card at the top of the pane gives the result, the rounds, the foes beaten, how each party member stands and any loot, with Continue story. A phone switches to it. - **Ruleset keys (Capability API 1.375):** a budget's `short` (one or two letters) and `tone` (`rose`, `amber`, `violet`, `teal`, `sky`, `lime`, `orange`, `slate`), and `combat.display`: `defense.short`, `defense.hide`, and `pools` (which sheet pools show under the turn, in order). Without them, the screen derives letters, tones, the defense heading and the pools from the ruleset. Documented in `writing-rulesets.md`; `ruleset.schema.json` is regenerated. - **Server view:** each combatant carries its `pools`, and a reaction window carries the `cells` of an aimed area, so the board can draw what an area will catch. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Client and server typecheck, and eslint on the changed client files, pass. Ruleset regressions pass (277/277), as do capability-package regressions (5/5). - e2e on desktop-chromium and mobile-chromium: `game-combat-director`, `game-world-elements` and the other board files (combat AI, height, initiative, sight, creature art, hybrid terrain, ruleset ammo, item use, weapon modes, weapons, terrain restore, world battlefields, experience setup) pass. `game-combat-director` and `game-world-elements` now open the Board tab on a phone. - In a 5e fight on desktop (light and dark) and on a 390 px phone with touch: walked, aimed Burning Hands, answered a Counterspell window and played the fight to its end. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed - [x] 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) The `writing-rulesets.md` paragraph is tracked for translation on #7512. ## UI evidence (if applicable) Desktop and phone screenshots were reviewed before this PR was opened: the turn, a walk, an aimed spell, a reaction and the end of a fight. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10: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#8076
No description provided.