[PR #1687] [MERGED] Fix home quick-start accessibility #5213

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/refactor-home-quickstart-buttons


📝 Commits (1)

  • 5132b36 Fix home quick-start accessibility

📊 Changes

5 files changed (+18 additions, -2 deletions)

View changed files

➕ docs/pr-evidence/refactor-home-quickstart-buttons/README.md (+14 -0)
➕ docs/pr-evidence/refactor-home-quickstart-buttons/after-conversation-click.png (+0 -0)
➕ docs/pr-evidence/refactor-home-quickstart-buttons/after-game-click.png (+0 -0)
➕ docs/pr-evidence/refactor-home-quickstart-buttons/after-roleplay-click.png (+0 -0)
📝 src/features/modes/router/components/ModeHomeSurface.tsx (+4 -2)

📄 Description

Linked issue

No linked issue. Found during the refactor bug-hunt smoke pass.

Why this change

  • The home quick-start choices looked like primary actions, but they were clickable div elements instead of semantic buttons. That made Conversation/Roleplay/Game invisible to button-role queries and unavailable to normal keyboard activation.

What changed

  • Rendered the home quick-start cards as native button controls with type="button".
  • Added accessible labels while preserving the existing visual card layout and click behavior.
  • Added scoped Playwright proof screenshots for the refactor branch.

Refactor impact

Primary owner:

Home mode surface / src/features.

Impact areas reviewed:

  • Home quick-start mode choices.
  • New-chat setup gate for Conversation, Roleplay, and Game.
  • Major side-panel buttons during the same Playwright smoke.

Boundary notes:

  • Feature/UI-only change.
  • No src/engine, src/shared/api, src-tauri, storage, remote runtime, prompt assembly, or mode-owner contract changes.

Pressure points touched:

  • ModeHomeSurface.

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 ran node scratch\bughunt-navigation.mjs before the fix; it failed because getByRole('button', { name: 'Conversation' }) could not find the home quick-start control and the aria snapshot exposed Conversation Roleplay Game as plain text.
  • Codex reran node scratch\bughunt-navigation.mjs after the fix; it passed. The script verified Conversation is keyboard-activatable with Enter, Roleplay and Game open setup by click, and major side-panel buttons open without console/page errors.
  • Codex ran pnpm typecheck.
  • Codex ran pnpm check:architecture.
  • Codex ran full pnpm check.
  • Codex ran node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json.

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

Conversation setup after keyboard activation:

Conversation setup after keyboard activation

Roleplay setup after click:

Roleplay setup after click

Game setup after click:

Game setup after click


🔄 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/1687 **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:** `fix/refactor-home-quickstart-buttons` --- ### 📝 Commits (1) - [`5132b36`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5132b3605ec408460e9c05e5a5be052aa2a27c8e) Fix home quick-start accessibility ### 📊 Changes **5 files changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/refactor-home-quickstart-buttons/README.md` (+14 -0) ➕ `docs/pr-evidence/refactor-home-quickstart-buttons/after-conversation-click.png` (+0 -0) ➕ `docs/pr-evidence/refactor-home-quickstart-buttons/after-game-click.png` (+0 -0) ➕ `docs/pr-evidence/refactor-home-quickstart-buttons/after-roleplay-click.png` (+0 -0) 📝 `src/features/modes/router/components/ModeHomeSurface.tsx` (+4 -2) </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 No linked issue. Found during the refactor bug-hunt smoke pass. ## Why this change - The home quick-start choices looked like primary actions, but they were clickable `div` elements instead of semantic buttons. That made Conversation/Roleplay/Game invisible to button-role queries and unavailable to normal keyboard activation. ## What changed - Rendered the home quick-start cards as native `button` controls with `type="button"`. - Added accessible labels while preserving the existing visual card layout and click behavior. - Added scoped Playwright proof screenshots for the refactor branch. ## Refactor impact Primary owner: Home mode surface / `src/features`. Impact areas reviewed: - Home quick-start mode choices. - New-chat setup gate for Conversation, Roleplay, and Game. - Major side-panel buttons during the same Playwright smoke. Boundary notes: - Feature/UI-only change. - No `src/engine`, `src/shared/api`, `src-tauri`, storage, remote runtime, prompt assembly, or mode-owner contract changes. Pressure points touched: - `ModeHomeSurface`. ## 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 ran `node scratch\bughunt-navigation.mjs` before the fix; it failed because `getByRole('button', { name: 'Conversation' })` could not find the home quick-start control and the aria snapshot exposed `Conversation Roleplay Game` as plain text. - Codex reran `node scratch\bughunt-navigation.mjs` after the fix; it passed. The script verified Conversation is keyboard-activatable with Enter, Roleplay and Game open setup by click, and major side-panel buttons open without console/page errors. - Codex ran `pnpm typecheck`. - Codex ran `pnpm check:architecture`. - Codex ran full `pnpm check`. - Codex ran `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json`. ## 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 Conversation setup after keyboard activation: ![Conversation setup after keyboard activation](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/refs/heads/fix/refactor-home-quickstart-buttons/docs/pr-evidence/refactor-home-quickstart-buttons/after-conversation-click.png) Roleplay setup after click: ![Roleplay setup after click](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/refs/heads/fix/refactor-home-quickstart-buttons/docs/pr-evidence/refactor-home-quickstart-buttons/after-roleplay-click.png) Game setup after click: ![Game setup after click](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/refs/heads/fix/refactor-home-quickstart-buttons/docs/pr-evidence/refactor-home-quickstart-buttons/after-game-click.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:16 +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#5213
No description provided.