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

fix(sh-admin): persist active selection in the sidebar #3812

Conversation

jamesgeorge007
Copy link
Member

Description

This PR ensures the active selection in the sidebar for the Admin dashboard is persisted across page reloads. A new property, baseRouteName is introduced under primaryNavigations in the AppSidebar component that defines the base route names corresponding to each nav item and checks against the route name to decide whether to apply the classes for active selection or not.

Closes HFE-424.

Preview

recording.mov

Checks

  • My pull request adheres to the code style of this project
  • All the tests have passed

Copy link
Contributor

@JoelJacobStephen JoelJacobStephen left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@AndrewBastin AndrewBastin force-pushed the hotfix/sh-admin-sidebar-active-selection branch from 321a04d to d72c060 Compare February 8, 2024 16:41
@AndrewBastin AndrewBastin merged commit c0fae79 into hoppscotch:release/2023.12.4 Feb 8, 2024
1 check passed
@jamesgeorge007 jamesgeorge007 deleted the hotfix/sh-admin-sidebar-active-selection branch February 8, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants