Repository navigation
feat(onboarding): nudge users without a connected AI tool from My issues - #498
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: Noveum/orbit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Share the request's onboarding lookup between the layout and the page, skip the grants query once the banner is dismissed, refresh the route after dismissing so Back does not bring it back, keep the banner out of the docs screenshots, and cover the route, the page gating, the loader and the per-user dismissal with tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
4cd45df
into
feat/onboarding-ai-connect
…prompts (#497) Adds a Bring your work in with AI onboarding step with the MCP URL, live connection status and starter prompts, the same prompts on Settings > MCP server, and a dismissible My issues banner for users without a connected AI tool (#498). Co-Authored-By: Claude Opus 5.5 <[email protected]>
What and why
Users who finished onboarding before #497 never see the new AI connect step. This adds a banner at the top of My issues, the default landing page: "Bring your work into Orbit with AI". It has a "Connect an AI tool" button linking to Settings > MCP server, where the starter prompts live, and the MCP server URL with a copy button.
aiConnectHintVisibleruns in parallel with the existing prefetch. It reuses the layout's onboarding lookup through a per-request Reactcache()(lib/onboarding-status.ts), so there is no second user query. It skips the grants query entirely once the hint is dismissed.router.refresh(), so Back navigation does not bring the banner back.scripts/capture-screenshots.tsdismisses the hint after dev sign-in, so the docs screenshots are unchanged.DELETE /api/onboarding/ai-connect-hintsetsaiConnectHintDismissedinuser.onboarding_statethrough a jsonb merge, so it follows the user across devices. The banner hides optimistically and comes back with the error if the save fails.Assumptions
Tests
dismissAiConnectHintis idempotent, keeps the rest of the onboarding state, and only touches the calling user.DELETErecords the dismissal for the session user and returns 401 without a session.shouldShowAiConnectHintacross the connected and dismissed cases.Stack: 2 of 2, based on #497.
🤖 Generated with Claude Code