Skip to content

Auth success page: offer the Prisma skills install command with one-click copy - #154

Merged
sneub merged 2 commits into
mainfrom
auth-success-skills-install
Aug 12, 2026
Merged

Auth success page: offer the Prisma skills install command with one-click copy#154
sneub merged 2 commits into
mainfrom
auth-success-skills-install

Conversation

@sneub

@sneub sneub commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

After auth login completes, the browser success page now suggests installing the Prisma skills for AI coding agents (inspired by Stripe's equivalent screen): a short lead-in line and a code block with npx skills add prisma/skills, plus a copy-to-clipboard button that flips to a checkmark on success and falls back to selecting the text if clipboard access is denied.

CleanShot 2026-08-12 at 15 04 41@2x

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 14 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b7188034-10b7-4da0-9182-6607768680d2

📥 Commits

Reviewing files that changed from the base of the PR and between f8972dc and 7739e4c.

📒 Files selected for processing (2)
  • packages/cli/src/auth/login.ts
  • packages/cli/tests/auth-login.test.ts

Summary by CodeRabbit

  • New Features
    • Added a “Prisma skills” section to the login success page.
    • Included a copy button for the skills installation command.
    • Added visual feedback after copying and fallback text selection when clipboard access is unavailable.
    • Improved light and dark theme styling for surfaces, borders, and success states.

Walkthrough

The login success page now includes light and dark theme variables for the new skills section. It displays the npx skills add prisma/skills command with a copy button. The client-side code copies the command through the clipboard API, selects the command text when copying fails, and shows temporary copied feedback that resets after two seconds.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a Prisma skills install command with one-click copy to the auth success page.
Description check ✅ Passed The description directly explains the success-page content, install command, copy behavior, and fallback behavior described in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch auth-success-skills-install
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch auth-success-skills-install

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.

@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@prisma/cli@154
npx https://pkg.pr.new/@prisma/cli-engine@154

commit: 7739e4c

@sneub
sneub requested review from luanvdw and wmadden August 12, 2026 06:03
@sneub
sneub marked this pull request as ready for review August 12, 2026 06:03

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/cli/src/auth/login.ts`:
- Around line 568-585: Add browser-level coverage for the command copy click
handler around button.addEventListener: verify successful clipboard writes,
clipboard failure selecting the command text, and removal of the copied state
after two seconds. Keep the existing dark-mode coverage and exercise the actual
UI interaction rather than testing implementation details in isolation.
- Around line 556-559: Update the copy-command button behavior and its
associated `.copied` state to expose an accessible announcement when copying
succeeds or falls back to selection. Keep the visual icon changes, but add a
live status or dynamically update the button’s accessible label so assistive
technology reports the current outcome instead of always announcing “Copy
command to clipboard.”
- Line 555: Update the fallback selection in the login flow around the command
rendering so it targets a dedicated command-only element rather than `.command
code`, excluding the `$ ` prompt from copied text. Ensure both copy paths select
the same command text.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 776c392b-9bd5-4d48-98ad-4d0586ebe787

📥 Commits

Reviewing files that changed from the base of the PR and between 180a79f and f8972dc.

📒 Files selected for processing (1)
  • packages/cli/src/auth/login.ts

Comment thread packages/cli/src/auth/login.ts Outdated
Comment thread packages/cli/src/auth/login.ts
Comment thread packages/cli/src/auth/login.ts
@sneub
sneub merged commit 5724456 into main Aug 12, 2026
12 checks passed
@sneub
sneub deleted the auth-success-skills-install branch August 12, 2026 06:55
wmadden-electric added a commit that referenced this pull request Aug 12, 2026
No conflicts. Main's only new commit (#154) adds the skills install
suggestion to the auth success page, touching packages/cli/src/auth/login.ts
and packages/cli/tests/auth-login.test.ts; this branch touches neither.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
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.

1 participant