Skip to content

RI-8276 i18n: migrate Slow Log analytics page#6196

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

RI-8276 i18n: migrate Slow Log analytics page#6196
valkirilov wants to merge 2 commits into
mainfrom
fe/feature/RI-8276/i18n-analytics-slow-log

Conversation

@valkirilov

@valkirilov valkirilov commented Jul 13, 2026

Copy link
Copy Markdown
Member

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


Note

Low Risk
Text-only i18n wiring on the Slow Log UI; no changes to Redis config, API calls, or analytics logic.

Overview
Internationalizes the Slow Log analytics UI by replacing hardcoded English strings with useTranslation / Trans and new keys under analytics.slowLog.*, plus shared duration labels in analytics.units.*.

Locale files (en.json, bg.json) gain the full Slow Log string set (page chrome, table headers, empty state, configure/clear modals, tooltips, and pluralized entry counts). Bulgarian translations are included for the new keys.

Component updates cover SlowLogPage, Actions, ClearSlowLogModal, EmptySlowLog, SlowLogConfig, and SlowLogTable. Rich copy (tooltips, cluster notice, config help) uses Trans with embedded markup (spacer, bold, code, br). The “Max available” count option is built inside the page component so its label can be translated. No API or slow-log behavior changes—display text only.

Reviewed by Cursor Bugbot for commit d554707. 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 11:53

@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 a72cc4b. Configure here.

Comment thread redisinsight/ui/src/i18n/locales/en.json Outdated

@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: a72cc4b5aa

ℹ️ 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".

Comment thread redisinsight/ui/src/i18n/locales/en.json Outdated
Comment thread redisinsight/ui/src/i18n/locales/en.json Outdated
@valkirilov valkirilov self-assigned this Jul 13, 2026
Route the Slow Log analytics page through i18n under analytics.slowLog.*
with Bulgarian translations: page/table/actions/config/empty/clear-modal
strings, the info tooltip and cluster/help texts via <Trans>, and the
count-based entries summary via i18next plurals.

Introduces a shared analytics.units.* group (µs/ms/msec) resolved through
t() everywhere units render (dropdown, converter, table header, tooltip,
empty state) so they localize to Bulgarian (мкс/мс/мсек). The "Slow Log"
feature name is translated to "Бавни команди"; Redis config directive
names (slowlog-*) stay literal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@valkirilov valkirilov force-pushed the fe/feature/RI-8276/i18n-analytics-slow-log branch from a72cc4b to e61f8cb Compare July 13, 2026 12:12
@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.9% 27222/32445
🟡 Branches 69.71% 11588/16624
🟡 Functions 79.28% 7291/9196
🟢 Lines 84.37% 26510/31420

Test suite run success

7763 tests passing in 860 suites.

Report generated by 🧪jest coverage report action from d554707

…8n-analytics-slow-log

# 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