Put headings in new task form pages (#895)

This commit is contained in:
Kerem Yilmaz
2024-10-02 08:27:33 -07:00
committed by GitHub
parent 054de55b11
commit c5399e73a1
2 changed files with 63 additions and 48 deletions

View File

@@ -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>
);
}

View File

@@ -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>
);
}