Skip to content

RI-8275 i18n: migrate Vector Search#6190

Merged
valkirilov merged 3 commits into
mainfrom
fe/feature/RI-8275/i18n-vector-search
Jul 13, 2026
Merged

RI-8275 i18n: migrate Vector Search#6190
valkirilov merged 3 commits into
mainfrom
fe/feature/RI-8275/i18n-vector-search

Conversation

@valkirilov

@valkirilov valkirilov commented Jul 10, 2026

Copy link
Copy Markdown
Member

What

Route the entire Vector Search page (pages/vector-search/**) through i18next with Bulgarian translations, under the vectorSearch.* namespace (list, create-index flow, query page, query library, welcome + state screens).

Note: The PR looks huge, but it's just replacing hardcoded strings with their respective translations.

Testing

  • yarn type-check (no new errors), yarn i18n:check (en/bg parity 665/665), yarn lint:ui.
  • Full pages/vector-search jest suite (723 tests) + the browser make-searchable modal suite pass.
  • Manually: open Vector Search (list / create index / query), append ?lang=bg; empty bg values fall back to English.

Note

Low Risk
String-only and locale wiring changes with no auth or data-path changes; main risk is missing keys or tests that still assume English literals.

Overview
Adds a large vectorSearch.* (and related notification.*) key set in en.json and bg.json, and wires the Vector Search area through useTranslation, i18n.t, and Trans instead of inline English.

UI coverage includes index list, create-index flow (onboarding, field modals, keys browser), query editor/library, welcome and fallback screens, sample-data picker, and shared pieces like command view and upgrade banner. Toasts for index creation and query-library save/delete/cleanup now use the same keys.

Refactors move labels that used to live in module-level constants into call-time helpers (getStepContent, getIndexListColumns, getValidationMessages, getPhoneticOptions, etc.) so text follows the active locale. Shared browser FIELD_TYPE_OPTIONS now use descriptionKey pointing at vectorSearch.fieldType.desc.*. Index list actions can pass an optional translated label; index-list/constants.ts is removed in favor of inline i18n in the column config.

Tests that asserted fixed English strings now use i18n.t or the new getters.

Reviewed by Cursor Bugbot for commit cb90a9e. 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 10, 2026 12:48
@valkirilov valkirilov self-assigned this Jul 10, 2026

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

@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: 0155d39f5a

ℹ️ 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 10, 2026

Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 83.89% 27202/32425
🟡 Branches 69.69% 11581/16617
🟡 Functions 79.28% 7286/9190
🟢 Lines 84.37% 26492/31401

Test suite run success

7763 tests passing in 860 suites.

Report generated by 🧪jest coverage report action from cb90a9e

dantovska
dantovska previously approved these changes Jul 13, 2026
valkirilov and others added 3 commits July 13, 2026 12:46
Route the Vector Search index list area through i18n under vectorSearch.list.*
with Bulgarian translations: header + info popover, create-index menu,
delete-index confirmation, column headers/tooltips, empty states, and the
row-action labels. Column headers/tooltips and row-action labels resolve at
render time; a `label` field on IndexListAction keeps `name` stable for test ids.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…I-8275)

Route the Vector Search create-index flow and query page through i18n with
Bulgarian translations.

Create-index flow → vectorSearch.{createIndex,fieldType,onboarding,sampleData,
selectKeyOnboarding}.*: page header/footer/toolbar/content, index-name editor,
confirm-key-change modal, field-type modal + list (labels/tooltips/descriptions/
validation), onboarding, pick-sample-data, select-key onboarding. Shared
field-type descriptions (create-redisearch-index/constants.ts, also used by the
browser make-searchable modal) under vectorSearch.fieldType.desc.*.

Query page → vectorSearch.{query,queryLibrary,commandView}.*: editor actions/
tooltips/tabs/placeholder/Monaco onboarding, query library + save/delete modals,
command view, page header/breadcrumb. Group-command label uses count-based
plurals.

Create-index and query-library toasts go under notification.*. Module-level
constants resolve at render time; Redis tokens left untranslated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Route the remaining Vector Search screens through i18n with Bulgarian
translations, completing pages/vector-search coverage:

- welcome screen, no-search-results
- index details + info side panel (labels, column headers, tooltips)
- RQE-not-available / version-not-supported / upgrade banner / search-page
  fallback
- keys browser (select-key, scan counters, supported-types info)

Module-level constants resolve at render time via getters; scan counters use
<Trans> to preserve testid spans; Redis type tokens (HASH/JSON) and the
document title left untranslated per convention.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@valkirilov valkirilov force-pushed the fe/feature/RI-8275/i18n-vector-search branch from 0155d39 to cb90a9e Compare July 13, 2026 09:54
@valkirilov valkirilov merged commit 8270a97 into main Jul 13, 2026
33 of 34 checks passed
@valkirilov valkirilov deleted the fe/feature/RI-8275/i18n-vector-search branch July 13, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants