Skip to content

WEB-795 Fix the Loan Information section - #3236

Merged
IOhacker merged 1 commit into
openMF:devfrom
JaySoni1:WEB-795-fix-the-loan-information-section
Feb 27, 2026
Merged

WEB-795 Fix the Loan Information section#3236
IOhacker merged 1 commit into
openMF:devfrom
JaySoni1:WEB-795-fix-the-loan-information-section

Conversation

@JaySoni1

@JaySoni1 JaySoni1 commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Chnages Made :-

-Update Loan Information section .

WEB-795

Before :-

image

After :-

image image

Summary by CodeRabbit

  • New Features

    • Reworked loan overview into a structured table for clearer display of status, product, loan ID, external loan ID (when present), and client details.
    • External loan identifiers are now shown in loan details when available.
  • Localization

    • Added "Loan Account Status" translations across supported languages.
  • Style

    • Added styles to improve spacing and alignment of the new loan information table.

@coderabbitai

coderabbitai Bot commented Feb 26, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@JaySoni1 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 53 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 8901f7b and 5690bff.

📒 Files selected for processing (16)
  • src/app/loans/loans-view/loans-view.component.html
  • src/app/loans/loans-view/loans-view.component.scss
  • src/app/loans/loans-view/loans-view.component.ts
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json

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

Replaces the inline loan header with a table-based loan-information layout in the loans view, adds corresponding CSS, imports ExternalIdentifierComponent for conditional external ID rendering, and adds "Loan Account Status" (and a couple of other) translation keys across multiple locale files.

Changes

Cohort / File(s) Summary
Loans view UI
src/app/loans/loans-view/loans-view.component.html, src/app/loans/loans-view/loans-view.component.scss, src/app/loans/loans-view/loans-view.component.ts
Replaced inline h3 header with a loan-information-table (account-overview) showing status, product name, loan id, external id (conditional), and client info; added .loan-information-table CSS rules; imported ExternalIdentifierComponent into the component imports.
Translation files
src/assets/translations/cs-CS.json, de-DE.json, en-US.json, es-CL.json, es-MX.json, fr-FR.json, it-IT.json, ko-KO.json, lt-LT.json, lv-LV.json, ne-NE.json, pt-PT.json, sw-SW.json
Added "Loan Account Status" key to many locales; es-MX and pt-PT also add "Loan Amount and Balance"; minor ordering/blank-line edits in sw-SW.json.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • IOhacker
  • alberto-art3ch
🚥 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 title clearly relates to the main change: reorganizing the Loan Information section from inline presentation to a structured table layout with updated translations across multiple locales.
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.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/app/loans/loans-view/loans-view.component.html`:
- Around line 46-63: The template uses string attribute bindings (e.g.,
completed="true" and externalId="{{ loanDetailsData.externalId }}") which breaks
type safety; update the mifosx-external-identifier component to use property
bindings: bind externalId and completed as properties (e.g.,
[externalId]="loanDetailsData.externalId" and [completed]="true") and, for
consistency and type safety, convert other interpolated inputs in this snippet
(mifosx-long-text.textValue and mifosx-account-number.accountNo) to property
bindings ([textValue]="loanDetailsData.loanProductName" and
[accountNo]="loanDetailsData.accountNo"). Ensure you modify the
mifosx-external-identifier, mifosx-long-text, and mifosx-account-number usages
accordingly.

In `@src/assets/translations/es-CL.json`:
- Around line 1379-1381: The inputs object in the Spanish Chile locale is
missing the "External Loan ID" translation key used by the updated loans view;
add an "External Loan ID" entry inside the "inputs" object (next to "Loan
Account Status" and "Floating rate") with an appropriate Spanish translation
(e.g., "ID de préstamo externo") so the UI uses the localized string instead of
falling back to the raw key.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 542e6b8 and 3468723.

📒 Files selected for processing (16)
  • src/app/loans/loans-view/loans-view.component.html
  • src/app/loans/loans-view/loans-view.component.scss
  • src/app/loans/loans-view/loans-view.component.ts
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json

Comment thread src/app/loans/loans-view/loans-view.component.html Outdated
Comment thread src/assets/translations/es-CL.json
@JaySoni1
JaySoni1 force-pushed the WEB-795-fix-the-loan-information-section branch from 3468723 to 8901f7b Compare February 26, 2026 23:49

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/assets/translations/cs-CS.json`:
- Line 1379: Update the Czech translation for the key "Loan Account Status" in
src/assets/translations/cs-CS.json to use a more precise account-level term by
replacing "Stav půjčky" with "Stav úvěrového účtu"; locate the JSON entry with
the key "Loan Account Status" and update its value accordingly, preserving JSON
formatting and escaping rules.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3468723 and 8901f7b.

📒 Files selected for processing (16)
  • src/app/loans/loans-view/loans-view.component.html
  • src/app/loans/loans-view/loans-view.component.scss
  • src/app/loans/loans-view/loans-view.component.ts
  • src/assets/translations/cs-CS.json
  • src/assets/translations/de-DE.json
  • src/assets/translations/en-US.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/it-IT.json
  • src/assets/translations/ko-KO.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/pt-PT.json
  • src/assets/translations/sw-SW.json
🚧 Files skipped from review as they are similar to previous changes (10)
  • src/app/loans/loans-view/loans-view.component.scss
  • src/assets/translations/en-US.json
  • src/app/loans/loans-view/loans-view.component.html
  • src/assets/translations/ko-KO.json
  • src/assets/translations/es-MX.json
  • src/assets/translations/ne-NE.json
  • src/assets/translations/fr-FR.json
  • src/assets/translations/es-CL.json
  • src/assets/translations/lt-LT.json
  • src/assets/translations/lv-LV.json

Comment thread src/assets/translations/cs-CS.json Outdated
@JaySoni1
JaySoni1 force-pushed the WEB-795-fix-the-loan-information-section branch from 8901f7b to 5690bff Compare February 27, 2026 00:01

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

LGTM

@IOhacker
IOhacker merged commit f6ef991 into openMF:dev Feb 27, 2026
5 checks passed
@JaySoni1

JaySoni1 commented Mar 2, 2026

Copy link
Copy Markdown
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