Closed danghuy6584 closed 6 days ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
huy-final-p | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Nov 15, 2024 2:24pm |
This pull request introduces several changes across multiple files in the project. Key updates include the addition of new dependencies to package.json
, the introduction of new UI components such as Badge
, Select
, Textarea
, and toast notification components, as well as the removal of the AllProduct
component. Additionally, routing for adding products has been implemented, and a new login form component has been created. The changes enhance the overall functionality and user interface of the application.
File | Change Summary |
---|---|
package.json |
Added dependencies: @radix-ui/react-select (^2.1.2 ), @radix-ui/react-toast (^1.2.2 ). |
src/components/admin/AllProduct.tsx |
Removed the AllProduct function component. |
src/components/admin/app-sidebar.tsx |
Updated URL for "Add Product" from "/products/add" to "add-product" . |
src/components/ui/badge.tsx |
Introduced Badge component with variants defined using class-variance-authority . |
src/components/ui/select.tsx |
Added custom Select component using Radix UI primitives with various subcomponents. |
src/components/ui/textarea.tsx |
Introduced Textarea component as a forward reference to a standard HTML <textarea> . |
src/components/ui/toast.tsx |
Introduced toast notification components using Radix UI's toast primitives. |
src/components/ui/toaster.tsx |
Added Toaster component to manage and display toast notifications. |
src/hooks/use-toast.ts |
Implemented a toast notification system with useToast hook and toast management logic. |
src/modules/admin/admin.route.tsx |
Added new route for addproduct in the admin module. |
src/modules/admin/view/AdminView.tsx |
Updated imports for AllProduct and added lazy-loaded AddProduct component with routing logic. |
src/components/login-form.tsx |
Introduced LoginForm component for user authentication. |
src/modules/admin/view/Products/AddProduct.tsx |
Introduced AddProduct component for adding products with form management. |
src/modules/admin/view/Products/AllProduct.tsx |
Introduced AllProduct component for displaying products in a card format. |
src/modules/admin/view/Products/index.ts |
Exported AddProduct and AllProduct components. |
tailwind.config.js |
Reformatted tailwind.config.js for consistency; no changes to functionality. |
package.json
file, specifically adding new dependencies, which is directly related to the changes made in the main PR.package.json
file as well, adding new dependencies that are relevant to the Radix UI library, similar to the changes in the main PR.π In the garden where the code does bloom,
New components sprout, dispelling the gloom.
With badges and toasts, and forms that delight,
Our app shines brighter, a wonderful sight!
So hop along, friends, letβs code and create,
For every new change, we celebrate! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
LoginForm
component for user authentication.AddProduct
andAllProduct
components for managing products in the admin interface.Textarea
andBadge
components for enhanced UI elements.Select
component for improved dropdown functionality.Bug Fixes
Chores
These updates enhance user experience and streamline product management within the application.