Repository navigation
Admin → Apps: Open apps switch, give an app to every Bot, and a card that says a Bot's owner can give an app - #2163
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 21:48
davidmckayv
force-pushed
the
feat/every-bot-switch
branch
from
November 24, 2026 22:38
3dcb626 to
6bd84f0
Compare
davidmckayv
force-pushed
the
feat/every-bot-switch
branch
from
November 24, 2026 23:07
6bd84f0 to
84cc4df
Compare
davidmckayv
force-pushed
the
feat/every-bot-switch
branch
8 times, most recently
from
November 25, 2026 02:34
c16eef7 to
fac3cfe
Compare
An app's page in Admin (team edition) gets an Every Bot row under the Bot owners row. Turning it on sends updateApp with everyBot: true, which gives the app to every Bot in the organization, Bots made later too; turning it off takes back what the switch gave. The row reads everyBot from the app the server answers. The fake apps server now keeps what updateApp sends, and a new test drives the switch on and off and checks the personal edition has no such row.
… it to admins Apps are open to Bot owners by default, so 'Only an admin can give it' was wrong for a member looking at somebody else's Bot.
Open apps is on by default. Turning it off asks first, and can also take back what OpenBot gave Bots by itself while apps were open; what anybody gave by hand stays. Turning it on opens apps at once.
davidmckayv
force-pushed
the
feat/every-bot-switch
branch
from
November 25, 2026 03:14
fac3cfe to
6470028
Compare
…s main now draws it
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.
What
Admin → Apps → an app's page (team edition) gets an Every Bot row, right under "Bot owners can give it to their Bots". One switch gives the app to every Bot in the organization, Bots made later too. Turning it off takes back what the switch gave. Nothing a Bot was given any other way changes.
setEveryBotMutationOptionsinapp/src/lib/apps/mutations.tscallsupdateAppwith{ everyBot }(API from PR 2160) and an Idempotency-Key. The app screens refetch when it settles.A Bot's app card. Apps are now open to Bot owners by default (PR 2160). So for a Bot that hasn't been given an app, a member looking at somebody else's Bot now reads "This Bot hasn't been given Gmail. Its owner can give it, or an admin." It says "Only an admin can give it." only where an admin kept the app to admins.
Open apps, under Admin → Apps → Giving apps. This is the organization's one switch: Open, the default, or Locked down. It reads and writes the switch's own resource,
getAppsSettingandupdateAppsSetting(PR 2160), throughappsSettingQueryOptionsandsetAppsLockedDownMutationOptions. Turning it on saves at once. Turning it off opens a dialog that says what changes. The dialog has a box, off by default, labeled "Also take back what OpenBot gave Bots while apps were open". The switch uses the existing settings section, row, Switch, Dialog and Checkbox components.Why
An admin who wanted an app on every Bot had to give it one Bot at a time, and new Bots didn't get it.
Test
app/tests/open-apps-switch.test.tsx:{ lockedDown: true, takeBackWhatOpenGave: false }, ortruewith the box ticked.{ lockedDown: false }, with no dialog./settings/appsonly, and refuses it on the organization's settings.app/tests/every-bot-app-switch.test.tsxrenders the real app page against a fake server that keeps what updateApp sends. The switch starts off. Pressing it sends{ everyBot: true }and the switch reads on. Pressing it again sends{ everyBot: false }and it reads off. The personal edition has no switch. The test fails without the row and passes with it.