Skip to content

fix(web): settings inheritance tooltips name project override counts in the UI language - #43718

Merged
juliusmarminge merged 3 commits into
pingdotgg:mainfrom
only21mil:fix/web-setting-inheritance-overrides-i18n
Nov 26, 2026
Merged

juliusmarminge merged 3 commits into
pingdotgg:mainfrom
only21mil:fix/web-setting-inheritance-overrides-i18n

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

At the "All projects" scope, a Settings row that some projects override shows a layers badge whose tooltip and button label end in a project override count. That count used a hardcoded English template, so in every other UI language the tooltip read, for example, "Integrierter Standard · 1 project override".

The label now uses one translated plural string, {summary} · {count, plural, one {{count} project override} other {{count} project overrides}}, matching the other {label} · {count} labels in Settings. Each web catalog gets the new key with its translation, using that catalog's existing word for a project override. The English text does not change.

Testing

An AI agent ran each check below.

  • New SettingInheritance.browser.test.tsx checks the badge's accessible name for 1 and 2 overriding projects in English and German. It fails on the base component (German shows "1 project override") and passes on this change, 3 serial runs.
  • vp run i18n:check and vp run check:changed pass with no warnings.

Setup: Linux, T3 Browser panel (Chromium), light theme, 1280x800, fresh isolated dev server state, two projects.

Steps: Settings > Worktrees > set "Start from remote" for one project and "Branch prefix" for both > switch Language to Deutsch > back to "All projects" > hover each layers badge.

39388dd0 (before) HEAD (after)
German: tooltip ends in English "1 project override" German: tooltip ends in "1 Projektüberschreibung"
German, one project: "Integrierter Standard · 1 project override" German, one project: "Integrierter Standard · 1 Projektüberschreibung"
German: tooltip ends in English "2 project overrides" German: tooltip ends in "2 Projektüberschreibungen"
German, two projects: "Integrierter Standard · 2 project overrides" German, two projects: "Integrierter Standard · 2 Projektüberschreibungen"

Not shown

  • Mobile: the mobile app has no settings inheritance badge, so nothing changes there.
  • Desktop: it renders the same web settings page; no separate desktop capture.
  • Languages other than English and German: each catalog has its translation; only German was captured.

Generated with Claude Opus 5.5 in T3 Code Nightly

…in the UI language

The Settings inheritance badge added a hardcoded English "N project override(s)" to its tooltip and button label, so it stayed English in every other UI language. The count now uses one translated plural string with the summary, matching the other "{label} · {count}" labels, and every web catalog has its translation.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0be358d and 14d512d.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

SettingInheritance now formats project override summaries with a pluralized translation template. English and nine other locales have translation entries. Browser tests check singular and plural button names in English and German.

Changes: Project override summary

Layer / File(s) Summary
Pluralized override label
apps/web/src/components/settings/SettingInheritance.tsx, apps/web/src/components/settings/SettingInheritance.browser.test.tsx, apps/web/src/i18n/translations/*.json
SettingInheritance passes the summary and override count to a pluralized translation. Translation entries were added for English, German, Spanish, French, Japanese, Korean, Brazilian Portuguese, Russian, Swedish, and Chinese. Browser tests check singular and plural button names in English and German.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: maria-rcks, juliusmarminge

Merge Risk: Minimal · previous review 0be35

This change localizes the project override count in settings inheritance tooltips and button labels. It is tested for English and German, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the settings inheritance tooltip and button label now show project override counts in the UI language instead of hardcoded English. It follows the conventional commit …
Description check Passed The description follows the template's main sections. It gives the problem (hardcoded English count in other languages), the change (a translated plural string added to each catalog), and verification…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the settings inheritance tooltip and button label now show project override counts in the UI language instead of hardcoded English. It follows the conventional commit format and matches the changeset, which adds a translated plural string and updates SettingInheritance.tsx and the locale catalogs.

Full details: Description check

Explanation

The description follows the template's main sections. It gives the problem (hardcoded English count in other languages), the change (a translated plural string added to each catalog), and verification (a browser test for 1 and 2 overrides in English and German, before/after screenshots, and i18n and changed-file checks). It states what was not checked (other languages beyond German, mobile, and desktop). The Scope section does not link an issue or explain why none is needed, and the template asks for that. The agent-model line is present.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2e830d7 and 0be358d.

Files selected for processing: 12

  • apps/web/src/components/settings/SettingInheritance.browser.test.tsx
  • apps/web/src/components/settings/SettingInheritance.tsx
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 26, 2026
juliusmarminge and others added 2 commits November 26, 2026 19:51
The repository's testing guide leaves copy text out of tests, and a browser
test file spends seconds of CI for a translated string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Real web app, Chromium, 1280×800, dark theme, fresh synthetic data on each commit. Created proj-a and proj-b; disabled Start from remote and set pa/ for proj-a; set pb/ for proj-b; returned to All projects; selected Deutsch; hovered both inheritance badges.

The scenario failed on base and passed on head. Base retained English singular/plural suffixes. Head displayed German singular/plural suffixes and passed both accessible-name checks.

Capture Before After
Commit a066eb0935 14d512d5cb
Singular Before: German page with English singular override count After: German singular Projektüberschreibung
Plural Before: German page with English plural override count After: German plural Projektüberschreibungen
Recording Before interaction After interaction

Scenario driver.

Not shown:

  • Other UI languages were not exercised; this proof covers the reported German singular and plural cases.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 26, 2026
@juliusmarminge
juliusmarminge merged commit 484a0ee into pingdotgg:main Nov 26, 2026
56 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants