Repository navigation
Routines: on/off and next run on every row, compact routine page, New routine on one screen - #2704
Merged
Merged
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.
samjulien
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb and
tylerslaton
as code owners
December 2, 2026 00:08
davidmckayv
previously approved these changes
Dec 2, 2026
davidmckayv
left a comment
Contributor
There was a problem hiding this comment.
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.
9 tasks done
9 tasks done
…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.
samjulien
added a commit
that referenced
this pull request
Dec 2, 2026
davidmckayv
previously approved these changes
Dec 2, 2026
davidmckayv
left a comment
Contributor
There was a problem hiding this comment.
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
approved these changes
Dec 2, 2026
davidmckayv
left a comment
Contributor
There was a problem hiding this comment.
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.
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.
2 tasks done
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.
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsxexports: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 defaultSwitchbeside the link, never inside it. A goal row reads its own triggers for its starts.RoutineSwitch({ row, control? })anduseRoutineSwitch(row): the routine, goal and check-in writes in one place. A failed switch says "Couldn't turn it on. Try again." (or "off"), throughloadFailure, 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.tsxkeepsGroupRowas a thin alias, so the Bot page onmainstill builds until #2706 switches toRoutineRow./routinesPageShellheader ("Routines", left-aligned). The type-to-create box is still the first content.PageRows).GET /bots/{id}, an existing read). "A Bot" shows only while that read loads, or if it fails.Dark:
Routine, goal and check-in pages
Bottom of the page:



Dark:
Goal:
Check-in:
/routines/newButton. 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.Advanced settings open:

Dark:
Overlaps and what is not in this PR
bot-profile/activity.tsx, Bot pages: routines with switches, Setup in place, a tighter Activity #2706) and the sidebar's "Working" status (app-sidebar/channel-item-content.tsx, Conversations panel: labeled New conversation and Search rows, Pinned and Recents, status in place of the age #2696) still use their own words.RoutinesList,/bots/:id/routines) still says "· Acts" on its rows. That is the Bot pages PR's area.Where it runs
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json. One existing read (GET /bots/{id}) is now also used to name a Bot that neither Bot list has.Changelog
Routines.
Proof
bun run typecheckinapp/,biome formatandbiome lint --error-on-warnings: clean.nextRunWordscases; 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).