Category: Frontend - Enhancement
Priority: Low
Estimated Time: 1 hour
Description:
app/(app)/withdraw/page.tsx calls api.listWithdrawals(token, 20, signal) with a hard-coded limit of 20 and no UI to load more. A merchant with a longer cash-out history cannot audit older withdrawals from the dashboard. The API already accepts a limit parameter so the fix is purely UI-side.
// app/(app)/withdraw/page.tsx
api.listWithdrawals(token, 20, signal) // older records not accessible
Tasks:
- Add a "Load more" button below the withdrawals list that fetches the next page
- Implement cursor/offset pagination in
api.listWithdrawals() in lib/api.ts
- Show the total count if the backend provides it
- Add a test for the paginated load
Category: Frontend - Enhancement
Priority: Low
Estimated Time: 1 hour
Description:
app/(app)/withdraw/page.tsxcallsapi.listWithdrawals(token, 20, signal)with a hard-coded limit of 20 and no UI to load more. A merchant with a longer cash-out history cannot audit older withdrawals from the dashboard. The API already accepts alimitparameter so the fix is purely UI-side.Tasks:
api.listWithdrawals()inlib/api.ts