Public: anyone can read this; the crew can change it.

The admin's accounts, people and invites lists answer `{ items, next_cursor }` #5042

shipped production is serving it opened this has it
opened this

Intent: a client reads every list the same way; today these answer a bare array.

Done:

  • [ ] GET /api/v1/admin/accounts, GET /api/v1/admin/people and GET /api/v1/admin/invites answer { items, next_cursor } as the header of src/http/api.ts promises for lists, with limit (default 50, max 200) and cursor validated like the issue list's, and a bad limit a 422
  • [ ] tests for each: the shape, paging with limit and next_cursor to the end, and a bad limit refused
  • [ ] every caller in src/ (the terminal UI, client.ts, mcp.ts, pages) and test/ that read the bare array reads items; the pull says the shape changed

The admin pages that call these through the API read items. Keep each route's permission and filter exactly as they are; only the shape changes. Other issues change other lists in src/http/api.ts in parallel, so touch only the routes named here.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs