-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dashboard): Add workflow page action menu #7222
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a73459f
fix: add sync
scopsy ae57569
Merge branch 'next' into nv-4969-export-to-code-preview-banner
scopsy 2785453
Merge branch 'next' into nv-4969-export-to-code-preview-banner
scopsy dfb8ba6
feat: add delete buton
scopsy 59d1d97
feat: restore workflow menu item
scopsy 6ba616e
Update workflow-row.tsx
scopsy 27bf868
Update workflow-row.tsx
scopsy 5aac781
Update workflow-row.tsx
scopsy a582894
Update use-sync-workflow.tsx
scopsy 78cb49c
Update configure-workflow-form.tsx
scopsy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { WorkflowListResponseDto, WorkflowResponseDto } from '@novu/shared'; | ||
import { ConfirmationModal } from './confirmation-modal'; | ||
import TruncatedText from './truncated-text'; | ||
|
||
type DeleteWorkflowDialogProps = { | ||
workflow: WorkflowResponseDto | WorkflowListResponseDto; | ||
open: boolean; | ||
onOpenChange: (open: boolean) => void; | ||
onConfirm: () => void; | ||
isLoading?: boolean; | ||
}; | ||
|
||
export const DeleteWorkflowDialog = ({ | ||
workflow, | ||
open, | ||
onOpenChange, | ||
onConfirm, | ||
isLoading, | ||
}: DeleteWorkflowDialogProps) => { | ||
return ( | ||
<ConfirmationModal | ||
open={open} | ||
onOpenChange={onOpenChange} | ||
onConfirm={onConfirm} | ||
title="Are you sure?" | ||
description={ | ||
<> | ||
You're about to delete the <TruncatedText className="max-w-[32ch] font-bold">{workflow.name}</TruncatedText>{' '} | ||
workflow, this action is permanent. <br /> | ||
<br /> | ||
You won't be able to trigger this workflow anymore. | ||
</> | ||
} | ||
confirmButtonText="Delete" | ||
isLoading={isLoading} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ interface SuccessToastProps { | |
export function SuccessButtonToast({ title, description, actionLabel, onAction, onClose }: SuccessToastProps) { | ||
return ( | ||
<> | ||
<ToastIcon variant="default" /> | ||
<ToastIcon variant="success" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be success :) |
||
<div className="flex flex-1 flex-col items-start gap-2.5"> | ||
<div className="flex flex-col items-start justify-center gap-1 self-stretch"> | ||
<div className="text-foreground-950 text-sm font-medium">{title}</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reused between workflows list and editor