-
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
fix(dashboard): promote toast env name #6933
fix(dashboard): promote toast env name #6933
Conversation
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.
Please import types from shared to avoid overloading the dashboard bundle. We haven't been strict about that in the Dashboard code but we should moving forward.
Adding a custom ES lint rule at some point should help.
@@ -4,7 +4,13 @@ import { ConfirmationModal } from '@/components/confirmation-modal'; | |||
import { showToast } from '@/components/primitives/sonner-helpers'; | |||
import { PromoteSuccessToast } from '@/components/promote-workflow/promote-success-toast'; | |||
import { useEnvironment } from '@/context/environment/hooks'; | |||
import { WorkflowListResponseDto, WorkflowOriginEnum, WorkflowResponseDto, WorkflowStatusEnum } from '@novu/shared'; | |||
import { |
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.
import { | |
import type { |
@@ -1,35 +1,36 @@ | |||
import { Button } from '@/components/primitives/button'; | |||
import { ToastClose, ToastIcon } from '@/components/primitives/sonner'; | |||
import { useEnvironment } from '@/context/environment/hooks'; | |||
import { WorkflowListResponseDto } from '@novu/shared'; | |||
import { IEnvironment, WorkflowResponseDto } from '@novu/shared'; |
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.
import { IEnvironment, WorkflowResponseDto } from '@novu/shared'; | |
import type { IEnvironment, WorkflowResponseDto } from '@novu/shared'; |
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
What changed? Why was the change needed?
Ties env name in sync toast to the actual workflow that was synced rather than the current environment.
This fixes an issue where: