-
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): workflow template store cta on list page #7540
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d96f5c9
fix: te
scopsy fe352cb
fix: starting
scopsy 79e548b
Update workflows.tsx
scopsy dbc989f
fix: test
scopsy db23b9b
Update workflow-sidebar.tsx
scopsy 12b6a86
fix: refactor
scopsy b5989e9
fix: height
scopsy 1027299
fix: route
scopsy 1617165
fix: items
scopsy 40e1184
fix: view templates
scopsy 73fe254
fix: color
scopsy e7aea02
Merge branch 'next' into workflow-starters-grid
scopsy 7e3eda7
fix: track param
scopsy b666959
Update create-workflow.tsx
scopsy 21a1681
fix: navigation
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { StepTypeEnum } from '@novu/shared'; | ||
import React from 'react'; | ||
import { RiAddFill } from 'react-icons/ri'; | ||
import { Card, CardContent } from '../primitives/card'; | ||
import { StepType } from '../step-preview-hover-card'; | ||
import { WorkflowStep } from '../workflow-step'; | ||
|
@@ -19,19 +20,23 @@ export function WorkflowCard({ | |
}: WorkflowCardProps) { | ||
return ( | ||
<Card | ||
className="border-stroke-soft min-h-[138px] min-w-[250px] border shadow-none hover:cursor-pointer" | ||
className="border-stroke-soft min-h-[120px] min-w-[250px] border shadow-none hover:cursor-pointer" | ||
onClick={onClick} | ||
> | ||
<CardContent className="p-3"> | ||
<div className="overflow-hidden rounded-lg border border-neutral-100"> | ||
<div className="bg-bg-weak relative h-[114px] bg-[url(/images/dots.svg)] bg-cover"> | ||
<div className="bg-bg-weak relative h-[100px] bg-[url(/images/dots.svg)] bg-cover"> | ||
<div className="flex h-full w-full items-center justify-center"> | ||
{steps.map((step, index) => ( | ||
<React.Fragment key={index}> | ||
<WorkflowStep step={step} /> | ||
{index < steps.length - 1 && <div className="h-px w-6 bg-gray-200" />} | ||
</React.Fragment> | ||
))} | ||
{!steps?.length ? ( | ||
<RiAddFill className="text-[#D6D6D6]" /> | ||
) : ( | ||
steps.map((step, index) => ( | ||
<React.Fragment key={index}> | ||
<WorkflowStep step={step} /> | ||
{index < steps.length - 1 && <div className="h-px w-6 bg-gray-200" />} | ||
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. What is this div for? Is it a separator? 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. It's the connector line between the steps |
||
</React.Fragment> | ||
)) | ||
)} | ||
</div> | ||
</div> | ||
</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.
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.
Made the cards smaller in height