-
Notifications
You must be signed in to change notification settings - Fork 973
feat: migrate Alert component from MUI to shadcn #18412
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
base: main
Are you sure you want to change the base?
Conversation
- Replace MUI Alert with shadcn-based implementation using class-variance-authority - Maintain backward compatibility with existing Alert API (severity, dismissible, actions, onDismiss) - Update AlertTitle imports across codebase to use new implementation - Add proper Tailwind CSS styling with dark mode support - Preserve accessibility features and smooth animations - Support all existing severity levels: info, success, warning, error Co-authored-by: jaaydenh <1858163+jaaydenh@users.noreply.github.com>
Co-authored-by: jaaydenh <1858163+jaaydenh@users.noreply.github.com>
I definitely want to see this happen, but even just looking at the first few stories I see a number of things that aren't quite right. not sure how to get blink to fix any of this without eyes. |
@aslilac sorry about the noise, my intention was only to reopen this and test out coder tasks on cleaning it up. I didn't explicitly set it ready for review or request your review. I wonder if that could have happened automatically somehow or if Claude (through coder tasks) was able to do that itself. Maybe it has something to do with you being a codeowner? |
yeah, I think CODEOWNERs only kicks in when you mark it as ready. no worries tho, just lmk when you'd like a review! |
Summary
This PR migrates the Alert component from MUI to shadcn implementation while maintaining full backward compatibility with the existing API.
Changes
Core Alert Component
class-variance-authority
severity
(info, success, warning, error)dismissible
for showing dismiss buttonactions
for custom action buttonsonDismiss
callbackrole=\"alert\"
Updated Imports
Updated 6 files that were importing
AlertTitle
from MUI to use our new implementation:ChangeWorkspaceVersionDialog.tsx
ProvisionerAlert.tsx
GitDeviceAuth.tsx
OverviewPageView.tsx
Workspace.tsx
SetupPageView.tsx
Benefits
Test Plan