Skip to content

WEB-593 Translate account types in the Transfer Details Page#3019

Merged
IOhacker merged 1 commit intoopenMF:devfrom
JaySoni1:WEB-593-translate-account-types-in-the-transfer-details-page
Jan 20, 2026
Merged

WEB-593 Translate account types in the Transfer Details Page#3019
IOhacker merged 1 commit intoopenMF:devfrom
JaySoni1:WEB-593-translate-account-types-in-the-transfer-details-page

Conversation

@JaySoni1
Copy link
Contributor

@JaySoni1 JaySoni1 commented Jan 20, 2026

Changes Made :-

-Add i18n translation support for account types ("Savings Account" and "Loan Account") on the Transfer Details Page.

WEB-593

Before :-
image

After :-
image

image

Summary by CodeRabbit

  • Bug Fixes
    • Account transfer details now display localized account type labels instead of raw codes in the "Transferred From" and "Transferred To" sections, improving clarity and readability for end users. Labels are shown only when values exist, avoiding empty placeholders.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 20, 2026

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 (1)
Validation error: Unrecognized key(s) in object: '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

Walkthrough

The account-transfer view template now renders account type values via i18n translation keys (composed as labels.catalogs. + value) and conditionally shows the translated spans only when the underlying value exists.

Changes

Cohort / File(s) Summary
Account Transfer View Template
src/app/account-transfers/view-account-transfer/view-account-transfer.component.html
Replace direct display of fromAccountType.value and toAccountType.value with i18n-translated keys using the composition 'labels.catalogs.' + value. Conditional rendering (*ngIf) added to show spans only when value exists. (+6/-2)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • IOhacker
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title clearly summarizes the main change: adding i18n translation support for account types on the Transfer Details Page, which directly aligns with the code changes showing translation key mapping.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In
`@src/app/account-transfers/view-account-transfer/view-account-transfer.component.html`:
- Around line 70-72: The template currently builds a translation key with
'labels.catalogs.' + (viewAccountTransferData.fromAccountType?.value || '')
which yields an invalid key when value is missing; update the span to only call
the translate pipe when viewAccountTransferData.fromAccountType?.value exists
(e.g., use an *ngIf or a ternary expression) so that the translate pipe is not
given the bare 'labels.catalogs.' key and the UI shows an empty string when the
value is null; locate the span using
viewAccountTransferData.fromAccountType?.value in
view-account-transfer.component.html and replace the expression with a
conditional that only forms and translates 'labels.catalogs.<value>' when
<value> is truthy.
- Around line 103-105: The span currently builds a translation key with
(viewAccountTransferData.toAccountType?.value || '') which can produce an empty
key; change to the same conditional rendering used elsewhere: only render the
span when viewAccountTransferData.toAccountType?.value is truthy (e.g. using
*ngIf="viewAccountTransferData.toAccountType?.value") and inside interpolate the
key without the || fallback, so the translate pipe is only invoked with a valid
key; locate the span referencing viewAccountTransferData.toAccountType?.value in
view-account-transfer.component.html and apply this pattern.

@JaySoni1 JaySoni1 force-pushed the WEB-593-translate-account-types-in-the-transfer-details-page branch from 7576dbf to 33a27b1 Compare January 20, 2026 09:59
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In
`@src/app/account-transfers/view-account-transfer/view-account-transfer.component.html`:
- Around line 103-105: The component uses viewAccountTransferData typed as any;
create a proper interface (e.g., AccountTransferViewData) that includes at least
toAccountType?: { value: string } and any other fields used in the template,
then update the ViewAccountTransferComponent property signature from
viewAccountTransferData: any to viewAccountTransferData: AccountTransferViewData
(or make it nullable/optional as appropriate) and adjust any callers/assignments
to conform to the new type so the template binding ('labels.catalogs.' +
viewAccountTransferData.toAccountType.value | translate) is type-checked.

Copy link
Contributor

@IOhacker IOhacker left a comment

Choose a reason for hiding this comment

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

Lgtm

@IOhacker IOhacker merged commit 63a6101 into openMF:dev Jan 20, 2026
3 of 5 checks passed
@JaySoni1
Copy link
Contributor Author

@IOhacker Thank You for the review

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.

2 participants