Skip to content

fix(#3482): resolve SonarQube MINOR issues in homepage workspace#3498

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3482-fix-sonarqube-homepage
Open

fix(#3482): resolve SonarQube MINOR issues in homepage workspace#3498
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3482-fix-sonarqube-homepage

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Fix two SonarQube issues in the dynamic-home-page plugin:

  • S4325 (useHomePageCardTitle.ts): Remove unnecessary type
    assertion as keyof typeof t which resolved to function
    object keys (string | number | symbol), not translation
    keys. Replaced direct t() call with existing
    getTranslatedTextWithFallback helper that handles
    the type assertion internally.
  • S7735 (OnboardingSection.tsx): Replace negated ternary
    condition !profileLoading ? <jsx> : null with the
    positive form profileLoading ? null : <jsx>.

Closes #3482

Post-script verification

  • Branch is not main/master (agent/3482-fix-sonarqube-homepage)
  • Secret scan passed (gitleaks — 44cd732f48f582229e5c6706d597075a90dcbcb3..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Fix two SonarQube issues in the dynamic-home-page plugin:

- S4325 (useHomePageCardTitle.ts): Remove unnecessary type
  assertion `as keyof typeof t` which resolved to function
  object keys (string | number | symbol), not translation
  keys. Replaced direct `t()` call with existing
  `getTranslatedTextWithFallback` helper that handles
  the type assertion internally.
- S7735 (OnboardingSection.tsx): Replace negated ternary
  condition `!profileLoading ? <jsx> : null` with the
  positive form `profileLoading ? null : <jsx>`.

Closes #3482
@github-actions

Copy link
Copy Markdown
Contributor

This pull request adds a new top-level directory under workspaces/. Please follow Submitting a Pull Request for a New Workspace in CONTRIBUTING.md.

@rhdh-gh-app

rhdh-gh-app Bot commented Jun 19, 2026

Copy link
Copy Markdown

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-dynamic-home-page

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-dynamic-home-page workspaces/homepage/plugins/dynamic-home-page none v1.14.0

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.61%. Comparing base (44cd732) to head (776ce2a).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3498   +/-   ##
=======================================
  Coverage   53.61%   53.61%           
=======================================
  Files        2254     2254           
  Lines       85821    85820    -1     
  Branches    24157    24156    -1     
=======================================
  Hits        46014    46014           
+ Misses      39628    39627    -1     
  Partials      179      179           
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from 44cd732
ai-integrations 67.95% <ø> (ø) Carriedforward from 44cd732
app-defaults 69.79% <ø> (ø) Carriedforward from 44cd732
augment 46.39% <ø> (ø) Carriedforward from 44cd732
boost 100.00% <ø> (ø) Carriedforward from 44cd732
bulk-import 72.46% <ø> (ø) Carriedforward from 44cd732
cost-management 14.10% <ø> (ø) Carriedforward from 44cd732
dcm 61.79% <ø> (ø) Carriedforward from 44cd732
extensions 61.53% <ø> (ø) Carriedforward from 44cd732
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 44cd732
global-header 59.71% <ø> (ø) Carriedforward from 44cd732
homepage 49.96% <0.00%> (+0.03%) ⬆️
install-dynamic-plugins 56.23% <ø> (ø) Carriedforward from 44cd732
konflux 91.49% <ø> (ø) Carriedforward from 44cd732
lightspeed 68.57% <ø> (ø) Carriedforward from 44cd732
mcp-integrations 85.46% <ø> (ø) Carriedforward from 44cd732
orchestrator 37.75% <ø> (ø) Carriedforward from 44cd732
quickstart 63.76% <ø> (ø) Carriedforward from 44cd732
sandbox 79.56% <ø> (ø) Carriedforward from 44cd732
scorecard 83.96% <ø> (ø) Carriedforward from 44cd732
theme 61.26% <ø> (ø) Carriedforward from 44cd732
translations 6.55% <ø> (ø) Carriedforward from 44cd732
x2a 78.68% <ø> (ø) Carriedforward from 44cd732

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44cd732...776ce2a. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix SonarQube MINOR issues in the homepage workspace

0 participants