Skip to content

Routines: on/off and next run on every row, compact routine page, New routine on one screen - #2704

Merged
samjulien merged 4 commits into
mainfrom
claude/routines-polish-d85ebf
Dec 2, 2026
Merged

samjulien merged 4 commits into
mainfrom
claude/routines-polish-d85ebf

Conversation

@samjulien

@samjulien samjulien commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

Polish for the Routines screens, from the design audit against Claude's Scheduled tasks and ChatGPT's Scheduled page. Web app only. No API or database change.

Shared routine row (for #2706 too)

app/src/components/routines/routine-row.tsx exports:

  • RoutineRow({ row }): one routine, goal or check-in (MergedRoutine). It has an icon tile (ItemMedia variant="icon"), the name as the link, one line, and a default Switch beside the link, never inside it. A goal row reads its own triggers for its starts.
  • RoutineSwitch({ row, control? }) and useRoutineSwitch(row): the routine, goal and check-in writes in one place. A failed switch says "Couldn't turn it on. Try again." (or "off"), through loadFailure, so a server hold is said calmly.
  • routineLine(row, starts): running, a warning, "Paused · ", or the schedule and "Next run in 3 hours".
  • routineCount(n): "1 routine", "3 routines".

bot-group.tsx keeps GroupRow as a thin alias, so the Bot page on main still builds until #2706 switches to RoutineRow.

/routines

  • The standard PageShell header ("Routines", left-aligned). The type-to-create box is still the first content.
  • Each Bot's group: orb, the Bot's real name, "3 routines", then its rows in one card (PageRows).
  • A Bot that neither Bot list has is read on its own (GET /bots/{id}, an existing read). "A Bot" shows only while that read loads, or if it fails.
Before After

Dark:

Routine, goal and check-in pages

  • The header holds the switch, labeled On or Paused on every page, plus Edit on a routine. Run now is a row again, with its sentence.
  • Routine page order: What it does, then Run now / Open conversation / the Bot, then Details, Runs, and Delete in its own section at the bottom.
  • The subtitle no longer ends with "· Acts". The time zone shows only when it differs from the viewer's.
  • Goal page: the switch says On, so "Active" shows once, in the description. "Its events and triggers start it." is a second line of the description, not a line with no heading. A paused goal's description already says nothing starts it.
  • Check-in page: same layout. It reads the Bot's real name instead of "A Bot".
  • A run in progress says "Running now" on the routine and goal pages and in the Last run row.
Before After

Bottom of the page:
Dark:
Goal:
Check-in:

/routines/new

  • One card, labels straight above fields, no help sentence per group. Bot and It should share a row.
  • When is one line of controls: Starts ▾, then Every weekday ▾ 09:00, or Source ▾ and Event, or nothing for Now, once. The time zone is not said, because it is always the viewer's own.
  • Done when, Posts in and Name are under "Advanced settings", a ghost Button. It opens on its own when a draft or the conversation clock filled one of them, and when one of them has a message after Create.
  • The whole form and Create fit an 820px window, with Advanced settings open too.
Before After

Advanced settings open:
Dark:

Overlaps and what is not in this PR

Where it runs

  • New state that outlives a request? None. Front end only. The switches call the existing pause/resume and check-in writes.
  • What happens on the second replica? Nothing new: no server code changes.
  • Anything serialised? No.
  • Anything fanned out to a browser? No. Lists refresh through the existing query invalidation.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. (None added.)
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json. One existing read (GET /bots/{id}) is now also used to name a Bot that neither Bot list has.

Changelog

Routines.

  • Routines shows what is on and what is paused. Each row has its own on/off switch and says when it runs next, or "Paused" and when it would run. A Bot's group heads with its name and "3 routines".
  • A routine's page is shorter. The switch and Edit sit beside its title, what it does comes first, Run now is a row, and Delete is at the bottom of the page. Every switch says On or Paused.
  • New routine fits on one screen. When is one line of controls, and Done when, Posts in and Name are under Advanced settings. Time zones show only when they differ from yours.

Proof

  • bun run typecheck in app/, biome format and biome lint --error-on-warnings: clean.
  • 25 targeted files (routines, routine pages, New routine form, goal page, check-in row, Bot routines summary, plan, failure-said, skins) plus the user-copy guards: all pass.
  • New tests: nextRunWords cases; the count, the per-row switch, "Paused · ", the next-run line, and a failed switch's words.
  • strip-version-layout.test.tsx (browser suite) now waits for the "Routines" heading. I did not run it locally.

Screenshots for each screen are under What this changes (workbench, 1280×820, 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.
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.

Approved; renders cleanly at 390px. Two small copy fixes: bot-group.tsx:99, the switch's accessible label says on whatever the state, so use just the routine's name; bot-group.tsx:95, Couldn't switch it has no next step, so try Couldn't change it. Try again. Conflicts with #2665 in routine-page.tsx.

…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 5288927: one shared RoutineRow and switch, switch labelled with the routine name, On/Paused by the title, Run now a row again. Holds.

@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: since my last approval this push only merges main and drops the CHANGELOG.md edit (the note is in the description). Nothing else changed.

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit e302771 Dec 2, 2026
37 checks passed
@samjulien
samjulien deleted the claude/routines-polish-d85ebf branch December 2, 2026 04:08
davidmckayv added a commit that referenced this pull request Dec 2, 2026
Their first CI run found them stale against changes that landed on main today:

- routine-run-now-layout: a running run now reads "Running now" (#2704).
- plan-notices-layout: the trial-used-up dialog says it in one sentence, "All 500 Bot runs in your
  free trial are used." (#2692), as the suite's plan-free-trial.test.tsx reads it.
- artifacts-screens: Back's focus reaches the tile that opened the artifact a moment after the
  address changes, once the list is drawn again; the case read it at once, while it was still on
  Back. It waits for it now, up to 5 s, and fails when the list's focus call is taken out.
davidmckayv added a commit that referenced this pull request Dec 2, 2026
Their first CI run found them stale against changes that landed on main today:

- routine-run-now-layout: a running run now reads "Running now" (#2704).
- plan-notices-layout: the trial-used-up dialog says it in one sentence, "All 500 Bot runs in your
  free trial are used." (#2692), as the suite's plan-free-trial.test.tsx reads it.
- artifacts-screens: Back's focus reaches the tile that opened the artifact a moment after the
  address changes, once the list is drawn again; the case read it at once, while it was still on
  Back. It waits for it now, up to 5 s, and fails when the list's focus call is taken out.
davidmckayv added a commit that referenced this pull request Dec 2, 2026
Their first CI run found them stale against changes that landed on main today:

- routine-run-now-layout: a running run now reads "Running now" (#2704).
- plan-notices-layout: the trial-used-up dialog says it in one sentence, "All 500 Bot runs in your
  free trial are used." (#2692), as the suite's plan-free-trial.test.tsx reads it.
- artifacts-screens: Back's focus reaches the tile that opened the artifact a moment after the
  address changes, once the list is drawn again; the case read it at once, while it was still on
  Back. It waits for it now, up to 5 s, and fails when the list's focus call is taken out.
felixpy pushed a commit to felixpy/OpenBot that referenced this pull request Dec 2, 2026
…e shards (CopilotKit#2780)

* Bring six never-run browser tests up to the app as it is, and hold the app's Desktop calls to the real shell

* Run 33 browser tests no CI job named, in the WebKit job split into three shards

* Bring three more never-run browser tests up to today's app

Their first CI run found them stale against changes that landed on main today:

- routine-run-now-layout: a running run now reads "Running now" (CopilotKit#2704).
- plan-notices-layout: the trial-used-up dialog says it in one sentence, "All 500 Bot runs in your
  free trial are used." (CopilotKit#2692), as the suite's plan-free-trial.test.tsx reads it.
- artifacts-screens: Back's focus reaches the tile that opened the artifact a moment after the
  address changes, once the list is drawn again; the case read it at once, while it was still on
  Back. It waits for it now, up to 5 s, and fails when the list's focus call is taken out.

* Open folds before reading inside them, in the browser tests CopilotKit#2782 left unopened

CopilotKit#2782 draws what a folded line holds only once it is opened (`useDrawnOnceOpened`), so a long
turn's steps are not all on the page at once. Three browser tests no job ran read inside closed
folds, and the merge queue's run of this pull request on top of it failed them:

- run-ended-unheard-layout: openTo opens the closed lines on screen a level at a time until the
  step is drawn, and leaves the step's own line for the test to open.
- browse-steps-layout and work-folded-layout: the rows drawn on opening are styled too (each test
  builds the app's stylesheet for the classes on the page).
- work-folded-layout: folded, no command's card is out of a fold, and nothing of the work is on
  screen; it no longer waits for the cards to be drawn while folded, which is what CopilotKit#2782 stopped.
  Opened, the three commands are listed and each opens to its terminal inside the column, as before.

* Invitations from the organization switcher, and openTo waits for the page

The merge queue's run failed two things:

- sidebar-current-row: CopilotKit#2644 moved Invitations into the account menu's organization switcher. The
  test opens the menu, styles it, then opens the switcher and chooses Invitations, and waits for
  both menus to close.
- no-fixed-settle-waits: run-ended-unheard's openTo waited a fixed 250 ms while the finished turn
  was still being drawn. It waits for a closed line, or for what it is after, instead.
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