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

Feature/2489/Do-not-show-non-matching-entries-by-default #2591

Merged
merged 10 commits into from Jan 11, 2022

Conversation

Shivan-997
Copy link
Contributor

@Shivan-997 Shivan-997 commented Jan 4, 2022

Show or hide non-applicable custom configs in custom config drop down menu

ref: #2489

Description

  • for a better overview only applicable custom configs are shown by default
  • if there a non-applicable custom configs a button appears to expand the whole list of configs
  • can show or hide non-applicable custom configs by clicking the button
  • custom config list doesn't close automatically when removing a config

Gif

image
image

@ce-bo
Copy link
Collaborator

ce-bo commented Jan 5, 2022

I like your implementation suggestion 👍
The "Show Less" and "Show More" Buttons are a bit buggy, though.

@ce-bo
Copy link
Collaborator

ce-bo commented Jan 5, 2022

@BridgeAR What do you think about it?
Hidden Feature: Clicking "Show more" will show a maximum of 10 more Config Groups. If there are e.g. 22 Config Groups you have to click "Show more" two times to see all Config Groups.

@Hall-Ma Hall-Ma changed the title do not show non-matching entries by default Feature/2489/Do-not-show-non-matching-entries-by-default Jan 5, 2022
…nd expanding entries of all found configs if wanted

#2489
@Hall-Ma
Copy link
Contributor

Hall-Ma commented Jan 6, 2022

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?

CHANGELOG.md Outdated Show resolved Hide resolved
if (dropDownCustomConfigItemGroups[dropDownCustomConfigItemGroupIndex].customConfigItems.length === 0) {
dropDownCustomConfigItemGroups.splice(dropDownCustomConfigItemGroupIndex, 1)
this._viewModel.visibleEntries--
this.previousEntries--
Copy link
Member

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.

Copy link
Contributor

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.

@sonarcloud
Copy link

sonarcloud bot commented Jan 11, 2022

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Jan 11, 2022

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Hall-Ma Hall-Ma merged commit e1a6178 into main Jan 11, 2022
@Hall-Ma Hall-Ma deleted the feature/2489/do-not-show-non-matching-entries-by-default branch January 11, 2022 11:40
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

6 participants