Repository navigation
Admin, UI components: say whose each Bot is on Available to - #2813
Merged
Merged
Conversation
davidmckayv
force-pushed
the
waste/uicomp-owner
branch
from
December 2, 2026 21:18
2805f6c to
e3b9cb1
Compare
A component's Available to listed every Bot in the organization by name alone. Every person has their own copy of the Bots OpenBot starts with, so it drew General Assistant once per person and an admin couldn't tell whose Bot they were turning a component on or off for. In an organization of a few hundred people the list also ran past the dialog's footer. Available to is now a screen of its own (/admin/components/:name/bots), as the layout rules ask of a dialog whose screen changes. Each row names whose the Bot is: the owner's name and picture, Yours, or For everyone in the organization. People's Bots that share a name are gathered under one row that says how many there are and how many are on, and opens onto a row per person, with the sign-in address telling two people of the same name apart. Each switch's accessible name says whose it is. A server that doesn't send owner yet still gets the gathered rows, with somebody else's Bot read as Another person's. component-bots-owners.test.tsx renders the screen against an organization of 180 people and fails on the old name-only rows; component-bots-layout.test.tsx draws it in Chromium and WebKit, light and dark, at 1440 and 390, beside a skill's page.
davidmckayv
force-pushed
the
waste/uicomp-owner
branch
from
December 2, 2026 21:54
e3b9cb1 to
d0566f3
Compare
davidmckayv
marked this pull request as ready for review
December 2, 2026 21:54
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 21:54
This was referenced Dec 2, 2026
davidmckayv
added a commit
that referenced
this pull request
Dec 2, 2026
…he other lists of every Bot Every person has their own copy of the Bots OpenBot starts with, all under one name, so Admin's lists of every Bot in the organization drew "General Assistant" once per person with nothing to tell them apart. #2813 fixed Available to on a UI component; the same identical rows were on a skill's page, on an app's By Bot, on each of its tools' pages, in Check-ins, and in the one-line names approval rules, Activity, Learning, the grant dialog and the computers page use. - BotSwitchRows becomes BotRows, which takes what each row holds (a switch, a link, a count) and still draws the owner's picture and name, "Yours", "For everyone in the organization", and gathers each person's copy under one row that opens. The component page keeps BotSwitchRows. - A skill's Bots, an app's By Bot, a tool's Bots and Check-ins use it. By Bot's rows still open the Bot's page for the app, which now says whose the Bot is; so does a Bot's check-in breakdown. - Where a Bot is one word in a sentence, a menu or a picker, a name more than one Bot has says whose each is: "General Assistant (Sam Lee)", with the address when two people share a name (botLabels). useBotNames, the approval rule editor's Bot picker, Learning's per-Bot rows and picker, the audit filter's Bot menu and the grant dialog read it. - Outside Admin a person's own list keeps its rows by name alone. Check-ins counts per Bot, and its list doesn't carry an owner, so whose each is comes from the list of every Bot the screen already has (owner from #2808); no API change. Tests: app/tests/bot-owner-lists.test.tsx renders each screen against 180 people with their own General Assistant, two people called Sam Lee, one with no name, a Bot for everyone and two people's Bots of one name (6 of 6 fail on main, pass here). app/tests/bot-owner-lists-layout.test.tsx draws each screen beside Available to in Chromium and WebKit, light and dark, at 1440 and 390.
timothybrush
pushed a commit
to timothybrush/OpenBot
that referenced
this pull request
Dec 3, 2026
…he other lists of every Bot (CopilotKit#2818) Every person has their own copy of the Bots OpenBot starts with, all under one name, so Admin's lists of every Bot in the organization drew "General Assistant" once per person with nothing to tell them apart. CopilotKit#2813 fixed Available to on a UI component; the same identical rows were on a skill's page, on an app's By Bot, on each of its tools' pages, in Check-ins, and in the one-line names approval rules, Activity, Learning, the grant dialog and the computers page use. - BotSwitchRows becomes BotRows, which takes what each row holds (a switch, a link, a count) and still draws the owner's picture and name, "Yours", "For everyone in the organization", and gathers each person's copy under one row that opens. The component page keeps BotSwitchRows. - A skill's Bots, an app's By Bot, a tool's Bots and Check-ins use it. By Bot's rows still open the Bot's page for the app, which now says whose the Bot is; so does a Bot's check-in breakdown. - Where a Bot is one word in a sentence, a menu or a picker, a name more than one Bot has says whose each is: "General Assistant (Sam Lee)", with the address when two people share a name (botLabels). useBotNames, the approval rule editor's Bot picker, Learning's per-Bot rows and picker, the audit filter's Bot menu and the grant dialog read it. - Outside Admin a person's own list keeps its rows by name alone. Check-ins counts per Bot, and its list doesn't carry an owner, so whose each is comes from the list of every Bot the screen already has (owner from CopilotKit#2808); no API change. Tests: app/tests/bot-owner-lists.test.tsx renders each screen against 180 people with their own General Assistant, two people called Sam Lee, one with no name, a Bot for everyone and two people's Bots of one name (6 of 6 fail on main, pass here). app/tests/bot-owner-lists-layout.test.tsx draws each screen beside Available to in Chromium and WebKit, light and dark, at 1440 and 390.
7 tasks done
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.
Reads
Bot.owner, added to the spec by #2808 and filled by the server's list of every Bot.Screenshots of every screen below, Chrome and WebKit, light and dark, desktop (1440) and phone (390), beside a skill's page: https://claude.ai/artifact/Qnc7WXUTtLneEnbjFnj5fq
The bug
Admin > UI components > a component > Available to listed every Bot in the organization by name alone. Every person has their own copy of the Bots OpenBot starts with, so it showed "General Assistant" once per person, six identical rows in the end-to-end test, and an admin couldn't tell whose Bot they were turning the component on or off for. The switches had the same accessible name too. In an organization of a few hundred people the list also ran past the dialog's footer.
The fix
/admin/components/:name/bots, behind the component's "Available to" row (the layout rules move a dialog to a screen when its screen changes). Back goes to the component.packageBotIdout of somebody else's private Bot.owneryet, the rows are still gathered, yours still says "Yours", and somebody else's reads "Another person's".Built from the app's own
PageShell,PageRows,Item,Collapsible,SwitchandPersonAvatar, with nothing new in tokens or primitives.Tests
app/tests/component-bots-owners.test.tsxrenders the screen against an organization of 180 people, each with their own General Assistant, plus two people both called Sam Lee, one with no name, a Bot made for everyone, and two people's Bots with the same name. It asserts that every copy names its owner, that no two switches have the same name, that switching one person's copy writes to that Bot only, and that an older server still works. Red on the old name-only rows (5 of 6 fail), green after.app/tests/component-bots-layout.test.tsxdraws the component's page, Available to (closed and open) and a skill's page for comparison in Chromium and WebKit, light and dark, at 1440 and 390: no sideways scroll, nothing cut off, no name or address clipped, no copy without an owner, every request answered. 32 of 32 pass. The clipped-address check was red before addresses were allowed to wrap on a phone.The same name-only rows appear on a skill's page (Bots), and on an app's page "By Bot". Not changed here;
BotSwitchRowsis ready for them.Changelog
Admin.