Commit 6abcf82
feat(workflows): sim trigger, logs v2 block, toolbar renaming (#4941)
* feat(workflows): sim trigger, logs v2 block, toolbar renaming
* fix(review): bound rule queries, canonical logs params, watched-workflow SQL scoping
Code-review fixes: read the canonical workflowIds param in logs_v2 (the
serializer deletes the source pair ids), aggregate failure-rate in the DB
and switch rule windows to the indexed startedAt column, clamp rule config
to the legacy contract bounds, push no_activity watch scoping into SQL
before the LIMIT, fix the generated sim icon-map key, normalize docs
wording, and drop dead exports.
Co-authored-by: Cursor <cursoragent@cursor.com>
* address comments
* fix(review): integer rule rounding, success-gated workflow labels, display module hygiene
Second-pass review fixes: round integer rule fields so fractional input
never reaches SQL LIMIT, gate workflow-name readiness on a successful
non-placeholder load in both editor and preview (errored loads mislabeled
valid workflows as deleted), lazily read the variables store in preview
rows, move the filter-field JSON preview into the shared display module
and unexport its single-consumer helpers, and align >= boundary copy
(failure rate, error count, cooldown window) with implementation.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore: sync lockfile after staging merge
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(workspace-events): keyset-paginate the no_activity subscription scan
A fixed LIMIT 500 with no ORDER BY silently starved subscriptions beyond
the cap once the global count exceeded it. The poll now pages by webhook
id so every subscription is visited each cycle; pagination bounds memory,
not total work.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(workspace-events): keyset-paginate the watched-workflow scan
The 500-row LIMIT silently and deterministically excluded high-id
workflows from no_activity coverage in watch-everything subscriptions on
large workspaces. The scan now pages by workflow id, mirroring the
subscription scan; per-workflow checks move into a helper so the
pagination loop stays flat.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(workspace-events): skip no_activity subscriptions on the execution-completion path
no_activity is poller-owned and can never fire from a completed execution,
but it passed into the rule branch and cost a pointless cooldown point-read
per subscription on the hottest path. Early-continue alongside the
workflow_deployed guard.
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs(sim-trigger): note failure-based alert conditions evaluate on failed runs
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(blocks): recategorize Data Enrichment as a core block
It's a Sim-native capability (registry enrichments over a managed provider
cascade, like Search), not a third-party integration. Moves it to Core
Blocks in the toolbar, out of the integrations catalog, and relocates its
docs page to blocks/ with the icon-map allowlist keeping the docs card icon.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(blocks): recategorize MySQL, PostgreSQL, SFTP, SMTP, SSH as integrations
External-system connectors with host/credential auth belong under
Integrations, not Core Blocks — consistent with MongoDB, Redis,
ClickHouse, and the other datastore integrations. They already carried
integrationType and /tools docsLinks; the regenerated docs pages turn
those previously-dangling links into real pages, and the blocks join the
integrations catalog and icon maps.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 540e608 commit 6abcf82
113 files changed
Lines changed: 22312 additions & 5836 deletions
File tree
- apps
- docs
- components
- ui
- content/docs/en
- blocks
- execution
- tools
- triggers
- sim
- app
- api
- emails/preview
- logs/by-execution/[executionId]
- webhooks/trigger/[path]
- workspace-events/poll
- workspaces/[id]/notifications
- [notificationId]
- test
- workspace/[workspaceId]
- logs
- components
- logs-toolbar
- components/notifications
- components
- slack-channel-selector
- workflow-selector
- w
- [workflowId]/components
- panel/components
- editor/components/sub-block/components/dropdown
- toolbar
- workflow-block
- components/preview/components/preview-workflow
- components/block
- background
- blocks
- blocks
- components
- emails
- notifications
- hooks/queries
- lib
- api/contracts
- integrations
- logs
- execution
- notifications
- webhooks
- workflows
- blocks
- orchestration
- subblocks
- triggers
- workspace-events
- workspaces
- tools
- logs
- triggers
- sim
- helm/sim
- packages
- audit/src
- db
- migrations
- meta
- testing/src/mocks
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6823 | 6823 | | |
6824 | 6824 | | |
6825 | 6825 | | |
| 6826 | + | |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
6826 | 6849 | | |
6827 | 6850 | | |
6828 | 6851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
| 184 | + | |
180 | 185 | | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| |||
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
| 383 | + | |
376 | 384 | | |
377 | 385 | | |
378 | 386 | | |
| |||
402 | 410 | | |
403 | 411 | | |
404 | 412 | | |
| 413 | + | |
405 | 414 | | |
406 | 415 | | |
407 | 416 | | |
| 417 | + | |
408 | 418 | | |
409 | 419 | | |
410 | 420 | | |
| 421 | + | |
411 | 422 | | |
| 423 | + | |
412 | 424 | | |
413 | 425 | | |
414 | 426 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments