Skip to content

Conversation

@aschumann-virtualcable
Copy link
Contributor

This pull request introduces improvements to how favorite services are handled and displayed in the services group component. The main changes add a new option to enable or disable favorite services, update the logic to conditionally show the favorites group, and propagate the configuration through the component hierarchy.

Favorite Services Feature Toggle:

  • Added a new @Input() property enableFavoriteServices to the ServicesGroupComponent, allowing the display of favorite services to be toggled on or off.
  • Updated the services.component.html template to pass the enable_favorite_services configuration from the API to each uds-services-group component.
  • Modified the logic in ServicesComponent to only insert the favorites group if favorite services are enabled in the configuration.

Logic and Code Improvements:

  • Improved type checking for group names and refactored the logic that determines if a group is the favorites group and whether it should be visible, centralizing the check in a new isFavoritesGroup getter.

Introduces a configuration option to enable or disable visibility and insertion of favorite services in service groups, improving flexibility for deployments where favorite services should be hidden.
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.

2 participants