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
Feature/2489/Do-not-show-non-matching-entries-by-default #2591
Feature/2489/Do-not-show-non-matching-entries-by-default #2591
Conversation
I like your implementation suggestion 👍 |
@BridgeAR What do you think about it? |
…nd expanding entries of all found configs if wanted #2489
I'm not satisfied with my implementation when 'show more' or 'show less' button is activated/deactivated. The change is unfortunately very lazy at the moment. Is there any suggestion for a better implementation? |
if (dropDownCustomConfigItemGroups[dropDownCustomConfigItemGroupIndex].customConfigItems.length === 0) { | ||
dropDownCustomConfigItemGroups.splice(dropDownCustomConfigItemGroupIndex, 1) | ||
this._viewModel.visibleEntries-- | ||
this.previousEntries-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check this condition closely. It might contain a subtle bug. I would expect to only count previousEntries
down in case the current removed item (index) is below or equal to previousEntries
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get your point. Now I wrote the logic a bit different and hope I catch every edge case.
visualization/app/codeCharta/ui/customConfigs/customConfigs.component.ts
Outdated
Show resolved
Hide resolved
…and removing custom configs from the list correctly #2489
[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed! |
[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed! |
Show or hide non-applicable custom configs in custom config drop down menu
ref: #2489
Description
Gif