[PR #1693] [MERGED] Fix game setup gate dialog semantics #5219

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

📋 Pull Request Information

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

Base: refactor ← Head: bughunt/refactor-lane4-game-20260531


📝 Commits (1)

  • eca78dd Fix game setup gate dialog semantics

📊 Changes

1 file changed (+15 additions, -5 deletions)

View changed files

📝 src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx (+15 -5)

📄 Description

Linked issue

N/A - refactor multi-agent bug-hunt lane 4.

Why this change

  • Game quick-start with no configured remote runtime opens a visual setup gate, but the gate was not exposed as a dialog to role-based browser automation or assistive technology.
  • This made the no-provider setup/error state harder to identify and verify even though it visually behaved like a modal.

What changed

  • Added role="dialog", aria-modal, and title/description wiring to the shared new-chat connection gate used by Game setup.
  • Marked the backdrop as aria-hidden so the semantic dialog is the accessible modal surface.

Refactor impact

Primary owner:

shared mode UI

Impact areas reviewed:

  • Game quick-start no-provider gate
  • Shared new-chat connection gate behavior for disabled Create Chat, Cancel, and Open Advanced Settings

Boundary notes:

  • UI-only change in src/features.
  • No engine, shared API, Rust, storage, provider, schema, dependency, auth, prompt-pipeline, or HUD-widget changes.

Pressure points touched:

  • NewChatConnectionGate in shared mode UI, reached from Game quick-start setup before gameplay.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex reproduced before fix with node scratch\lane4-no-provider-dialog-a11y-repro.mjs: Game quick-start no-provider gate showed Remote Runtime required and disabled Create Chat, but hasDialogRole=false.
  • Codex verified after fix with node scratch\lane4-no-provider-dialog-a11y-repro.mjs --expect-fixed: hasDialogRole=true, Remote Runtime required remains visible, and Create Chat remains disabled.
  • Codex checked adjacent no-provider controls with node scratch\lane4-no-provider-gate-hunt.mjs: Cancel closes the gate; Open Advanced Settings closes the gate and opens Settings > Advanced.
  • Codex ran node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json: passed.
  • Codex ran pnpm check: passed after fast-forwarding to current upstream/refactor.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

No visible UI layout change. Local Playwright evidence was captured under:

  • scratch/lane4-no-provider-dialog-before.png
  • scratch/lane4-no-provider-dialog-after.png
  • scratch/lane4-no-provider-gate-before.png
  • scratch/lane4-no-provider-after-cancel.png
  • scratch/lane4-no-provider-advanced-settings.png

🔄 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/1693 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `bughunt/refactor-lane4-game-20260531` --- ### 📝 Commits (1) - [`eca78dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eca78ddd3a77f00a398092e9da7ab3574abb7376) Fix game setup gate dialog semantics ### 📊 Changes **1 file changed** (+15 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx` (+15 -5) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue N/A - refactor multi-agent bug-hunt lane 4. ## Why this change - Game quick-start with no configured remote runtime opens a visual setup gate, but the gate was not exposed as a `dialog` to role-based browser automation or assistive technology. - This made the no-provider setup/error state harder to identify and verify even though it visually behaved like a modal. ## What changed - Added `role="dialog"`, `aria-modal`, and title/description wiring to the shared new-chat connection gate used by Game setup. - Marked the backdrop as `aria-hidden` so the semantic dialog is the accessible modal surface. ## Refactor impact Primary owner: shared mode UI Impact areas reviewed: - Game quick-start no-provider gate - Shared new-chat connection gate behavior for disabled Create Chat, Cancel, and Open Advanced Settings Boundary notes: - UI-only change in `src/features`. - No engine, shared API, Rust, storage, provider, schema, dependency, auth, prompt-pipeline, or HUD-widget changes. Pressure points touched: - `NewChatConnectionGate` in shared mode UI, reached from Game quick-start setup before gameplay. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex reproduced before fix with `node scratch\lane4-no-provider-dialog-a11y-repro.mjs`: Game quick-start no-provider gate showed Remote Runtime required and disabled Create Chat, but `hasDialogRole=false`. - Codex verified after fix with `node scratch\lane4-no-provider-dialog-a11y-repro.mjs --expect-fixed`: `hasDialogRole=true`, Remote Runtime required remains visible, and Create Chat remains disabled. - Codex checked adjacent no-provider controls with `node scratch\lane4-no-provider-gate-hunt.mjs`: Cancel closes the gate; Open Advanced Settings closes the gate and opens Settings > Advanced. - Codex ran `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json`: passed. - Codex ran `pnpm check`: passed after fast-forwarding to current `upstream/refactor`. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence No visible UI layout change. Local Playwright evidence was captured under: - `scratch/lane4-no-provider-dialog-before.png` - `scratch/lane4-no-provider-dialog-after.png` - `scratch/lane4-no-provider-gate-before.png` - `scratch/lane4-no-provider-after-cancel.png` - `scratch/lane4-no-provider-advanced-settings.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:14: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#5219
No description provided.