Repository navigation
Bot pages: routines with switches, Setup in place, a tighter Activity - #2706
Conversation
… 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
…d Setup's one Save
davidmckayv
left a comment
There was a problem hiding this comment.
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.
… is edited in place
…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.
…ps as sections, one Open, routine words; workbench computer status follows its list
…ude/bot-pages-polish-b9a6b4 # Conflicts: # CHANGELOG.md
…ude/bot-pages-polish-b9a6b4 # Conflicts: # app/tests/bot-routines-summary.test.tsx
…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.
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 switchesThe 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 withroutineCount("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.
/bots/:id/setup: fields in place, one SaveFor 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
updateBotcall. 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-layoutProcedure 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 inItemActions, wrapping on a narrow window./bots/:id/activity: words, actions and one button styleTaskRow, so Needs you's task rows get the same.outline). It wasghostbeside Cancel andoutlineon a task.PageSectionwith its title, the layout skill's own pattern. Its spacing isPageSection'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./bots/:id/computer: its state firstThe 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,
readyfor 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 readsabsent, 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.
/bots/:id/skills: counts beside the headingsEach heading says how many it lists, for example "Skills it has 22".
PageSectiongets one optional prop for this,count, drawn muted inside the title's<h2>; nothing else inPageSectionchanges, since #912 rewrites its headings. The Apps page's "Apps it can use" gets it too, since it is the same component.Notes for review
workbench/pageDefaults.test.tsfails onmaintoo (the 1Password page commands have no default yet). Not from this PR.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json. Every call is one the web app already makes.Changelog
Bot pages.
Proof
bun run typecheckinapp/andtypecheck:desktop-workbench: clean.bunx biome lint --error-on-warnings .andbunx biome format .: clean.bot-*,bots-*,activity-*,routine*,goal-page*,new-routine*,task*,needs-you*,skills-*,ui-look*,color-scheme,design-tokenstest, and every test that drawsTaskRow,SetupSections,PageSectionorRoutineRow. The workbench's own tests pass butpageDefaults(above).OPENBOT_APP_BROWSER=1):bot-long-instructions-layoutandsettings-tool-cards-personalpass.