feat: add optional custom label field for links, overriding auto-detected platform name - #584
Conversation
## Summary Adds an optional customLabel field to the Link model. When set, it overrides the auto-detected platform display name. Fully backward compatible — all existing links without a label continue to show the platform name. ## Changes - prisma/schema.prisma — customLabel String? on Link model - prisma/migrations/... — generated migration - �pp/api/links/route.ts — POST accepts and persists customLabel - �pp/api/links/[id]/route.ts — PATCH allows updating customLabel - Dashboard UI — optional label input in link form - Public profile — renders customLabel ?? platform ## Why Users with personal blogs, Notion pages, or niche platforms (Hashnode, Polywork) had no way to give their link a meaningful name. This unblocks those use cases with zero breaking changes.
|
@divyanshim27 is attempting to deploy a commit to the vishnukothakapu's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
Next review available in: 17 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thanks for the contribution @divyanshim27 ! The preview deployment is currently failing, but the attached build log is truncated before the actual error message, so I can't determine the root cause yet. Could you check the full Vercel build log (or run |
Closes #563
Summary
Adds an optional
customLabelfield to the Link model. When set, it overrides the auto-detected platform display name. Fully backward compatible — all existing links without a label continue to show the platform name.Changes
prisma/schema.prisma—customLabel String?on Link modelprisma/migrations/...— generated migrationapp/api/links/route.ts— POST accepts and persists customLabelapp/api/links/[id]/route.ts— PATCH allows updating customLabelcustomLabel ?? platformWhy
Users with personal blogs, Notion pages, or niche platforms (Hashnode, Polywork) had no way to give their link a meaningful name. This unblocks those use cases with zero breaking changes.