[PR #8182] [MERGED] fix(game): validate saved combat style pairs and show registered choices #8143

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8182
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/combat-style-metadata-8176


📝 Commits (2)

  • b6fc962 chore: start combat style follow-up #8176
  • 0400ab5 fix(game): validate queued combat ruleset and expose registered styles

📊 Changes

5 files changed (+353 additions, -51 deletions)

View changed files

📝 e2e/game-experience-setup.e2e.ts (+86 -2)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+24 -4)
📝 packages/server/src/routes/chats.routes.ts (+48 -42)
➕ scripts/regressions/chat-combat-style-metadata.regression.ts (+179 -0)
📝 scripts/regressions/ruleset-combat-styles.regression.ts (+16 -3)

📄 Description

Linked issue

Closes #8176

Why this change

A ruleset-only metadata update could save a combat preference the new ruleset forbids, while changing both together checked the old ruleset and rejected a valid selection. Setup also resolved registered custom styles without displaying their buttons.

What changed

  • Changing a game ruleset now refuses an incompatible combat preference; changing to an allowed preference together succeeds. Validation reads the fresh merged pair inside the existing per-chat metadata queue, before either normal or summary-hiding writes. Refusals retain metadata, activity and write ordinals.
  • Game setup offers every registered style allowed by the selected ruleset, using its authored label or ID, with selected state and wrapping. Built-in descriptions, fallback behavior and submitted style IDs retain the existing registry contract.
  • Lowercase and maximum-eight schema fixtures include a valid built-in style so each negative tests only its intended rule; exactly eight valid IDs are accepted.

Validation

Final source: 0400ab5c067c94017e6de4f074ed6cc2c50553df (base a45d57b036d7b63669afdeca290550988390479a). Published logs and seven-capture gallery.

  • Pinned offline pnpm install and final pnpm check: PASS; one inherited HomeProfessorMariChat hook warning. An initial ENOSPC baseline attempt is retained separately; the unchanged replay passed after disposable-data cleanup.

  • Canonical combat regression selection:3/3 files PASS, including12 actual route/storage cases. Original product failed10 controls, including both queued fresh-state paths. Existing memory exclusivity, profile summary hiding and view-only window layout controls:3/3 PASS.

  • Registered setup:6/6 dark/light cases across desktop Chromium, mobile Chromium and mobile WebKit PASS. Actual registry selection/filtering/default fallback/prior-pick restore/long-label geometry/final submitted custom ID verified. Before case reproduces the missing button.

  • pnpm smoke:ui:7/7 PASS. Fresh compiled pnpm smoke:production:3/3 PASS.

  • Final committed five-file local CodeRabbit review:0 findings on0400. Two earlier quota rejections occurred before examination; the9-minute and27-second cooldowns were honored. No paid capacity enabled or accepted review cancelled.

  • Exact-head hosted evidence before ready:7/7 currently reported required checks PASS, complete Node regressions PASS (all3shards, run39972510743), platform10/10 PASS (run39972510745). Fresh ready-event checks and an actual viable Dottore verdict remain merge gates.

  • pnpm check passes locally

  • Container built and ran without issue

  • Manually verify registered style selection, ruleset changes and long labels in browser

  • Manually verify dark/light and mobile layouts

  • Read and followed CONTRIBUTING.md

Manual verification notes

Both implementing and independent UI agents visually inspected all seven captures. The original shows Tactical alone; final custom controls wrap and fit with visible navigation. WebKit's existing translucent modal backdrop is outside this fix. This is controlled browser emulation, not physical-device proof. Local Docker build/run is unavailable because the OrbStack daemon socket is absent; hosted container checks remain merge gates. Pending/skipped hosted checks are not reported as passed.

Docs and release impact

This restores the existing documented combat-style/registry contract. No docs, release metadata, capability API, storage format or changelog changes.

  • No docs changes needed
  • Translated docs updated or follow-up opened when applicable
  • Release/version files updated when applicable

UI evidence (if applicable)

Before/after desktop and dark/light mobile gallery, raw PNG hashes and logs. Download gallery.html to inspect the seven embedded original PNG captures. Failure traces and videos are preserved locally.


