improvement(selectors): simplify selector context + add tests#3453
improvement(selectors): simplify selector context + add tests#3453icecrasher321 merged 3 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Renames selector context credential field from Adds Vitest coverage for context extraction/canonical mapping and validates that Written by Cursor Bugbot for commit adea9db. Configure here. |
Greptile SummaryThis PR consolidates selector context handling across the codebase in two related ways: (1) it renames Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["SubBlock / WorkflowBlock\n(dependencyValues)"] -->|"credential subblock value"| B["buildSelectorContextFromBlock\n(context.ts)"]
B -->|"canonicalIndex.canonicalIdBySubBlockId\n'credential' → 'oauthCredential'"| C{"SELECTOR_CONTEXT_FIELDS\n.has(canonicalKey)?"}
C -->|"yes"| D["SelectorContext\n{ oauthCredential: value, ... }"]
C -->|"no"| E["Skipped"]
D --> F["resolveSelectorForSubBlock\n(resolution.ts)"]
D --> G["useSelectorSetup\n(use-selector-setup.ts)"]
F --> H["SelectorRegistry\nfetchList / fetchById\n(registry.ts)"]
G --> H
H -->|"context.oauthCredential → API calls"| I["External Service API\n(Slack, Notion, Google, etc.)"]
|
|
bugbot run |
|
bugbot run |
Summary
Selector context consolidation and rename credentialId context param to the correct canonicalParamId. Added test to make sure ids added to selector context fields are always
Type of Change
Testing
Tested manually
Checklist