android-client icon indicating copy to clipboard operation
android-client copied to clipboard

feat(loan): implement loan account actions screen

Open kartikeyshukla15 opened this issue 8 months ago • 10 comments

feat(feature/loan): loan account action screen

Fixes - Jira-#MIFOSAC-674

Description

This PR implements the UI for the new Loan Account Action screen.

UI

Key Changes

  • Built the Loan Account Action screen and mapped the the actions according to the loan status and flags.
  • Added the missing attributes in the LoanWithAssociationsEntity.
  • Also created a LoanActionPayments Screen to show paymemt actions but have not added any loading or error states as they are not required ibecause only hardcoded loan actions are being shown there without any network or db call.

Note : The permissions part mentioned in the ticket in not correctly implemented as it was asked to ignore it for now. Also the "More" actions are "Primary Actions" are combined in a single one and "Payments" are shown on another screen as it was discussed to follow this approach only.

Summary by CodeRabbit

  • New Features
    • Added a Loan Actions menu listing many loan operations (payments, charges, foreclosure, reschedule, officer/guarantor management, approvals, write‑offs, refunds, etc.).
    • New Payments Actions screen for goodwill credit, interest waiver, payment refund and merchant refund flows.
    • New icons and localized strings for all actions; header UI now links from loan profile to the actions screen.
  • UX
    • Action rows, navigation, and loading/error states improved for clearer workflow.

kartikeyshukla15 avatar Apr 02 '26 09:04 kartikeyshukla15

[!IMPORTANT]

Review skipped

Review was skipped due to path filters

:no_entry: Files ignored due to path filters (1)
  • .github/workflows/pr-check.yml is excluded by !.github/** and included by **/*

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 389b7ec6-1ac0-46a6-b567-3a0149065a8f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • [ ] 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

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.

coderabbitai[bot] avatar Apr 02 '26 09:04 coderabbitai[bot]

@Kartikey15dem in this I thought you don't have more action image

Arinyadav1 avatar Apr 03 '26 15:04 Arinyadav1

@Kartikey15dem in this I thought you don't have more action image

Sorry , forgot to mention in the description that the more actions are added in the primary actions only and the payments are supposed to be shown on another screen. It is not mentioned in the ticket but Biplab Sir told me later to do it this way.

kartikeyshukla15 avatar Apr 04 '26 05:04 kartikeyshukla15

In the screen recording, I can see the following types: Active, Overpaid, and Unknown. Can you please show the other types that are listed in the ticket?

It seems to be missing these Actions screens: Approved Loan Status, Submitted, Pending Approval Loan Status, Closed (Written Off) and Closed (Obligations Met). The last two needs to verified with the back-end since I only found their reference in the ticket itself.

biplab1 avatar Apr 06 '26 12:04 biplab1

Also, please add the screenshots for each loan status types showing all the actions so that we can verify and keep track of all the actions that needs to be present.

biplab1 avatar Apr 06 '26 12:04 biplab1

This is for Active Loan Status:

  1. Some actions seem to be missing, for example, I do not see Undo Disbursal.
  2. Is Interest Payment Waiver same as Waive Interest?

We should keep all the actions names same and in the same order as in the web-app. Please review.

biplab1 avatar Apr 06 '26 12:04 biplab1

@Kartikey15dem Please fix static checks error.

biplab1 avatar May 11 '26 12:05 biplab1

@sahilshivekar see why ios is failing here

revanthkumarJ avatar Jun 29 '26 17:06 revanthkumarJ

@sahilshivekar see why ios is failing here

@revanthkumarJ iOS build is working now

sahilshivekar avatar Jun 30 '26 09:06 sahilshivekar