• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive-cloud-ui / 22616508851
75%

Build:
DEFAULT BRANCH: main
Ran 03 Mar 2026 09:24AM UTC
Jobs 1
Files 60
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Mar 2026 09:23AM UTC coverage: 76.909% (-2.2%) from 79.09%
22616508851

push

github

web-flow
feat(catalog): add cursor-based pagination (#372)

* feat(catalog): add pagination params to server actions

`getServers` and `getServersByRegistryName` now accept optional
`cursor`, `limit`, and `search` params and return `ServerListResult`
`{ servers, nextCursor? }` instead of a bare array.

Update all callers (chat route, assistant layout, mcp-actions) to
destructure `{ servers }` from the new return type.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(catalog): add cursor-based pagination to catalog page

- Extract shared constants (CATALOG_ALL_REGISTRIES, CATALOG_VIEW_MODES,
  CATALOG_PAGE_SIZE, CATALOG_PREV_CURSOR_HISTORY_KEY) to constants.ts
- Extend page.tsx searchParams to read cursor, limit, search and pass
  them to server actions; forward nextCursor down to ServersWrapper
- Add useSessionStack hook (workaround until API exposes prevCursor):
  tracks previous cursors in sessionStorage for backwards navigation
- Extend useCatalogFilters with cursor/limit state, handleNextPage,
  handlePrevPage, handleLimitChange; search is now debounced server-side
- Add CatalogPagination component (Previous/Next + items-per-page select)
- Wire CatalogPagination into ServersWrapper
- Remove client-side useMemo search filtering from Servers (now server-side)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(catalog): update tests for server-side search and add pagination tests

- Add CatalogPagination tests (Previous/Next disabled states, click
  handlers, items-per-page selector)
- Update ServersWrapper tests: remove client-side filter assertions,
  add pagination control visibility and state tests
- Update Servers tests: remove search-filter tests (now server-side),
  keep empty-state tests by passing an empty servers array
- Update actions tests: destructure ServerListResult, add nextCursor test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(catalog): address Copilot review feedback

- page.tsx: guard... (continued)

296 of 400 branches covered (74.0%)

Branch coverage included in aggregate %.

30 of 58 new or added lines in 6 files covered. (51.72%)

2 existing lines in 2 files now uncovered.

540 of 687 relevant lines covered (78.6%)

10.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.33
src/app/catalog/components/catalog-pagination.tsx
4
35.85
2.52% src/app/catalog/actions.ts
9
57.14
-24.11% src/app/catalog/hooks/use-catalog-filters.ts
14
38.24
src/app/catalog/hooks/use-session-stack.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.67
-10.48% src/app/catalog/components/servers.tsx
1
57.14
-24.11% src/app/catalog/hooks/use-catalog-filters.ts
Jobs
ID Job ID Ran Files Coverage
1 22616508851.1 03 Mar 2026 09:24AM UTC 60
76.91
GitHub Action Run
Source Files on build 22616508851
  • Tree
  • List 60
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22616508851
  • b75f5a63 on github
  • Prev Build on main (#22579403747)
  • Next Build on main (#22617812189)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc