feat(schedule-actions): add delete confirmation action #1428
Conversation
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
515a4e6 to
f7ef08e
Compare
Code Review ✅ Approved 3 resolved / 3 findingsIntegrates the delete schedule action with a warning banner, dynamic HTTP method support, and refined success navigation. Addressed issues regarding incorrect invalidation triggers, unnecessary re-fetches, and request body handling for GET methods. ✅ 3 resolved✅ Quality: Generic modal hardcodes 'delete' action id for invalidation skip
✅ Quality: Body sent for all HTTP methods will break future GET actions
✅ Edge Case: Deleting a schedule refetches the just-deleted describeSchedule
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
Wire delete into the schedule-actions menu as a confirmation-only modal that DELETEs the schedule resource, navigates to the list on success, and invalidates listSchedules without refetching the deleted describe query. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace plain modal text and docs link with a warning banner matching the pause action pattern. Co-authored-by: Cursor <cursoragent@cursor.com>
e9d1438 to
93e0fca
Compare
Code Review ✅ Approved 3 resolved / 3 findingsImplements the delete schedule confirmation modal with a warning banner and conditional navigation. Resolved issues regarding hardcoded action IDs, improper request body inclusion, and redundant refetching. ✅ 3 resolved✅ Quality: Generic modal hardcodes 'delete' action id for invalidation skip
✅ Quality: Body sent for all HTTP methods will break future GET actions
✅ Edge Case: Deleting a schedule refetches the just-deleted describeSchedule
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
…low#1428) ## Summary Adds the Delete schedule action to the schedule-actions menu as a confirmation-only modal with a warning banner. On success, the UI navigates to the schedules list and invalidates `listSchedules`. Rebased onto `master` after cadence-workflow#1427 merged; this PR now contains only the delete UI slice (4 commits).
Summary
Adds the Delete schedule action to the schedule-actions menu as a confirmation-only modal with a warning banner. On success, the UI navigates to the schedules list and invalidates
listSchedules.Changes
schedule-actions.config.ts— delete action config with warning banner,DELETEon the schedule resource, and navigate-on-success handlerschedule-actions-modal-content/— optionalhttpMethodper action; send request body for non-GET methodsschedule-actions.types.ts—ScheduleActionHttpMethodtype (POST|PUT|DELETE)schedule-actions-enabled— enabledeletein dynamic config and resolver schemaTesting
npm run test:unit:browser -- schedule-actions— 25 tests passedScreen.Recording.2026-07-02.at.02.04.47.mov
Stack
Made with Cursor