Repository navigation
fix(platform): say retention values and bound changes in words - #4850
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 wrote24 hours,Allowed: 1–720 hours.anddisabled → enabledin English to a German or French reader.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.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.retentionPolicy.valueDays,valueHours,unitDays,unitHours,stateOn,stateOffandboundsProposal.unboundedin EN/DE/FR;boundsProposal.diffRowreworded with ICUselectfor the side and the direction (French with the non-breaking space before the colon).GOV-F14andGOV-F15say what is read; a reference row for the automated halves.Verification (local)
tscand oxlint (the gate caught two findings of mine — aMaptyped bystringin 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.tsunder 5 ms, two intravels.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