[PR #977] [MERGED] fix(client): make regex Prompt Only toggle clickable #4867

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

📋 Pull Request Information

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

Base: staging ← Head: fix/issue-965-regex-prompt-only-toggle


📝 Commits (1)

  • 47ec0e7 fix(client): make regex prompt-only toggle clickable

📊 Changes

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

View changed files

➕ docs/pr-evidence/issue-965/after.png (+0 -0)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+5 -3)

📄 Description

Linked issue

Closes #965

Why this change

  • The Regex Script editor marked the script as dirty when clicking Prompt Only, but Firefox users reported that the toggle itself did not visibly change.

What changed

  • Replaced the Prompt Only row's nested label > button structure with a plain row so the toggle click has one activation path.
  • Added aria-label and aria-pressed to the toggle so the current state is exposed to browser automation and assistive technology.
  • Added a scoped UI evidence screenshot for the fixed state.

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 ran BROWSER=chromium EXPECT_FIXED=1 node scratch/issue-965-repro.mjs: created a new regex script, clicked Prompt Only on, clicked it back off, clicked it on again, saved, and verified the saved row had promptOnly: "true".
  • Codex ran node scratch/issue-965-edit-existing.mjs: opened an existing regex script, toggled Prompt Only from true to false, saved, and verified the saved row had promptOnly: "false".
  • Codex ran pnpm check; it passed.
  • Codex ran Bunny review before opening the PR; it passed with no blocking findings.
  • Firefox-specific confirmation was not automated here: local Playwright could not launch the installed Firefox build, and Chromium did not reproduce the pre-fix double-activation symptom. The code change removes the invalid nested interactive markup that matches the Firefox-only report.

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 or release metadata changes are needed for this focused client UI fix.

UI evidence (if applicable)

Reporter evidence before fix:

Before: issue 965 reporter screenshot

Codex evidence after fix:

After: Prompt Only toggled and saved


🔄 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/977 **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-965-regex-prompt-only-toggle` --- ### 📝 Commits (1) - [`47ec0e7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47ec0e7140c5b871ba513474b680f3217c73a338) fix(client): make regex prompt-only toggle clickable ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-965/after.png` (+0 -0) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+5 -3) </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 #965 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - The Regex Script editor marked the script as dirty when clicking `Prompt Only`, but Firefox users reported that the toggle itself did not visibly change. ## What changed <!-- List the key changes in this PR --> - Replaced the `Prompt Only` row's nested `label > button` structure with a plain row so the toggle click has one activation path. - Added `aria-label` and `aria-pressed` to the toggle so the current state is exposed to browser automation and assistive technology. - Added a scoped UI evidence screenshot for the fixed state. ## 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 ran `BROWSER=chromium EXPECT_FIXED=1 node scratch/issue-965-repro.mjs`: created a new regex script, clicked `Prompt Only` on, clicked it back off, clicked it on again, saved, and verified the saved row had `promptOnly: "true"`. - Codex ran `node scratch/issue-965-edit-existing.mjs`: opened an existing regex script, toggled `Prompt Only` from true to false, saved, and verified the saved row had `promptOnly: "false"`. - Codex ran `pnpm check`; it passed. - Codex ran Bunny review before opening the PR; it passed with no blocking findings. - Firefox-specific confirmation was not automated here: local Playwright could not launch the installed Firefox build, and Chromium did not reproduce the pre-fix double-activation symptom. The code change removes the invalid nested interactive markup that matches the Firefox-only report. ## 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 or release metadata changes are needed for this focused client UI fix. ## UI evidence (if applicable) Reporter evidence before fix: ![Before: issue 965 reporter screenshot](https://github.com/user-attachments/assets/a50f583c-1960-4300-9c94-2a6336f38c93) Codex evidence after fix: ![After: Prompt Only toggled and saved](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/47ec0e7140c5b871ba513474b680f3217c73a338/docs/pr-evidence/issue-965/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:18 +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#4867
No description provided.