-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Summary
The Dashboard and StatCard implementations contain multiple hardcoded strings and title-based logic that prevent reuse and break internationalisation. This parent issue tracks the extraction of components, removal of hardcoded string checks, and migration of UI text to the app's i18n system.
Impact
StatCarduses title string comparisons to choose decorative indicators (e.g.,"Total Clusters","Active Clusters"), which is brittle and not i18n-safe.- User-facing strings like
increase/decrease/changeare hardcoded in English. - Reuse of
StatCardinPluginManagerand elsewhere fails to display indicators or translations.
Files of interest
frontend/src/components/dashboard/StatCard.tsxfrontend/src/pages/Dashboard.tsxfrontend/src/pages/PluginManager.tsx
Goals
- Extract reusable subcomponents in
Dashboard.tsxinto dedicated modules where appropriate (e.g., indicators, sparkline/trend visuals, context badge). - Remove hardcoded title-based behaviour; provide explicit props (
indicator,indicatorKey,titleKey) instead. - Internationalise all user-facing strings used by
StatCardand related Dashboard components. - Add unit and integration tests to prevent regressions.
cc @btwshivam
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress