From c7ffc475f94c7160670a40624620db269b7c4084 Mon Sep 17 00:00:00 2001 From: laxmanhalaki Date: Tue, 30 Dec 2025 09:46:17 +0530 Subject: [PATCH] non templatized card disabled --- .../CreateRequest/TemplateSelectionStep.tsx | 58 ++++++++++++------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/src/components/workflow/CreateRequest/TemplateSelectionStep.tsx b/src/components/workflow/CreateRequest/TemplateSelectionStep.tsx index ad611d2..48d6b26 100644 --- a/src/components/workflow/CreateRequest/TemplateSelectionStep.tsx +++ b/src/components/workflow/CreateRequest/TemplateSelectionStep.tsx @@ -59,23 +59,29 @@ export function TemplateSelectionStep({ className="w-full max-w-6xl grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8" data-testid="template-selection-grid" > - {templates.map((template) => ( - - onSelectTemplate(template)} - data-testid={`template-card-${template.id}-clickable`} + {templates.map((template) => { + const isComingSoon = template.id === 'existing-template'; + const isDisabled = isComingSoon; + + return ( + + onSelectTemplate(template) : undefined} + data-testid={`template-card-${template.id}-clickable`} + >
- - {template.name} - +
+ + {template.name} + + {isComingSoon && ( + + Coming Soon + + )} +
{template.category} @@ -140,7 +157,8 @@ export function TemplateSelectionStep({ - ))} + ); + })}
{/* Template Details Card */}