-
Notifications
You must be signed in to change notification settings - Fork 39
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
chore: sonarqube fixes #3182
chore: sonarqube fixes #3182
Conversation
🚀 Deployed on https://pr-3182.dashboard.netlify.dhis2.org |
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 left two suggestions in the code, but nothing critical.
I also compared the Netlify-deployed app with the app on https://test.e2e.dhis2.org/analytics-41dev/ and did spot a small regression.
edit view item selector: that the launch link of each visualization looks the same and still works
The functionality is fine, but the cursor style is now a bit odd (on MacOS at least). The launch-link has a default cursor while the menu item has a cursor: pointer;
. On the test instance they both have cursor: pointer;
. FYI: it'd be good to also show a background color change on hover as a visual aid for the user, but I guess that's out-of-scope for now...
One other note: I did not run the branch locally and could not work out how to test the following point on Netlify:
Dashboard dropdown "No dashboards found" looks correct
But since I could not actually spot any potentially relevant file changes in the PR diff, I just assumed this point would be fine.
I have tested this point too and it looked good.
Addressed. The button now uses cursor pointer on hover, and the color of the icon is darker on hover. Nice improvement if you ask me... |
Quality Gate passedIssues Measures |
SonarQube analysis reported issues on the latest code changes. Even though this is not a required check, we should comply when the suggestions are sensible. Here's a link to the findings: https://sonarcloud.io/summary/new_code?id=dhis2_dashboard-app&branch=master
Summary of changes and the quality that was flagged by Sonarqube:
li
element since it is is implicit (reliability, maintainability)button
(reliability, maintainability)What needs to be tested: