[PR #1269] [MERGED] fix: enlarge mobile close and help targets #5018

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/refactor-issue-1228-touch-targets


📝 Commits (1)

📊 Changes

3 files changed (+9 additions, -5 deletions)

View changed files

📝 src/app/shell/RightPanel.tsx (+4 -2)
📝 src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx (+4 -2)
📝 src/shared/components/ui/HelpTooltip.tsx (+1 -1)

📄 Description

Linked issue

Closes #1228

Why this change

Mobile icon-only controls in the new-chat connection gate and settings panel were smaller than comfortable touch targets. The original 320px repro measured the gate close button at 23.38px, the settings panel close button at 27.63px, and settings help buttons at 12.75px.

What changed

  • Increased the new-chat gate close button and right-panel close button hit boxes on mobile while keeping the icon size visually compact.
  • Increased shared HelpTooltip button boxes on mobile so settings help controls expose a comfortable touch target.
  • Added explicit accessible labels/hidden icon semantics to the close icon buttons touched by this fix.

Refactor impact

Primary owner:

Shared mode UI and app shell.

Impact areas reviewed:

  • New chat connection gate
  • Right panel header
  • Shared help tooltip component used by settings rows

Boundary notes:

  • React UI only. No engine, shared API, Rust storage, remote runtime, schema, dependency, or prompt-pipeline behavior changed.

Pressure points touched:

  • Shared mode UI: NewChatConnectionGate
  • App shell: RightPanel
  • Shared UI primitive: HelpTooltip

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 Playwright repro at 320x568:
    • Before: new-chat close 23.38x23.38, settings close 27.63x27.63, smallest settings help button 12.75x12.75.
    • After: new-chat close 46.75x46.75, settings close 46.75x46.75, smallest settings help button 46.75x46.75.
  • Codex Playwright edge case at 390x844:
    • After: new-chat close 46.75x46.75, settings close 46.75x46.75, smallest settings help button 46.75x46.75.
  • Codex desktop smoke at 1024x768:
    • Desktop remains compact: new-chat close and right-panel close 34x34; help buttons 21.25x21.25.
  • pnpm typecheck passed locally after rebasing onto current upstream/refactor.
  • pnpm check:docs passed locally.
  • Full pnpm check was attempted locally. check:architecture and check:frontend passed, but check:rust could not complete on this machine because Cargo exhausted local Windows disk/paging resources while compiling Tauri dependencies. This PR does not touch Rust; CI should be treated as the Rust/full-check source of truth before ready/merge.

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

New chat gate before:

New chat gate before

New chat gate after:

New chat gate after

Settings before:

Settings before

Settings after:

Settings after


🔄 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/1269 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/26/2026 **Status:** ✅ Merged **Merged:** 5/26/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/refactor-issue-1228-touch-targets` --- ### 📝 Commits (1) - [`286c714`](https://github.com/Pasta-Devs/Marinara-Engine/commit/286c71416ef9b057c69d201b60af1670c4291aae) Fix mobile touch targets ### 📊 Changes **3 files changed** (+9 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/app/shell/RightPanel.tsx` (+4 -2) 📝 `src/features/modes/shared/chat-ui/components/NewChatConnectionGate.tsx` (+4 -2) 📝 `src/shared/components/ui/HelpTooltip.tsx` (+1 -1) </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 Closes #1228 ## Why this change Mobile icon-only controls in the new-chat connection gate and settings panel were smaller than comfortable touch targets. The original 320px repro measured the gate close button at 23.38px, the settings panel close button at 27.63px, and settings help buttons at 12.75px. ## What changed - Increased the new-chat gate close button and right-panel close button hit boxes on mobile while keeping the icon size visually compact. - Increased shared `HelpTooltip` button boxes on mobile so settings help controls expose a comfortable touch target. - Added explicit accessible labels/hidden icon semantics to the close icon buttons touched by this fix. ## Refactor impact Primary owner: Shared mode UI and app shell. Impact areas reviewed: - New chat connection gate - Right panel header - Shared help tooltip component used by settings rows Boundary notes: - React UI only. No engine, shared API, Rust storage, remote runtime, schema, dependency, or prompt-pipeline behavior changed. Pressure points touched: - Shared mode UI: `NewChatConnectionGate` - App shell: `RightPanel` - Shared UI primitive: `HelpTooltip` ## 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 Playwright repro at 320x568: - Before: new-chat close `23.38x23.38`, settings close `27.63x27.63`, smallest settings help button `12.75x12.75`. - After: new-chat close `46.75x46.75`, settings close `46.75x46.75`, smallest settings help button `46.75x46.75`. - Codex Playwright edge case at 390x844: - After: new-chat close `46.75x46.75`, settings close `46.75x46.75`, smallest settings help button `46.75x46.75`. - Codex desktop smoke at 1024x768: - Desktop remains compact: new-chat close and right-panel close `34x34`; help buttons `21.25x21.25`. - `pnpm typecheck` passed locally after rebasing onto current `upstream/refactor`. - `pnpm check:docs` passed locally. - Full `pnpm check` was attempted locally. `check:architecture` and `check:frontend` passed, but `check:rust` could not complete on this machine because Cargo exhausted local Windows disk/paging resources while compiling Tauri dependencies. This PR does not touch Rust; CI should be treated as the Rust/full-check source of truth before ready/merge. ## 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 New chat gate before: ![New chat gate before](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/evidence/issue-1228-touch-targets/docs/evidence/issue-1228-touch-targets/before-newchat-gate.png) New chat gate after: ![New chat gate after](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/evidence/issue-1228-touch-targets/docs/evidence/issue-1228-touch-targets/after-newchat-gate.png) Settings before: ![Settings before](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/evidence/issue-1228-touch-targets/docs/evidence/issue-1228-touch-targets/before-settings.png) Settings after: ![Settings after](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/evidence/issue-1228-touch-targets/docs/evidence/issue-1228-touch-targets/after-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:12:31 +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#5018
No description provided.