Skip to content

Bot pages: routines with switches, Setup in place, a tighter Activity - #2706

Merged
samjulien merged 18 commits into
mainfrom
claude/bot-pages-polish-b9a6b4
Dec 2, 2026
Merged

samjulien merged 18 commits into
mainfrom
claude/bot-pages-polish-b9a6b4

Conversation

@samjulien

@samjulien samjulien commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Builds on #2704 (merged): the Bot's routines use its shared routine row.

What this changes

Polish for the web app's Bot pages from the UX audit, measured against the Grok Bot desktop app. There, a Bot's state is on its panel and editing is in place. Here, routines hid behind an Activity row, Setup opened one screen per field, Activity spread one item per screen-high section with mixed wording, and the Computer page never said whether the computer was on. Bots keep their orbs, unchanged.

/bots/:id (profile): routines with their switches

The Routines section draws the Routines page's own rows (RoutineRow, from #2704): each says where it stands ("Running now", "Paused · Every Friday at 15:00", or its schedule and next run) and has its on/off switch, with the same writes and guards as the Routines page. Running and lined-up ones first, then paused ones. Completed goals are left out. It shows at most five, then All routines (N) with the total, to the Bot's Routines. The header counts them with routineCount ("7 routines").

Overlap with #1561 Part 6 (a Bot's page lists its routines): this matches it, at most five then All routines with the total, using the Routines page's rows. #1561 lists only what is on; this also lists paused ones, so they can be switched back on from the Bot's page. Whichever lands second keeps one Routines section.

Before After

/bots/:id/setup: fields in place, one Save

For whoever manages the Bot, Name, Title, What it does and (on the starter Bot) Instructions are text fields under Identity, with one Save that sends only what changed, in one updateBot call. Placeholders give an example: "Research, marketing, admin" and "What should this Bot help with?". Each field is checked against the server's limits before anything is sent. A field nobody typed in follows a change to the Bot made elsewhere, so Save never sends an old value back. Visibility and Isolated, which write at once, have a section of their own, Sharing and computer ("Computer" in the personal edition), not a second card in Identity. Anyone who can't manage the Bot still reads rows. Each field's own screen still works for any link to it.

openbot-screen-layout Procedure 3 now says when editing in place is right: a few short identity fields edited together, with one Save, and the rows that write at once in their own section. It also says a row's buttons go in ItemActions, wrapping on a narrow window.

Before After

/bots/:id/activity: words, actions and one button style

  • A routine or goal at work says Running now. A lined-up one says On and when it runs, from its schedule ("Routine · On · Every weekday at 9:00"); a goal uses the schedules of the routines that run it. A one-off follow-up says "due in 3 hours" or "was due 2 weeks ago", in place of "due · 2 weeks ago".
  • A task's buttons (Open, Mark done, Reopen, Stop, Try again) sit on the right like every other row's, not under the text on the left. This is TaskRow, so Needs you's task rows get the same.
  • Open is one style on every row (outline). It was ghost beside Cancel and outline on a task.
  • Each group (Working, Scheduled, Done…) is a PageSection with its title, the layout skill's own pattern. Its spacing is PageSection's, so the label headings of Lighter lists: flat rows, label section titles, one-sentence intros #2701/Refresh the default look: inset panel, slate greys, quieter headings, and per-screen fixes #912 tighten it with every other page.
Before After

/bots/:id/computer: its state first

The page starts with one card that says whether the Bot's computer is Asleep, Starting, Awake or Not answering. It reads the status route that never wakes a computer, so opening the page doesn't start one, and reads again every 5 seconds while it starts. Nothing is drawn where there are no computers for Bots, or for a state this app doesn't know.

