From 4599542447014f22f1800b2cab74ecd04372f45d Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 25 Feb 2026 11:39:39 -0800 Subject: [PATCH] fix(templates): show description tagline on template cards --- apps/sim/app/templates/components/template-card.tsx | 8 ++++++++ apps/sim/app/templates/templates.tsx | 1 + .../[workspaceId]/templates/components/template-card.tsx | 8 ++++++++ .../app/workspace/[workspaceId]/templates/templates.tsx | 1 + 4 files changed, 18 insertions(+) diff --git a/apps/sim/app/templates/components/template-card.tsx b/apps/sim/app/templates/components/template-card.tsx index 6663b1de57..79445802be 100644 --- a/apps/sim/app/templates/components/template-card.tsx +++ b/apps/sim/app/templates/components/template-card.tsx @@ -21,6 +21,7 @@ interface TemplateCardProps { blocks?: string[] className?: string state?: WorkflowState + description?: string | null isStarred?: boolean isVerified?: boolean } @@ -124,6 +125,7 @@ function TemplateCardInner({ blocks = [], className, state, + description, isStarred = false, isVerified = false, }: TemplateCardProps) { @@ -270,6 +272,12 @@ function TemplateCardInner({ + {description && ( +

+ {description} +

+ )} +
{authorImageUrl ? ( diff --git a/apps/sim/app/templates/templates.tsx b/apps/sim/app/templates/templates.tsx index cbb3ab6938..08fe559555 100644 --- a/apps/sim/app/templates/templates.tsx +++ b/apps/sim/app/templates/templates.tsx @@ -196,6 +196,7 @@ export default function Templates({ key={template.id} id={template.id} title={template.name} + description={template.details?.tagline} author={template.creator?.name || 'Unknown'} authorImageUrl={template.creator?.profileImageUrl || null} usageCount={template.views.toString()} diff --git a/apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx b/apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx index 5e7e112f6c..a19809e4e0 100644 --- a/apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx +++ b/apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx @@ -18,6 +18,7 @@ interface TemplateCardProps { blocks?: string[] className?: string state?: WorkflowState + description?: string | null isStarred?: boolean isVerified?: boolean } @@ -127,6 +128,7 @@ function TemplateCardInner({ blocks = [], className, state, + description, isStarred = false, isVerified = false, }: TemplateCardProps) { @@ -277,6 +279,12 @@ function TemplateCardInner({
+ {description && ( +

+ {description} +

+ )} +
{authorImageUrl ? ( diff --git a/apps/sim/app/workspace/[workspaceId]/templates/templates.tsx b/apps/sim/app/workspace/[workspaceId]/templates/templates.tsx index 884dce6d03..550c58bf3a 100644 --- a/apps/sim/app/workspace/[workspaceId]/templates/templates.tsx +++ b/apps/sim/app/workspace/[workspaceId]/templates/templates.tsx @@ -222,6 +222,7 @@ export default function Templates({ key={template.id} id={template.id} title={template.name} + description={template.details?.tagline} author={template.creator?.name || 'Unknown'} authorImageUrl={template.creator?.profileImageUrl || null} usageCount={template.views.toString()}