Skip to content

feat(onboarding): nudge users without a connected AI tool from My issues - #498

Merged
imshashank merged 7 commits into
feat/onboarding-ai-connectfrom
feat/onboarding-ai-connect-banner
Sep 23, 2026
Merged

imshashank merged 7 commits into
feat/onboarding-ai-connectfrom
feat/onboarding-ai-connect-banner

Conversation

@imshashank

@imshashank imshashank commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • The banner shows only while the user has no active MCP grant and has not dismissed it.
  • aiConnectHintVisible runs in parallel with the existing prefetch. It reuses the layout's onboarding lookup through a per-request React cache() (lib/onboarding-status.ts), so there is no second user query. It skips the grants query entirely once the hint is dismissed.
  • After a dismissal it calls router.refresh(), so Back navigation does not bring the banner back.
  • scripts/capture-screenshots.ts dismisses the hint after dev sign-in, so the docs screenshots are unchanged.
  • Dismissing is saved on the account: DELETE /api/onboarding/ai-connect-hint sets aiConnectHintDismissed in user.onboarding_state through 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

  • Any active grant, in any workspace, counts as connected.
  • The banner lives on My issues only, not across the whole app shell, to keep it out of every page.

Tests

  • core: dismissAiConnectHint is idempotent, keeps the rest of the onboarding state, and only touches the calling user.
  • route: DELETE records the dismissal for the session user and returns 401 without a session.
  • loader: against the database: no grant, a revoked grant, an active grant, and dismissed (which asserts the grants query is skipped).
  • page: the banner renders with the URL when the hint applies and is absent otherwise.
  • web:
    • shouldShowAiConnectHint across the connected and dismissed cases.
    • The banner: the link target, the URL always shown, the DELETE on dismiss, and restoring with an alert on failure.

Stack: 2 of 2, based on #497.

🤖 Generated with Claude Code

@github-actions github-actions Bot added tests Test coverage and test infrastructure area: web The Next.js app and its UI area: issues Issues, lists and boards labels Sep 23, 2026
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: Noveum/orbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 3891feef-cfcb-4d07-857c-1bcb864b5c38

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

imshashank and others added 2 commits September 24, 2026 04:26
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]>

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@imshashank
imshashank merged commit 4cd45df into feat/onboarding-ai-connect Sep 23, 2026
10 of 11 checks passed
@imshashank
imshashank deleted the feat/onboarding-ai-connect-banner branch September 23, 2026 23:23
imshashank added a commit that referenced this pull request Sep 23, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: issues Issues, lists and boards area: web The Next.js app and its UI tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant