-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: custom-cron-ui #15786
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: main
Are you sure you want to change the base?
fix: custom-cron-ui #15786
Conversation
...wenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx
Outdated
Show resolved
Hide resolved
Greptile OverviewGreptile SummaryThis PR improves the custom CRON trigger UI by replacing the generic Key Changes:
Issues Found:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant WorkflowEditTriggerCronForm
participant FormSelectFieldInput
participant CronExpressionHelperLazy
participant CronExpressionHelper
User->>WorkflowEditTriggerCronForm: Select "Cron (Custom)" interval
WorkflowEditTriggerCronForm->>FormSelectFieldInput: Render with hint prop
FormSelectFieldInput->>FormSelectFieldInput: Display select dropdown
FormSelectFieldInput->>FormSelectFieldInput: Render hint below select
FormSelectFieldInput-->>WorkflowEditTriggerCronForm: User selects "CUSTOM"
WorkflowEditTriggerCronForm->>WorkflowEditTriggerCronForm: Call getTriggerScheduleDescription()
WorkflowEditTriggerCronForm->>WorkflowEditTriggerCronForm: Call convertScheduleToCronExpression()
WorkflowEditTriggerCronForm->>WorkflowEditTriggerCronForm: Update trigger settings
WorkflowEditTriggerCronForm->>CronExpressionHelperLazy: Render with isScheduleVisible=false
CronExpressionHelperLazy->>CronExpressionHelper: Pass props (trigger, isScheduleVisible, isUpcomingExecutionVisible)
CronExpressionHelper->>CronExpressionHelper: Call convertScheduleToCronExpression()
CronExpressionHelper->>CronExpressionHelper: Call getTriggerScheduleDescription()
alt isScheduleVisible is true
CronExpressionHelper->>User: Display Schedule section
end
alt isUpcomingExecutionVisible is true
CronExpressionHelper->>User: Display Upcoming Execution Time section
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.
4 files reviewed, 2 comments
...wenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx
Outdated
Show resolved
Hide resolved
...wenty-front/src/modules/workflow/workflow-trigger/components/WorkflowEditTriggerCronForm.tsx
Outdated
Show resolved
Hide resolved
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:9977 This environment will automatically shut down when the PR is closed or after 5 hours. |
Fixes #14723
Summary
Fixes a UI while creating a custom CRON
Changes Made
WorkflowEditTriggerCronForm.tsxto use the predefinedFormSelectFieldInput.tsxinstead of usingSelect.tsxhintprop toFormSelectFieldInput.tsxUpcoming execution timeScheduleandUpcoming Execution TimeSchedulesection is not rendered in Custom CronSteps to Reproduce (Before Fix)
Before
After