[PR #984] [MERGED] Fix combat enemy dialogue clipping #4873

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/984
Author: @cha1latte
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-981-combat-dialogue-bounds


📝 Commits (1)

  • d53cd99 Fix combat enemy dialogue clipping

📊 Changes

3 files changed (+2 additions, -1 deletions)

View changed files

➕ docs/pr-evidence/issue-981/after.png (+0 -0)
➕ docs/pr-evidence/issue-981/before.png (+0 -0)
📝 packages/client/src/components/game/GameCombatUI.tsx (+2 -1)

📄 Description

Linked issue

Closes #981

Why this change

  • Enemy combat dialogue was anchored above top-row enemy cards, so long enemy barks could be clipped by the battle scene's overflow boundary and become unreadable.

What changed

  • Render enemy combat dialogue below enemy cards while keeping ally/player dialogue above bottom-row cards.
  • Added scoped before/after UI evidence images for the combat dialogue clipping repro.

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

  • Codex seeded a local game chat through the API, restored combat from gameCombatState, opened the real app, and measured combat dialogue against the overflow-hidden battle scene.
  • Before fix: enemy dialogue was clipped by the battle scene ancestor (enemyClipped: true), while ally dialogue remained visible.
  • After fix: the same seeded combat proof showed enemy and ally dialogue both inside the battle scene (enemyClipped: false, allyClipped: false).
  • Edge case: Codex re-ran the same proof at 1280x500; enemy and ally dialogue both remained visible.
  • pnpm check passed locally.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs, release metadata, schema, dependency, auth, storage, or prompt-pipeline changes.

UI evidence (if applicable)

Before:

Before: enemy combat dialogue clipped by battle scene overflow

After:

After: enemy combat dialogue stays inside the combat scene


🔄 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/984 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-981-combat-dialogue-bounds` --- ### 📝 Commits (1) - [`d53cd99`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d53cd99ca2c974003bea881a9e7323d76ee62f0a) Fix combat enemy dialogue clipping ### 📊 Changes **3 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-981/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-981/before.png` (+0 -0) 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+2 -1) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #981 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Enemy combat dialogue was anchored above top-row enemy cards, so long enemy barks could be clipped by the battle scene's overflow boundary and become unreadable. ## What changed <!-- List the key changes in this PR --> - Render enemy combat dialogue below enemy cards while keeping ally/player dialogue above bottom-row cards. - Added scoped before/after UI evidence images for the combat dialogue clipping repro. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex seeded a local game chat through the API, restored combat from `gameCombatState`, opened the real app, and measured combat dialogue against the `overflow-hidden` battle scene. - Before fix: enemy dialogue was clipped by the battle scene ancestor (`enemyClipped: true`), while ally dialogue remained visible. - After fix: the same seeded combat proof showed enemy and ally dialogue both inside the battle scene (`enemyClipped: false`, `allyClipped: false`). - Edge case: Codex re-ran the same proof at 1280x500; enemy and ally dialogue both remained visible. - `pnpm check` passed locally. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs, release metadata, schema, dependency, auth, storage, or prompt-pipeline changes. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before: ![Before: enemy combat dialogue clipped by battle scene overflow](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d53cd99ca2c974003bea881a9e7323d76ee62f0a/docs/pr-evidence/issue-981/before.png) After: ![After: enemy combat dialogue stays inside the combat scene](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d53cd99ca2c974003bea881a9e7323d76ee62f0a/docs/pr-evidence/issue-981/after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:20 +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#4873
No description provided.