[PR #4699] [MERGED] fix: confirm prompt block deletion #6473

Closed
opened 2026-10-23 04:10:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4699
Author: @SpicyMarinara
Created: 8/7/2026
Status: ✅ Merged
Merged: 8/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/prompt-block-delete-confirmation-4698


📝 Commits (4)

  • 9deeabd chore: start #4698
  • f6a8286 fix: confirm prompt block deletion
  • 80c8b1b test: cover prompt block delete confirmation
  • e5775a2 test: assert cancelled prompt deletion stays visible

📊 Changes

4 files changed (+53 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+36 -1)
📝 packages/client/src/components/presets/PresetEditor.tsx (+15 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)

📄 Description

Why

Prompt block delete controls sit beside visibility toggles in chat preset settings. A missed click currently removes the block immediately, forcing users to re-import or rebuild preset content.

Changes

  • Ask for destructive confirmation before deleting a prompt block.
  • Name the selected block in the confirmation and reuse Marinara's existing dialog pattern.
  • Add localized copy, focused regression coverage, and an Unreleased changelog entry.

Closes #4698

Validation

  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts
  • pnpm localization:check
  • pnpm check
  • pnpm smoke:ui (200 passed, 99 skipped; one unrelated mobile What's New startup timeout)
  • Isolated retry of the timed-out mobile What's New test passed: 1/1

Manual verification

  • Manually verify cancelling keeps the prompt block.
  • Manually verify confirming deletes the prompt block.
  • Manually verify the interaction in desktop and mobile chat settings.

Summary by CodeRabbit

  • Bug Fixes
    • Added a confirmation prompt before permanently deleting prompt blocks from preset chat settings.
    • Canceling deletion now leaves the prompt block unchanged.
    • Confirmed deletions proceed normally and remove the selected block.

🔄 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/4699 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/7/2026 **Status:** ✅ Merged **Merged:** 8/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/prompt-block-delete-confirmation-4698` --- ### 📝 Commits (4) - [`9deeabd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9deeabd50f09899da18f6ebcec8fd1aea2b35b08) chore: start #4698 - [`f6a8286`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6a828690c0a3da47d4d37d0fb8e242f2a93a3c8) fix: confirm prompt block deletion - [`80c8b1b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80c8b1bc39835fbfc8aff1084464b2c5219a44e5) test: cover prompt block delete confirmation - [`e5775a2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5775a25f45165e69eb378683a4336cbf5182e0f) test: assert cancelled prompt deletion stays visible ### 📊 Changes **4 files changed** (+53 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+36 -1) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+15 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) </details> ### 📄 Description ## Why Prompt block delete controls sit beside visibility toggles in chat preset settings. A missed click currently removes the block immediately, forcing users to re-import or rebuild preset content. ## Changes - Ask for destructive confirmation before deleting a prompt block. - Name the selected block in the confirmation and reuse Marinara's existing dialog pattern. - Add localized copy, focused regression coverage, and an Unreleased changelog entry. Closes #4698 ## Validation - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` - `pnpm localization:check` - `pnpm check` - `pnpm smoke:ui` (200 passed, 99 skipped; one unrelated mobile What's New startup timeout) - Isolated retry of the timed-out mobile What's New test passed: 1/1 ## Manual verification - [ ] Manually verify cancelling keeps the prompt block. - [ ] Manually verify confirming deletes the prompt block. - [ ] Manually verify the interaction in desktop and mobile chat settings. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Added a confirmation prompt before permanently deleting prompt blocks from preset chat settings. * Canceling deletion now leaves the prompt block unchanged. * Confirmed deletions proceed normally and remove the selected block. <!-- 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-23 04:10:45 +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#6473
No description provided.