Skip to content

feat(i18n): migrate browser simple value editors to i18n (RI-8274) - #6289

Open
valkirilov wants to merge 12 commits into
feature/RI-8274-i18n-key-details-frameworkfrom
feature/RI-8274-i18n-simple-value-editors
Open

feat(i18n): migrate browser simple value editors to i18n (RI-8274)#6289
valkirilov wants to merge 12 commits into
feature/RI-8274-i18n-key-details-frameworkfrom
feature/RI-8274-i18n-simple-value-editors

Conversation

@valkirilov

@valkirilov valkirilov commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

Routes all user-facing strings in the hash, set, sorted-set, list, string and ReJSON value editors through t() with flat browser.<type>.* keys, filled in both en.json and bg.json (Bulgarian).

Commits (one per type)

  1. hash-details - Show TTL, Add Fields, production-add confirm (count-plural), Field/Value/TTL columns, TTL No-Limit/tooltip/placeholder.
  2. set & zset-details - Add Members, production-add confirms (count-plural), Member/Score columns, zset search prefix + score placeholder + score-edit tooltip.
  3. list-details - Add/Remove Elements, production-add confirm, <Trans> remove-popover (count-plural Element(s) + "removed from the tail/head of key"), Index/Element columns. Converted the shared optionsDestinations ("Push to tail/head") to a getPushDestinations(t) factory and updated its other consumer AddKeyList so its select is translated too.
  4. string-details - Copy/Edit Value, Empty, Load all / Download. Reuses the shared browser.keyDetails.editable.* confirm keys from PR B.
  5. rejson-details - JSONErrorsParseKeys map, JSON key/value placeholders, add/edit/apply/cancel aria, Monaco Close/Overwrite Data, duplicate-key overwrite popover, copy/download actions.

Note

Low Risk
Display-string and test assertion updates only; Redis write flows and confirmation logic are unchanged aside from translated copy.

Overview
Moves hash, list, set, sorted set, string, and ReJSON browser key-detail UIs off hard-coded English onto useTranslation / t(), with matching browser.* keys in en.json and bg.json (pluralized production-write confirms, list remove popover via <Trans>, shared browser.keyDetails.* tooltips/errors).

Supporting refactors: add-key field configs become getAdd*FormConfig(t) factories; list push destinations use getPushDestinations(t) (also wired from add-key list); ReJSON JSONErrors now holds i18n key paths; specs assert translated error text via i18n.t.

CI: UI type-check step sets NODE_OPTIONS=--max-old-space-size=8192 so tsc does not OOM as the locale key union grows.

Reviewed by Cursor Bugbot for commit d42e108. 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 24, 2026 11:34
@valkirilov valkirilov self-assigned this Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 83.4% 28293/33926
🟡 Branches 69.47% 12000/17273
🟡 Functions 78.34% 7484/9553
🟢 Lines 83.85% 27521/32821

Test suite run success

7879 tests passing in 870 suites.

Report generated by 🧪jest coverage report action from d42e108

@valkirilov
valkirilov force-pushed the feature/RI-8274-i18n-key-details-framework branch from 03efa32 to 57d59b3 Compare July 27, 2026 13:18
@valkirilov
valkirilov force-pushed the feature/RI-8274-i18n-simple-value-editors branch from f8d91cb to d22cd5d Compare July 27, 2026 13:36
@valkirilov
valkirilov force-pushed the feature/RI-8274-i18n-key-details-framework branch from 57d59b3 to 7ea5928 Compare July 28, 2026 11:55
@valkirilov
valkirilov force-pushed the feature/RI-8274-i18n-simple-value-editors branch from d22cd5d to 1587baf Compare July 28, 2026 11:55

@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: 1587baface

ℹ️ 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/bg.json Outdated
@valkirilov
valkirilov force-pushed the feature/RI-8274-i18n-simple-value-editors branch from 1587baf to 2756b2b Compare July 28, 2026 13:04

@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: 2756b2b2ed

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

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Backend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 93.15% 16525/17741
🟡 Branches 75.37% 5303/7036
🟢 Functions 87.46% 2532/2895
🟢 Lines 93% 15802/16991

Test suite run success

3721 tests passing in 322 suites.

Report generated by 🧪jest coverage report action from d42e108

@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: 92ff2ee1b6

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

@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: 4cd2a0fad0

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

@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: 1bf6a0c338

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

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

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

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Integration Tests

Status Category Percentage Covered / Total
🟡 Statements 79.94% 18368/22977
🟡 Branches 62.29% 8562/13745
🟡 Functions 67.96% 2499/3677
🟡 Lines 79.56% 17298/21741

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

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