Skip to content

fix(web): diagnostics I/O totals and process scan show in the app's language - #43746

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/web-diagnostics-observed-retained-i18n
Nov 26, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
only21mil:fix/web-diagnostics-observed-retained-i18n

Conversation

@only21mil

Copy link
Copy Markdown
Contributor

Problem

In Settings → Diagnostics, three labels stay in English in every other UI language: the read and write totals under Read throughput and Write throughput ("192 KB observed") and the Process scan row in Collection health ("3/1060 retained"). The headings and badges around them are translated.

Change

ResourceTelemetryDiagnostics.tsx now builds those labels with gt("{bytes} observed", { bytes }) and gt("{retained}/{scanned} retained", { retained, scanned }), the same way #43490 translated the process count badge in this file. The two new keys are added to all 10 web catalogs next to their neighbouring entries, with wording that matches each catalog's existing "observed CPU time" and "retained process samples" strings.

Verification

An AI agent ran each check below.

  • The German browser test in resourceTelemetryState.browser.test.tsx that fix(web): diagnostics process counts show in the app's language #43490 added now also expects "512 B beobachtet", "300 B beobachtet" and "12/40 gespeichert". It fails on 2e830d773347 (the card renders "512 B observed") and passes on this branch.
  • vp run i18n:check and vp run check:changed pass.
  • Opened Diagnostics in the real web app with the native resource monitor running, on the base commit and on this branch (captures below).

Setup: Linux, Chromium, web app from vp run dev with fresh isolated data and the native resource monitor, UI language Deutsch, 1280×1400.
Steps: Einstellungen → Allgemein → Sprache: Deutsch → Einstellungen → Diagnose.

Before (2e830d773347) After (5ed4ca5e7426)
German UI: read and write totals say "observed" and the process scan says "retained" in English German UI: read and write totals say "beobachtet" and the process scan says "gespeichert"
German UI: read and write totals say "observed" and the process scan says "retained" in English German UI: read and write totals say "beobachtet" and the process scan says "gespeichert"

Not shown: the other eight non-English languages, which use the new catalog entries the same way; the desktop app, which renders this same web component. Mobile has no Diagnostics screen. Values sent by the server, such as the thermal state ("unknown") and health status ("HEALTHY"), still show untranslated; they need a label for each server value and are left out of this fix.

Generated with Claude Opus 5.5 in T3 Code Nightly

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 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 5ed4ca5 and 02d8c34.

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

Resource telemetry diagnostics now format observed read and write byte totals and retained-versus-scanned process counts through translated messages. Translation entries were added across ten language catalogs, and the browser test now checks these displayed values.

Changes: Resource telemetry localization

Layer / File(s) Summary
Interpolate telemetry details
apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx, apps/web/src/i18n/translations/*.json, apps/web/src/lib/resourceTelemetryState.browser.test.tsx
The diagnostics component uses translated interpolation for observed byte totals and retained-versus-scanned process counts. Ten language catalogs provide the message entries. The browser test supplies sample totals and scan counts and asserts their displayed values.

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

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#40286: Adds an Arabic translation catalog whose key parity with English is affected by the new English entries in this PR.

Suggested labels: bugfix

Suggested reviewers: maria-rcks, juliusmarminge

Merge Risk: Minimal · previous review 5ed4c

This change localizes the observed read and write totals and the retained/scanned process count on the diagnostics screen. It carries little merge risk. The German output is covered by a browser test.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: diagnostics I/O totals and the process scan label are now translated into the app's language. It is a conventional commit title with a clear scope. The PR changes the web d…
Description check Passed The description follows the template. It has Problem, Change, Verification, and a note on agent use. The Scope section is missing. It does not link an issue, and it does not say why the fix needs no i…
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 change: diagnostics I/O totals and the process scan label are now translated into the app's language. It is a conventional commit title with a clear scope. The PR changes the web diagnostics component, adds catalog keys in all 10 web locales, and updates the German browser test, which matches the title.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Verification, and a note on agent use. The Scope section is missing. It does not link an issue, and it does not say why the fix needs no issue. It also does not state whether a maintainer requested the PR. The Verification section is detailed and includes before and after captures, which the template asks for on UI changes. The Problem and Change sections are clear and specific.

Resolution

Add a Scope section. Link the issue that shows the bug, or explain why a small obvious fix needs no issue. Also state whether a maintainer asked for this PR. The description is otherwise complete.

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 6bec332 and 5ed4ca5.

Files selected for processing: 12

  • apps/web/src/components/settings/ResourceTelemetryDiagnostics.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
  • apps/web/src/lib/resourceTelemetryState.browser.test.tsx

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Select Deutsch in Settings → General, open Diagnostics, wait for NATIV HEALTHY, inspect read/write totals, then scroll to Prozessscan. Both runs used Chromium at 1280×800, light theme and fresh synthetic state.

Before After
8e8e15ac89 02d8c34b40
Both totals say observed Both totals say beobachtet
Before: German Diagnostics with English I/O totals After: German Diagnostics with translated I/O totals
Process scan says 3/251 retained Process scan says 3/257 gespeichert
Before: English retained process count After: German retained process count
Before recording After recording

Scenario source. The scenario failed on base and passed on head; scenarios:prove exited 0.

Not shown:

  • Other app languages were not exercised; this proof covers the reported German reproduction.

@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 49a6653 into pingdotgg:main Nov 26, 2026
57 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:M 30-99 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