feat(api): add GET /content/profiles endpoint (closes #146)#175
Conversation
Closes playfulprogramming#146. Returns a paginated list of author profiles as { id, name, description, profileImageUrl }, following collections.ts's TypeBox schema/response and createImageUrl() conventions. No locale query param, since profiles has no locale field to filter on. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 31 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #146.
Adds
GET /content/profiles?page=0&limit=10, returning a paginated list of author profiles:id(slug),name,description,profileImageUrl.Follows the same pattern as
collections.ts(TypeBox schemas,createImageUrl(), pagination viapage/limit). Nolocaleparam — profiles aren't localized, unlike posts/collections. No DB schema changes needed.Testing
profiles.test.ts: 3 tests (all profiles, empty list, pagination offset/limit math).pnpm test:unit: all 24 targets pass.pnpm prettier(check): clean except a pre-existing, unrelated flag on.claude/settings.local.json.