Repository navigation
fix(frontend): mark the two click-to-close backdrops as reviewed for Sonar - #477
Merged
Merged
Conversation
…Sonar Sonar's S6819 asks for an <img alt> instead of role="presentation", which fits images, not a backdrop that closes the command palette or the mobile drawer when clicked. Both keep role="presentation" and now carry a NOSONAR with the reason, the same way TrainingTab's status dot does. Bumps the version to v24.5.6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR is stacked on #476. Merge #476 first; this PR's diff then shrinks to the one commit below.
The two open code smells
SonarCloud reports two
typescript:S6819smells, the only two open:frontend/src/app/components/CommandPalette.tsx, the palette backdropfrontend/src/app/components/Layout.tsx, the mobile drawer backdropS6819 wants
<img alt>in place ofrole="presentation". That fits images, not a backdrop that closes the palette or drawer when clicked. Both elements keeprole="presentation"and now carry a// NOSONAR --comment giving the reason. This follows the repo's existing convention, for example the status dot inTrainingTab.tsx.Prettier and ESLint pass, and the pre-push hook's format check, lint, typecheck and tests all passed.
Bumps the version to v24.5.6.
🤖 Generated with Claude Code