fix(import): preserve workflow colors during import#3130
Merged
waleedlatif1 merged 2 commits intostagingfrom Feb 4, 2026
Merged
fix(import): preserve workflow colors during import#3130waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR fixes workflow color preservation during import by passing the color directly to the workflow creation API instead of using a separate PATCH request afterward. Changes:
Impact:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant ImportHook as useImportWorkflow
participant CreateMutation as createWorkflowMutation
participant API as /api/workflows
participant StateAPI as /api/workflows/{id}/state
User->>ImportHook: Import workflow file
ImportHook->>ImportHook: Parse workflow JSON
ImportHook->>ImportHook: Extract color from metadata
Note over ImportHook: Before: color passed via PATCH<br/>After: color passed directly
ImportHook->>CreateMutation: mutateAsync({color, ...})
CreateMutation->>API: POST /api/workflows<br/>{name, color, workspaceId, ...}
API-->>CreateMutation: {id, name, color, ...}
CreateMutation-->>ImportHook: result with workflow id
rect rgb(240, 255, 240)
Note over ImportHook: Removed: PATCH call<br/>if color !== '#3972F6'
end
ImportHook->>StateAPI: PUT /api/workflows/{id}/state
StateAPI-->>ImportHook: Success
ImportHook-->>User: Workflow imported with correct color
|
Collaborator
Author
|
@cursor review |
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
Type of Change
Testing
Tested manually
Checklist