From b0ee905c1cddfa4a509f26b91e34ca7d88111605 Mon Sep 17 00:00:00 2001
From: shrimbly
Date: Sat, 17 Jan 2026 21:39:12 +1300
Subject: [PATCH] refactor: simplify template categories and add provider tags
- Change categories from product/style/composition to simple/advanced
- Add provider filter to sidebar (currently shows Gemini)
- Display provider tags on template cards
- Update tests for new category structure
Co-Authored-By: Claude Opus 4.5
---
src/components/quickstart/TemplateCard.tsx | 24 ++++++++++++++-----
.../quickstart/TemplateExplorerView.tsx | 22 +++++++----------
.../quickstart/__tests__/templates.test.ts | 2 +-
src/types/quickstart.ts | 2 +-
4 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/src/components/quickstart/TemplateCard.tsx b/src/components/quickstart/TemplateCard.tsx
index 31bc504e..ccc3c121 100644
--- a/src/components/quickstart/TemplateCard.tsx
+++ b/src/components/quickstart/TemplateCard.tsx
@@ -20,16 +20,14 @@ interface TemplateCardProps {
}
const CATEGORY_LABELS: Record = {
- product: "Product",
- style: "Style",
- composition: "Composition",
+ simple: "Simple",
+ advanced: "Advanced",
community: "Community",
};
const CATEGORY_COLORS: Record = {
- product: "bg-blue-500/20 text-blue-300",
- style: "bg-purple-500/20 text-purple-300",
- composition: "bg-green-500/20 text-green-300",
+ simple: "bg-blue-500/20 text-blue-300",
+ advanced: "bg-purple-500/20 text-purple-300",
community: "bg-amber-500/20 text-amber-300",
};
@@ -128,6 +126,20 @@ export function TemplateCard({
{template.description}
+ {/* Provider tags */}
+ {template.tags.length > 0 && (
+
+ {template.tags.map((tag) => (
+
+ {tag}
+
+ ))}
+
+ )}
+
{/* Action row */}
- {/* Tags Section */}
+ {/* Provider Tags */}
- Tags
+ Provider
-
+
{availableTags.map((tag) => (