interledger-pay
interledger-pay copied to clipboard
Grants page: view grants across all wallet addresses
The grants page shows one wallet address at a time, so users with several addresses have to switch between them to see all their grants. Grants can now be listed for several wallet addresses at once. Add an "All" option to the wallet address selector so users see every grant from one view, as on the Transactions page.
Scope
- An "All" option in the wallet address selector that lists grants across all of the user's wallet addresses.
- "All" is the default when the grants page opens.
- The status filter, date sorting and Next/Previous paging work in "All" just as they do for a single wallet address.
Out of scope
- A wallet address column in the grants table, since the grant details already show it and the earlier all-grants table didn't have one.
- Grants for deleted wallet addresses.
Acceptance criteria
- Opening the grants page shows grants from all of the user's wallet addresses, newest first.
- The user can switch between "All" and a single wallet address, and switching goes back to the first page.
- In "All", the user can filter by status, change the sort order, and page through every grant with Next and Previous.
- A user with more than 50 wallet addresses has no "All" option and sees their first wallet address by default.
- A user with no wallet addresses has no "All" option and is asked to create a wallet address.
- An old or invalid grants page link opens the "All" view instead of showing an error.
- Only grants for the user's own wallet addresses are listed.