-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Auto-QA [Localization]: Hardcoded Strings
Detected: 2026-03-28T13:42:17.687Z | Focus: Localization | Commit: e46d5ec | Run: View
Findings
### Hardcoded strings in JSX (25 found)
Consider extracting to a translations file for future i18n support:
src/components/history/CardHistory.tsx:182: <>Configuration updated</>
src/components/clusters/components/GPUDetailModal.tsx:491:
No GPU nodes detected across your clusters
src/components/clusters/components/GPUDetailModal.tsx:500:
Loading GPU data...
src/components/clusters/components/FilterTabs.tsx:127: Custom
src/components/clusters/components/FilterTabs.tsx:131: Health
src/components/clusters/components/FilterTabs.tsx:132: Provider
src/components/clusters/components/CardConfigModal.tsx:61: All Clusters
src/components/clusters/components/NamespaceResources.tsx:286: Loading more...
src/components/settings/sections/LocalClustersSection.tsx:525: Select a host cluster...
src/components/drilldown/views/KustomizationDrillDown.tsx:489:
No resources found
src/components/drilldown/views/KustomizationDrillDown.tsx:538:
No conditions available
src/components/drilldown/views/KustomizationDrillDown.tsx:578:
Click "Analyze Kustomization" to get AI-powered analysis
src/components/drilldown/views/PolicyDrillDown.tsx:524:
Policy specification not available
src/components/drilldown/views/PolicyDrillDown.tsx:564:
Click "Analyze Policy" to get AI-powered analysis
src/components/drilldown/views/NodeDrillDown.tsx:137: Loading node details...
src/components/drilldown/views/NodeDrillDown.tsx:145: Unable to load node details from cluster
src/components/drilldown/views/NodeDrillDown.tsx:352: Tip: Use "Investigate" to understand why the node was cordoned before uncordoning.
src/components/drilldown/views/AlertDrillDown.tsx:402: Alert Rule
src/components/drilldown/views/AlertDrillDown.tsx:489:
Alert rule source not available
src/components/drilldown/views/AlertDrillDown.tsx:530:
Click "Diagnose Alert" to get AI-powered analysis
src/components/drilldown/views/BuildpackDrillDown.tsx:659:
No builds found
src/components/drilldown/views/BuildpackDrillDown.tsx:726: Build health and status analysis
src/components/drilldown/views/BuildpackDrillDown.tsx:730: Builder configuration review
src/components/drilldown/views/BuildpackDrillDown.tsx:734: Build failure diagnosis
src/components/drilldown/views/BuildpackDrillDown.tsx:738: Optimization recommendations
### Hardcoded button labels
src/components/ui/Button.test.tsx:12: render(Primary)
src/components/ui/Button.test.tsx:18: render(Delete)
src/components/ui/Button.test.tsx:24: render(Small)
src/components/ui/Button.test.tsx:30: render(Disabled)
src/components/ui/Button.test.tsx:35: render(Loading)
src/components/ui/Button.test.tsx:40: const { container } = render(Loading)
src/components/ui/Button.test.tsx:46: render(Loading)
src/components/ui/Button.test.tsx:56: const { container } = render(Loading)
src/components/ui/Button.test.tsx:72: render(Save)
src/components/ui/Button.test.tsx:82: render(<Button iconRight={→}>Go)
src/components/ui/Button.test.tsx:87: render(Full)
src/components/ui/Button.test.tsx:93: render(Click)
Suggested Improvements
- Extract strings to a translations file (e.g.,
en.json) - Use a translation function like
t("key")or<Trans> - Consider using react-i18next or similar library
- Start with visible UI text: buttons, labels, headings
PR Guidance: Keep changes under 50 lines (size S) for best acceptance rate. Split larger fixes into multiple PRs.
This issue was automatically created by the Auto-QA workflow during Localization focus day.
Labels ai-fix-requested and help wanted enable Copilot to fix this after triage.