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

LeftNav in btpLayout: make 'expanded' the default state for nav item groups #3938

Merged
merged 9 commits into from
Sep 27, 2024

Conversation

amilewskaa
Copy link
Contributor

Description

Changes proposed in this pull request:

  • make 'expanded' the default state for nav item groups (when they have sub-categories or isGroup: true
  • store collapsed item keys in localStorage

Related issue(s)
#3911

@@ -322,6 +323,25 @@ class NavigationHelpersClass {
return expandedList;
}

storeCollapsedSuperCategoriesState(key, value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add unit tests for these new methods? Please use existing 'navigation-helpers.spec.js' file for this purpose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added 😸

Copy link
Contributor

@walmazacn walmazacn left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@amilewskaa amilewskaa merged commit f6cfb82 into main Sep 27, 2024
11 checks passed
@amilewskaa amilewskaa deleted the leftnav-in-btplayout branch September 27, 2024 08:04
@JohannesDoberer JohannesDoberer added the enhancement New feature or request label Sep 27, 2024
@JohannesDoberer JohannesDoberer mentioned this pull request Sep 27, 2024
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.

3 participants