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/2377/improve metric descriptions in legend #2421

Merged
merged 8 commits into from
Oct 7, 2021

Conversation

jannikr
Copy link
Contributor

@jannikr jannikr commented Oct 4, 2021

Improve metric descriptions in legend

closes #2377

Description

-The metric label is not shown, if no description is available.
-More basic metric descriptions are provided. Especially for loc and comment_lines

Copy link
Collaborator

@ce-bo ce-bo left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and the fix.
Since I see the solution now, I would rather hide the following part : <empty description>. The label should be still visible, even if no description is available. Thus, the legend would provide information of the choosen metrics all the time.

Would you please so kind and change this?

@jannikr
Copy link
Contributor Author

jannikr commented Oct 5, 2021

@ce-bo I've been thinking about that, too. I just wonder then what added value the legend brings. The selected metric can also be seen in the bar at the top of the screen.

@ce-bo
Copy link
Collaborator

ce-bo commented Oct 5, 2021

@jannikr That's true. For the case, that we take a screenshot, we need the metric information to be included in the legend.

@jannikr jannikr marked this pull request as draft October 5, 2021 07:37
@Shivan-997
Copy link
Contributor

Notice: do not Squash and merge. there is some changes coming.

@jannikr
Copy link
Contributor Author

jannikr commented Oct 5, 2021

@ce-bo Please note my new commit.
legend_improvement
The screenshot shows the behavior when descriptions are missing.

@jannikr jannikr marked this pull request as ready for review October 5, 2021 09:59
Copy link
Collaborator

@ce-bo ce-bo left a comment

Choose a reason for hiding this comment

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

Thank you @jannikr 👍
I think you could have done it by applying the ng-if to the span. This would be less "html-verbose".

@sonarcloud
Copy link

sonarcloud bot commented Oct 7, 2021

[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 Oct 7, 2021

[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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jannikr jannikr merged commit b082775 into main Oct 7, 2021
@jannikr jannikr deleted the fix/2377/improve-metric-descriptions-in-legend branch October 7, 2021 13:10
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.

Improve/Provide metric descriptions in legend
4 participants