Skip to content

Screens follow the apps switch: while apps are open, a member adds and connects an app in one press - #2175

Merged
davidmckayv merged 3 commits into
mainfrom
feat/open-everything-screens
Nov 25, 2026
Merged

davidmckayv merged 3 commits into
mainfrom
feat/open-everything-screens

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

Apps are open by default (Admin, Apps, Open apps). This makes the screens follow the switch: under Open a member gets what an admin gets today for adding and connecting an app, the Bot's owner connects an app and gives it to their Bot in one press, and nobody is sent to ask an admin for something they can now do. Under Locked down every screen, sentence and button stays exactly as it is today.

The screens read the switch with appsSettingQueryOptions() (every member may read it) through one hook, useAppsOpen() in app/src/lib/enterprise/apps-open.ts. The personal edition is always open. While the switch is being read, and if it can't be read, the screens draw what they draw today. The API's shape is unchanged: no change under api/ or to the generated client.

1. Any member adds an app the organization hasn't added, in one press

Under Open, for a member:

  • Browse apps and the Connections search: the directory press is Connect (add and connect in one press), not Request. The Browse apps tile no longer says "ask an admin". The "Connect with a key instead" line is offered too.
  • Connections catalogue tiles: apps from OpenBot's catalogue that nobody has added, and that connect in one press (oneStep, no host or key to type first), get a Connect tile under Connect an app.
  • Add custom MCP: offered on Connections, and the form opens with no Key field. A key typed here would be every Bot's, so giving one stays an admin's.
  • An app's Connections page: Connect on an app nobody has added adds it and goes straight on to the member's own sign-in. An app with nothing to sign in against yet stays on the page, where the server's refusal says it has to be set up first.
  • Moved apps: Reconnect adds an app the organization hasn't added. An app that needs a host or key typed first still goes back to the list.
  • Chat card and the Bot's Apps rows: for an app nobody has added, or one open to Bot owners that the Bot doesn't hold:
    • the Bot's owner gets "Connect and give it to {Bot}" (approveBotApp), the same press an admin has today, in place of Request access;
    • anybody else gets Connect, which adds the app and connects their own account, with "Connect it, and this Bot's owner can give it to the Bot." No request is filed.

2. Shared accounts need no press

Under Open, the shared-app notice ("can't use the shared account until an admin approves", Request approval, "Waiting for an admin to approve") is not drawn on the Bot's page, Sharing or Routines, and the Bot's shared apps aren't read for it.

3. No "ask an admin" that Open makes unnecessary

Under Open these say who can act now: the card's and the Apps row's sentences, the actions card ("Its owner can give it that."), the Bot's empty Apps state ("Give it one under Your apps." / "Its owner can give it some."), Connections' empty state, the app page, the moved-apps rows and the skill tool picker. The admin names under these sentences are not read.

