Files
Saadi Myftija 28b6be2491 feat: introduce run templates for reusing test run configs (#2253)
* Add new prisma model for task run templates

* Create run templates in a new service

* Add modal to create run templates in the test page

* Show templates list and apply values when selected

* Hide template creation time in the dropdown list, only show date

* Enable deleting run templates

* Show success toast on template creation

* Validate template label length

* Improve the template creation success indicator

* Use formAction consistently to differentiate submissions

* Type formAction for better editor support

* Prettify run template payload and metadata

* Add triggerSource, concurrencyKey and ttl to run templates
2025-07-09 19:09:25 +02:00

15 lines
361 B
TypeScript

import { z } from "zod";
import { TestTaskData } from "./testTask";
export const RunTemplateData = TestTaskData.and(
z.object({
label: z.string().max(42, "Labels can be at most 42 characters long"),
})
);
export type RunTemplateData = z.infer<typeof RunTemplateData>;
export const DeleteTaskRunTemplateData = z.object({
templateId: z.string(),
});