fix(link): polished "What's next" block — numbered, colorized, single copy-paste command#65
Conversation
Two adjacent boxes ("Next steps" + "Keep building") collapsed into one
"What's next" block. Steps are numbered, the cd + npm run dev pair is
joined with && so it's a single copy-paste, and key tokens are
colorized via picocolors (cd / npm run dev / agent names cyan, project
name green, && dim, dashboard URL underlined).
Bumps version 0.1.47 → 0.1.48 and adds picocolors as a direct dep
(it was already transitive via @clack/prompts).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
WalkthroughPackage version bumped to 0.1.48 and Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/commands/projects/link.ts (1)
268-268: Consider consistent dashboard URL styling across success branches.Line 268 underlines the URL in the template path, but the non-template path (Line 287) remains plain. Unifying this would make output behavior more consistent.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/commands/projects/link.ts` at line 268, The dashboard URL is styled with pc.underline in one success branch but left plain in the other, producing inconsistent output; find the clack.log.step calls that output `Dashboard: ${dashboardUrl}` (both the template and non-template success branches) and make them consistent by applying the same styling — e.g., change the plain `Dashboard: ${dashboardUrl}` call to `Dashboard: ${pc.underline(dashboardUrl)}` (or remove underline from the other branch) so both branches use the same formatting; ensure you import/retain `pc` usage if needed and run the command to verify consistent output.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/commands/projects/link.ts`:
- Line 268: The dashboard URL is styled with pc.underline in one success branch
but left plain in the other, producing inconsistent output; find the
clack.log.step calls that output `Dashboard: ${dashboardUrl}` (both the template
and non-template success branches) and make them consistent by applying the same
styling — e.g., change the plain `Dashboard: ${dashboardUrl}` call to
`Dashboard: ${pc.underline(dashboardUrl)}` (or remove underline from the other
branch) so both branches use the same formatting; ensure you import/retain `pc`
usage if needed and run the command to verify consistent output.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8b3e329c-fa4a-427d-8d0a-ef05b8c4761f
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (2)
package.jsonsrc/commands/projects/link.ts
Summary
After
link --template, the CLI used to print two adjacent clack notes:Now it prints one block, numbered, with
cd && npm run devjoined into a single copy-paste:Tokens are colorized via picocolors:
cd/npm run dev/Claude Code/Cursorcyan,my-appgreen,&&dim, dashboard URL underlined. (Colors don't show in this captured snippet.)picocolorswas already in the dep tree transitively via@clack/prompts; bumped to a direct dep since we now import it ourselves.Test plan
insforge link --project-id <id> --template todofrom a real terminal — confirm the new combined "What's next" block renders with colors and step 1 is a single working copy-paste.🤖 Generated with Claude Code
Note
Polish the
linkcommand's "What's next" output with numbered steps and colorsUpdates the post-link console output in
src/commands/projects/link.tsusingpicocolors. The dashboard URL is now underlined, next steps are numbered and color-coded, and the separate "Keep building" note is removed. The combined run command is printed as a single copy-pasteable string.Macroscope summarized f0a40db.
Summary by CodeRabbit
Improvements
Chores