Skip to content

fix(platform): say retention values and bound changes in words - #4850

Merged
yannickmonney merged 1 commit into
mainfrom
fix/retention-bounds-proposal-wording
Oct 12, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/retention-bounds-proposal-wording

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What

The retention policy printed the wire's words in every language. The operator's bounds proposal — the banner an upgraded organization sees after #4843 added a category — listed automationVersions: min — → 90 (tighten) in its details, and the summary, the field ranges, the operator caps and the confirm dialog wrote 24 hours, Allowed: 1–720 hours. and disabled → enabled in English to a German or French reader.

  • The proposal's details drawer reads like a sentence. It names each category as the retention editor titles it, says minimum or maximum, gives the values with their unit — or no limit for a side the proposal does not bound — and says whether the change tightens or loosens retention: Automation versions, minimum: no limit → 90 days (tightens retention), Automatisierungsversionen, Minimum: keine Grenze → 90 Tage (verschärft die Aufbewahrung), Versions d'automatisation, minimum : aucune limite → 90 jours (resserre la rétention). The impact rows ("will clamp to") use the same words. A category this build does not know (a newer operator catalog) keeps its id and counts in days.
  • One hook, useRetentionText, writes the small words: a value with its unit, singular and plural (1 day, 24 hours, 1 Stunde, 3.650 Tage), the unit's noun for a range (Allowed: 1–720 hours.), and a category's on/off state in a diff (aktiviert, désactivé). The summary rows, the form's ranges and operator caps, the edit drawer's floor and ceiling errors and its confirm diff all read through it, so the three languages cannot drift apart again.
  • Strings: retentionPolicy.valueDays, valueHours, unitDays, unitHours, stateOn, stateOff and boundsProposal.unbounded in EN/DE/FR; boundsProposal.diffRow reworded with ICU select for the side and the direction (French with the non-breaking space before the colon).
  • Manual: GOV-F14 and GOV-F15 say what is read; a reference row for the automated halves.

Verification (local)

  • New tests render the drawer, the summary and the edit drawer (range under a field, an operator cap, the confirm dialog's diff after a change) in English, German and French: 10 tests, all red on the old components, all green now.
  • Live in Chromium on the capture stack, the demo org's applied bounds put back to what they were before the category existed: the drawer in all three languages (screenshots checked; the French colon is a non-breaking space; no console errors); the bounds were applied again afterwards.
  • The gate: platform tsc and oxlint (the gate caught two findings of mine — a Map typed by string in a new test and a missing hook dependency — both fixed), the server and PII projects (88,113 tests; the i18n parity, ICU-argument and de-CH guards included), the UI suite (7,669), lint:manual, lint:links, the format check, knip. Three timing-bound server tests (corpus.test.ts under 5 ms, two in travels.test.ts) failed once while another session pushed the machine's load average to 77; the two files pass alone (35 of 35).

Not changed

  • The banner's own summary line still says "{n} of {total} change(s)"; the toasts and the first-approval banner are unchanged.

The retention policy printed the wire's words in every language. The
operator's bounds proposal listed "automationVersions: min — → 90
(tighten)", and the summary, the field ranges, the operator caps and
the confirm dialog wrote "24 hours", "Allowed: 1–720 hours." and
"disabled → enabled" in English to a German or French reader.

The proposal's details drawer names each category as the retention
editor titles it, says minimum or maximum, gives the values with their
unit or "no limit", and says whether the change tightens or loosens
retention. One shared hook, useRetentionText, writes a value with its
unit (singular and plural), the unit's noun and a category's on/off
state, and the summary, the form, the edit drawer's errors and its
diff all read through it. A category this build does not know keeps its
id in the drawer and counts in days.

Tests render each surface in English, German and French and fail on the
old components. GOV-F14 and GOV-F15 say what is read.
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.

1 participant