Skip to content

feat(den): show complete connector inventory and personal readiness - #4541

Open
benjaminshafii wants to merge 7 commits into
devfrom
feat/connector-catalog-foundation
Open

benjaminshafii wants to merge 7 commits into
devfrom
feat/connector-catalog-foundation

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

The connector catalog hid its full inventory, and configured Google services opened the shared Google Workspace identity. A per-member connection could also show “Connected” when only another member had authorized it.

This adds the actual integration total, counts filtered results across the full catalog, and labels setup effort before users act. Gmail, Drive, and Calendar retain their own detail URLs. Catalog and detail statuses now reflect the current person's readiness, with setup and recovery requirements taking precedence.

Builds on #4305 and current dev (including the Tailwind 4 migration). While #4305 remains open, this diff includes its implementation; the incremental work is in commits 1a679bd02 and 99ceaf87a. The original branch is unchanged. Coordinate landing with #4305; rebasing after it lands requires fresh evidence on the resulting head.

Validation:

  • 26 focused Den tests passed; Den and desktop typechecks passed; 12 connector chat parsing/round-trip tests passed.
  • The new Den world provisions a server, mock OAuth provider, and separate admin/member browsers. It checks full inventory, filtering and empty results, service identity after refresh, no connection/auth side effects while browsing, and personal readiness after a member connects.
  • Passed: both cold-boot Daytona journeys on 99ceaf87a, 2 passed, 0 failed, 0 skipped. Den management completed in 298.54s; desktop Slack discovery and the actual OS-to-Den setup handoff completed in 360.11s. Published evidence for both journeys includes assertions, steps and screenshots.
  • Required CI, product builds, CodeQL and automated review checks are green.
  • Broad checks have matching failures on clean dev at 6c5dfca66: the legacy Plugin Directory source assertion, eval boundary/channel ratchets, 17 layer violations, and 311 broad eval type errors. The testkit primitive typecheck and focused new-spec typecheck pass.

Reproduce both journeys:

OPENWORK_EVAL_REF=99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a pnpm evals:e2e den-connector-catalog
OPENWORK_EVAL_REF=99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a pnpm evals:e2e connector-catalog

reachjalil and others added 7 commits September 4, 2026 11:51
… chat handoff

The Connectors page now opens on the connectors people actually reach for
instead of a wall of MCP tiles above the org's connection list.

Den web
- Popular section (Gmail, GitHub, Google Drive, Google Calendar, Notion, Slack)
  as two-column rows with icon, name, description, and a plus. "See Outlook
  Email, Granola, and more" expands to Microsoft 365 plus every remaining
  curated preset. The smart search-or-paste bar keeps filtering both sections.
- A Configured strip links to the new /dashboard/mcp-connections/configured
  page, which now owns the connection rows (connect, tools, edit, remove) and
  can focus one row via ?connectionId=.
- Configured rows in the catalog get an options menu: Chat, Manage, Uninstall.
  Chat opens an openwork://chat deep link carrying the connector name and an
  "Explain ..." starter prompt; the row menu on the configured page gets the
  same Chat action.
- Plus on a one-click OAuth preset adds it for everyone (per-member accounts)
  and opens the authorization tab in the same gesture. Instant presets add on
  the spot; API-key and pre-registered-OAuth presets keep the guided form.

Den API
- Add the GitHub remote MCP preset (pre-registered OAuth app, like Slack).

Desktop app
- Parse openwork://chat?connector=…&prompt=… and land on the active
  workspace's new-task state with the composer seeded; nothing is sent until
  the person presses send.
- New [connector …] composer token renders as a chip ahead of the prompt and
  expands to a connector steering sentence on send, mirroring skill tokens.
- Chat links are taken from the shared deep-link queue without disturbing
  connect or den-auth links.

Tests
- Bun: catalog data, render, page contracts (den-web); deep-link parsing and
  connector token (app); preset schema (den-api).
- Testkit: connector-chat-deep-link.test.ts (PR lane); connectors-quick-add
  and telegram-removed E2E specs updated to the catalog and configured page.
…h the flat header

Connectors rows used to be the whole story: a name, a blurb, and a "+" or an
options menu. Opening one now lands on /dashboard/mcp-connections/<id>, a
page that explains the connector before anyone commits to it and manages it
afterwards.

- The detail route accepts a configured connection id or a catalog id
  (gmail, notion, microsoft-365). Configured entries resolve to their
  connection; Gmail, Drive, and Calendar keep their own identity while the
  Google Workspace connection keeps Google's.
- The page composes what already exists: the feature-complete connection row
  (connect, disconnect, edit, review OAuth, remove), the live tool catalog,
  and a new Information table (provider, type, server, sign-in mode, access,
  added by, plugin ownership, docs). Unconfigured connectors get the same
  header with Add / Connect / Set up, driven by the preset's effort, plus a
  plain explanation of what that step does.
- Copy link and Chat (the desktop deep link) sit where ChatGPT puts "Copy
  link" and "Try now"; the catalog "+" and options menu are unchanged.
