feat(workflow): curated 'Common steps' section in the component picker#2614
Open
simlarsen wants to merge 1 commit into
Open
feat(workflow): curated 'Common steps' section in the component picker#2614simlarsen wants to merge 1 commit into
simlarsen wants to merge 1 commit into
Conversation
…s" section Opening the picker means facing a very long list — the static components plus up to eleven database operations for every model that enables workflows (hundreds of near-identical entries). This surfaces the ~dozen steps most authors actually reach for at the top, so the common case is one glance away. - Pure getCommonComponents(components, componentType) returns a curated, ordered subset (Slack, Email, API GET/POST, If/Else, JavaScript, Log, Run Workflow, Sleep for components; Schedule, Webhook, Manual for triggers), skipping any id not present so it can never surface a broken entry. - ComponentsModal renders it as a "Common steps" section at the top of the list, hidden while searching (search stays a flat ranked list). It's a pure shortcut — the full catalog still lists everything below, so no component is removed, renamed, or morphed (zero fidelity risk, unlike a full block collapse). Tests: getCommonComponents (curated order, trigger vs component filtering, never surfaces non-curated, empty when absent). 95 workflow tests pass; tsc + eslint clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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.
Tames the overwhelming component picker — the safe slice of the "catalog collapse". Stacked on #2613.
What
Opening the picker means facing a very long list: the static components plus up to eleven database operations for every model that enables workflows (hundreds of near-identical entries). This surfaces the ~dozen steps most authors actually reach for at the top.
getCommonComponents(components, componentType)returns a curated, ordered subset — Slack, Email, API GET/POST, If/Else, JavaScript, Log, Run Workflow, Sleep (components); Schedule, Webhook, Manual (triggers) — skipping any id not present, so it can never surface a broken entry.ComponentsModalrenders it as a "Common steps" section at the top, hidden while searching (search stays a flat ranked list).Why this and not the full block-collapse
It's a pure shortcut — the full catalog still lists everything below, so no component is removed, renamed, or morphed. That means zero fidelity risk, unlike the ~15-block collapse (which would have to reproduce the exact id/args/ports of every model permutation and keep a legacy loader). This delivers most of the "don't drown in hundreds of entries" value safely; the full morph-based collapse remains a larger, app-QA follow-up.
Verification
getCommonComponents(4 tests): curated order preserved; trigger vs component filtering; never surfaces a non-curated component; empty when none present.tsc✓,eslint✓.🤖 Generated with Claude Code