Why the workbench said "Awake" over "No computers yet": its answer for a Bot's computer status was the API spec's example, ready for every Bot (with another Bot's id), while its computer list had no computer for the General Assistant. The workbench now answers the status from its own computer list (app/workbench/api/extraHandlers.ts): awake only while the list has a running computer for that Bot, asleep otherwise. A scene's own answer still wins. On a real server the two come from the same provider, and a Bot with no computer reads absent, so the card says Asleep.

Not done: a screen thumbnail like Grok's. A screenshot goes through the path that resumes a sleeping computer, so showing one would wake every computer whose page is opened.

Before After

/bots/:id/skills: counts beside the headings

Each heading says how many it lists, for example "Skills it has 22". PageSection gets one optional prop for this, count, drawn muted inside the title's <h2>; nothing else in PageSection changes, since #912 rewrites its headings. The Apps page's "Apps it can use" gets it too, since it is the same component.

Before After

Notes for review

  • Tests changed with the behavior. The Setup tests type into the fields on Setup in place of opening a field's screen, and the settings-cards browser test reads what Setup's fields hold. The profile-routines tests cover the shared row, paused rows, the switches and All routines (N). The Activity tests cover Running now, On with the schedule, the due wording and where Open sits.
  • Workbench data has only the General Assistant, which you can't manage, and no routines for it. So the Setup and routines screenshots come from a small fixture page rendered in Chromium with the app's own stylesheet. The others are the desktop workbench (Windows frame).
  • workbench/pageDefaults.test.ts fails on main too (the 1Password page commands have no default yet). Not from this PR.

Where it runs

  • New state that outlives a request? None. Browser only.
  • What happens on the second replica? Nothing changes. No server code is touched.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway. The switches and Save use the existing mutations.
  • No new refusals or failures.
  • Nothing new is trusted from the client.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json. Every call is one the web app already makes.

Changelog

Bot pages.

  • A Bot's pages say what it is doing, and its setup is edited in place. A Bot's page lists its routines with an on/off switch each, paused ones included: at most five, then All routines with the total. Setup edits the name, title and what the Bot does in place, with one Save. On Activity a routine says Running now, or On and when it runs ("Every weekday at 9:00") in place of "due · 2 weeks ago", and a task's buttons sit on the right. The Computer page starts with whether the Bot's computer is asleep or awake, and Skills counts what it lists. No API or database change.

Proof

  • bun run typecheck in app/ and typecheck:desktop-workbench: clean.
  • bunx biome lint --error-on-warnings . and bunx biome format .: clean.
  • 914 targeted tests pass: every bot-*, bots-*, activity-*, routine*, goal-page*, new-routine*, task*, needs-you*, skills-*, ui-look*, color-scheme, design-tokens test, and every test that draws TaskRow, SetupSections, PageSection or RoutineRow. The workbench's own tests pass but pageDefaults (above).
  • Browser tests in Chromium (OPENBOT_APP_BROWSER=1): bot-long-instructions-layout and settings-tool-cards-personal pass.
  • Looked at the profile's routines, Setup, Activity, Computer and Skills in light and dark.

… routine on one screen

- /routines uses the standard page header ("Routines") with the box as its first content.
- Each row has an on/off switch (pause/resume, the writes each page already makes), says Paused
  when off, and says when it runs next where that is known.
- Group heads read the Bot's real name (read on its own when no list has the Bot) and "3 routines".
- Routine, goal and check-in pages: on/off and Run now (and Edit on a routine) on the title's line,
  Delete in its own section at the bottom. A routine's page shows what it does first.
- The routine page subtitle drops "· Acts". Time zones show only when they differ from the viewer's.
- New routine: one card, labels above fields, When as one line of controls, and Done when, Posts in
  and Name under Advanced settings. It fits an 820px window with Create in view.
…e, tighter Activity, Computer state, skill counts
@samjulien samjulien changed the title Bot pages: a mark for each Bot, routines with switches, Setup in place Bot pages: routines with switches, Setup in place, a tighter Activity Dec 2, 2026
@davidmckayv davidmckayv mentioned this pull request Dec 2, 2026
9 tasks done

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right on screen in both engines and themes, but one red test blocks it. settings-tool-cards-personal.test.tsx reads the Setup screen's text for the Bot's name, and with Setup edited in place the name now sits in an input. Have the test read the field's value; the page is right. Not blocking: (1) update the openbot-screen-layout skill in this PR for in-place free-text fields and a set of buttons in ItemActions, so the skill and code agree; (2) the routine switch duplicates #2704's, so reuse it, including its guard against toggling to the state it's already in; (3) Setup's draft is copied once, so a change to the Bot from elsewhere while the page is open is overwritten on Save; (4) after #2701 lands, add icons to the Computer-state and Bot-routines lists, or #2701 hides their state dot and icons.

…othing for the state they're in; screen-layout skill matches the code
…n now back as a row

- RoutineRow and RoutineSwitch (components/routines/routine-row.tsx): icon tile, the name as the
  link, one line, a default Switch beside the link. The routine, goal and check-in writes are in
  one hook. A failed switch says "Couldn't turn it on. Try again." (or off). Paused rows say
  "Paused · <schedule>". routineCount() is the one count format.
- /routines draws each Bot's rows in one card with RoutineRow.
- Every page's switch says On or Paused. The goal page no longer says Active twice.
- Run now is a row again on the routine, goal and check-in pages. The header keeps the switch,
  and Edit on a routine.
- The goal page's "Its ... start it." line is part of the page description.
- Advanced settings is a ghost Button.
- A run in progress says "Running now" on routine and goal pages.
davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at f92353c: stacked on #2704's row, five then All routines (N), the Setup test reads field values, switches send nothing when already in that state. Holds.

…ude/bot-pages-polish-b9a6b4

# Conflicts:
#	CHANGELOG.md
davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 82b0732: the push only merges main and drops the CHANGELOG edit. The PR's own changes are line-for-line what I approved at f92353c.

davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 5170eb5. The only change from 82b0732 is the lint fix at extraHandlers.test.ts:77 (read the body once, then body?.state).

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
@samjulien
samjulien removed this pull request from the merge queue due to a manual request Dec 2, 2026
…ude/bot-pages-polish-b9a6b4

# Conflicts:
#	app/tests/bot-routines-summary.test.tsx

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 1149cf3. With #2704 on main the PR got smaller. The only new line is the routines-summary test conflict, which keeps this PR's version.

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
timothybrush pushed a commit to timothybrush/OpenBot that referenced this pull request Dec 2, 2026
…it stopped (CopilotKit#2763)

A pull request's run stops at its first failure, and GitHub records the job that stopped it as
cancelled, like every job it stopped. On CopilotKit#2706 a lint failure stopped the run three times and it
read as cancelled from outside: verify split "format, lint, types" at its commas and listed `tests`,
which failed only because its shards were cancelled.

verify now prints one line per job, with the step that failed: "Stopped the run: format, lint,
types failed at "Run bun run lint"", then any other job that failed before the stop. Jobs that
started after the stop, and `tests` when a shard did not pass, are left out. A run cancelled with no
failed job says so. The lines go on verify's job and at the top of the run's summary.

Tested by running verify's own step on the job lists GitHub returned for four real runs.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit ce5fa75 Dec 2, 2026
37 checks passed
@samjulien
samjulien deleted the claude/bot-pages-polish-b9a6b4 branch December 2, 2026 06:31
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.

2 participants