Skip to content

Commit 2dcc6b0

Browse files
feat(schedule-actions): use warning banner for delete confirmation
Replace plain modal text and docs link with a warning banner matching the pause action pattern. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 35ec7b3 commit 2dcc6b0

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/views/schedule-actions/__fixtures__/schedule-actions-config.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export const mockDeleteActionConfig: ScheduleAction<DeleteScheduleResponse> = {
6363
label: 'Delete',
6464
subtitle: 'Mock delete a schedule',
6565
modal: {
66-
text: 'Deletes the schedule permanently. In-progress workflow runs are not affected.',
66+
banner: {
67+
kind: 'warning',
68+
icon: MdOutlineWarningAmber,
69+
render: () =>
70+
'Deletes the schedule permanently. In-progress workflow runs are not affected.',
71+
},
6772
withForm: false,
6873
},
6974
icon: MdDeleteOutline,

src/views/schedule-actions/config/schedule-actions.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ const deleteScheduleActionConfig: ScheduleAction<DeleteScheduleResponse> = {
6565
label: 'Delete',
6666
subtitle: 'Delete this schedule permanently',
6767
modal: {
68-
text: 'Deletes the schedule permanently. In-progress workflow runs are not affected.',
69-
docsLink: {
70-
text: 'Read more about schedules',
71-
href: 'https://cadenceworkflow.io/docs/concepts/schedules',
68+
banner: {
69+
kind: 'warning',
70+
icon: MdOutlineWarningAmber,
71+
render: () =>
72+
'Deletes the schedule permanently. In-progress workflow runs are not affected.',
7273
},
7374
withForm: false,
7475
},

0 commit comments

Comments
 (0)