Skip to content

RI-8276 i18n: migrate Database Analysis page#6199

Open
valkirilov wants to merge 2 commits into
mainfrom
fe/feature/RI-8276/i18n-analytics-database-analysis
Open

RI-8276 i18n: migrate Database Analysis page#6199
valkirilov wants to merge 2 commits into
mainfrom
fe/feature/RI-8276/i18n-analytics-database-analysis

Conversation

@valkirilov

@valkirilov valkirilov commented Jul 13, 2026

Copy link
Copy Markdown
Member

Routes the Database Analysis page through i18next under analytics.databaseAnalysis.* (+ shared analytics.units.*), with Bulgarian translations. Text-only; no behavior change.


Note

Low Risk
Presentation-only i18n refactor with no API or analysis logic changes; main risk is missing or mismatched translation keys affecting copy in non-English locales.

Overview
Database Analysis and related Analytics navigation are wired through i18next instead of hard-coded English strings.

User-visible copy on the Database Analysis flow (page title, header actions/progress/tooltips, Data Summary vs Tips tabs, empty states, TTL chart, summary donuts, top keys/namespaces tables, and recommendations) now comes from analytics.databaseAnalysis.*, with shared analytics.units.* for % and byte suffixes. Analytics tab labels use analytics.nav.*. English and Bulgarian locale entries were added for those keys.

Rich messages that embed links (empty “no keys” and “no namespaces”) use Trans with component placeholders. The analysis header no longer imports analyze tooltip constants from recommendations; cluster vs standalone tooltip text is selected from locale strings instead.

Reviewed by Cursor Bugbot for commit 52f7047. Bugbot is set up for automated code reviews on this repo. Configure here.

@valkirilov valkirilov requested a review from a team as a code owner July 13, 2026 14:04
@valkirilov valkirilov self-assigned this Jul 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae6ea8e00d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@valkirilov valkirilov force-pushed the fe/feature/RI-8276/i18n-analytics-database-analysis branch 2 times, most recently from 71b61fd to e3bd16d Compare July 13, 2026 14:26

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e3bd16d. Configure here.

Route the Database Analysis page through i18n under
analytics.databaseAnalysis.* with Bulgarian translations: page title,
header (report select, scan progress, new-report button + tooltip
title/body), the Data Summary / Tips tabs, empty states
(reports/keys/encrypt — the keys variant links Workbench via <Trans>),
recommendations empty state and tutorial, summary-per-data and TTL
sections, and the top-namespaces / top-keys tables (headers, tooltips,
toggles). The no-namespaces empty state links Tree View via <Trans>.

Also migrates the analytics navigation tabs (AnalyticsTabs: Overview /
Database Analysis / Slow Log) under analytics.nav.*, and translates the
new-report tooltip body at the use site (leaving the shared
recommendations constant untouched for the still-English side panels).

Extends analytics.units.* with %/B resolved through t(). The TTL tooltip
seconds suffix stays literal to match the untranslated duration from the
shared truncateNumberToDuration util (same rationale as cluster-details).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@valkirilov valkirilov force-pushed the fe/feature/RI-8276/i18n-analytics-database-analysis branch from e3bd16d to f618ca0 Compare July 13, 2026 14:32
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 83.89% 27219/32447
🟡 Branches 69.67% 11577/16616
🟡 Functions 79.28% 7291/9196
🟢 Lines 84.36% 26509/31423

Test suite run success

7763 tests passing in 860 suites.

Report generated by 🧪jest coverage report action from 52f7047

…8n-analytics-database-analysis

# Conflicts:
#	redisinsight/ui/src/i18n/locales/bg.json
#	redisinsight/ui/src/i18n/locales/en.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant