Skip to content

Refactor Sidebar component to improve readability#11

Merged
reenatoteixeira merged 8 commits intostagefrom
refactor/sidebar-component
Mar 26, 2026
Merged

Refactor Sidebar component to improve readability#11
reenatoteixeira merged 8 commits intostagefrom
refactor/sidebar-component

Conversation

@reenatoteixeira
Copy link
Copy Markdown
Member

This pull request refactors and improves the sidebar navigation system across the application. It centralizes sidebar configuration, simplifies component structure, and enhances styling for consistency. The changes also update the sidebar to use a new provider and layout, and adjust the Dashboard page to use the new sidebar system.

Sidebar architecture and configuration:

  • Moved sidebar configuration to a new central file src/config/sidebarItems.ts, simplifying the sidebar structure and removing unused or redundant items such as "Products", "Payments", "Files", and "Emails". The sidebar now only includes "Dashboard", "Orders", "Clients", and "Services" under the "Basics" section. [1] [2]
  • Refactored sidebar layout and logic into new components and folders, including SidebarLayout, SidebarMenu, and SidebarMenuButton, and updated hooks for sidebar state management. [1] [2] [3] [4] [5] [6] [7] [8]
  • Removed old sidebar files and data, consolidating sidebar logic and presentation into a more maintainable structure. [1] [2]

Dashboard integration:

  • Updated DashboardPage to use the new SidebarMenu component for consistent layout and removed the inline sign-out button, delegating sign-out to the sidebar. [1] [2] [3]

Styling and UI enhancements:

  • Improved sidebar item styles for better visual feedback, including updated active and hover states, and adjusted icon scaling.
  • Updated dark theme border color for improved contrast and consistency.

@reenatoteixeira reenatoteixeira self-assigned this Mar 26, 2026
@reenatoteixeira reenatoteixeira added the enhancement New feature or request label Mar 26, 2026
@reenatoteixeira reenatoteixeira merged commit 03f8ace into stage Mar 26, 2026
2 checks passed
@reenatoteixeira reenatoteixeira deleted the refactor/sidebar-component branch March 26, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant