Spec gallery pagination against the design persistence API #15

Closed
opened 2026-06-25 03:11:38 +00:00 by Mark · 0 comments
Owner

The mock gallery in src/components/gallery/data.ts hardcodes 12 designs. The real persistence API will eventually hold hundreds. Need a pagination contract before #4 lands.

Decide:

  • Cursor-based or offset-based?
  • Page size (default + max)?
  • Sort order (newest first? alphabetical?)?
  • Filter by folderId, hoopSize, threadCount, isFavorite?

Acceptance: easystitch-service exposes a GET /v1/designs?cursor=...&limit=... endpoint (or whatever contract is chosen) and ThreadCraft's gallery fetches a page at a time instead of loading everything.

The mock gallery in src/components/gallery/data.ts hardcodes 12 designs. The real persistence API will eventually hold hundreds. Need a pagination contract before #4 lands. Decide: - Cursor-based or offset-based? - Page size (default + max)? - Sort order (newest first? alphabetical?)? - Filter by folderId, hoopSize, threadCount, isFavorite? Acceptance: easystitch-service exposes a `GET /v1/designs?cursor=...&limit=...` endpoint (or whatever contract is chosen) and ThreadCraft's gallery fetches a page at a time instead of loading everything.
Sign in to join this conversation.
No description provided.