Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(feature:savings-account): Migrate savings-account module to CMP #2774

Merged
merged 3 commits into from
Feb 23, 2025

Conversation

HekmatullahAmin
Copy link
Contributor

@HekmatullahAmin HekmatullahAmin commented Feb 16, 2025

Fixes - Jira-#182

Didn't create a Jira ticket, click here to create new.

Please Add Screenshots If there are any UI changes.

Before After

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the static analysis check ./gradlew check or ci-prepush.sh to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@HekmatullahAmin HekmatullahAmin changed the title feat(feature:savings-account): set up independent module with ViewMod… feat(feature:savings-account): Migrate savings-account module to CMP Feb 19, 2025
…el and Screen

- Created `SavingsAccountViewModel` with functions for search, filter, and account loading
- Implemented `SavingsAccountScreen`
- Refactored function names for clarity and consistency:
  - `searchInSavingsList` → `filterAccountsBySearchQuery`
  - `getFilterSavingsAccountList` → `filterAccountsByStatus`
  - `getFilteredSavingsAccount` → `getAccountsMatchingStatus`
- Improved composable readability by extracting helper functions:
  - `getAccountStatusDisplayAttributes`
@HekmatullahAmin
Copy link
Contributor Author

Hi Mr. @therajanmaurya , @niyajali

I hope you’re doing well. I’ve applied the suggestions:

  • Created another state to display empty data.
  • Formatted some lines for better readability.
  • Moved the filter logic inside the loadAccounts function within the viewModel, eliminating the need to call it again inside the Screen.

Could you please review these updates? Kindly approve and merge at your convenience.

@therajanmaurya therajanmaurya merged commit e44a53f into openMF:kmp-impl Feb 23, 2025
7 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