Skip to content

RI-8277 Migrate rdi instance pipeline header to i18n#6222

Merged
valkirilov merged 2 commits into
mainfrom
fe/feature/RI-8277/i18n-rdi-instance
Jul 20, 2026
Merged

RI-8277 Migrate rdi instance pipeline header to i18n#6222
valkirilov merged 2 commits into
mainfrom
fe/feature/RI-8277/i18n-rdi-instance

Conversation

@valkirilov

@valkirilov valkirilov commented Jul 17, 2026

Copy link
Copy Markdown
Member

What

Routes the RDI instance pipeline header through i18next under rdi.instance.*, with Bulgarian translations added to en.json/bg.json (parity kept). Second of the rdi PRs for the i18n epic (RI-8269); a follow-up covers pipeline-management.

Covered:

  • Deploy modal (confirm title, errors warning, overwrite/flush texts, reset checkbox + info tooltip, Deploy button).
  • Start / stop / reset pipeline buttons (tooltips, aria-labels, labels).
  • Current pipeline status title + state labels (initial sync / streaming / not running / error).
  • Config-file action menu items (download deployed / import ZIP / save ZIP).

Testing

  • yarn test for redisinsight/ui/src/pages/rdi/instance — 114 tests pass.
  • yarn lint:ui, yarn type-check, yarn i18n:check all clean.
  • Manually: open an RDI instance pipeline page; exercise deploy/start/stop/reset; append ?lang=bg to preview Bulgarian.

Closes RI-8277

🤖 Generated with Claude Code


Note

Low Risk
Presentation-only i18n refactor with no changes to pipeline actions or backend calls; minor note that status labels in utils.ts use the global i18n instance so they stay in sync on language switches.

Overview
Moves hardcoded copy on the RDI instance pipeline header into i18next under rdi.instance.*, with matching entries in en.json and bg.json.

Deploy modal, start/stop/reset controls (labels, tooltips, aria-labels), pipeline status title and state/status labels, and the config ZIP menu now call useTranslation() or i18n.t() instead of inline English. Status helpers replace capitalize(status) with a STATUS_LABEL_KEYS map so every PipelineStatus has a defined translation key.

No deploy/start/stop/reset behavior or API usage changes—strings and localization wiring only.

Reviewed by Cursor Bugbot for commit 91e852f. 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 17, 2026 07:27
@valkirilov valkirilov self-assigned this Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 83.27% 27799/33386
🟡 Branches 69.3% 11916/17194
🟡 Functions 78.21% 7392/9452
🟢 Lines 83.72% 27066/32331

Test suite run success

7829 tests passing in 865 suites.

Report generated by 🧪jest coverage report action from 91e852f

pawelangelow
pawelangelow previously approved these changes Jul 17, 2026
Route the RDI instance pipeline header through i18n under rdi.instance.*
with Bulgarian translations: the deploy modal (confirm title, errors
warning, overwrite/flush texts, reset checkbox + info, Deploy button),
the start/stop/reset pipeline buttons (tooltips, aria-labels, labels),
the current pipeline status title and the state labels (initial sync /
streaming / not running / error), and the config-file action menu items
(download deployed / import ZIP / save ZIP).

Pipeline state labels resolve via the i18n singleton inside
getStatusToShowFromState (called at render). The v1 status fallback
(capitalized raw status) and shared rdiErrorMessages factory are left
for the pipeline-management PR. bg: "Deploy"->"Внедряване",
"snapshot"->"снапшот".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@valkirilov
valkirilov force-pushed the fe/feature/RI-8277/i18n-rdi-instance branch from e4b8c2c to 899e4ff Compare July 17, 2026 14:32

@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: 899e4ff3bf

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

Address review feedback: getStatusToShowFromStatus (used for the
status-shape badge when pipelineState is absent) built labels via
capitalize(status), leaving mixed-language output (e.g. Bulgarian header
next to English "Started"/"Ready"). Map the known PipelineStatus values
to rdi.instance.status.* keys resolved at render; unknown/arbitrary
statuses keep the capitalized fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@valkirilov
valkirilov merged commit d1e369e into main Jul 20, 2026
21 checks passed
@valkirilov
valkirilov deleted the fe/feature/RI-8277/i18n-rdi-instance branch July 20, 2026 05:24
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.

2 participants