From 4a10183a9dd2dd09576980209dd13743aa8239c1 Mon Sep 17 00:00:00 2001 From: soma-enyi Date: Wed, 29 Apr 2026 02:39:20 +0100 Subject: [PATCH] docs: design template catalog --- docs/template-catalog.md | 181 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 docs/template-catalog.md diff --git a/docs/template-catalog.md b/docs/template-catalog.md new file mode 100644 index 0000000..3b20150 --- /dev/null +++ b/docs/template-catalog.md @@ -0,0 +1,181 @@ +# Template Catalog Browsing Experience + +Design specification for the template discovery flow at `/app/templates`. + +--- + +## Layout + +``` +┌─────────────────────────────────────────────────────────┐ +│ Template Catalog │ +│ Browse and select from our collection of templates. │ +├─────────────────────────────────────────────────────────┤ +│ [🔍 Search templates…] [All][DEX][Lending][Payment] │ +│ [Asset Issuance] │ +├─────────────────────────────────────────────────────────┤ +│ 4 templates found │ +│ │ +│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ +│ │ Card │ │ Card │ │ Card │ │ +│ └──────────┘ └──────────┘ └──────────┘ │ +└─────────────────────────────────────────────────────────┘ +``` + +--- + +## Filter Controls + +### Search + +- Placement: top-left of the filter bar, `max-w-md`, full-width on mobile. +- Input type: `type="search"` with a leading magnifying-glass icon. +- `aria-label="Search templates"`, `placeholder="Search templates…"`. +- Debounce: 300 ms before the query is applied and the URL is updated. +- Matches against template `name` and `description`. + +### Category Chips + +- Placement: right of the search input on ≥ sm screens; wraps below on mobile. +- Options: **All** (clears filter) · **DEX** · **Lending** · **Payment** · **Asset Issuance**. +- Each chip is a `