-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[UI v2] feat: Adds component for change-flow-run-state option #16611
Conversation
11ebffe
to
00ac211
Compare
00ac211
to
c6d48fb
Compare
d522778
to
618969e
Compare
618969e
to
d2e07fd
Compare
...ange-flow-run-state-fields/automations-wizard-action-change-flow-run-state-message-field.tsx
Outdated
Show resolved
Hide resolved
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.
Looks like this file was deleted and not recreated.
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.
Some of these files got moved as part of automations-wizard-action-type-select.tsx
and automations-wizard-action-step.tsx
.
I'm trying to figure out how I should write stories & tests since they're part of a form
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.
Looks like this file was deleted and not recreated.
ui-v2/src/components/automations/automations-wizard/automations-wizard-action-step/index.ts
Outdated
Show resolved
Hide resolved
onSubmit, | ||
}: AutomationWizardActionStepProps) => { | ||
const form = useForm<z.infer<typeof ActionsSchema>>({ | ||
resolver: zodResolver(ActionsSchema), |
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.
Should the schema used change based on the action type that is selected?
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.
When trying this out, I think having
export const ActionsSchema = z.union([
ChangeFlowRunStateSchema,
DeploymentsSchema,
RunDeploymentsSchema,
WorkPoolSchema,
WorkQueueSchema,
AutomationSchema,
SendNotificationSchema,
FlowRunSchema,
]);
in action-type-schemas
gives a similar UI. the schema will be based on the type
field from type narrowing.
d2e07fd
to
9859d87
Compare
2c84b24
to
1916e56
Compare
Re-organized folder such that all action related components are in |
1916e56
to
40b742b
Compare
...utomations/automations-wizard/action-step/action-change-flow-run-state-fields/flow-states.ts
Outdated
Show resolved
Hide resolved
…p/action-change-flow-run-state-fields/flow-states.ts Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
059d29c
to
0258ab4
Compare
Change flow run's state
Screen.Recording.2025-01-05.at.9.51.07.AM.mov
Checklist
<link to issue>
"mint.json
.Relates to #15512