Skip to content

Find and connect any app from Connections in the team edition - #2106

Merged
davidmckayv merged 4 commits into
mainfrom
connections-directory-team
Nov 24, 2026
Merged

davidmckayv merged 4 commits into
mainfrom
connections-directory-team

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

On OpenBot Cloud, an organization's admin couldn't find the app directory from Connections. Connections listed only the apps already added, its search filtered only those, and the directory was reachable only through Admin, then Apps, then More apps. A member couldn't reach it at all.

What changes

Connections in the team edition now draws what the personal edition already draws:

  • Browse apps, the same tile, under Add an app. It opens Browse apps under Connections (/connections/browse/composio or /arcade), never Admin's copy.
  • Search reaches the whole directory. Once typing settles, the directory's own search is asked for the term (never with an empty term, so the page never reads all of it). Apps nobody has added show as tiles under Add an app, below the person's own. An app already added stays the person's own tile and never shows twice.

One press does what the person can do (directoryPressMode, shared by Connections and Browse apps through useDirectoryPress):

  • Owner or admin of the organization (isOrganizationAdmin, the usual OpenBot Cloud case: one person and their own organization): the press adds the app and connects their account. A sign-in app opens its sign-in in a tab claimed on the click, a key app opens its page with the key form, and an app with no account is simply added. No trip to Admin.
  • Member: the press asks an admin to add it, with no Bot named, and the tile reads Requested until it's answered, across a reload. The admin's requests list reads it as "Add Slack for everyone".

Admin's own Browse apps is unchanged: it adds for everybody and connects nobody.

