refactor(ui): migrate utils/* Typography to ui-core-components (Typography sweep 1/13) - #30773
refactor(ui): migrate utils/* Typography to ui-core-components (Typography sweep 1/13)#30773chirag-madlani wants to merge 5 commits into
Quality Gate passed
Annotations
Check failure on line 970 in src/utils/QueryBuilderElasticsearchFormatUtils.js
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lVEMICJyspy-Pe_7&open=AZ-5lVEMICJyspy-Pe_7&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Use <input type="button">, <input type="image">, <input type="reset">, <input type="submit">, or <button> instead of the "button" role to ensure accessibility across all devices.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lQSeICJyspy-Pe8r&open=AZ-5lQSeICJyspy-Pe8r&pullRequest=30773
Check warning on line 15 in src/components/Auth/AppCallbacks/Auth0Callback/Auth0Callback.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'VFC' is deprecated.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lOYWICJyspy-Pe7Y&open=AZ-5lOYWICJyspy-Pe7Y&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lIJyICJyspy-Pe4t&open=AZ-5lIJyICJyspy-Pe4t&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Handle this exception or don't catch it at all.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lJ_EICJyspy-Pe5k&open=AZ-5lJ_EICJyspy-Pe5k&pullRequest=30773
Check warning on line 1839 in src/utils/CSV/CSVUtilsClassBase.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lSZiICJyspy-Pe-O&open=AZ-5lSZiICJyspy-Pe-O&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
A fragment with only one child is redundant.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lIl7ICJyspy-Pe48&open=AZ-5lIl7ICJyspy-Pe48&pullRequest=30773
Check warning on line 65 in src/utils/DataInsightChartUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lUR2ICJyspy-Pe_U&open=AZ-5lUR2ICJyspy-Pe_U&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lZK9ICJyspy-PfBx&open=AZ-5lZK9ICJyspy-PfBx&pullRequest=30773
Check warning on line 182 in src/components/KnowledgeGraph3D/KnowledgeGraph3D.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this code to not use nested template literals.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lEkTICJyspy-Pe20&open=AZ-5lEkTICJyspy-Pe20&pullRequest=30773
Check warning on line 32 in src/utils/ContainerDetailPureUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
`newTagsFqnList` should be a `Set`, and use `newTagsFqnList.has()` to check existence or non-existence.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lTNRICJyspy-Pe-r&open=AZ-5lTNRICJyspy-Pe-r&pullRequest=30773
Check warning on line 48 in src/components/Entity/EntityLineage/LineageNodeLabelV1.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'isOnlyShowColumnsWithLineageFilterActive' PropType is defined but prop is never used
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lLn7ICJyspy-Pe6U&open=AZ-5lLn7ICJyspy-Pe6U&pullRequest=30773
Check warning on line 811 in src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lLw-ICJyspy-Pe6c&open=AZ-5lLw-ICJyspy-Pe6c&pullRequest=30773
Check warning on line 351 in src/components/AuditLog/AuditLogList.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Do not use Array index in keys
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lPsQICJyspy-Pe8X&open=AZ-5lPsQICJyspy-Pe8X&pullRequest=30773
Check warning on line 146 in src/components/MyData/Widgets/KPIWidget/KPILegend/KPILegend.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Missing "key" prop for element in iterator
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lFztICJyspy-Pe3h&open=AZ-5lFztICJyspy-Pe3h&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `.some(…)` over `.find(…)`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lLMeICJyspy-Pe6D&open=AZ-5lLMeICJyspy-Pe6D&pullRequest=30773
Check warning on line 52 in src/components/KnowledgeGraph3D/nodeCanvas.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `Number.parseInt` over `parseInt`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lEYpICJyspy-Pe2w&open=AZ-5lEYpICJyspy-Pe2w&pullRequest=30773
Check warning on line 186 in src/utils/AgentsStatusWidgetPureUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider Array.prototype.reduce() instead of reduce() from lodash; check that the behavior is equivalent because the library also accepts objects, nullish values, and shorthand predicates.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lUdcICJyspy-Pe_a&open=AZ-5lUdcICJyspy-Pe_a&pullRequest=30773
Check warning on line 68 in src/components/common/FormBuilderV1/widgets/CoreSelectWidget.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'selectedKey' is deprecated.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lBJmICJyspy-Pe1C&open=AZ-5lBJmICJyspy-Pe1C&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Do not use Array index in keys
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lIl7ICJyspy-Pe4-&open=AZ-5lIl7ICJyspy-Pe4-&pullRequest=30773
Check warning on line 611 in src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lFBaICJyspy-Pe3I&open=AZ-5lFBaICJyspy-Pe3I&pullRequest=30773
Check warning on line 104 in src/utils/DataQuality/DataQualityPureUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Use Array.isArray() instead of isArray() from lodash.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lRXuICJyspy-Pe9M&open=AZ-5lRXuICJyspy-Pe9M&pullRequest=30773
Check warning on line 45 in src/components/OntologyExplorer/utils/graphSearchHighlight.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Consider String.prototype.includes() instead of includes() from lodash; check that the behavior is equivalent because the library also accepts arrays, objects, and nullish values.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lPGcICJyspy-Pe70&open=AZ-5lPGcICJyspy-Pe70&pullRequest=30773
Check warning on line 66 in src/components/KnowledgeCenter/KnowledgeCard/KnowledgeCard.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'onFollow' PropType is defined but prop is never used
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lKo-ICJyspy-Pe5x&open=AZ-5lKo-ICJyspy-Pe5x&pullRequest=30773
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-5lOpJICJyspy-Pe7c&open=AZ-5lOpJICJyspy-Pe7c&pullRequest=30773