improvement(preview): added trigger mode context for deploy preview#3177
improvement(preview): added trigger mode context for deploy preview#3177waleedlatif1 merged 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile OverviewGreptile SummaryThis PR updates the deploy preview sidebar to derive a block’s “trigger-mode context” and filter subblocks accordingly (including a special-case for legacy It also adjusts the Key integration surface: PreviewEditorContent’s subblock visibility now depends on Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Preview as PreviewEditorContent
participant TriggerUtils as TriggerUtils.isTriggerBlock
participant Blocks as getBlock(type)
participant Editor as useEditorSubblockLayout
Preview->>Blocks: getBlock(block.type)
Preview->>TriggerUtils: isTriggerBlock(block)
TriggerUtils->>Blocks: getBlock(block.type)
TriggerUtils-->>Preview: effectiveTrigger (bool)
Preview-->>Preview: filter subBlocks (trigger-config/mode)
Editor-->>Editor: uses displayTriggerMode (from UI state)
Editor-->>Editor: filter subBlocks (mode/trigger-config)
Note over Preview,Editor: Preview and Editor may compute different trigger context
|
...pp/workspace/[workspaceId]/w/components/preview/components/preview-editor/preview-editor.tsx
Show resolved
Hide resolved
|
@greptile |
|
@cursor review |
...mponents/panel/components/editor/components/sub-block/components/short-input/short-input.tsx
Show resolved
Hide resolved
...pp/workspace/[workspaceId]/w/components/preview/components/preview-editor/preview-editor.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Summary
Type of Change
Testing
Tested manually
Checklist