What stays an admin's, in both modes

  • Connecting or reconnecting a shared account (the card still offers Request access for it).
  • A key on Add custom MCP, an org-wide credential.
  • Finishing an app's set-up (a host, an OAuth client, a deployment key): the card still says only an admin can.
  • An app an admin kept to admins (owners can't give it): the card still offers Request access.
  • Admin, Apps: Add custom MCP there, the app switches, the owner and Every Bot rows, and the access-requests inbox, which Locked down still uses.

Tests

Every test that pins Request access or an admin's sentence now serves lockedDown: true from GET .../settings/apps, so it keeps pinning Locked down. New Open cases, each red on main and green here:

  • connections-add-server-open.test.tsx: a member adds a server by its address in one press with no Key field (and the locked-down sentence).
  • team-connections-directory.test.tsx: a member adds and connects in one press from a search, from Browse apps and from a catalogue tile; Add custom MCP is offered under Open and not locked down; catalogue tiles for apps nobody added appear only under Open.
  • app-access-card.test.tsx: the owner's "Connect Gmail and give it to Expenses" sends approveBotApp; anybody else's Connect adds the app from the directory and files no request; an app open to owners on somebody else's Bot has nothing to request; an app kept to admins still asks an admin.
  • app-access-action.test.tsx: the Open sentences, and a catalogue key app added on somebody else's Bot going on to the person's key form.
  • app-access-card-tools.test.tsx: "Its owner can give it that.", with no request.
  • bot-access-apps.test.tsx: the owner's Connect and give on the Apps row, anybody else's Connect, and the empty state's sentences.
  • shared-app-notice.test.tsx: the notice is absent under Open (owner and admin) and present locked down.
  • connections-app-page-open.test.tsx: a member's Connect on an app nobody added adds it and connects.
  • key-version.test.tsx, name-the-admins.test.tsx: the member's key version under Open; no admins read or named under Open.
  • Browser tests (team-connections-directory-layout, moved-apps-reconnect): a member under Open adds and connects in one press from Connections, and a moved app's Reconnect adds the app.
  • name-the-admins-layout.fixture.tsx: Gmail is now kept to admins (ownerGrants: "admin"). Since the owner-can-give sentence landed, an app open to owners no longer reads "Only an admin can give it", so this browser test's card stopped naming the admins.

The full app suite passes locally except the three tests known to be flaky locally, and the touched browser tests pass headless in Chromium.

What the screens rely on from the server

  • GET .../settings/apps answers every member.
  • Under Open, createApp (from the catalogue, the directory, or by address without token) is allowed for a member.
  • Under Open, approveBotApp is allowed for the Bot's owner (mine), not only an admin.
  • Under Open, the server doesn't answer shared_not_approved and the shared-use notice has nothing to report.
  • A Bot's app that nobody has added carries the id adding it would give (BotApp.id), and a catalogue app's id is its catalogue key. A directory app is added from the directory entry with the app's title.

…d connects an app in one press

Under Open (the organization's default), a member gets what an admin gets for adding an app nobody
has added: Connect from Connections' search, Browse apps and the catalogue's tiles, Add custom MCP
without the key field, an app's own Connections page, and a moved app's Reconnect. On a Bot, its
owner connects an app and gives it to the Bot in one press, and anybody else connects it and is told
the owner gives it. The shared-app notice and Request approval are gone, and no sentence sends
somebody to ask an admin for what they can now do.

Locked down, every screen, sentence and button is as before, and the tests that pin Request access
and the admins' names now serve the switch locked down. What stays an admin's in both modes: a shared
account, a key on Add custom MCP, finishing an app's set-up, an app kept to admins, and Admin, Apps.
@davidmckayv
davidmckayv merged commit 071d180 into main Nov 25, 2026
18 checks passed
@davidmckayv
davidmckayv deleted the feat/open-everything-screens branch November 25, 2026 04:49
davidmckayv added a commit that referenced this pull request Nov 25, 2026
…-rc.5

While apps are open, a member adds and connects an app in one press, a Bot's
owner connects and gives it to their Bot, a shared account needs no approval,
and no sentence sends anybody to an admin for what they can now do (#2174's
API and #2175's screens). Kept apart so it can be dropped if #2175, or the
server behaviour it relies on, misses the cut.
davidmckayv added a commit that referenced this pull request Nov 25, 2026
* Changelog and upgrade policy for 1.2.0-rc.5

Rebuild Unreleased from the code for everything new since 1.2.0-rc.4: each
public change since 0e04d18 (less the rc.4 picks) and every server change
since rc.4's server, checked against its diff. Adds what had no entry (apps
open by default, OpenBot settings in a conversation, several AI connections,
drafts, Copy under replies, table links, free runs on OpenBot Cloud, moves
between organizations, calm outages, passkeys, Notion's own server, saved
logins, sharding) and rewrites the entries these changes made wrong.

Before upgrading lists the seventeen new migrations, 0165_team_models to
0181_organization_ai_sign_in_credentials, all expands.

release-policy.json: fromVersions adds v1.2.0-rc.4, database.from adds its
last migration 0164_schedules_held_by_move, and database.to moves to
0181_organization_ai_sign_in_credentials.

* Changelog: the screens follow the Open apps switch (#2175), for 1.2.0-rc.5

While apps are open, a member adds and connects an app in one press, a Bot's
owner connects and gives it to their Bot, a shared account needs no approval,
and no sentence sends anybody to an admin for what they can now do (#2174's
API and #2175's screens). Kept apart so it can be dropped if #2175, or the
server behaviour it relies on, misses the cut.
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