Skip to content

feat(api): add GET /content/profiles endpoint (closes #146)#175

Merged
fennifith merged 1 commit into
playfulprogramming:mainfrom
bbornino:feat/profiles-list-endpoint
Jun 30, 2026
Merged

feat(api): add GET /content/profiles endpoint (closes #146)#175
fennifith merged 1 commit into
playfulprogramming:mainfrom
bbornino:feat/profiles-list-endpoint

Conversation

@bbornino

Copy link
Copy Markdown
Contributor

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 via page/limit). No locale param — profiles aren't localized, unlike posts/collections. No DB schema changes needed.

Testing

  • New 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.

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>
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@bbornino, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3051b7f0-4c4d-4abd-9f40-33900053125f

📥 Commits

Reviewing files that changed from the base of the PR and between 5b1c106 and c9a7d39.

📒 Files selected for processing (4)
  • apps/api/src/createApp.ts
  • apps/api/src/routes/content/profiles.test.ts
  • apps/api/src/routes/content/profiles.ts
  • apps/api/test-utils/setup.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fennifith fennifith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

We'll need to add a bit more to this endpoint for sorting/filtering to eventually power the Join Us page and the author filters on the Search page - but a lot of that is dependent on other changes (e.g. adding a profile_roles table) that haven't been defined yet.

@fennifith fennifith added this pull request to the merge queue Jun 30, 2026
Merged via the queue into playfulprogramming:main with commit 1f14edd Jun 30, 2026
5 checks passed
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.

Endpoint for a list of profiles

2 participants