Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: Refactor prepareSidebarItems into a hook #2717

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

sniok
Copy link
Contributor

@sniok sniok commented Dec 20, 2024

Fixes #2714
This hook will also support arbitrary depth for the sidebar

Testing done:

Added unit tests
Tested with different plugins to make sure the sidebar works

@sniok sniok force-pushed the refactor-and-fix-prepare-routes branch from 037c00f to c373a63 Compare December 23, 2024 09:39
@sniok sniok force-pushed the refactor-and-fix-prepare-routes branch from c373a63 to babd7eb Compare January 29, 2025 10:19
@sniok sniok force-pushed the refactor-and-fix-prepare-routes branch from babd7eb to fe03878 Compare January 29, 2025 10:20
@sniok sniok marked this pull request as ready for review January 29, 2025 10:21
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jan 29, 2025
Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement and cleanup. Thank you!

🎉🎈

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 8, 2025
@illume illume merged commit 1da95dd into main Feb 8, 2025
18 checks passed
@illume illume deleted the refactor-and-fix-prepare-routes branch February 8, 2025 04:05
@illume
Copy link
Collaborator

illume commented Feb 10, 2025

@sniok sorry, I noticed just now sidebar is crashing when pressing collapse/uncollapse sidebar button.

@sniok
Copy link
Contributor Author

sniok commented Feb 10, 2025

I forgot to test that, made a PR with a fix here #2879
thanks for catching that @illume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidebar item showing in wrong place
2 participants