Skip to content

feat(applications): add search and date filters - #201

Open
PHADAR6 wants to merge 3 commits into
StreamGive:mainfrom
PHADAR6:feat/issue-129-add-search-and-date-filters-to-get-ngo
Open

PHADAR6 wants to merge 3 commits into
StreamGive:mainfrom
PHADAR6:feat/issue-129-add-search-and-date-filters-to-get-ngo

Conversation

@PHADAR6

@PHADAR6 PHADAR6 commented Sep 30, 2026

Copy link
Copy Markdown

Overview

This PR adds optional search and date-range filters to the admin GET /ngo-applications endpoint. Reviewers working through a backlog can now search by applicant name or email and narrow results by submission date, combined with the existing status filter.

Related Issue

Changes

🔍 Application List Filters

  • [MODIFY] src/routes/ngoApplications.ts

    • Added optional search query param that matches against applicant name / email.
    • Added optional submittedAfter and submittedBefore query params to bound results by submission date.
    • Filters compose with the existing status filter rather than replacing it.
  • [MODIFY] test/routes/ngoApplications.test.ts

    • Added tests covering search, submittedAfter / submittedBefore, and combinations with the existing status filter.

Verification Results

npm run lint
npm run typecheck
npm test
Acceptance Criteria Status
Add optional search (name/email) and submittedAfter/submittedBefore params to the admin list ✅ Implemented in src/routes/ngoApplications.ts
Combine with the existing status filter and add tests ✅ Filters compose with status; covered in test/routes/ngoApplications.test.ts

Closes #129

@Ashborne267

Copy link
Copy Markdown
Contributor

@PHADAR6 please resolve conflict

@Ashborne267 Ashborne267 reopened this Oct 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add search and date filters to GET /ngo-applications

2 participants