Issue Details
Where: frontend/src/components/ReferralList.jsx
Problem:
It sends search to backend (params.search = search)
Then it also does:
const filteredReferrals = referrals.filter(...)
Also pagination buttons use referrals.length < limit which is based on post-filter list, not server total.
Proposed solution:
Remove the client-side filteredReferrals and render server results directly.
Or if keeping client-side filtering, request backend without search and treat pagination as client-only (usually worse).
Recommended: server-side search only.
Issue Details
Where: frontend/src/components/ReferralList.jsx
Problem:
It sends search to backend (params.search = search)
Then it also does:
const filteredReferrals = referrals.filter(...)
Also pagination buttons use referrals.length < limit which is based on post-filter list, not server total.
Proposed solution:
Remove the client-side filteredReferrals and render server results directly.
Or if keeping client-side filtering, request backend without search and treat pagination as client-only (usually worse).
Recommended: server-side search only.