fix(#3482): resolve SonarQube MINOR issues in homepage workspace#3498
fix(#3482): resolve SonarQube MINOR issues in homepage workspace#3498fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
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
|
This pull request adds a new top-level directory under |
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
Codecov Report❌ Patch coverage is 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
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|



Fix two SonarQube issues in the dynamic-home-page plugin:
assertion
as keyof typeof twhich resolved to functionobject keys (string | number | symbol), not translation
keys. Replaced direct
t()call with existinggetTranslatedTextWithFallbackhelper that handlesthe type assertion internally.
condition
!profileLoading ? <jsx> : nullwith thepositive form
profileLoading ? null : <jsx>.Closes #3482
Post-script verification
agent/3482-fix-sonarqube-homepage)44cd732f48f582229e5c6706d597075a90dcbcb3..HEAD)