Skip to content

feat: add optional custom label field for links, overriding auto-detected platform name - #584

Open
divyanshim27 wants to merge 1 commit into
vishnukothakapu:mainfrom
divyanshim27:feat/custom-link-labels
Open

feat: add optional custom label field for links, overriding auto-detected platform name#584
divyanshim27 wants to merge 1 commit into
vishnukothakapu:mainfrom
divyanshim27:feat/custom-link-labels

Conversation

@divyanshim27

Copy link
Copy Markdown
Contributor

Closes #563

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.prismacustomLabel String? on Link model
  • prisma/migrations/... — generated migration
  • app/api/links/route.ts — POST accepts and persists customLabel
  • app/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.

## 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.
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

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

Next review available in: 17 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1b180d26-9817-4987-81c8-cbaee49d534d

📥 Commits

Reviewing files that changed from the base of the PR and between 6aba720 and c850354.

📒 Files selected for processing (5)
  • app/api/links/[id]/route.ts
  • app/api/links/route.ts
  • app/dashboard/AddLinkBox.tsx
  • app/dashboard/LinkItem.tsx
  • prisma/schema.prisma

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.

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linkid Error Error Aug 2, 2026 2:05pm

@vishnukothakapu

Copy link
Copy Markdown
Owner

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 npm run build locally), identify the first error, fix it, and push an updated commit? Once the preview build passes, I'll continue reviewing the implementation.

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.

[Feature]: Add support for custom link labels so users can name their links freely instead of being restricted to auto-detected platform names

2 participants