Repository navigation
feat: kill inline-login outro leak + shadcn MCP + helpbase add - #14
Conversation
Three DX fixes from a fresh `pnpm dlx create-helpbase` run, surfaced via
/plan-devex-review:
1. Inline login leaked its own "Next: helpbase deploy · rename · whoami"
panel into the middle of the scaffolder, racing create-helpbase's own
"What next" block. Gate login's outro+nextSteps behind HELPBASE_INLINE=1
and set that env in both spawn() call sites in create-helpbase. The
reservation note (the magical moment) still prints either way.
2. emit-mcp-json now emits a `shadcn` block alongside `helpbase` in all
three client configs. Users get natural-language component install
("add a card") from the same paste that wires up help-center citations.
Reinforces the "shadcn for docs" stance — every helpbase project IS a
shadcn project, the agent that edits it can install more components.
3. New `helpbase add <component>` thin-wraps `npx shadcn@latest add`.
Forwards args + unknown flags, runs in cwd, exits with the subprocess
status. Listed under the Author group in --help. First-time users
discover the shadcn-add pattern without leaving the helpbase CLI
surface; power users keep using `npx shadcn` directly.
Tests: 410 passing helpbase + 47 passing create-helpbase, no regressions.
Typecheck clean on both packages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 54 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ 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 |
Summary
Three DX fixes from a fresh
pnpm dlx create-helpbaserun, surfaced via/plan-devex-review:helpbase login, when spawned by create-helpbase during scaffold, was printing its ownNext: helpbase deploy · rename · whoamipanel + closing-bracket outro right in the middle of the scaffolder flow. Then create-helpbase printed its ownWhat nextpanel a few seconds later with overlapping commands — two competing next-steps boxes within seconds. Gate login'soutro+nextStepsbehindHELPBASE_INLINE=1; set that env from both spawn call sites in create-helpbase (runHelpbaseLogin,runHelpbaseDeploy). The reservation note (the magical moment) still prints inline.mcp.json.emit-mcp-jsonnow emits ashadcnblock alongsidehelpbasefor all three client configs. Users get natural-language component install ("add a card component") from the same paste that wires up help-center citations. Compounds the "shadcn for docs" positioning.helpbase addwrapper. New thin wrapper aroundnpx shadcn@latest add. Forwards positional args + unknown flags, runs in cwd, exits with the subprocess status. Discoverable under the Author group inhelpbase --help. First-time users find the shadcn-add pattern without leaving the helpbase CLI surface; power users keep callingnpx shadcndirectly.Test plan
pnpm --filter helpbase typecheck— cleanpnpm --filter create-helpbase typecheck— cleanpnpm --filter helpbase test— 410 passing, no regressionspnpm --filter create-helpbase test— 47 passingpnpm --filter helpbase build && node packages/cli/dist/index.js --help—addlisted in Author groupnode packages/cli/dist/index.js add --help— local help shown with shadcn pointerpnpm dlx create-helpbase@<published-tag>— verify only one "What next" panel post-merge + publish🤖 Generated with Claude Code