Skip to content

ReferralList does redundant client-side filtering after server-side search + breaks pagination semantics #235

Description

@Aditya8369

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.

Metadata

Metadata

Assignees

Labels

NSOC'26Issues for the NSOC 2026 program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions