From 717956d6925629e31fd8e57c97bc3ce5f374f5d8 Mon Sep 17 00:00:00 2001 From: Chandini Date: Wed, 10 Sep 2025 11:04:56 +0530 Subject: [PATCH] changes --- src/components/admin/admin-feature-selection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/admin/admin-feature-selection.tsx b/src/components/admin/admin-feature-selection.tsx index b6d5548..f070a0a 100644 --- a/src/components/admin/admin-feature-selection.tsx +++ b/src/components/admin/admin-feature-selection.tsx @@ -137,7 +137,7 @@ export function AdminFeatureSelection({ template, onBack }: AdminFeatureSelectio } } - const handleAddAIAnalyzed = async (payload: { name: string; description: string; complexity: 'low' | 'medium' | 'high' }) => { + const handleAddAIAnalyzed = async (payload: { name: string; description: string; complexity: 'low' | 'medium' | 'high'; logic_rules?: string[] }) => { // Check if template ID is valid UUID format const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i if (!uuidRegex.test(template.id)) { @@ -153,6 +153,7 @@ export function AdminFeatureSelection({ template, onBack }: AdminFeatureSelectio complexity: payload.complexity, is_default: true, created_by_user: true, + logic_rules: payload.logic_rules, }) await load() } catch (error) {