-
Notifications
You must be signed in to change notification settings - Fork 59
chore(DATAGO-115917): migrate enterprise reusable components #469
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
chore(DATAGO-115917): migrate enterprise reusable components #469
Conversation
WhiteSource Policy Violation Summary✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-469! |
WhiteSource Policy Violation Summary✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-pr-469! |
| import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/lib/components/ui/dialog"; | ||
| import type { ButtonVariant } from "@/lib/types/ui"; | ||
|
|
||
| interface ConfirmationDialogProps { |
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 the moment, let's just move these three:
- ConfirmationDialog
- ErrorDialog
- LoadingBlocker
Then, in a related task, do an audit of the community code and use these components where applicable.
| onClose: () => void; | ||
| } | ||
|
|
||
| export const ErrorDialog: React.FC<ErrorDialogProps> = ({ title, error, errorDetails, onClose }) => { |
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.
Ditto for this component, feel free to improve.
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.
i didn't use a dialog trigger and left it open by default because i assume you wouldn't click into an error dialog
| confirmVariant?: ButtonVariant; | ||
| } | ||
|
|
||
| export const ConfirmationDialog: React.FC<ConfirmationDialogProps> = ({ title, message, onClose, onConfirm, confirmVariant = "default" }) => { |
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.
Feel free to improve this implementation!
- Take in optional
DialogTrigger - Use
DialogFooterandDialogClose
e7d72fa to
b282f6c
Compare
lgh-solace
left a comment
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.
Thanks! Please don't merge until after GA. 🙏
|





No description provided.