[PR #1564] [MERGED] Fix Chat Settings header hit targets #5122

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1564
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/issue-1525-chat-settings-hit-target


📝 Commits (2)

  • b32b30d fix chat settings header hit targets
  • 6b15bda fix chat settings header positioning context

📊 Changes

3 files changed (+135 additions, -43 deletions)

View changed files

📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+8 -23)
➕ src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx (+72 -0)
📝 src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.tsx (+55 -20)

📄 Description

Linked issue

Closes #1525

Why this change

  • Chat Settings drawer section headers looked full-row clickable, but only the inner label/chevron button toggled expansion. This made Conversation and Roleplay settings feel like they required precise chevron-line clicks.

What changed

  • Added a shared ChatSettingsSectionHeader row control so the visible header row is the actual toggle target.
  • Reused that header for Advanced Parameters so it follows the same hit-target behavior as the shared drawer sections.
  • Added jsdom regression coverage for full-row toggling and for keeping the help tooltip outside the toggle button.

Refactor impact

Primary owner:

  • Shared mode UI: src/features/modes/shared/chat-ui

Impact areas reviewed:

  • Conversation Chat Settings drawer sections
  • Roleplay Chat Settings drawer sections
  • Advanced Parameters section
  • Help tooltip interaction inside section headers

Boundary notes:

  • Feature UI only. No engine, shared API, Rust, storage, provider, or remote-runtime boundary changes.

Pressure points touched:

  • Shared mode UI via ChatSettingsDrawer and ChatSettingsSections

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

  • Reproduced the issue before the fix with pnpm vitest run src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx; the regression test failed because the visible header row was a DIV, not the toggle button.
  • Verified after the fix with pnpm vitest run src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx.
  • Ran pnpm typecheck.
  • Ran pnpm check:architecture.
  • Ran git diff --check origin/refactor..HEAD.
  • Manual Tauri app drawer-click QA is still not covered in this branch.

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

No docs changes were made because this is a narrow interaction bugfix. This branch does not contain a CHANGELOG.md.

UI evidence

Focused component regression coverage was added. No screenshots or recordings are attached; native/manual UI verification remains for a human pass.

Summary by CodeRabbit

  • Refactor

    • Restructured Advanced Parameters section header UI for improved component organization.
  • Tests

    • Added comprehensive test coverage for settings section toggle behavior and help tooltip interactions.

Review Change Stack


🔄 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/1564 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/issue-1525-chat-settings-hit-target` --- ### 📝 Commits (2) - [`b32b30d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b32b30d9d8242ea006b09314bc2c7cb3d7a810d7) fix chat settings header hit targets - [`6b15bda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b15bda173e15413e734910418d7f8227a079304) fix chat settings header positioning context ### 📊 Changes **3 files changed** (+135 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+8 -23) ➕ `src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx` (+72 -0) 📝 `src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.tsx` (+55 -20) </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 #1525 ## Why this change - Chat Settings drawer section headers looked full-row clickable, but only the inner label/chevron button toggled expansion. This made Conversation and Roleplay settings feel like they required precise chevron-line clicks. ## What changed - Added a shared `ChatSettingsSectionHeader` row control so the visible header row is the actual toggle target. - Reused that header for Advanced Parameters so it follows the same hit-target behavior as the shared drawer sections. - Added jsdom regression coverage for full-row toggling and for keeping the help tooltip outside the toggle button. ## Refactor impact Primary owner: - Shared mode UI: `src/features/modes/shared/chat-ui` Impact areas reviewed: - Conversation Chat Settings drawer sections - Roleplay Chat Settings drawer sections - Advanced Parameters section - Help tooltip interaction inside section headers Boundary notes: - Feature UI only. No engine, shared API, Rust, storage, provider, or remote-runtime boundary changes. Pressure points touched: - Shared mode UI via `ChatSettingsDrawer` and `ChatSettingsSections` ## 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 - Reproduced the issue before the fix with `pnpm vitest run src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx`; the regression test failed because the visible header row was a `DIV`, not the toggle button. - Verified after the fix with `pnpm vitest run src/features/modes/shared/chat-ui/components/settings/ChatSettingsSections.test.tsx`. - Ran `pnpm typecheck`. - Ran `pnpm check:architecture`. - Ran `git diff --check origin/refactor..HEAD`. - Manual Tauri app drawer-click QA is still not covered in this branch. ## 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 No docs changes were made because this is a narrow interaction bugfix. This branch does not contain a `CHANGELOG.md`. ## UI evidence Focused component regression coverage was added. No screenshots or recordings are attached; native/manual UI verification remains for a human pass. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Restructured Advanced Parameters section header UI for improved component organization. * **Tests** * Added comprehensive test coverage for settings section toggle behavior and help tooltip interactions. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1564?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:30 +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#5122
No description provided.