Put headings in new task form pages (#895)
This commit is contained in:
@@ -31,10 +31,15 @@ function CreateNewTaskFormPage() {
|
||||
|
||||
if (sampleCases.includes(template as SampleCase)) {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<header>
|
||||
<h1 className="text-3xl">Create New Task</h1>
|
||||
</header>
|
||||
<CreateNewTaskForm
|
||||
key={template}
|
||||
initialValues={getSampleForInitialFormValues(template as SampleCase)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -53,6 +58,10 @@ function CreateNewTaskFormPage() {
|
||||
const maxStepsOverride = data.workflow_definition.blocks[0].max_steps_per_run;
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<header>
|
||||
<h1 className="text-3xl">Edit Task Template</h1>
|
||||
</header>
|
||||
<SavedTaskForm
|
||||
initialValues={{
|
||||
title: data.title,
|
||||
@@ -72,6 +81,7 @@ function CreateNewTaskFormPage() {
|
||||
errorCodeMapping: JSON.stringify(errorCodeMapping, null, 2),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@ function RetryTask() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<header>
|
||||
<h1 className="text-3xl">Rerun Task</h1>
|
||||
</header>
|
||||
<CreateNewTaskForm
|
||||
initialValues={{
|
||||
url: task.request.url,
|
||||
@@ -40,6 +44,7 @@ function RetryTask() {
|
||||
: "",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user