You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WEB-1549: Translate charge types and Unassigned on the deposit account Charges and Preview steps - #4381
When creating or editing a fixed or recurring deposit account, parts of the Charges step and the Preview step stayed in English when the UI language is not English (for example Español):
fixed deposit Charges step and Preview step: the charge calculation type and charge time type printed the raw backend values (Flat, Specified due date, Monthly Fee);
recurring deposit Preview step: the charge time type printed the raw value (its Charges step already translates it);
all four templates fell back to a hardcoded 'Unassigned' ('Unassigned*' in the fixed deposit Charges step) when no due date or fee day is set.
They now use the pipes the app already uses for the same values: translateKey: 'catalogs' (as in the recurring deposit Charges step) and ('Unassigned' | translateKey: 'inputs') (as in the fixed deposit account Charges tab). In the fixed deposit Charges step the asterisk stays outside the translation. The keys exist in all 14 translation files (es-MX: Monto fijo / Fecha de Vencimiento / Comisión mensual / No asignado), so no translation files change, and no conditions change. Follows WEB-1544 (#4374) and WEB-1545 (#4375).
Tests: a Spanish template test in each of the existing fixed deposit Charges step and Preview step specs, checking the calculation type, time type and Unassigned cells. With the templates from dev both new tests fail (for example: expected "Monto fijo", received "Flat"); with this change both specs pass (18 tests). The two recurring deposit steps have no spec yet; their change is the same one-line pipe the fixed deposit tests cover. prettier, eslint, htmlhint and the MPL header check are clean on the changed files.
Template change only; the Spanish template tests above show the rendered text.
Checklist
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.
Summary by CodeRabbit
Bug Fixes
Fixed-deposit setup and preview screens display translated charge calculation and collection timing labels. Recurring-deposit setup and preview screens display translated collection timing labels.
Missing due dates and monthly or annual fee dates display the translated “Unassigned” label across deposit setup and preview screens. The asterisk on fixed-deposit due-date fallbacks is preserved.
…t Charges and Preview steps
The fixed deposit Charges and Preview steps printed the raw charge
calculation and time types, the recurring deposit Preview printed the raw
time type, and all four fell back to a hardcoded 'Unassigned'. Use the
catalogs and inputs translateKey pipes the app already uses, with Spanish
template tests for the fixed deposit steps.
CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.
Parsing warnings: 2
Validation error: Unrecognized key: "instructions" at "reviews"; Unrecognized key: "pre_merge_checks"
If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
No actionable comments were generated in the recent review.
Walkthrough
Fixed and recurring deposit charge views now translate charge calculation and collection values through catalog keys. Missing due dates and fee dates use the translated “Unassigned” label. Fixed deposit component tests check the rendered translations.
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: translating charge calculation and collection timing types, plus the Unassigned label, on the deposit account Charges and Preview steps. The objectives confirm the cha…
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 main change: translating charge calculation and collection timing types, plus the Unassigned label, on the deposit account Charges and Preview steps. The objectives confirm the change covers fixed and recurring deposit steps that use the catalogs and inputs translation keys. The ticket prefix WEB-1549 is acceptable and does not make the title vague. The title is specific and matches the changeset.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
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
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.
Description
When creating or editing a fixed or recurring deposit account, parts of the Charges step and the Preview step stayed in English when the UI language is not English (for example Español):
'Unassigned'('Unassigned*'in the fixed deposit Charges step) when no due date or fee day is set.They now use the pipes the app already uses for the same values:
translateKey: 'catalogs'(as in the recurring deposit Charges step) and('Unassigned' | translateKey: 'inputs')(as in the fixed deposit account Charges tab). In the fixed deposit Charges step the asterisk stays outside the translation. The keys exist in all 14 translation files (es-MX: Monto fijo / Fecha de Vencimiento / Comisión mensual / No asignado), so no translation files change, and no conditions change. Follows WEB-1544 (#4374) and WEB-1545 (#4375).Tests: a Spanish template test in each of the existing fixed deposit Charges step and Preview step specs, checking the calculation type, time type and Unassigned cells. With the templates from dev both new tests fail (for example: expected "Monto fijo", received "Flat"); with this change both specs pass (18 tests). The two recurring deposit steps have no spec yet; their change is the same one-line pipe the fixed deposit tests cover. prettier, eslint, htmlhint and the MPL header check are clean on the changed files.
Related issues and discussion
Jira Link: https://mifosforge.jira.com/browse/WEB-1549
Screenshots, if any
Template change only; the Spanish template tests above show the rendered text.
Checklist
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit