Skip to content

b360fbab - Translate the limit-request decision form - #1257

Merged
TaprootFreak merged 4 commits into
developfrom
fix/limit-request-decision-i18n
Aug 3, 2026
Merged

b360fbab - Translate the limit-request decision form#1257
TaprootFreak merged 4 commits into
developfrom
fix/limit-request-decision-i18n

Conversation

@TaprootFreak

Copy link
Copy Markdown
Collaborator

What changed

The remaining delta carried over from #1255 (which #1252 superseded): the limit-request decision form was the only compliance component with fully hardcoded UI texts. All visible texts now go through translate('screens/compliance', …) like the surrounding components — headings, field labels, button states, the per-decision amount hints, the failed-step/already-applied error details and both local error fallbacks. Deliberately kept raw: the three decision enum labels (API values, like the call-queue outcome options), clerk names, file names and API-provided error messages.

No logic changes. The form test gains a settings-context stub with real {{param}} interpolation so the interpolated assertions stay meaningful.

Tests

limit-request-decision.test.tsx runs unchanged apart from the new stub; full local gates (tests, lint, prettier on the touched files, tsc -p tsconfig.build.json --noEmit) before ready.

All visible form texts go through translate('screens/compliance', ...)
like the surrounding compliance components; the decision enum labels,
clerk names and file names deliberately stay raw. The form test stubs
the settings context with real placeholder interpolation.
@TaprootFreak

Copy link
Copy Markdown
Collaborator Author

Review process: 2 full passes (conformity + logic) plus a final combined confirmation pass to zero findings. Pass 1 surfaced two points — the error-detail parentheses sat outside the translation keys, and the error-detail assertions were substring matches — both fixed (keys carry the full wording, assertions compare byte-exact) and re-verified on the final head. Local gates green: 39/39 tests, eslint --max-warnings 0, prettier on the touched files, tsc against the build config; the render output was reconstructed character-for-character against the previous develop wording.

@TaprootFreak
TaprootFreak marked this pull request as ready for review August 3, 2026 22:16
@TaprootFreak
TaprootFreak merged commit cc8a3da into develop Aug 3, 2026
6 checks passed
@TaprootFreak
TaprootFreak deleted the fix/limit-request-decision-i18n branch August 3, 2026 23:40
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