feat(schedules): remove save button for schedules, couple schedule deployment with workflow deployment#2566
Merged
waleedlatif1 merged 6 commits intostagingfrom Dec 24, 2025
Merged
Conversation
…ployment with workflow deployment
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR couples schedule deployment with workflow deployment, removing the separate "Save" button for schedules. Key Changes:
Architecture: Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant DeployHook as useDeployment
participant PreDeploy as runPreDeployChecks
participant API as /api/workflows/[id]/deploy
participant Validation as validateWorkflowSchedules
participant Deploy as createSchedulesForDeploy
participant DB as Database
User->>DeployHook: Click Deploy
alt Already Deployed (Redeploy)
DeployHook->>PreDeploy: Validate client-side
PreDeploy->>Validation: Check schedule config
Validation-->>PreDeploy: Result
PreDeploy-->>DeployHook: Pass/Fail
alt Validation Failed
DeployHook-->>User: Show error notification
else Validation Passed
DeployHook-->>User: Open deploy modal
end
else First Deploy
DeployHook->>API: POST /deploy
API->>Validation: validateWorkflowSchedules
Validation-->>API: isValid
alt Invalid Schedule
API-->>DeployHook: 400 Error
DeployHook-->>User: Show error
else Valid
API->>DB: deployWorkflow
API->>Deploy: createSchedulesForDeploy
Deploy->>DB: UPSERT schedule records
Deploy-->>API: ScheduleDeployResult
API-->>DeployHook: Success + schedule info
DeployHook-->>User: Open deploy modal
end
end
|
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@greptile |
...ents/panel/components/editor/components/sub-block/components/schedule-info/schedule-info.tsx
Outdated
Show resolved
Hide resolved
Collaborator
Author
|
@greptile |
5094808 to
9625db5
Compare
This was referenced Dec 24, 2025
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. Added unit tests
Checklist