Skip to content

feat(services): paginate top agents#229

Open
ZaaK0913-coder wants to merge 1 commit into
Agentpay-Org:mainfrom
ZaaK0913-coder:codex/service-top-agents-pagination-64-20260704
Open

feat(services): paginate top agents#229
ZaaK0913-coder wants to merge 1 commit into
Agentpay-Org:mainfrom
ZaaK0913-coder:codex/service-top-agents-pagination-64-20260704

Conversation

@ZaaK0913-coder

Copy link
Copy Markdown

Summary

  • Add server-driven paging to the service top-agents page using page and limit query params.
  • Show the shared Spinner while loading, EmptyState for no agents, and Pagination for multi-page results.
  • Link ranked agent rows to encoded /agents/:agent routes while preserving the existing error path.
  • Document the top-agents paging behavior in README.

Closes #64

Validation

  • npx.cmd jest --runTestsByPath "src/app/services/[serviceId]/agents/page.test.tsx" --runInBand
  • npx.cmd jest --runTestsByPath "src/app/services/[serviceId]/agents/page.test.tsx" --coverage --collectCoverageFrom="src/app/services/[serviceId]/agents/page.tsx" --coverageReporters=text --coverageThreshold "{}" --runInBand
  • npx.cmd eslint "src/app/services/[serviceId]/agents/page.tsx" "src/app/services/[serviceId]/agents/page.test.tsx"
  • npx.cmd prettier --check "src/app/services/[serviceId]/agents/page.tsx" "src/app/services/[serviceId]/agents/page.test.tsx"

Typecheck note

  • npm.cmd run typecheck was attempted and is currently blocked by pre-existing main-branch errors outside this change:
    • src/app/agents/[agent]/page.tsx: missing Breadcrumb and formatRequests
    • src/app/docs/page.tsx: missing safeHref

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.

Paginate the service top-agents page and add loading and empty states

1 participant