As an admin with create permissions, I want to view, add, edit, and delete payment recipients so I can manage the list of approved recipients for outgoing payments.
As an admin with approve permissions, I want to view the list of payment recipients so I can understand who is eligible to receive payments.
Regular users cannot see payment recipients
Acceptance Criteria
The "Pending Request" page is accessible under Operations > Payments > Payments in the Treasury dashboard.
The sidebar displays the total number of recipients next to the "Payment Recipients" title.
The "Payment Recipients" right content section displays a list of all payment recipients, including the following columns:
ID: The ID of the recipient (default sort, ascending order from 01).
First Name: The first name of the recipient.
Last Name: The last name of the recipient.
Email (hidden but captured, can be viewed in edit)
Org: The organization the recipient belongs to (if applicable).
Wallet: The wallet address of the recipient.
KYC/B Verified: The KYC/KYB verification status of the recipient (Verified or not verified)
Test Transaction: The status of the test transaction sent to the recipient's wallet (Confirmed or Not Confirmed).
Transactions: The number of transactions made to this recipient.
Total Paid: The total amount paid to this recipient.
Actions: Buttons for editing (pencil icon) and deleting (trashcan icon) the recipient (visible only to admins with create permissions).
There is a "New Recipient" button that admins with create permission can click to create a new recipient
There is pagination at the bottom to handle a large number of requests (e.g. greater than 20).
Sorting options are available to organize the requests by clicking on the column header.
Filter options are available (e.g. viewing people from a certain organization)
Permissions
Regular users cannot see the Payment Recipients tab
Admins with approve permissions can only view Payment Recipients
Admins with create permissions can create, edit, and delete recipients
Note: This ticket has a dependency on https://github.com/NEAR-DevHub/neardevhub-treasury-dashboard/issues/18.
User Stories
Acceptance Criteria
Attachments