-
Notifications
You must be signed in to change notification settings - Fork 3.3k
improvement(note): icon in preview #3075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Conversation
Co-authored-by: emir <[email protected]>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cursor review |
|
@greptile |
Greptile OverviewGreptile SummaryConditionally hides the icon in note block headers within the workflow preview component to match how note blocks appear on the canvas (where they only show the title without an icon). Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant PreviewWorkflow
participant PreviewBlock
participant BlockConfig
User->>PreviewWorkflow: View workflow preview
PreviewWorkflow->>PreviewBlock: Render block with data
PreviewBlock->>BlockConfig: getBlock(type)
BlockConfig-->>PreviewBlock: Return block config with icon
alt Block type is 'note'
PreviewBlock->>PreviewBlock: Set isNoteBlock = true
PreviewBlock->>PreviewBlock: Skip icon rendering
PreviewBlock-->>User: Display note block (title only)
else Block type is not 'note'
PreviewBlock->>PreviewBlock: Set isNoteBlock = false
PreviewBlock->>PreviewBlock: Render icon with title
PreviewBlock-->>User: Display block (icon + title)
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
Summary
Hides the icon for note blocks in the workflow preview to match the visual representation of note blocks on the canvas. This ensures consistency across the UI.
Type of Change
Testing
The change was verified by running lint and type checks. Manually confirmed that note blocks in the preview no longer display an icon.
Checklist
Screenshots/Videos