fix(trigger): show selector display names on canvas for trigger file/sheet selectors#4097
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 5d6bc86. Configure here. |
Greptile SummaryThis PR fixes the canvas preview for trigger blocks showing Confidence Score: 4/5Safe to merge with one minor inconsistency: the Both root causes are correctly diagnosed and the fixes are targeted. The previous thread concern (using apps/sim/lib/workflows/subblocks/visibility.ts — line 290 guard inconsistency Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["resolveDependencyValue(oauthCredential)"] --> B{canonicalId found?}
B -- No --> C[return values at dependencyKey]
B -- Yes --> D["getCanonicalValues(group, values)"]
D --> E["canonicalResult = basicValue OR advancedValue"]
E --> F{"canonicalResult != null\ncurrently uses != null not isNonEmptyValue"}
F -- Yes --> G[return canonicalResult]
F -- No --> H["Fallback scan over canonicalIdBySubBlockId"]
H --> I{"memberId maps to canonicalId AND isNonEmptyValue?"}
I -- Yes --> J["return trigger credential value"]
I -- No --> K[return values at dependencyKey]
style F fill:#f9c,stroke:#c33
style J fill:#9f9,stroke:#393
Reviews (2): Last reviewed commit: "fix(trigger): use isNonEmptyValue in can..." | Re-trigger Greptile |
…isibility contract
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5d6bc86. Configure here.
Summary
Type of Change
Testing
Tested manually
Checklist