This commit is contained in:
Your Name committed 2026-10-06 15:35:04 +07:00
1 parent 230716933e
commit 3bbe2bb35e
16 files changed
+1815 -109

No files matched your search

+20 -2
View File
@@ -716,7 +716,7 @@ export const EditorialTileSectionPayloadSchema = z.object({
description: LocalizedStringSchema,
imageUrl: z.string().min(1),
imagePosition: z.enum(['left', 'right']),
imageAspectRatio: z.enum(['square', 'portrait', 'tall', 'auto']).optional(),
imageAspectRatio: z.enum(['landscape', 'wide', 'square', 'portrait', 'tall', 'auto']).optional(),
buttonText: LocalizedStringSchema.optional(),
buttonLink: z.string().optional(),
backgroundColor: z.string().optional(),
@@ -728,13 +728,18 @@ export const FeaturedTilesSectionPayloadSchema = z.object({
title: LocalizedStringSchema.optional(),
subtitle: LocalizedStringSchema.optional(),
columns: z.number().optional().default(2),
layoutPreset: z.enum(['editorial', 'spotlight', 'custom']).optional(),
textAlign: z.enum(['left', 'center', 'right']).optional(),
ctaStyle: z.enum(['arrow_link', 'pill_button', 'solid_button', 'none']).optional(),
imageAspectRatio: z.enum(['landscape', 'wide', 'square', 'portrait', 'tall', 'auto']).optional(),
imageRounded: z.enum(['none', 'sm', 'md', 'xl', '2xl', '3xl', 'full']).optional(),
backgroundColor: z.string().optional(),
textColor: z.string().optional(),
tiles: z.array(z.object({
title: LocalizedStringSchema,
description: LocalizedStringSchema.optional(),
imageUrl: z.string().min(1),
imageAspectRatio: z.enum(['square', 'portrait', 'tall', 'auto']).optional(),
imageAspectRatio: z.enum(['landscape', 'wide', 'square', 'portrait', 'tall', 'auto']).optional(),
buttonText: LocalizedStringSchema.optional(),
buttonLink: z.string().optional(),
})).min(1)
@@ -1366,3 +1371,16 @@ export const CATEGORY_SECTION_TYPES = [
'CUSTOM',
] as const;
export type CategorySectionType = typeof CATEGORY_SECTION_TYPES[number];
export interface LlmPrompt {
id: number;
title: string;
category: 'navigation' | 'catalog' | 'theme' | 'copywriting' | 'cms' | 'translation' | 'custom';
description: string | null;
tags: string[];
content: string;
isSystem: boolean;
createdAt: string;
updatedAt: string;
}