- Catalog rows, the configured strip, and Manage all open the detail page.
- The Connectors and Configured pages drop the gradient hero for
  DenPageHeader, matching OpenWork Models and Workflow detail, with the
  page's primary action in the header.

Tests: connector-detail resolution/facts/copy, catalog render links, and a
screen source contract; den-web typecheck and the 182-test allowlist pass.
evals/specs now only holds specs that cross a product boundary (#4398,
#4402). The den-web link → desktop parser → composer chip round trip is a
unit contract, so it moves beside chat-link-parse.test.ts as a bun test and
the boundary ratchet is clean again.
…-foundation

# Conflicts:
#	apps/app/src/react-app/domains/session/surface/session-surface.tsx
#	apps/app/src/react-app/domains/session/sync/draft-parts.ts
@vercel

vercel Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-den Ready Ready Preview Sep 5, 2026 11:21pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Sep 5, 2026 11:21pm UTC
openwork-diagnostics Ignored Ignored Sep 5, 2026 11:21pm UTC
openwork-landing Ignored Ignored v0 Sep 5, 2026 11:21pm UTC

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii

benjaminshafii commented Sep 5, 2026 •

Copy link
Copy Markdown
Member Author

Both cold-boot Daytona journeys passed on 99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a: 2 passed, 0 failed, 0 skipped. The sections below preserve each published test run. Screenshots are inspection artifacts; no visual-model grading was requested.

Test evidence — den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun — ✅ passed

SHA 99ceaf8 · engine v1

✅ 0/3 screenshots passed · 0 expectations passed · 0 failed · 0 pending

[world] mock(mcp) · den(daytona) · orgConnection("Catalog Notes") · nativeConnector("Google Workspace") · web(signed in) ×2
[probe] api(GET /v1/mcp-connections/presets) · api(GET /v1/mcp-connections?scope=manageable)
[user] see(testId=connector-catalog-count, text="Showing 6 of 15 integrations", timeoutMs=90000) · see(label=Set up Slack) · see(label=Connect Notion) · click(testId=connector-catalog-more)
[probe] connectorCatalog
[user] screenshot · type(testId=connector-smart-bar, "granola", replace) · see(testId=connector-catalog-count, text="1 of 15 integrations match")
[probe] connectorCatalog
[user] type(testId=connector-smart-bar, "catalog-no-match", replace) · see(testId=connector-catalog-count, text="0 of 15 integrations match")
[probe] connectorCatalog
[user] type(testId=connector-smart-bar, "gmail", replace) · click(testId=connector-open-gmail) · see(testId=connector-detail-title, text=/^Gmail\b/) · see(testId=connector-detail-state, text="Needs your account") · reload · see(testId=connector-detail-title, text=/^Gmail\b/) · see(text=Google Workspace — one connection covers Gmail, Drive, and Calendar) · screenshot · navigate(/dashboard/mcp-connections) · click(testId=connector-open-google-drive) · see(testId=connector-detail-title, text=/^Google Drive\b/) · navigate(/dashboard/mcp-connections) · click(testId=connector-open-google-calendar) · see(testId=connector-detail-title, text=/^Google Calendar\b/)
[probe] api(GET /v1/mcp-connections?scope=manageable) · toolCalls(any)
[user] see(text=Catalog Notes, timeoutMs=90000) · click(testId=connect-my-mcp-account-emc_01m1sy2rrveyn813cmyze5dc73) · see(testId=disconnect-my-mcp-account-emc_01m1sy2rrveyn813cmyze5dc73, timeoutMs=120000)
[probe] api(GET /v1/mcp-connections?scope=usable)
[user] navigate(/dashboard/mcp-connections/emc_01m1sy2rrveyn813cmyze5dc73) · see(testId=connector-detail-state, text="Needs your account") · notSee(testId=connector-detail-test-tools)
[probe] api(GET /v1/mcp-connections?scope=manageable)
[user] screenshot
steps 1 ✅ browse every integration with an accurate total and setup requirements (1.7s) · 2 ✅ filter the full inventory and recover from an empty result (8.1s) · 3 ✅ a member connects without making the admin personally connected (8.5s)
verdict passed · 18 user observations (see ×14, screenshot ×3, notSee ×1) · 9 probes · steps 3/3

⚪ UNVALIDATED — 1. den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 1

  • ⚪ UNVALIDATED — no visual expectations recorded.

den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 1

⚪ UNVALIDATED — 2. den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 2

  • ⚪ UNVALIDATED — no visual expectations recorded.

den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 2

⚪ UNVALIDATED — 3. den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 3

  • ⚪ UNVALIDATED — no visual expectations recorded.

den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun artifact 3


Test run created 2026-09-05T23:20:28.739Z · Source: evals/results/test-runs/2026-09-05T23-20-28-738Z-den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4541 --test-run 2026-09-05T23-20-28-738Z-den-catalog-shows-its-full-inventory-preserves-service-identity-and-keeps-accoun

Test evidence — chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector — ✅ passed

SHA 99ceaf8 · engine v1

✅ 0/4 screenshots passed · 5 assertions · 5 expectations passed · 0 failed · 0 pending

[world] mock(mcp) · den(daytona) · [seed] api GET /v1/me/orgs · orgConnection("Notion") · [seed] api POST /v1/mcp/token · desktop(as admin) · workspace(/tmp/openwork-connection-action-mcp-app-1788650966173) · session("New task") · [seed] api GET /v1/mcp-connections/presets · web(signed in)
[agent] send(23 chars)
[user] see(text=Choose Slack to set it up, or browse the available connectors., timeoutMs=120000) · see(testId=connector-catalog) · see(label=Set up Slack) · see(text=Admin setup) · notSee(testId=desktop-connection-card)
[probe:raw] [probe:raw] eval() ×2
[user] screenshot · click(label=Browse all 13) · see(label=Filter connectors)
[probe:raw] [probe:raw] eval() ×2
[user] see(label=Set up Linear) · screenshot · type(label=Filter connectors, "no such connector", replace) · see(text=No connectors match your search.)
[probe:raw] [probe:raw] eval()
[user] type(label=Filter connectors, "slack", replace)
[probe:raw] [probe:raw] eval() ×2
[probe] eventually(admin setup action is enabled)
[user] click(label=Set up Slack) · notSee(alert)
[probe] eventually(Slack setup asks the OS to open its destination)
[user] navigate(/dashboard/mcp-connections) · see(text=OAuth app, timeoutMs=90000) · see(text=Client ID (optional for now)) · see(text=Client secret (optional for now)) · screenshot · click(label=New session) · see(text=Try one of these:)
[agent] send(37 chars)
[user] see(text=Here are all the connectors available to add., timeoutMs=120000)
[probe:raw] [probe:raw] eval()
[user] screenshot
verdict passed · 18 user observations (see ×12, notSee ×2, screenshot ×4) · 10 probes · steps 0/0

ℹ️ ASSERTION — 1. A Slack request offers setup without claiming the service is connected

Only Slack is suggested with Admin setup; no account connection card is shown

  • ✅ PASS A Slack request offers setup without claiming the service is connected — Only Slack is suggested with Admin setup; no account connection card is shown

ℹ️ ASSERTION — 2. Browsing all connectors preserves the suggestion card width

{"suggestedWidth":384,"expandedWidth":384}

  • ✅ PASS Browsing all connectors preserves the suggestion card width — {"suggestedWidth":384,"expandedWidth":384}

ℹ️ ASSERTION — 3. Browse all includes the complete Den preset catalog and both productivity suites

["google-workspace","microsoft-365","github","notion","linear","stripe","sentry","granola","polar","slack","exa","render","context7"]

  • ✅ PASS Browse all includes the complete Den preset catalog and both productivity suites — ["google-workspace","microsoft-365","github","notion","linear","stripe","sentry","granola","polar","slack","exa","render","context7"]

ℹ️ ASSERTION — 4. Asking for all quick adds immediately opens the complete catalog

["google-workspace","microsoft-365","github","notion","linear","stripe","sentry","granola","polar","slack","exa","render","context7"]

  • ✅ PASS Asking for all quick adds immediately opens the complete catalog — ["google-workspace","microsoft-365","github","notion","linear","stripe","sentry","granola","polar","slack","exa","render","context7"]

ℹ️ ASSERTION — 5. Filtering selects Slack and its setup destination opens the OAuth client form

Clicking Set up Slack emitted exactly one OS browser request for the expected Den origin, connector page, and quickAdd=slack. Navigating that captured URL renders client fields; the agent only searched and did not execute setup or authorize an account

  • ✅ PASS Filtering selects Slack and its setup destination opens the OAuth client form — Clicking Set up Slack emitted exactly one OS browser request for the expected Den origin, connector page, and quickAdd=slack. Navigating that captured URL renders client fields; the agent only searched and did not execute setup or authorize an account

⚪ UNVALIDATED — 6. chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 1

  • ⚪ UNVALIDATED — no visual expectations recorded.

chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 1

⚪ UNVALIDATED — 7. chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 4

  • ⚪ UNVALIDATED — no visual expectations recorded.

chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 4

⚪ UNVALIDATED — 8. chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 6

  • ⚪ UNVALIDATED — no visual expectations recorded.

chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 6

⚪ UNVALIDATED — 9. chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 7

  • ⚪ UNVALIDATED — no visual expectations recorded.

chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector artifact 7


Test run created 2026-09-05T23:25:38.347Z · Source: evals/results/test-runs/2026-09-05T23-25-38-347Z-chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4541 --test-run 2026-09-05T23-25-38-347Z-chat-suggests-slack-setup-and-lets-an-admin-browse-every-quick-add-connector

Re-run the journeys on this head:

OPENWORK_EVAL_REF=99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a pnpm evals:e2e den-connector-catalog
OPENWORK_EVAL_REF=99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a pnpm evals:e2e connector-catalog

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 5, 2026 23:32

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (99ceaf87ac267bceba80613e7ccf2e7bd2f8a57a). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

This branch was successfully deployed

1 active deployment
Preview – openwork-den — 99ceaf87 Deployed Sep 5, 2026 by vercel[bot]
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.

2 participants