Repository navigation
Screens follow the apps switch: while apps are open, a member adds and connects an app in one press - #2175
Merged
Conversation
…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
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 25, 2026 04:20
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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()inapp/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 underapi/or to the generated client.1. Any member adds an app the organization hasn't added, in one press
Under Open, for a member:
oneStep, no host or key to type first), get a Connect tile under Connect an app.approveBotApp), the same press an admin has today, in place of Request access;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
Tests
Every test that pins Request access or an admin's sentence now serves
lockedDown: truefromGET .../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" sendsapproveBotApp; 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.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/appsanswers every member.createApp(from the catalogue, the directory, or by address withouttoken) is allowed for a member.approveBotAppis allowed for the Bot's owner (mine), not only an admin.shared_not_approvedand the shared-use notice has nothing to report.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.