Skip to content

chore: Add Auto availability prompt for tenant admins - #1565

Open
harshil-2096 wants to merge 3 commits into
mainfrom
chore/hv/show-auto-available-card
Open

harshil-2096 wants to merge 3 commits into
mainfrom
chore/hv/show-auto-available-card

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes AGE-2965

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Low Risk
UI-only opt-in nudge with localStorage and analytics; no auth or server behavior changes beyond existing capability checks.

Overview
Adds a one-time, non-blocking corner nudge for tenant admins when Auto model routing is disabled, prompting them to enable it in Settings.

A new AutoAvailablePrompt is mounted in the main UI shell. It shows only after capabilities have loaded, Auto’s status is disabled, the user hasn’t dismissed it before (persisted in localStorage), and settings.webSearch.enabled is true (used as the admin-capability signal). Set up Auto opens Settings on the models section; dismiss actions record shown / configure / dismiss analytics and register AutoAvailableCard as a default theming slot. Unit tests cover visibility rules, settings navigation, and dismissal persistence.

Reviewed by Cursor Bugbot for commit b10a041. Bugbot is set up for automated code reviews on this repo. Configure here.

@veria-ai

veria-ai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@cursor cursor 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.

Stale Bugbot comment from a previous run.

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b10a041. Configure here.

This branch has not been deployed

No deployments
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