Skip to content

Clerk Billing: responsive upgrade drawer, pre-flight usage gate, homepage auth redirects - #4

Closed
hyepr with Copilot wants to merge 6 commits into
claude/handle-lookup-implementation-g5ifmfrom
copilot/create-system-for-clerk-billing
Closed

Clerk Billing: responsive upgrade drawer, pre-flight usage gate, homepage auth redirects#4
hyepr with Copilot wants to merge 6 commits into
claude/handle-lookup-implementation-g5ifmfrom
copilot/create-system-for-clerk-billing

Conversation

Copilot AI commented Mar 25, 2026

Copy link
Copy Markdown
  • Explore codebase fully — API, rate-limit, UI components
  • src/app/api/lookup/route.ts — anonymous users get 401 (no lookups at all)
  • src/app/api/lookup/status/route.ts — anonymous always returns allowed: false, remaining: 0, limit: 0
  • src/app/layout.tsx — change Clerk fallback redirects to / (homepage)
  • src/components/upgrade-dialog.tsx — generalize with variant: "sign_in" | "limit_reached" | "upgrade" (no authenticated prop); "upgrade" shows pricing table directly
  • src/components/header.tsx — "Upgrade" button opens dialog (variant="upgrade") instead of navigating to /pricing
  • src/components/lookup-form.tsx — properly distinguish anonymous vs free vs pro status messages
  • src/components/lookup-results.tsx — handle 401 (anon blocked), add blockedReason state, update LimitBadge for anonymous users
  • src/app/app/settings/billing/page.tsx — remove gradient from upgrade card
  • Lint + build ✓

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

@vercel

vercel Bot commented Mar 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
handlelookup Ready Ready Preview, Comment Mar 25, 2026 11:33am

…ly-Limit header for pro

Co-authored-by: hyepr <110058070+hyepr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hyeprlabs/handlelookup/sessions/59891929-7575-4bab-9948-7c8be78dd6d7
Copilot AI changed the title [WIP] Implement full lookup system with Clerk billing integration Replace Polar with Clerk Billing: 5 free lookups/day + unlimited Pro plan Mar 25, 2026
Copilot AI requested a review from hyepr March 25, 2026 10:45
Copilot AI changed the title Replace Polar with Clerk Billing: 5 free lookups/day + unlimited Pro plan Clerk Billing: responsive upgrade drawer, pre-flight usage gate, homepage auth redirects Mar 25, 2026
Co-authored-by: hyepr <110058070+hyepr@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hyeprlabs/handlelookup/sessions/a4d493c7-549a-4496-bf26-5023e23fdc15
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.

2 participants