Summary
The PayerDataExchange page (apps/payer-admin-app/src/pages/PayerDataExchange.tsx) currently fetches a single page of results from getPdexDataRequests(ITEMS_PER_PAGE, offset) and applies searchQuery and selectedStatuses filters client-side. This causes a mismatch where totalCount and pagination reflect the unfiltered result set, potentially hiding real matches on other pages and showing a misleading "No requests found" state.
Expected Behaviour
getPdexDataRequests should accept searchQuery and selectedStatuses (or equivalent) as query parameters.
- The API response's
count should reflect the filtered total so that pagination is accurate.
- The
PayerDataExchange component should pass searchQuery and selectedStatuses into getPdexDataRequests and remove local filtering logic.
Steps to Reproduce / Context
- Open the Payer Data Exchange page with more than one page of data.
- Enter a search term or select a status filter.
- Only the currently fetched page is filtered; items on other pages that match are not shown.
Acceptance Criteria
References
Summary
The
PayerDataExchangepage (apps/payer-admin-app/src/pages/PayerDataExchange.tsx) currently fetches a single page of results fromgetPdexDataRequests(ITEMS_PER_PAGE, offset)and appliessearchQueryandselectedStatusesfilters client-side. This causes a mismatch wheretotalCountand pagination reflect the unfiltered result set, potentially hiding real matches on other pages and showing a misleading "No requests found" state.Expected Behaviour
getPdexDataRequestsshould acceptsearchQueryandselectedStatuses(or equivalent) as query parameters.countshould reflect the filtered total so that pagination is accurate.PayerDataExchangecomponent should passsearchQueryandselectedStatusesintogetPdexDataRequestsand remove local filtering logic.Steps to Reproduce / Context
Acceptance Criteria
getPdexDataRequestsAPI (backend) supportssearchandstatusquery parameters.getPdexDataRequestsTypeScript client inapps/payer-admin-app/src/api/pdex.tspasses those parameters to the API.PayerDataExchangepassessearchQueryandselectedStatusestogetPdexDataRequests.totalCountis updated from the filtered API response so pagination is accurate.PayerDataExchangeis removed once API filtering is available.References