feat(loan): implement loan account actions screen
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.
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
:no_entry: Files ignored due to path filters (1)
.github/workflows/pr-check.ymlis 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 thedistdirectory, 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-3a0149065a8fYou can disable this status message by setting the
reviews.review_statustofalsein 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.
Comment @coderabbitai help to get the list of available commands.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@Kartikey15dem in this I thought you don't have more action
@Kartikey15dem in this I thought you don't have more action
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.
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.
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.
This is for Active Loan Status:
- Some actions seem to be missing, for example, I do not see Undo Disbursal.
- Is
Interest Payment Waiversame asWaive Interest?
We should keep all the actions names same and in the same order as in the web-app. Please review.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@Kartikey15dem Please fix static checks error.
@sahilshivekar see why ios is failing here
@sahilshivekar see why ios is failing here
@revanthkumarJ iOS build is working now
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
