Skip to content

feat: implement Loans Received tab with active/previous toggle functi…#38

Merged
DanielEmmanuel1 merged 4 commits intoTrajectfi:mainfrom
kimcascante:feature/loans-received-tab
Jun 5, 2025
Merged

feat: implement Loans Received tab with active/previous toggle functi…#38
DanielEmmanuel1 merged 4 commits intoTrajectfi:mainfrom
kimcascante:feature/loans-received-tab

Conversation

@kimcascante
Copy link
Contributor

Description

Implementation of the "Loans Received" tab in the Get a Loan page, allowing users to toggle between active and completed/previous loans. This functionality enhances the user experience by providing a clear and organized view of their loan history.

Related Issue

Fixes #37

Type of Change

  • New feature
  • Bug fix
  • Refactor
  • Documentation update
  • Other (please describe)

How Has This Been Tested?

  • Manual tests
  • Unit tests
  • Integration tests
  • Other (please describe)

Manual Testing:

  • Verification of navigation between "Active" and "Previous" tabs
  • Validation of status badges display
  • Testing of "View" button functionality
  • Review of responsiveness and design according to specifications

Checklist:

  • I have read the contributing guidelines.
  • I have updated the documentation (if applicable).
  • My changes do not break existing functionality.
  • I have added tests that cover my changes (if applicable).
  • All new and existing tests pass.
  • I have included screenshots or GIFs to demonstrate the changes (if applicable).

Screenshots

Active Loans View

image

Previous Loans View

image

Additional Notes

Feature Implementation:

  • Tab navigation to toggle between active and previous loans
  • Visual status badges (Ongoing/Closed)
  • Integration with routing system for detailed loan view
  • Responsive design following Figma specifications

Technical Details:

  • Implemented using Next.js and React
  • Styling implemented with Tailwind CSS
  • State management using React Hooks
  • Navigation implemented with Next.js Router

Next Steps:

  • Consider implementing unit tests
  • Evaluate adding animations for transitions
  • Consider implementing additional loan filters

@kimcascante kimcascante marked this pull request as ready for review June 5, 2025 00:36
@DanielEmmanuel1 DanielEmmanuel1 self-requested a review June 5, 2025 10:07
@DanielEmmanuel1
Copy link
Collaborator

@kimcascante I just noticed u didn't work on the sidebar to update to the purple type bg when on that current page, can u work on this and push ASAP so i can merge

@kimcascante
Copy link
Contributor Author

@DanielEmmanuel1 done, please review again :)

Copy link
Collaborator

@DanielEmmanuel1 DanielEmmanuel1 left a comment

Choose a reason for hiding this comment

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

Nice work!

@DanielEmmanuel1 DanielEmmanuel1 merged commit 0d58352 into Trajectfi:main Jun 5, 2025
2 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.

Implement Loans Received Tab with Active and Previous Borrows

2 participants