Files
trackgo-fe/apps
shancheas 90b606f865 feat: add sidebar store and utility functions with tests
- Introduced `useSidebarStore` for managing sidebar state, including opened keys and initialization logic.
- Added utility functions `getAllParentKeys`, `shouldShowMenuChildren`, and `getVisibleMenuKeys` to enhance sidebar functionality.
- Created unit tests for the sidebar store and utility functions to ensure correct behavior and state management.
- Updated `sidebar.tsx` to utilize the new utility functions for improved menu item rendering.

These changes enhance the sidebar's functionality and state management, providing a better user experience in navigating the application.
2026-08-31 16:59:17 +07:00
..