fix(web): say that resource telemetry samples once per second in French #48312
main fromrefs/pull/48312/head·opened View on GitHubProblem#
The French Diagnostics resource monitor says Échantillonnage toutes les 1 seconde at its normal live cadence, combining a plural determiner with a singular noun.
Deterministic repro on origin/main (43328e8f0a680a491c84995b398f5c635ff37a90): On Linux with the native monitor built (vp run build:resource-monitor), run vp run dev --home-dir "$(mktemp -d)" --no-seed --auto-bootstrap-project-from-cwd. Pair with the isolated app, open /settings/general, choose Français in Language, wait for Langue, then open /settings/diagnostics. Keep the tab open until the native monitor is healthy. The Diagnostics subscription starts live native collection; on an unconstrained host the server publishes sampleIntervalMs: 1000 in subscribeResourceTelemetry. The web client passes that field unchanged to formatSamplingStatus, and renders its French result in the Resource monitor panel. For a web scenario, seed a demo project, open the same two settings routes, select and await the French locale, then assert the exact Resource monitor status below.
- Observed:
Échantillonnage toutes les 1 seconde. - Expected:
Échantillonnage à intervalles de 1 seconde.
Change#
Correct the singular branch in the French catalog used by both web and Electron Diagnostics. Keep the numeric placeholder and the five- and fifteen-second plural labels unchanged. The React Native client does not use this label.
Scope#
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification#
- On base, the focused formatter assertion got
Échantillonnage toutes les 1 secondeinstead ofÉchantillonnage à intervalles de 1 seconde. On head it passed, with the expected five- and fifteen-second plural labels unchanged. - Web
vp run i18n:generate,vp run i18n:check, andvp run check:changedexited 0. The full changed test file passed all five tests. - Live Linux web before/after screenshots and transcript (download and open
comparison.htmlto view the captures). - Not shown: Electron shell, remote and tunnel connections, or live five- and fifteen-second modes (those durations are covered by the formatter test).
Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).
- 1
tanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
8e84c7eMacroscope's review found this PR approvable — Updates the French sampling-status wording while preserving the displayed interval and plural handling. Telemetry behavior and product defaults are unchanged.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
The French singular sampling-interval translation changes. A French-locale test checks rendered sampling status for three intervals.
Changes: French sampling interval wording
Layer / File(s) Summary Translation and rendering test
apps/web/src/i18n/translations/fr.json,apps/web/src/components/settings/ResourceTelemetryDiagnostics.logic.test.tsThe singular French phrase changes to “at intervals of [seconds].” A test checks translated output for 1,000, 5,000, and 15,000 ms intervals. Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Suggested reviewers:
chenxin-yan
Merge Risk:
Minimal · up to8e84c-
This updates French wording for the one-second sampling status in Diagnostics. The change is small and low risk, and it is ready to merge.
Pre-merge checks:
4-
Check name Status Explanation Title check The title names the change: a fix in the web app's French resource-telemetry text so the sampling status reads correctly for one second. It matches the changeset, which corrects the singular French sa… Description check The description follows the template. It states the problem with a deterministic reproduction and expected versus observed text. It explains the change in the French catalog and gives a scope note sta… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Title check
-
Explanation
The title names the change: a fix in the web app's French resource-telemetry text so the sampling status reads correctly for one second. It matches the changeset, which corrects the singular French sampling branch in fr.json and adds a formatter test. The title uses the conventional commit form and is specific, though it states the fix as a plain-language label rather than the wording change itself.
Full details: Description check
-
Explanation
The description follows the template. It states the problem with a deterministic reproduction and expected versus observed text. It explains the change in the French catalog and gives a scope note stating this is a small bug fix with no issue needed. Verification lists focused test results, repo checks, and before/after evidence, and it notes what was not shown. It also includes the model and harness line the template requests. Minor gaps: the Scope section does not link an issue (justified by the small-fix rule), and the screenshots are hosted on an external gist rather than embedded, which the template allows.
-
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-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: e1b810e
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
db7784fe-06a0-457f-88f4-d3a960e76884
Commits-
Reviewing files that changed from the base of the PR and between e1b810e48f8d97cccc34b9ba4a22f58db722c1eb and 8e84c7e332474704dea9b02c645284876c4ccfa6.
Files selected for processing: 2-
apps/web/src/components/settings/ResourceTelemetryDiagnostics.logic.test.tsapps/web/src/i18n/translations/fr.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
-
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes