-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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): edit step conditions drawer #7417
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
LaunchDarkly flag references🔍 1 flag added or modified
|
import { FeatureFlagsKeysEnum } from '@novu/shared'; | ||
import { Button } from '@/components/primitives/button'; | ||
|
||
export const EditStepConditions = () => { |
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.
The empty edit step conditions drawer. In the upcoming PRs I'll add the conditions editor and form and will restructure components in the body.
{isStepConditionsEnabled && ( | ||
<> | ||
<SidebarContent> | ||
<Link to={'./conditions'} relative="path" state={{ stepType: step.type }}> | ||
<Button | ||
variant="secondary" | ||
mode="outline" | ||
className="flex w-full justify-start gap-1.5 text-xs font-medium" | ||
> | ||
<RiGuideFill className="h-4 w-4 text-neutral-600" /> | ||
Step Conditions | ||
<span className="ml-auto flex items-center gap-0.5"> | ||
<span>0</span> | ||
<RiArrowRightSLine className="ml-auto h-4 w-4 text-neutral-600" /> | ||
</span> | ||
</Button> | ||
</Link> | ||
</SidebarContent> | ||
<Separator /> | ||
</> | ||
)} |
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.
Step Conditions button in the Configure Step
sidebar
<RiGuideFill className="h-4 w-4 text-neutral-600" /> | ||
Step Conditions | ||
<span className="ml-auto flex items-center gap-0.5"> | ||
<span>0</span> |
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.
For now, I've hardcoded the value until we have the same logic so we can calculate it
</SheetPortal> | ||
</Sheet> | ||
</> | ||
<StepDrawer title={`Edit ${step?.name}`}> |
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.
Moved the shared code to the StepDrawer
which is used to edit step template and conditions
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.
Lovely
@novu/client
@novu/headless
@novu/node
@novu/notification-center
novu
@novu/providers
@novu/shared
commit: |
apps/dashboard/src/components/workflow-editor/steps/conditions/edit-step-conditions.tsx
Outdated
Show resolved
Hide resolved
…/edit-step-conditions.tsx Co-authored-by: Sokratis Vidros <[email protected]>
What changed? Why was the change needed?
Step Conditions Empty Drawer:
Screenshots
Screen.Recording.2025-01-02.at.15.18.18.mov