Remove an app where you added it. An app's page under Connections now draws Admin's own "Enable for this organization" row and switch, word for word (OrganizationAppSwitch, whose words Admin's page now reads too), for an owner or admin in the team edition. Turning it off removes the app for everybody, as in Admin, and goes back to Connections. A member isn't shown it. So the admin of their own organization adds and removes apps without opening Admin.

A tile a member has asked for draws as a plain tile (never a faded, disabled button), and the sign-in note names the app ("Finish signing in to Slack in the tab that opened.").

API

listAppDirectory answers the wider directory to every member, not only an admin; only an admin adds from it. createAppAccessRequest takes botId as optional: left out, the request is to add an app nobody has added yet, for everyone (kind: enable, botId: null), and appId is the directory entry's slug. Both are additive.

Tests

  • app/tests/team-connections-directory.test.tsx, through the real Connections and Browse apps routes, team edition with OpenBot's own sign-in, as an owner, an admin and a member:
    • Regression, "team-edition Connections search finds an app not yet added": fails on main (3 of 3 role cases: the directory is never asked, no tile appears), passes here.
    • Browse apps is on Connections and opens Browse apps under Connections; Add there adds and opens the admin's sign-in; Request there asks with no Bot.
    • One press from search: a sign-in app (added, sign-in opened, then reads Connected once the server lists the account), a key app (added, key form opened), an app with no account (added), and a member's request (no app added, Requested, still Requested after a reload).
    • "No matches" only once the directory has nothing either.
  • app/tests/access-requests.test.tsx: a request with no Bot reads "Add Slack for everyone", never "for a Bot".
  • app/tests/connections-app-remove.test.tsx: an owner and an admin see Admin's switch on a key app's and a sign-in app's Connections page, and turning it off deletes the app and returns to Connections; a member never sees it.
  • app/tests/team-connections-directory-layout.test.tsx, in Chromium and WebKit, light and dark (added to CI's browser job): an admin finds Slack from search and one press adds it, connects and opens the sign-in tab; an admin removes Rootly with the switch; a member asks for Linear, reads Requested on an unfaded tile, and gets no switch. Nothing runs off the page and every tile sits in the column.
  • Driven live in the team edition with OpenBot's own sign-in, as an admin and a member, in Chrome and in WebKit: search reaches the real directory, Slack's press opens Slack's consent page, a key app's press opens its key form, a member's Request reaches the admin's requests as "Add Linear for everyone" and Approve adds it, and the switch removes an app.
  • Existing Connections, Browse apps, sign-in and inbox suites pass unchanged.

On OpenBot Cloud, Connections listed only the apps already added, its search filtered only those, and the directory was reachable only through Admin, then Apps, then More apps. A member couldn't reach it at all.

Connections now has Browse apps in the team edition too, and its search asks the directory, showing apps nobody has added under Add an app. One press does what the person can do: an organization's owner or admin adds the app and connects their own account (a sign-in in a new tab, a key form, or nothing for an app with no account), and a member asks an admin to add it, with no Bot named. The admin's inbox reads that request as adding the app for everyone. Browse apps opened from Connections behaves the same way; Admin's copy still only adds.
An admin of their own organization asked how to remove an app once it was on. The only way was Admin, then Apps, then the app, then Enable for this organization. The app's page under Connections now draws that same row and switch for an owner or admin in the team edition; turning it off removes the app for everybody and goes back to Connections. A member isn't shown it.

A tile a member has asked for now draws as a plain tile, never a faded disabled button, and the sign-in note names the app. Held in Chromium and WebKit by team-connections-directory-layout.test.tsx, added to CI's browser job.
@davidmckayv
davidmckayv force-pushed the connections-directory-team branch from 051586d to f4872db Compare November 24, 2026 01:41
@davidmckayv
davidmckayv merged commit 4fcbae2 into main Nov 24, 2026
35 checks passed
@davidmckayv
davidmckayv deleted the connections-directory-team branch November 24, 2026 02:01
davidmckayv added a commit that referenced this pull request Nov 24, 2026
… (release/1.2) (#2113)

#2106, picked onto release/1.2 for 1.2.0-rc.4. Connections in the team edition has Browse apps and a search that reaches the whole directory; an owner or admin adds and connects an app in one press and removes it from its own page; a member asks an admin to add it.
davidmckayv added a commit that referenced this pull request Nov 26, 2026
* Release v1.2.0-rc.1 (#2023)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 76c07bc for the next 1.2.0 candidate (#2040)

Carries main's tree at 76c07bc, keeping the release lines at 1.2.0-rc.1: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Bring release/1.2 to main at 043cc67 for the next 1.2.0 candidate (#2042)

Carries main's tree at 043cc67, keeping the release lines at 1.2.0-rc.1: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Release v1.2.0-rc.2 (#2043)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at acfcabc for the next 1.2.0 candidate (#2053)

Carries main's tree at acfcabc, keeping the release lines at 1.2.0-rc.2: package.json, the desktop Cargo version, backend-images.env and release-policy.json's version.

* Release v1.2.0-rc.3 (#2054)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 0e04d18, with #2090, for the next 1.2.0 candidate (#2077)

* Bring release/1.2 to main at 0e04d18 for the next 1.2.0 candidate

* Changelog and upgrade policy for 1.2.0-rc.4

* Changelog: organization owners and Members' Remove for 1.2.0-rc.4

* Changelog: connecting from Browse apps also comes back where Connect was pressed

* Changelog: Add server offered only to an admin, for 1.2.0-rc.4

* Changelog: a Bot puts up the card of an app it doesn't hold first, for 1.2.0-rc.4

* Changelog: no more Agents pages and starter avatar colors under Unreleased; 1.1.3's Agents entry as released

* Changelog: one press of Connect on an app's card, for 1.2.0-rc.4

* Changelog: the move's one figure and the stuck window's alert (#2085), for 1.2.0-rc.4

* Changelog: a part of the app that didn't download loads again (#2092), for 1.2.0-rc.4

* Changelog: a Bot's answer reads as written after switching conversations (#2091), for 1.2.0-rc.4

* Changelog: on Windows, WSL 1 stays the default, for 1.2.0-rc.4

* Changelog: long names in member rows (#2082), for 1.2.0-rc.4

* Changelog: reconnecting an app after a move takes one press, for 1.2.0-rc.4

* About OpenBot says OpenBot (Self-Contained) or OpenBot Cloud, and as whom (#2090)

Nothing in OpenBot Desktop said which of the two it ran, or which account it used on OpenBot Cloud. About OpenBot now says where OpenBot runs above the build, on macOS and Windows alike, beside the version it already showed. On OpenBot Cloud (or another OpenBot the app is connected to) it names the email the app is signed in with, asked of that OpenBot once the sign-in is live with the same question the move to OpenBot Cloud asks (move_to_cloud::Api::account).

* Changelog: one connect card per app, for 1.2.0-rc.4

* An admin gives a Bot an app from its card in one press (#2095) (#2102)

Cherry-picked from main (ba3e930) for the next 1.2.0 candidate. The
release notes entry is the release's own, so CHANGELOG.md is left as
release/1.2 has it.

An admin asked a Bot to connect Notion. The card told them "Only an admin
can give it", and Give it answered "Notion has no tools to give yet". The
admin's press now turns the app on, gives it, and opens their sign-in or the
key form; where the app lists nothing until they sign in, the card gives it
once they're connected, with no second press. The card and a Bot's Apps row
shown to an admin say what is missing, never to ask an admin.

* One press of Reconnect connects the app (release/1.2) (#2107)

Cherry-pick of #2101 (75fde91) onto release/1.2, without its CHANGELOG line.

* Show an app's Connect card once in a conversation (#2100) (#2110)

A reply that called two tools of an app the person hadn't connected was refused twice, and each refusal drew the app's card, so the same card showed twice. Only a repeated show_app_access was left out before. Now every card-bearing step is counted: the first card a reply draws for an app (per Bot) stays, later ones in that reply are left out, and when a later reply draws the app's card again, the earlier one goes.

(cherry picked from commit 359c50b)

* Find, connect and remove any app from Connections in the team edition (release/1.2) (#2113)

#2106, picked onto release/1.2 for 1.2.0-rc.4. Connections in the team edition has Browse apps and a search that reaches the whole directory; an owner or admin adds and connects an app in one press and removes it from its own page; a member asks an admin to add it.

* Connectors: the allowlist's switches say what each app can do (release/1.2) (#2109) (#2114)

* Connectors: the allowlist's switches say what each app can do

The MCP servers section on Admin, Apps is now called Connectors, and its
switches match what happens.

- Off, every app can be used, so each app's switch reads on and can't be
  changed. Switching one did nothing before.
- Turning Only approved connectors on approves every app already added, so
  nothing in use is cut off. The admin turns off the ones they don't want.
- Routines and OpenBot settings read on, can't be switched, and say "Always on,
  for every Bot.". The allowlist never holds them back.
- Turning one app off no longer takes every other app off the list with it.
  Two apps with no address compared as equal, so every id entry was removed.
- The count reads the apps approved, not the entries on the list.
- An app added, connected or given to a Bot refreshes the section, since an
  admin's add approves it while the list is on.

The section title, its description, the switch, the address row and dialog,
the Admin overview line and the settings card all say connector. The layout is
unchanged.

Tests: app/tests/admin-connectors-section.test.tsx draws the section against
the API's answers and drives both states; the refresh tests now expect the
section's refresh beside the plugin screens'.

* Type what a refusal refetches in the refresh test

* Changelog for the 1.2.0-rc.4 picks (#2104)

* Changelog: an app's own sign-in instead of a key, for 1.2.0-rc.4

* Changelog: an admin gives a Bot an app from its card in one press (#2095), for 1.2.0-rc.4

* Changelog: client-document sign-in and tool search at scale, for 1.2.0-rc.4

* Changelog: Connections leads to every app on OpenBot Cloud, for 1.2.0-rc.4

* Changelog: Only approved servers starts from the apps you added, for 1.2.0-rc.4

* Changelog: the MCP servers section is now Connectors, for 1.2.0-rc.4

* Changelog: one press of Reconnect in the move entry, and turning an app off from Connections, for 1.2.0-rc.4

* Changelog: tool search as it shipped, for 1.2.0-rc.4

* Changelog: OpenBot Cloud prefers the client document, for 1.2.0-rc.4

* Changelog: Connectors as it shipped, for 1.2.0-rc.4

* Changelog: the built-in vendor apps are no longer offered, for 1.2.0-rc.4

* Changelog: vendor sign-in as the code resolves it, for 1.2.0-rc.4

* Changelog: Anthropic's prompt cache and OpenAI's tool search, for 1.2.0-rc.4 (#2116)

* Release v1.2.0-rc.4 (#2117)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at a9ba3fe for 1.2.0-rc.5 (#2181)

release/1.2 takes main's tree at a9ba3fe, keeping the release lines at 1.2.0-rc.4 (package.json, the desktop Cargo version, backend-images.env and release-policy.json's version). Create release PR then moves them to 1.2.0-rc.5.

* Release v1.2.0-rc.5 (#2183)

Co-authored-by: davidmckayv <[email protected]>

* Bring release/1.2 to main at 238b165 for 1.2.0 (#2205)

release/1.2 takes main's tree at 238b165, keeping the release lines at 1.2.0-rc.5 (package.json, the desktop Cargo version, backend-images.env and release-policy.json's version). Create release PR then moves them.

* Release v1.2.0-rc.6 (#2207)

Co-authored-by: davidmckayv <[email protected]>

* Release v1.2.0 (#2210)

Co-authored-by: davidmckayv <[email protected]>

* Put release/1.2 back to 1.2.0-rc.6 after the 1.2.0 final stopped at its checks (#2217)

Release v1.2.0 (#2210) merged, but Publish release stopped in its checks before tagging or publishing anything: three client-version tests read a fixture that names 1.2.0 as a minimum newer than the app, which no longer holds once the app is 1.2.0. This puts the tree back to exactly v1.2.0-rc.6 (package.json, the desktop Cargo version, backend-images.env, release-policy.json's version and the changelog's Unreleased), so the test fix can land and become 1.2.0-rc.7, the candidate the final is cut from.

* Client version tests: keep the raised minimums above this release (#2219) (#2220)

The shared client-version fixture raised every app to 1.2.0 in its `raised`, `next` and
`security` answers, as a minimum newer than this app. The web app's and the phone app's tests
run those answers as the tree's own release, so on a tree whose package.json says 1.2.0 the app
is no longer below the minimum and three tests failed in the 1.2.0 release run.

The raised minimums are now 9.0.0, above any release of this line, and the tests that name the
minimum follow. The cases decide the same: below the minimum is refused, at it is served.

* Release v1.2.0-rc.7 (#2222)

Co-authored-by: davidmckayv <[email protected]>

* Release v1.2.0 (#2223)

Co-authored-by: davidmckayv <[email protected]>

* Keep main's own backend-images.env

* Start CI for the 1.2.0 merge-back

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: davidmckayv <[email protected]>
Co-authored-by: David McKay <[email protected]>
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