Skip to content

fix: sonar coverage#2765

Merged
mishraomp merged 3 commits into
mainfrom
fix/sonar-failure
Jun 14, 2026
Merged

fix: sonar coverage#2765
mishraomp merged 3 commits into
mainfrom
fix/sonar-failure

Conversation

@mishraomp

@mishraomp mishraomp commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

After main merge sonar was reporting failure, this PR is to fix that.


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Copilot AI review requested due to automatic review settings June 14, 2026 02:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Sonar coverage failures after a merge by expanding unit tests to exercise previously untested UI interactions in the frontend components.

Changes:

  • Updated NotFound tests to mock router navigation consistently and verify “Back Home” triggers navigation.
  • Updated Dashboard tests to cover opening/closing the row-details modal, including async rendering after data load.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/components/tests/NotFound.test.tsx Adds navigation mock + click interaction test to improve coverage of the NotFound “Back Home” behavior.
frontend/src/components/tests/Dashboard.test.tsx Adds modal open/close interaction test (async) to improve Dashboard UI coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/components/__tests__/NotFound.test.tsx
Comment thread frontend/src/components/__tests__/Dashboard.test.tsx Outdated

@DerekRoberts DerekRoberts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the hand! It's appreciated. 😊

@mishraomp mishraomp merged commit 791f7bd into main Jun 14, 2026
26 checks passed
@mishraomp mishraomp deleted the fix/sonar-failure branch June 14, 2026 15:37
@github-project-automation github-project-automation Bot moved this from New to Done in DevOps (NR) Jun 14, 2026
@mishraomp mishraomp mentioned this pull request Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants