Skip to content

Admin: say whose each Bot is on a skill's Bots, an app's By Bot and the other lists of every Bot - #2818

Merged
davidmckayv merged 1 commit into
mainfrom
waste/botowners
Dec 3, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
waste/botowners

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

Follows #2813, which fixed Available to on a UI component. Reads Bot.owner from #2808.

Screenshots of every screen below, Chrome and WebKit, light and dark, desktop (1440) and phone (390), beside the fixed UI components page: https://claude.ai/artifact/NwBz9Dqm8qttDxE1hKgbjC

The bug

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 say whose each was. #2813 fixed it on a UI component's Available to. The same identical rows were in these other places:

  • A skill's page, Bots: a switch per Bot, by name alone.
  • An app's page, By Bot: a row per Bot opening that Bot's page for the app, by name alone. The Bot's page it opened said only "General Assistant and Gmail".
  • One of an app's tools, Bots: a switch per Bot, by name alone.
  • Routines, How check-ins went: check-ins are counted per Bot, so a row per person's copy, by name alone, and the breakdown it opens was titled the same.
  • The grant dialog on an app's page ("To"), and the dry run of a Shared switch: a tickbox per Bot, by name.
  • Approval rules, where a rule names a Bot, and the Bot picker in the rule editor.
  • Automatic learning, Per-Bot participation and "Show the container for".
  • Activity, the Bot filter menu, the "Only ..." chip and the Bot column.
  • Computers, the folders each Bot can read (OpenBot Desktop) and an isolated Bot's computer.

Searched every screen under Admin and Settings for lists of Bots. Settings and every other screen a person uses lists only what they can see: their own Bots and the ones made for everyone, never somebody else's copy, so it has no identical rows from this and is unchanged.

The fix

  • BotSwitchRows becomes BotRows, which takes what each row holds (a switch, a count and a chevron that opens a screen) and draws whose the Bot is the way Available to does: the owner's picture and name, "Yours", or "For everyone in the organization", with each person's copy gathered under one row that opens ("62 people each have one. On for 3 of 62."), yours first, and the sign-in address telling two people of the same name apart. Available to keeps BotSwitchRows, now built on it.
  • A skill's Bots, an app's By Bot, a tool's Bots and Check-ins use it. Each switch's accessible name says whose it is. By Bot's gathered row says how many of the copies can call some of the app's actions.
  • One person's Bot's page for an app, and a Bot's check-in breakdown, start with whose it is: "General Assistant is Sam Lee's (slee@example.com)."
  • 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)", "General Assistant (yours)", and "General Assistant (Sam Lee, slee@example.com)" when two people share a name. A name only one Bot has reads as before. useBotNames gives it, so approval rules, Activity and Computers have it; the rule editor's Bot picker, Learning, the grant dialog and Activity's filter menu read the same labels.
  • Outside Admin, a person's own list keeps a row per Bot by name alone.

No API change. Check-ins' own list carries no owner, so whose each Bot is comes from the list of every Bot in the organization, which every one of these screens already reads and which names each Bot's owner since #2808. A Bot deleted since keeps its name and says nothing of whose it was.

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

Tests

  • app/tests/bot-owner-lists.test.tsx renders a skill's page, an app's page, a tool's page, one person's Bot's page and Check-ins under Admin, against an organization of 180 people each with their own General Assistant, 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 the copies are gathered under one row, that every copy names its owner (yours first, the two Sams by address), that no two switches have the same name, that switching one copy writes to that Bot only, that each By Bot copy links to its own Bot, and that the one-line names are all different. Red on main (6 of 6 fail), green here.
  • app/tests/bot-owner-lists-layout.test.tsx draws the skill's page (closed and open), the app's By Bot, a tool's page, one person's Bot's page and Check-ins, opened, beside Available to, 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. 56 of 56 pass. Added to the browser job in CI.
  • app/tests/check-ins-admin.test.tsx now answers the list of Bots, which Check-ins reads to say whose each Bot is.

Changelog

Admin.

  • Admin shows whose each Bot is on a skill's page, an app's By Bot list, a tool's page and Check-ins. 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. Where a Bot is named in Approvals, Activity, Automatic learning and Computers, Bots that share a name say whose each is.

…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.
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 37216bd Dec 3, 2026
39 checks passed
@davidmckayv
davidmckayv deleted the waste/botowners branch December 3, 2026 00:13
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