🔄 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/8182 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/combat-style-metadata-8176` --- ### 📝 Commits (2) - [`b6fc962`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b6fc962f7c44d199c7dcdd2fe109bbb911695ee2) chore: start combat style follow-up #8176 - [`0400ab5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0400ab5c067c94017e6de4f074ed6cc2c50553df) fix(game): validate queued combat ruleset and expose registered styles ### 📊 Changes **5 files changed** (+353 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `e2e/game-experience-setup.e2e.ts` (+86 -2) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+24 -4) 📝 `packages/server/src/routes/chats.routes.ts` (+48 -42) ➕ `scripts/regressions/chat-combat-style-metadata.regression.ts` (+179 -0) 📝 `scripts/regressions/ruleset-combat-styles.regression.ts` (+16 -3) </details> ### 📄 Description ## Linked issue Closes #8176 ## Why this change A ruleset-only metadata update could save a combat preference the new ruleset forbids, while changing both together checked the old ruleset and rejected a valid selection. Setup also resolved registered custom styles without displaying their buttons. ## What changed - Changing a game ruleset now refuses an incompatible combat preference; changing to an allowed preference together succeeds. Validation reads the fresh merged pair inside the existing per-chat metadata queue, before either normal or summary-hiding writes. Refusals retain metadata, activity and write ordinals. - Game setup offers every registered style allowed by the selected ruleset, using its authored label or ID, with selected state and wrapping. Built-in descriptions, fallback behavior and submitted style IDs retain the existing registry contract. - Lowercase and maximum-eight schema fixtures include a valid built-in style so each negative tests only its intended rule; exactly eight valid IDs are accepted. ## Validation Final source: `0400ab5c067c94017e6de4f074ed6cc2c50553df` (base `a45d57b036d7b63669afdeca290550988390479a`). [Published logs and seven-capture gallery](https://gist.github.com/SpicyMarinara/4b033a185d134bf9af6a235b8a7926d5). - Pinned offline `pnpm install` and final `pnpm check`: PASS; one inherited HomeProfessorMariChat hook warning. An initial ENOSPC baseline attempt is retained separately; the unchanged replay passed after disposable-data cleanup. - Canonical combat regression selection:3/3 files PASS, including12 actual route/storage cases. Original product failed10 controls, including both queued fresh-state paths. Existing memory exclusivity, profile summary hiding and view-only window layout controls:3/3 PASS. - Registered setup:6/6 dark/light cases across desktop Chromium, mobile Chromium and mobile WebKit PASS. Actual registry selection/filtering/default fallback/prior-pick restore/long-label geometry/final submitted custom ID verified. Before case reproduces the missing button. - `pnpm smoke:ui`:7/7 PASS. Fresh compiled `pnpm smoke:production`:3/3 PASS. - Final committed five-file local CodeRabbit review:0 findings on0400. Two earlier quota rejections occurred before examination; the9-minute and27-second cooldowns were honored. No paid capacity enabled or accepted review cancelled. - Exact-head hosted evidence before ready:7/7 currently reported required checks PASS, complete Node regressions PASS (all3shards, run39972510743), platform10/10 PASS (run39972510745). Fresh ready-event checks and an actual viable Dottore verdict remain merge gates. - [ ] `pnpm check` passes locally - [ ] Container built and ran without issue - [ ] Manually verify registered style selection, ruleset changes and long labels in browser - [ ] Manually verify dark/light and mobile layouts - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Both implementing and independent UI agents visually inspected all seven captures. The original shows Tactical alone; final custom controls wrap and fit with visible navigation. WebKit's existing translucent modal backdrop is outside this fix. This is controlled browser emulation, not physical-device proof. Local Docker build/run is unavailable because the OrbStack daemon socket is absent; hosted container checks remain merge gates. Pending/skipped hosted checks are not reported as passed. ## Docs and release impact This restores the existing documented combat-style/registry contract. No docs, release metadata, capability API, storage format or changelog changes. - [ ] No docs changes needed - [ ] Translated docs updated or follow-up opened when applicable - [ ] Release/version files updated when applicable ## UI evidence (if applicable) [Before/after desktop and dark/light mobile gallery, raw PNG hashes and logs](https://gist.github.com/SpicyMarinara/4b033a185d134bf9af6a235b8a7926d5). Download `gallery.html` to inspect the seven embedded original PNG captures. Failure traces and videos are preserved locally. --- <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:44 +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#8143
No description provided.