improvement(note): icon in preview#3075
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 30, 2026
Merged
Conversation
Co-authored-by: emir <emir@simstudio.ai>
|
Cursor Agent can help with this pull request. Just |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
|
@cursor review |
Collaborator
|
@greptile |
Contributor
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
|
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.
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