From eacfd773db2cdf1140f40a792b43d030a2dac1c3 Mon Sep 17 00:00:00 2001 From: giurgiur99 Date: Tue, 6 Oct 2026 08:57:09 +0300 Subject: [PATCH] add order for templates --- src/@types/C2D/ServiceOnDemand.ts | 1 + src/utils/config/schemas.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/@types/C2D/ServiceOnDemand.ts b/src/@types/C2D/ServiceOnDemand.ts index ba440671d..22d27fcec 100644 --- a/src/@types/C2D/ServiceOnDemand.ts +++ b/src/@types/C2D/ServiceOnDemand.ts @@ -76,6 +76,7 @@ export interface ServiceTemplate { category?: ServiceTemplateCategory includes?: TemplateIncludedItem[] // bundles only: manifest of what the command downloads unlisted?: boolean // true: left out of the catalogue listing, still reachable by a direct link + order?: number // catalogue position, lowest first; entries without one follow, in node order // Image specification — exactly one of (tag | checksum | dockerfile) must be set: image: string // base image name tag?: string // e.g. "latest" — mutually exclusive with checksum/dockerfile diff --git a/src/utils/config/schemas.ts b/src/utils/config/schemas.ts index 9a7d9a6bf..977bbf01a 100644 --- a/src/utils/config/schemas.ts +++ b/src/utils/config/schemas.ts @@ -451,6 +451,8 @@ export const ServiceTemplateSchema = z includes: z.array(TemplateIncludedItemSchema).optional(), // true: left out of the dashboard catalogue, still reachable by a direct link unlisted: z.boolean().optional(), + // catalogue position, lowest first; entries without one follow, in node order + order: z.number().int().optional(), image: z.string().min(1), tag: z.string().min(1).optional(), checksum: z