-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Currently the following tasks which are defined in the orchestrator-core show a 'Start workflow' button instead of a 'Start task' button - which is the correct button for tasks
This seems to be the case for the following tasks:
// orchestrator-ui/pages/tasks/new/[taskName].tsx
const pydanticWorkflows = [
'task_create_az',
'task_export_subscriptions_by_customer',
'task_export_subscriptions_by_node',
'task_export_surf_network_usage',
'task_update_surf_net_txt_record',
'task_validate_product_type',
];The solution is to adjust the Footer component which currently doesn't include isTask property which should be used to check wether to render a 'Start workflow' or 'Start task' button
packages/orchestrator-ui-components/src/components/WfoPydanticForm/Footer.tsx
Edit by Ruben: Related to this is the button texts for CIM forms. Uniforms allowed for button texts to be provided in the form definitions so a button could read 'Create ticket' or anything provided by the form. We have dropped this functionality for now but we might want to bring it back?