Closed lalitdotdev closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
devcastle | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 20, 2024 5:22pm |
The updates to the application introduce a new Sidebar
component, enhancing the navigation experience by providing role-specific routes for admins and guests. The structure includes a SidebarRouteItem
for individual navigation items, and a SidebarRoutes
component that dynamically displays the appropriate links based on user roles. This modular design improves accessibility and organization, ensuring a user-friendly interface while maintaining the existing functionality of the Navbar
.
Files | Change Summary |
---|---|
src/app/layout.tsx |
Added Sidebar component for improved navigation; restructured Navbar within a fixed header. |
src/components/sidebar/sidebar-route-item.tsx , src/components/sidebar/sidebar.tsx |
Introduced SidebarRouteItem for navigation items and Sidebar for overall structure; both export their components. |
src/components/sidebar/sidebar-routes.tsx |
Implemented SidebarRoutes to render routes based on user roles (admin/guest), exporting the component. |
In a world of links and routes so bright,
A sidebar hops in, bringing new delight.
Admins and guests, come take a peek,
With icons and labels, navigation's sleek.
So letβs celebrate this interface fine,
For hopping through pages, itβs truly divine! πβ¨
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
New Features
Sidebar
component for enhanced navigation within the application layout.SidebarRouteItem
component for dynamic route items in the sidebar, improving interactivity and user feedback.SidebarRoutes
to display role-based navigation options for admins and guests, enhancing user experience.User Interface Enhancements