Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Tabular Loan UI added#3539

Merged
ILIYANGERMANOV merged 15 commits intoIvy-Apps:mainfrom
shamim-emon:fix-issue-3490
Sep 18, 2024
Merged

Tabular Loan UI added#3539
ILIYANGERMANOV merged 15 commits intoIvy-Apps:mainfrom
shamim-emon:fix-issue-3490

Conversation

@shamim-emon
Copy link
Copy Markdown
Contributor

@shamim-emon shamim-emon commented Sep 17, 2024

Pull request (PR) checklist

Please check if your pull request fulfills the following requirements:

  • I've read the Contribution Guidelines and my PR doesn't break the rules.
  • I've read and understand the Developer Guidelines.
  • I confirm that I've run the code locally and everything works as expected.
  • My PR includes only the necessary changes to fix the issue (i.e., no unnecessary files or lines of code are changed).
  • 🎬 I've attached a screen recording of using the new code to the next paragraph (if applicable).

Screen recording of your changes (if applicable):

video.mp4

What's changed?

Describe with a few bullets what's new:

  • I've added optional tabular loan screen, where user can see pending & completed loans in separate tabs.

Risk factors

What may go wrong if we merge your PR?

  • N/A
    In what cases won't your code work?
  • N/A

Does this PR close any GitHub issues? (do not delete)

Troubleshooting GitHub Actions (CI) failures ❌

Pull request checks failing? Read our CI Troubleshooting guide.

@ILIYANGERMANOV
Copy link
Copy Markdown
Member

@shamim-emon replace the red color with purple. Red means error. I'll review the code later today or tmrw

Comment thread screen/loans/src/main/java/com/ivy/loans/loan/LoanScreenState.kt
Comment thread screen/loans/src/main/java/com/ivy/loans/loan/LoansScreen.kt Outdated
Comment thread screen/loans/src/main/java/com/ivy/loans/loan/LoansScreen.kt
Copy link
Copy Markdown
Member

@ILIYANGERMANOV ILIYANGERMANOV left a comment

Choose a reason for hiding this comment

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

Didn't review much in detail but overall LGTM! Left some comments

@ILIYANGERMANOV ILIYANGERMANOV added the requested changes Changes are needed. Please, apply them label Sep 17, 2024
Copy link
Copy Markdown
Contributor

@suyash01 suyash01 left a comment

Choose a reason for hiding this comment

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

LGTM except what Iliyan mentioned.

@ILIYANGERMANOV
Copy link
Copy Markdown
Member

LGTM except what Iliyan mentioned.

@suyash01 thank you for reviewing! I'm planning to delegate reviewers to contributors so our project is even more community-driven

}

private fun loadCompletedLoans() {
completedLoans = allLoans.filter { loan -> loan.percentPaid == 1.0 }.toImmutableList()
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.

@shamim-emon could you replace == with >= to patch #3546?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nvllz sure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

requested changes Changes are needed. Please, apply them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Separate Tabs for Pending and Completed Loans in the Loan Section

4 participants