Skip to content

Admin, UI components: say whose each Bot is on Available to - #2813

Merged
davidmckayv merged 2 commits into
mainfrom
waste/uicomp-owner
Dec 2, 2026
Merged

davidmckayv merged 2 commits into
mainfrom
waste/uicomp-owner

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Available to is a screen of its own, /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.
  • Each row says whose the Bot is: the owner's picture or initials and name, "Yours", or "For everyone in the organization" for a Bot nobody owns.
  • People's Bots that share a name are gathered under one row: "62 people each have one. On for 60 of 62." It opens onto a row per person, yours first, each with its own switch. The sign-in address under each name tells two people with the same name apart.
  • Each switch's accessible name says whose it is ("General Assistant, Sam Lee (slee@example.com)").
  • Grouped by name, because the list of every Bot leaves packageBotId out of somebody else's private Bot.
  • Against a server that doesn't send owner yet, the rows are still gathered, yours still says "Yours", and somebody else's reads "Another person's".
  • A write that fails is shown on the screen, which the dialog never did.

Built from the app's own PageShell, PageRows, Item, Collapsible, Switch and PersonAvatar, with nothing new in tokens or primitives.

Tests

  • app/tests/component-bots-owners.test.tsx renders 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.tsx draws 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; BotSwitchRows is ready for them.

Changelog

Admin.

  • Admin shows whose each Bot is when you choose which Bots can use a UI component. Available to is now a page of its own. Each person's own copy of a Bot is listed with their name and picture, and copies of the same Bot are grouped under one row you can open.

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
davidmckayv added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit f68b136 Dec 2, 2026
39 checks passed
@davidmckayv
davidmckayv deleted the waste/uicomp-owner branch December 2, 2026 22:41
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.
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