Closed danghuy6584 closed 1 week 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 13, 2024 11:59am |
This pull request introduces several updates across multiple files, primarily focusing on enhancing the project's functionality with new UI components and charting capabilities. Key changes include the addition of new dependencies in package.json
, the introduction of several new React components for admin functionalities, and the implementation of a sidebar and charting components. Additionally, existing files have been updated for consistency in coding style, particularly regarding import statements and string literals.
File | Change Summary |
---|---|
package.json |
Added dependencies: @radix-ui/react-dialog , @radix-ui/react-separator , @radix-ui/react-tooltip , recharts . |
src/components/Navbar.tsx |
Reformatted import statements and JSX attributes to use double quotes for consistency. |
src/components/admin/AllOrder.tsx |
Added new functional component AllProduct that renders "AllProduct". |
src/components/admin/AllProduct.tsx |
Added new functional component AllProduct that renders "AllProduct". |
src/components/admin/AllUser.tsx |
Added new functional component AllUser that renders "AllUser". |
src/components/admin/Overview.tsx |
Introduced a component for displaying user demographics and activity with charts. |
src/components/admin/app-sidebar.tsx |
Added a sidebar component for admin navigation with dropdowns and sections. |
src/components/ui/chart.tsx |
Introduced chart components and context for rendering charts using Recharts. |
src/components/ui/separator.tsx |
Added a Separator component using @radix-ui/react-separator . |
src/components/ui/sheet.tsx |
Added a customizable sheet component using Radix UI's dialog primitives. |
src/components/ui/sidebar.tsx |
Introduced a sidebar component with context for managing open/closed state. |
src/components/ui/skeleton.tsx |
Added a Skeleton component for loading placeholders. |
src/components/ui/tooltip.tsx |
Introduced a Tooltip component using Radix UI Tooltip primitives. |
src/config/paths.ts |
Added admin path and reformatted existing paths to use double quotes. |
src/containers/RootContainer.tsx |
Updated routing to include new admin routes and reformatted import statements. |
src/hooks/use-mobile.tsx |
Added a custom hook useIsMobile to detect mobile viewports. |
src/index.css |
Introduced new CSS variables for sidebar styling in light and dark themes. |
src/layouts/AdminLayout.tsx |
Refactored to include a sidebar and structured layout for admin content. |
src/modules/admin/admin.route.tsx |
Added module for managing admin routes with various functionalities. |
src/modules/admin/index.ts |
Exported entities from admin.route and view modules for consolidated access. |
src/modules/admin/view/AdminView.tsx |
Introduced the Admin component with lazy loading for subcomponents based on routing. |
src/modules/admin/view/index.tsx |
Added export for AdminView component. |
tailwind.config.js |
Expanded theme.extend.colors with new sidebar color configurations. |
package.json
file, specifically adding new dependencies that enhance functionality, although they focus on different libraries.@radix-ui/react-dropdown-menu
to package.json
, which is related to the new dependencies added in the main PR that also involve Radix UI components.🐰 "In the code where the rabbits hop,
New components bloom, and never stop.
With charts and sidebars, oh what a sight,
A vibrant admin, all set to delight!
Dependencies added, the project will grow,
Hopping along, with a joyful glow!" 🐇✨
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
AllProduct
,AllUser
,Overview
, and a sidebar for enhanced navigation.ChartContainer
and related components.Sheet
component for dialogs and overlays.Skeleton
component for loading states.Tooltip
andSeparator
components for improved UI interactions.Bug Fixes
Documentation
Style
Chores