Skip to content

[local-explorer-ui] Adds the Cron Trigger group to the Local Explorer - #15652

Merged
tpmmorris merged 18 commits into
mainfrom
tpmmorris/feat/cron-local-explorer/frontend
Sep 24, 2026
Merged

tpmmorris merged 18 commits into
mainfrom
tpmmorris/feat/cron-local-explorer/frontend

Conversation

@tpmmorris

@tpmmorris tpmmorris commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Cron Trigger group to the local explorer | Internal SPEC

Provides interface for users to test configured crons, and create custom crons ad-hoc for quick testing without having to reconfigure the worker every time a user wants to experiment with a new cron.

Two tabs are provided, Configured Crons and Ad-Hoc Triggers. A Configured Cron is one which is defined by the user in the Worker's config file. An Ad-Hoc Trigger is a transient cron defined and manipulated from the Local Explorer UI, it it not written to the config.

All crons:

  • Can be triggered at an arbitrary time set by the user (in UTC/epoch-milliseconds).

Configured Crons:

  • Lists crons from the selected Worker's triggers.crons config option.

Ad-Hoc Triggers:

  • Allows users to define the cron expression.
    • Can use literal string or the cron expression builder.
  • Can be deleted at any point.

Note

All images in this description come from a WIP UI version.


Cron expression builder for the 7:35AM on the last weekday of each month. The expression stays up to date as the builder is adjusted.


@tpmmorris
tpmmorris added this pull request to stack #15653 September 15, 2026 14:23
@changeset-bot

changeset-bot Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0e18e7b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@cloudflare/local-explorer-ui Minor
miniflare Minor
@cloudflare/deploy-helpers Patch
@cloudflare/pages-shared Patch
@cloudflare/remote-bindings Patch
@cloudflare/runtime-types Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-plugin Patch
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from f09fdf0 to 8b06127 Compare September 17, 2026 15:10
@tpmmorris
tpmmorris marked this pull request as ready for review September 17, 2026 15:16
devin-ai-integration[bot]

This comment was marked as resolved.

@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from 8b06127 to c5ce6e1 Compare September 17, 2026 15:42
@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from c5ce6e1 to 0f8952d Compare September 17, 2026 15:49
@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 17, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15652

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15652

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15652

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15652

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@15652

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15652

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15652

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15652

miniflare

npm i https://pkg.pr.new/miniflare@15652

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15652

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15652

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@15652

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15652

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15652

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15652

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15652

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15652

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15652

wrangler

npm i https://pkg.pr.new/wrangler@15652

commit: 0e18e7b

@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch 2 times, most recently from d771b20 to d99127b Compare September 17, 2026 16:16
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from 2c71700 to 8fba644 Compare September 22, 2026 13:46

@cjol cjol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As discussed, lets:

  • Move "draft" crons to a new ad-hoc triggers page so they're not confused for real crons
  • Persist saved trigger times to the cnfigured crons page so users can trigger frequently-used times
  • Rename pages

@github-project-automation github-project-automation Bot moved this from Untriaged to In Review in workers-sdk Sep 22, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

@tpmmorris
tpmmorris requested a review from cjol September 22, 2026 17:21
Comment thread packages/local-explorer-ui/src/components/cron-triggers/persistence.ts Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/persistence.ts Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/persistence.ts Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/CronTriggersContext.tsx Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/CronTriggersContext.tsx Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/CronTriggersContext.tsx Outdated
Comment thread packages/local-explorer-ui/src/routes/cron-triggers.tsx Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/CronTriggersPage.tsx Outdated
Comment thread packages/local-explorer-ui/src/components/cron-triggers/CronTriggersPage.tsx Outdated
devin-ai-integration[bot]

This comment was marked as resolved.

Comment thread packages/local-explorer-ui/src/components/cron-triggers/cron-builder.ts Outdated
devin-ai-integration[bot]

This comment was marked as resolved.

@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from 9cdec68 to ed14128 Compare September 24, 2026 13:46
devin-ai-integration[bot]

This comment was marked as resolved.

Base automatically changed from tpmmorris/feat/cron-local-explorer/backend to main September 24, 2026 15:03
@tpmmorris
tpmmorris force-pushed the tpmmorris/feat/cron-local-explorer/frontend branch from 6f3422f to 0e18e7b Compare September 24, 2026 15:03
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@workers-devprod workers-devprod 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.

Codeowners reviews satisfied

@tpmmorris
tpmmorris merged commit 44f5295 into main Sep 24, 2026
63 of 64 checks passed
@tpmmorris
tpmmorris deleted the tpmmorris/feat/cron-local-explorer/frontend branch September 24, 2026 15:45
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Sep 24, 2026
brandhaug added a commit to brandhaug/b2b-saas-starter that referenced this pull request Sep 28, 2026
…lpha (#514)

## pnpm-workspace.yaml (default)

## Dependency Updates

| Package | From | To | Type |
| --- | --- | --- | --- |
| `miniflare` | 5.20260921.1-alpha | 5.20260923.0-alpha | minor |

## Release Notes

<details>
<summary><b>miniflare</b> (5.20260921.1-alpha →
5.20260923.0-alpha)</summary>

### Minor Changes

- [#15648](cloudflare/workers-sdk#15648)
[`52c0e9f`](cloudflare/workers-sdk@52c0e9f)
Thanks [@<!---->tpmmorris](https://github.com/tpmmorris)! - Expose
configured Cron Triggers and one-off scheduled dispatch through Local
Explorer

Miniflare's V4 Worker options now accept exact Cron Trigger expressions.
Local Explorer reports them in Worker metadata and can dispatch a
scheduled event to an exact local or peer Worker name with a chosen cron
expression and time.

- [#15652](cloudflare/workers-sdk#15652)
[`44f5295`](cloudflare/workers-sdk@44f5295)
Thanks [@<!---->tpmmorris](https://github.com/tpmmorris)! - Package the
Cron Triggers interface in Local Explorer

The Local Explorer assets now include an interactive Cron Triggers
destination for one-off local scheduled-handler testing.

- [#15786](cloudflare/workers-sdk#15786)
[`bdda4c3`](cloudflare/workers-sdk@bdda4c3)
Thanks [@<!---->ThomasRubini](https://github.com/ThomasRubini)! -
Support UDP connect handlers in local development

The experimental `connect` configuration now accepts `protocol: "udp"`,
with optional `idle_timeout_ms` and `max_pending_bytes` settings. UDP
datagrams are delivered to the Worker's `connect()` handler using
workerd's value-mode socket streams, and can be tested with
`Miniflare#dispatchConnect({ protocol: "udp" })`.

- [#15779](cloudflare/workers-sdk#15779)
[`fc3cbaa`](cloudflare/workers-sdk@fc3cbaa)
Thanks [@<!---->Naapperas](https://github.com/Naapperas)! - Support
`workflow` entries in the `exports` configuration map

A Worker can now declare the Workflows it defines in `exports`, keyed by
the `WorkflowEntrypoint` class name:

  ```jsonc
  {
    "exports": {
      

…[full
notes](https://github.com/cloudflare/workers-sdk/releases/tag/miniflare%405.20260923.0-alpha)

</details>

---
*This PR was auto-generated by
[catalog-update-action](https://github.com/brandhaug/catalog-update-action).*

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants