Skip to content

Implement transfer management functionality#165

Merged
samwel141 merged 3 commits intoGreenstand:v2from
samwel141:v2
Jan 5, 2026
Merged

Implement transfer management functionality#165
samwel141 merged 3 commits intoGreenstand:v2from
samwel141:v2

Conversation

@samwel141
Copy link
Collaborator

Summary

Implements transfer management: viewing, sorting, accepting, declining, and canceling transfers. Adds a side panel for transfer details and actions, integrates transfer state management via context, and supports pending transfer workflows for senders and receivers.

Tasks Completed

  • Implemented getTransfers API function with sorting support
  • Added getPendingTransfers API function for fetching pending transfers
  • Created acceptTransfer API function for accepting transfer requests
  • Created declineTransfer API function for declining transfer requests
  • Created cancelTransfer API function for canceling pending transfers (sender-side)
  • Built TransferSidePanel component for detailed transfer view and actions
  • Integrated TransfersProvider in routing for state management across components
  • Enhanced TransfersTable with row selection and side panel integration
  • Updated TransfersContext to manage sorting, pending transfers count, and refetch logic
  • Implemented conditional action buttons (Accept/Decline for receivers, Cancel for senders)
  • Added styled components for transfer action buttons (AcceptButton, DeclineButton, CancelButton)

- Updated `getTransfers` API to include sorting options.
- Introduced new API methods for handling pending transfers, accepting, declining, and canceling transfers.
- Added `TransferSidePanel` component for detailed transfer actions.
- Integrated `TransfersProvider` in routing to manage transfer-related state across components.
- Enhanced `TransfersTable` to support row selection and display side panel for pending transfers.
- Updated context to manage sorting, pending transfers count, and refetch logic.

This commit improves the user experience by allowing users to manage their transfers more effectively and provides a clearer interface for pending actions.
- Changed default sorting from 'state' to 'created_at' in TransfersContext.
- Updated TransfersTable to reflect the new default sorting.
- Implemented a new sorting function to prioritize transfer statuses and sort by creation date when using default sorting.

These changes improve the accuracy of transfer display and enhance user experience by ensuring the most relevant transfers are shown first.
@samwel141 samwel141 merged commit e304f71 into Greenstand:v2 Jan 5, 2026
1 check 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.

1 participant