Skip to content

WEB-1549: Translate charge types and Unassigned on the deposit account Charges and Preview steps - #4381

Merged
IOhacker merged 3 commits into
openMF:devfrom
Gautam-Bharadwaj:WEB-1549-deposit-stepper-charge-labels
Dec 1, 2026
Merged

IOhacker merged 3 commits into
openMF:devfrom
Gautam-Bharadwaj:WEB-1549-deposit-stepper-charge-labels

Conversation

@Gautam-Bharadwaj

@Gautam-Bharadwaj Gautam-Bharadwaj commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

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):

  • 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.

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

  • 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.
@Gautam-Bharadwaj
Gautam-Bharadwaj requested a review from a team December 1, 2026 04:31
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Note

.coderabbit.yaml has unrecognized properties

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"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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.

Changes

Deposit charge labels

Layer / File(s) Summary
Charge entry labels
src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-charges-step/*, src/app/deposits/recurring-deposits/recurring-deposits-account-stepper/recurring-deposits-account-charges-step/*
Fixed deposit charge entry translates calculation types, collection timing, and missing-date labels. Its test checks the rendered translations. Recurring deposit charge entry translates missing-date labels.
Charge preview labels
src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-preview-step/*, src/app/deposits/recurring-deposits/recurring-deposits-account-stepper/recurring-deposits-account-preview-step/*
Fixed deposit preview translates calculation types, collection timing, and missing-date labels. Its test checks the rendered translations. Recurring deposit preview translates collection timing and missing-date labels.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • openMF/web-app#4375: Translates charge labels in the recurring deposit Charges tab using the same translation keys and pattern.

Suggested reviewers: iohacker, adamsaghy, maalideekshith

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: openMF/web-app
  • Branch: dev
  • File: .coderabbit.yaml
  • Commit: 76315a1
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d1fc4e67-9fad-462a-91ae-340c887c1886
Commits

Reviewing files that changed from the base of the PR and between 5004c8b and bf8e451.

Files selected for processing: 2

  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-preview-step/fixed-deposit-account-preview-step.component.html
  • src/app/deposits/recurring-deposits/recurring-deposits-account-stepper/recurring-deposits-account-preview-step/recurring-deposits-account-preview-step.component.html
Files skipped from review as they are similar to previous changes: 2

  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-preview-step/fixed-deposit-account-preview-step.component.html
  • src/app/deposits/recurring-deposits/recurring-deposits-account-stepper/recurring-deposits-account-preview-step/recurring-deposits-account-preview-step.component.html

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@IOhacker IOhacker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always include a screen or video to show how it works

@IOhacker
IOhacker merged commit 3500f27 into openMF:dev Dec 1, 2026
10 of 13 checks passed
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.

3 participants