Skip to content

feat(ui): show personal agent connections in UserProfile - #10726

Draft
thiskevinwang wants to merge 1 commit into
mainfrom
kevin/aie-2029-user-profile-agent-connections
Draft

thiskevinwang wants to merge 1 commit into
mainfrom
kevin/aie-2029-user-profile-agent-connections

Conversation

@thiskevinwang

@thiskevinwang thiskevinwang commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Description

Show connected personal agents in Clerk UserProfile so users can inspect their logo, name, domain, granted scopes, and available last-use time.

Add user.__experimental_getAgentConnections() and a separate connection type. The backend owns the connection definition, so the SDK and UI do not depend on OAuth storage. Reuse the profile list, pagination, and Avatar components. Logos come from CIMD metadata. Missing or failed images show initials. Agent logos use ordinary image requests so image hosts do not need CORS headers. Keep empty lists hidden, show request failures with retry, and support older ClerkJS runtimes without the new method.

Requires the backend API to deploy first. It currently returns unknown user-specific last-use time. Disconnect remains follow-on work under AIE-2029.

Open the clerk-js sandbox at /user-profile?scenario=UserProfileAgentConnections to inspect the shipping component. Empty, paginated, and error scenarios are also included. These scenarios use MSW fixtures and do not prove live backend integration.

Screenshot with MSW test data.

UserProfile personal agents with logo and avatar fallback

Checklist

  • pnpm test runs as expected. Scoped resource and UI suites passed, 59 tests. Browser checks verified loaded logos, initials fallback, and a real image without CORS headers.
  • pnpm build runs as expected. UI, shared and localization builds, ClerkJS declarations, and UI type checks passed. Broad MSW checks retain unrelated errors. Avatar lint retains one unchanged reset-effect error, verified against the previous source.
  • (If applicable) JSDoc comments have been added or updated for any package exports.
  • (If applicable) Documentation has been updated.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring / dependency upgrade / documentation
  • other

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 9, 2026 10:40pm UTC
swingset Ready Ready Preview Nov 9, 2026 10:40pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0767174

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@clerk/clerk-js Minor
@clerk/shared Minor
@clerk/ui Minor
@clerk/localizations Minor
@clerk/chrome-extension Patch
@clerk/electron Patch
@clerk/expo Patch
@clerk/mosaic Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/swingset Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10726

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10726

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10726

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10726

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10726

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10726

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10726

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10726

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10726

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10726

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10726

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10726

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10726

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10726

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10726

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10726

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10726

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10726

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10726

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10726

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10726

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10726

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10726

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10726

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10726

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10726

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10726

commit: 0767174

This branch was successfully deployed

2 active deployments
Preview – swingset — 0767174b Deployed Nov 9, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 0767174b Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant