Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

Templates updates (#2799)

Kenton Quatman4107b1359506
diff --git a/apps/docsite/src/app/(site)/templates/page.tsx b/apps/docsite/src/app/(site)/templates/page.tsx
index 5740902bf5..37cff5dfc9 100644
--- a/apps/docsite/src/app/(site)/templates/page.tsx
+++ b/apps/docsite/src/app/(site)/templates/page.tsx
@@ -6,7 +6,7 @@
'use client';
-import {useCallback, useMemo} from 'react';
+import {useCallback, useMemo, useState} from 'react';
import type {CSSProperties} from 'react';
import {useSearchParams, useRouter, usePathname} from 'next/navigation';
import * as stylex from '@stylexjs/stylex';
@@ -18,7 +18,7 @@ import {XDSClickableCard} from '@xds/core/ClickableCard';
import {XDSGrid} from '@xds/core/Grid';
import {XDSButton} from '@xds/core/Button';
import {XDSOverlay} from '@xds/core/Overlay';
-import {XDSBadge} from '@xds/core/Badge';
+import {XDSToggleButton, XDSToggleButtonGroup} from '@xds/core/ToggleButton';
import {templates} from '../../../generated/templateRegistry';
import {TemplateThumbnail} from '../../../components/TemplateThumbnail';
import {buildPlaygroundHref} from '../../../components/playgroundLink';
@@ -26,46 +26,24 @@ import {TemplatePreviewDialog} from '../../../components/TemplatePreviewDialog';
import type {TemplatePreviewItem} from '../../../components/TemplatePreviewDialog';
import {trackOpenPlayground, trackView} from '../../../lib/analytics';
-const GALLERY_MAX_WIDTH = 1600;
-const CARD_MIN_WIDTH = 420;
const CARD_STYLE: CSSProperties & {'--color-overlay': string} = {
'--color-overlay':
'color-mix(in srgb, var(--color-on-light) 78%, transparent)',
};
+const OVERLAY_CLICK_LAYER_STYLE: CSSProperties = {
+ height: '100%',
+ width: '100%',
+ cursor: 'pointer',
+};
+
const styles = stylex.create({
- section: {
- marginInline: 'auto',
- },
- heroTitle: {
- textAlign: 'center' as const,
- },
- galleryWrap: {
- maxWidth: GALLERY_MAX_WIDTH,
- marginInline: 'auto',
- width: '100%',
- },
- cardImage: {
- display: 'block',
- width: '100%',
- aspectRatio: '16/10',
- backgroundColor: 'var(--color-background-muted)',
- borderRadius: 'var(--radius-container)',
- },
- comingSoon: {
- height: '100%',
- display: 'flex',
- alignItems: 'center',
+ categoryFilter: {
+ flexWrap: 'wrap',
justifyContent: 'center',
},
- overlayInner: {
- display: 'flex',
- flexDirection: 'column' as const,
- justifyContent: 'flex-end',
- alignItems: 'flex-start',
- height: '100%',
+ galleryGrid: {
width: '100%',
- padding: 8,
},
});
@@ -86,22 +64,6 @@ const GROUP_ORDER = [
const OTHER_GROUP = 'Other';
-/** Plural display labels for the group headings. The underlying category data
- * stays singular (e.g. 'Dashboard - Analytics'); only the heading is pluralized.
- * Handles irregulars (Gallery → Galleries) and uncountable nouns (Content). */
-const GROUP_LABELS: Record<string, string> = {
- Dashboard: 'Dashboards',
- Table: 'Tables',
- Form: 'Forms',
- Settings: 'Settings',
- Login: 'Logins',
- Tools: 'Tools',
- Content: 'Content',
- 'AI Chat': 'AI Chats',
- Gallery: 'Galleries',
- Shell: 'Shells',
-};
-
/** Derive the group heading from a category string. The group is the text
* before the first ' - ' separator (e.g. 'Dashboard - Analytics' → 'Dashboard').
* Standalone categories without a separator (e.g. 'Settings') are their own
@@ -114,12 +76,20 @@ function groupOf(category: string): string {
return idx === -1 ? category : category.slice(0, idx);
}
+/** Sort rank for a category group: GROUP_ORDER first, then 'Other' last. */
+function groupRank(group: string): number {
+ const i = GROUP_ORDER.indexOf(group);
+ if (i !== -1) {
+ return i;
+ }
+ return group === OTHER_GROUP ? Number.MAX_SAFE_INTEGER : GROUP_ORDER.length;
+}
+
interface TemplateItem {
name: string;
description: string;
slug: string;
href: string;
- isReady: boolean;
category: string;
source: string;
}
@@ -127,62 +97,61 @@ interface TemplateItem {
export default function TemplatesPage() {
const {isMobile} = useXDSAppShellMobile();
- const groups = useMemo(() => {
- const visible = templates.filter(t => !t.isHiddenFromOverview);
+ // Flat, display-ordered list of available templates. Ordered by category
+ // group (per GROUP_ORDER) then name, so the single grid stays stable.
+ const items = useMemo<TemplateItem[]>(() => {
+ const visible = templates.filter(t => t.isReady && !t.isHiddenFromOverview);
- const byGroup = new Map<string, TemplateItem[]>();
- for (const t of visible) {
- const group = groupOf(t.category);
- const item: TemplateItem = {
+ return visible
+ .map(t => ({
name: t.name,
description: t.description,
slug: t.slug,
href: `/templates/${t.slug}`,
- isReady: t.isReady,
category: t.category,
source: t.source,
- };
- const list = byGroup.get(group);
- if (list) {
- list.push(item);
- } else {
- byGroup.set(group, [item]);
- }
- }
-
- const rank = (g: string) => {
- const i = GROUP_ORDER.indexOf(g);
- if (i !== -1) {
- return i;
- }
- return g === OTHER_GROUP ? Number.MAX_SAFE_INTEGER : GROUP_ORDER.length;
- };
-
- return [...byGroup.entries()]
- .map(([group, list]) => ({
- group,
- items: list.sort((a, b) => a.name.localeCompare(b.name)),
}))
- .sort(
- (a, b) =>
- rank(a.group) - rank(b.group) || a.group.localeCompare(b.group),
- );
+ .sort((a, b) => {
+ const ga = groupOf(a.category);
+ const gb = groupOf(b.category);
+ return (
+ groupRank(ga) - groupRank(gb) ||
+ ga.localeCompare(gb) ||
+ a.name.localeCompare(b.name)
+ );
+ });
}, []);
+ const [activeCategory, setActiveCategory] = useState('All');
+
+ // Filter options: 'All' plus each category group present, in display order.
+ const categories = useMemo(() => {
+ const present = [...new Set(items.map(i => groupOf(i.category)))].sort(
+ (a, b) => groupRank(a) - groupRank(b) || a.localeCompare(b),
+ );
+ return ['All', ...present];
+ }, [items]);
+
+ const filteredItems = useMemo(
+ () =>
+ activeCategory === 'All'
+ ? items
+ : items.filter(i => groupOf(i.category) === activeCategory),
+ [items, activeCategory],
+ );
+
// Flattened display-order list backing the preview dialog's prev/next
// navigation, plus a slug -> index lookup for opening at a given card.
const flatItems = useMemo<TemplatePreviewItem[]>(
() =>
- groups.flatMap(g =>
- g.items.map(i => ({
- slug: i.slug,
- name: i.name,
- description: i.description,
- source: i.source,
- category: groupOf(i.category),
- })),
- ),
- [groups],
+ filteredItems.map(i => ({
+ slug: i.slug,
+ name: i.name,
+ description: i.description,
+ source: i.source,
+ category: groupOf(i.category),
+ })),
+ [filteredItems],
);
const indexBySlug = useMemo(() => {
const m = new Map<string, number>();
@@ -229,107 +198,100 @@ export default function TemplatesPage() {
);
return (
- <XDSSection
- maxWidth={GALLERY_MAX_WIDTH}
- padding={6}
- xstyle={styles.section}>
- <XDSVStack gap={8}>
- <XDSVStack gap={2} style={{alignItems: 'center'}}>
- <XDSHeading level={1} type="display-2" xstyle={styles.heroTitle}>
- Templates
- </XDSHeading>
- <XDSText type="body" color="secondary" xstyle={styles.heroTitle}>
- Ready-to-use page templates to kickstart your project.
- </XDSText>
+ <XDSSection maxWidth={1200} padding={6} style={{marginInline: 'auto'}}>
+ <XDSVStack gap={10}>
+ {/* Header */}
+ <XDSVStack gap={6} align="stretch">
+ <XDSVStack gap={2}>
+ <XDSHeading level={1} type="display-2" justify="center">
+ Templates
+ </XDSHeading>
+ <XDSText type="body" color="secondary" justify="center">
+ Ready-to-use page templates to kickstart your project.
+ </XDSText>
+ </XDSVStack>
+ <XDSToggleButtonGroup
+ label="Filter templates by category"
+ value={activeCategory}
+ onChange={value => setActiveCategory(value ?? 'All')}
+ xstyle={styles.categoryFilter}>
+ {categories.map(category => (
+ <XDSToggleButton
+ key={category}
+ label={category}
+ value={category}
+ />
+ ))}
+ </XDSToggleButtonGroup>
</XDSVStack>
- {groups.map(({group, items}) => (
- <XDSVStack key={group} gap={4}>
- <XDSHeading level={2}>{GROUP_LABELS[group] ?? group}</XDSHeading>
- <div {...stylex.props(styles.galleryWrap)}>
- <XDSGrid
- columns={
- isMobile
- ? 1
- : {minWidth: CARD_MIN_WIDTH, max: 2, repeat: 'fit'}
- }
- gap={4}
- style={{maxWidth: '100%'}}>
- {items.map(item => {
- const templateContent = item.isReady ? (
- <TemplateThumbnail slug={item.slug} />
- ) : (
- <div {...stylex.props(styles.cardImage)}>
- <div {...stylex.props(styles.comingSoon)}>
- <XDSBadge label="Coming Soon" variant="info" />
- </div>
- </div>
- );
+ {/* Body */}
+ <XDSGrid
+ columns={{minWidth: isMobile ? 280 : 420}}
+ gap={4}
+ width="100%">
+ {filteredItems.map(item => {
+ const templateContent = <TemplateThumbnail slug={item.slug} />;
- return (
- <XDSClickableCard
- key={item.slug}
- padding={0}
- maxWidth="100%"
- label={`Preview ${item.name}`}
- onClick={() => openPreview(item.slug)}
- style={CARD_STYLE}>
- {isMobile ? (
- templateContent
- ) : (
- <XDSOverlay
- showOn="hover"
- scrim="dark"
- content={
- <div {...stylex.props(styles.overlayInner)}>
- <XDSVStack gap={2}>
- <XDSVStack gap={0.5}>
- <XDSHeading level={3} style={{color: '#fff'}}>
- {item.name}
- </XDSHeading>
- <XDSText
- type="body"
- style={{color: 'rgba(255,255,255,0.7)'}}>
- {item.description.slice(0, 80)}
- {item.description.length > 80
- ? '\u2026'
- : ''}
- </XDSText>
- </XDSVStack>
- <XDSHStack gap={2}>
- <XDSButton
- label="Preview"
- variant="secondary"
- onClick={() => openPreview(item.slug)}
- />
- {item.source && (
- <XDSButton
- label="Open in Playground"
- variant="secondary"
- href={buildPlaygroundHref(item.source)}
- onClick={() => {
- trackOpenPlayground({
- page: 'templates',
- item: item.slug,
- category: groupOf(item.category),
- });
- }}
- />
- )}
- </XDSHStack>
- </XDSVStack>
- </div>
- }>
- {templateContent}
- </XDSOverlay>
- )}
- </XDSClickableCard>
- );
- })}
- </XDSGrid>
- </div>
- </XDSVStack>
- ))}
+ return (
+ <XDSClickableCard
+ key={item.slug}
+ padding={0}
+ maxWidth="100%"
+ label={`Preview ${item.name}`}
+ onClick={() => openPreview(item.slug)}
+ style={CARD_STYLE}>
+ {isMobile ? (
+ templateContent
+ ) : (
+ <XDSOverlay
+ showOn="hover"
+ scrim="dark"
+ content={
+ <XDSVStack
+ role="presentation"
+ onClick={() => openPreview(item.slug)}
+ justify="end"
+ align="start"
+ height="100%"
+ width="100%"
+ gap={4}
+ style={{...OVERLAY_CLICK_LAYER_STYLE, padding: 8}}>
+ <XDSVStack gap={0.5}>
+ <XDSHeading level={3}>{item.name}</XDSHeading>
+ <XDSText maxLines={2}>{item.description}</XDSText>
+ </XDSVStack>
+ <XDSHStack gap={2}>
+ <XDSButton
+ label="Preview"
+ variant="secondary"
+ onClick={() => openPreview(item.slug)}
+ />
+ {item.source && (
+ <XDSButton
+ label="Open in Playground"
+ variant="secondary"
+ href={buildPlaygroundHref(item.source)}
+ onClick={e => {
+ e.stopPropagation();
+ trackOpenPlayground({
+ page: 'templates',
+ item: item.slug,
+ category: groupOf(item.category),
+ });
+ }}
+ />
+ )}
+ </XDSHStack>
+ </XDSVStack>
+ }>
+ {templateContent}
+ </XDSOverlay>
+ )}
+ </XDSClickableCard>
+ );
+ })}
+ </XDSGrid>
</XDSVStack>
<TemplatePreviewDialog
diff --git a/apps/docsite/src/components/TemplatePreviewDialog.tsx b/apps/docsite/src/components/TemplatePreviewDialog.tsx
index ea701e8c38..fac9ffb52e 100644
--- a/apps/docsite/src/components/TemplatePreviewDialog.tsx
+++ b/apps/docsite/src/components/TemplatePreviewDialog.tsx
@@ -8,7 +8,7 @@
* prev/next arrows to move quickly between templates in the gallery's
* display order. Arrow keys (←/→) also navigate; Escape closes.
*
- * The header surfaces template metadata (category + name, description) on
+ * The header surfaces template metadata (name, description) on
* the left. All controls cluster on the right of the header: a
* copy-to-clipboard CLI scaffold command, an Open in Playground action,
* and the close button.
@@ -28,6 +28,7 @@ import {
import * as stylex from '@stylexjs/stylex';
import {XDSIcon} from '@xds/core/Icon';
import {XDSText, XDSHeading} from '@xds/core/Text';
+import {XDSCode} from '@xds/core/Code';
import {
XDSVStack,
XDSHStack,
@@ -98,41 +99,6 @@ const styles = stylex.create({
width: '100%',
minWidth: 0,
},
- copyPill: {
- display: 'inline-flex',
- alignItems: 'center',
- gap: 'var(--spacing-2)',
- backgroundColor: 'var(--color-background-card)',
- borderRadius: 'var(--radius-element)',
- paddingInline: 'var(--spacing-3)',
- height: 'var(--size-element-lg, 36px)',
- cursor: 'pointer',
- borderWidth: 'var(--border-width, 1px)',
- borderStyle: 'solid',
- borderColor: 'var(--color-border)',
- flex: '1 1 auto',
- minWidth: 0,
- overflow: 'hidden',
- fontFamily: 'var(--font-family-mono, ui-monospace, monospace)',
- fontSize: 'var(--font-size-sm, 13px)',
- color: 'var(--color-text-primary)',
- userSelect: 'none',
- transitionProperty: 'background-color, border-color',
- transitionDuration: 'var(--duration-fast-min, 130ms)',
- transitionTimingFunction:
- 'var(--ease-standard, cubic-bezier(0.24, 1, 0.4, 1))',
- },
- copyPillHover: {
- backgroundColor: {
- ':hover':
- 'var(--color-background-card-hover, var(--color-background-muted))',
- },
- },
- copyPillText: {
- overflow: 'hidden',
- textOverflow: 'ellipsis',
- whiteSpace: 'nowrap',
- },
skeletonOverlay: {
position: 'absolute',
insetInline: '16px',
@@ -184,9 +150,7 @@ function TemplatePreviewHeader({
xstyle={
isFullscreen ? styles.mobileHeaderMeta : styles.desktopHeaderMeta
}>
- <XDSHeading level={2}>
- {item.category ? `${item.category} ${item.name}` : item.name}
- </XDSHeading>
+ <XDSHeading level={2}>{item.name}</XDSHeading>
{item.description && (
<XDSText type="body" color="secondary">
{item.description}
@@ -196,16 +160,17 @@ function TemplatePreviewHeader({
);
const copyButton = (
- <button
- type="button"
- onClick={onCopyCommand}
- aria-label="Copy install command"
- {...stylex.props(styles.copyPill, styles.copyPillHover)}>
- <span {...stylex.props(styles.copyPillText)}>
- {cmdCopied ? 'Copied!' : `npx xds template ${item.slug}`}
- </span>
- <XDSIcon icon={cmdCopied ? 'check' : 'copy'} size="sm" color="inherit" />
- </button>
+ <XDSHStack gap={2} vAlign="center">
+ <XDSCode>{`npx xds template ${item.slug}`}</XDSCode>
+ <XDSButton
+ variant="ghost"
+ isIconOnly
+ size="lg"
+ label={cmdCopied ? 'Copied!' : 'Copy install command'}
+ icon={<XDSIcon icon={cmdCopied ? 'check' : 'copy'} color="inherit" />}
+ onClick={onCopyCommand}
+ />
+ </XDSHStack>
);
const playgroundButton = playgroundHref ? (
diff --git a/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs b/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs
index f01ec053ef..15974ec569 100644
--- a/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs
+++ b/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Landing',
- displayName: 'Landing',
+ name: 'AI Chat Landing',
+ displayName: 'AI Chat Landing',
description: 'AI assistant landing page with chat composer, greeting, and category toggles',
isReady: true,
category: 'AI Chat - Landing',
diff --git a/packages/cli/templates/pages/ai-chat/template.doc.mjs b/packages/cli/templates/pages/ai-chat/template.doc.mjs
index b13fe8d4bf..4a5ea4664a 100644
--- a/packages/cli/templates/pages/ai-chat/template.doc.mjs
+++ b/packages/cli/templates/pages/ai-chat/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Conversation',
- displayName: 'Conversation',
+ name: 'AI Chat Conversation',
+ displayName: 'AI Chat Conversation',
description: 'AI assistant conversation view with tool calls, system messages, markdown, code blocks, and multi-bubble grouping',
isReady: true,
category: 'AI Chat - Conversation',
diff --git a/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs b/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs
index 2b26295ad5..2f2cb21f1b 100644
--- a/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs
+++ b/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Portfolio',
- displayName: 'Portfolio',
+ name: 'Portfolio Dashboard',
+ displayName: 'Portfolio Dashboard',
description: 'Investment portfolio dashboard with KPI metrics, area chart, and top asset holdings',
isReady: true,
category: 'Dashboard - Portfolio',
diff --git a/packages/cli/templates/pages/dashboard/template.doc.mjs b/packages/cli/templates/pages/dashboard/template.doc.mjs
index 32dacdb9e3..89286178f9 100644
--- a/packages/cli/templates/pages/dashboard/template.doc.mjs
+++ b/packages/cli/templates/pages/dashboard/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Analytics',
- displayName: 'Analytics',
+ name: 'Analytics Dashboard',
+ displayName: 'Analytics Dashboard',
description: 'Analytics dashboard with KPI cards, charts, and data tables',
isReady: true,
category: 'Dashboard - Analytics',
diff --git a/packages/cli/templates/pages/form-two-column/template.doc.mjs b/packages/cli/templates/pages/form-two-column/template.doc.mjs
index 52ede984c2..d59d39866e 100644
--- a/packages/cli/templates/pages/form-two-column/template.doc.mjs
+++ b/packages/cli/templates/pages/form-two-column/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Two-column',
- displayName: 'Two-column',
+ name: 'Two-column Form',
+ displayName: 'Two-column Form',
description: 'Hero header with form card layout for data collection',
isReady: true,
category: 'Form - Two-column',
diff --git a/packages/cli/templates/pages/login-card/template.doc.mjs b/packages/cli/templates/pages/login-card/template.doc.mjs
index 96221fa8d9..ed1548d404 100644
--- a/packages/cli/templates/pages/login-card/template.doc.mjs
+++ b/packages/cli/templates/pages/login-card/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Card',
- displayName: 'Card',
+ name: 'Login Card',
+ displayName: 'Login Card',
description: 'Centered login card with social sign-in and email form',
isReady: true,
category: 'Login - Card',
diff --git a/packages/cli/templates/pages/login-split/template.doc.mjs b/packages/cli/templates/pages/login-split/template.doc.mjs
index 51f3e4ede4..69c8243f07 100644
--- a/packages/cli/templates/pages/login-split/template.doc.mjs
+++ b/packages/cli/templates/pages/login-split/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Split',
- displayName: 'Split',
+ name: 'Login Split',
+ displayName: 'Login Split',
description: 'Split-screen login with form and cover image',
isReady: true,
category: 'Login - Split',
diff --git a/packages/cli/templates/pages/login-sso/template.doc.mjs b/packages/cli/templates/pages/login-sso/template.doc.mjs
index fb608f06db..4995b51bef 100644
--- a/packages/cli/templates/pages/login-sso/template.doc.mjs
+++ b/packages/cli/templates/pages/login-sso/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'SSO',
- displayName: 'SSO',
+ name: 'Login SSO',
+ displayName: 'Login SSO',
description: 'SSO login with email-based provider detection',
isReady: true,
category: 'Login - SSO',
diff --git a/packages/cli/templates/pages/login/template.doc.mjs b/packages/cli/templates/pages/login/template.doc.mjs
index e34fd00870..49096a4ba9 100644
--- a/packages/cli/templates/pages/login/template.doc.mjs
+++ b/packages/cli/templates/pages/login/template.doc.mjs
@@ -3,9 +3,10 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Basic',
- displayName: 'Basic',
+ name: 'Basic Login',
+ displayName: 'Basic Login',
description: 'Auth form with email and password inputs',
isReady: true,
+ isHiddenFromOverview: true,
category: 'Login - Basic',
};
diff --git a/packages/cli/templates/pages/payment-form/template.doc.mjs b/packages/cli/templates/pages/payment-form/template.doc.mjs
index 73d9371882..1129c0e4a8 100644
--- a/packages/cli/templates/pages/payment-form/template.doc.mjs
+++ b/packages/cli/templates/pages/payment-form/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Checkout',
- displayName: 'Checkout',
+ name: 'Checkout Form',
+ displayName: 'Checkout Form',
description: 'Secure checkout page with billing info, card details, and order summary.',
isReady: true,
category: 'Form - Checkout',
diff --git a/packages/cli/templates/pages/settings-dialog/template.doc.mjs b/packages/cli/templates/pages/settings-dialog/template.doc.mjs
index 88a8f4ad11..adc1488a6d 100644
--- a/packages/cli/templates/pages/settings-dialog/template.doc.mjs
+++ b/packages/cli/templates/pages/settings-dialog/template.doc.mjs
@@ -3,10 +3,11 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Dialog',
- displayName: 'Dialog',
+ name: 'Settings Dialog',
+ displayName: 'Settings Dialog',
description:
'Account settings in a modal dialog with sidebar navigation and multi-section content',
isReady: true,
+ isHiddenFromOverview: true,
category: 'Settings - Dialog',
};
diff --git a/packages/cli/templates/pages/settings-sidebar/template.doc.mjs b/packages/cli/templates/pages/settings-sidebar/template.doc.mjs
index de8ece429a..2d6abb38ef 100644
--- a/packages/cli/templates/pages/settings-sidebar/template.doc.mjs
+++ b/packages/cli/templates/pages/settings-sidebar/template.doc.mjs
@@ -3,10 +3,10 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Sidebar',
- displayName: 'Sidebar',
+ name: 'Settings Panels',
+ displayName: 'Settings Panels',
description:
- 'Account settings with sidebar navigation, inline editing, and multi-section privacy controls',
+ 'Account settings with nav-switched panels, inline row editing, and multi-section privacy controls',
isReady: true,
- category: 'Settings - Sidebar',
+ category: 'Settings - Panels',
};
diff --git a/packages/cli/templates/pages/settings/template.doc.mjs b/packages/cli/templates/pages/settings/template.doc.mjs
index d7969a18e0..96b054fba6 100644
--- a/packages/cli/templates/pages/settings/template.doc.mjs
+++ b/packages/cli/templates/pages/settings/template.doc.mjs
@@ -3,9 +3,9 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Settings',
- displayName: 'Settings',
- description: 'Account settings page with profile, password, and advanced configuration sections',
+ name: 'Settings Form',
+ displayName: 'Settings Form',
+ description: 'Account settings as a single scrolling form with profile, password, and advanced configuration sections',
isReady: true,
- category: 'Settings',
+ category: 'Settings - Form',
};
diff --git a/packages/cli/templates/pages/table-grouped/template.doc.mjs b/packages/cli/templates/pages/table-grouped/template.doc.mjs
index c92b50b065..a98322ae0c 100644
--- a/packages/cli/templates/pages/table-grouped/template.doc.mjs
+++ b/packages/cli/templates/pages/table-grouped/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Grouped',
- displayName: 'Grouped',
+ name: 'Grouped Table',
+ displayName: 'Grouped Table',
description: 'Grouped data table with collapsible status sections, PowerSearch, and detail panel',
isReady: true,
category: 'Table - Grouped',
diff --git a/packages/cli/templates/pages/table-page-chart/template.doc.mjs b/packages/cli/templates/pages/table-page-chart/template.doc.mjs
index bd9e94f760..83bfeb7eb4 100644
--- a/packages/cli/templates/pages/table-page-chart/template.doc.mjs
+++ b/packages/cli/templates/pages/table-page-chart/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Chart',
- displayName: 'Chart',
+ name: 'Matcha Sales Table',
+ displayName: 'Matcha Sales Table',
description:
'Matcha store sales data table with a revenue area chart and product thumbnails.',
isReady: true,
diff --git a/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs b/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs
index eaf1ffb16d..da696e55f9 100644
--- a/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs
+++ b/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Heatmap',
- displayName: 'Heatmap',
+ name: 'Outage Heatmap Table',
+ displayName: 'Outage Heatmap Table',
description:
'Product status page with an outage heatmap and incident log table.',
isReady: true,
diff --git a/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs b/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs
index 72f2125a75..faa93c4277 100644
--- a/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs
+++ b/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Chart',
- displayName: 'Chart',
+ name: 'Shoe Sales Table',
+ displayName: 'Shoe Sales Table',
description:
'Shoe store sales data table with a revenue area chart and product thumbnails.',
isReady: true,
diff --git a/packages/cli/templates/pages/table-page/template.doc.mjs b/packages/cli/templates/pages/table-page/template.doc.mjs
index 152d11ef06..5ccaea2f73 100644
--- a/packages/cli/templates/pages/table-page/template.doc.mjs
+++ b/packages/cli/templates/pages/table-page/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Basic',
- displayName: 'Basic',
+ name: 'Searchable Table',
+ displayName: 'Searchable Table',
description:
'Data table page with power search filtering and action toolbar.',
isReady: true,
diff --git a/packages/cli/templates/pages/table/template.doc.mjs b/packages/cli/templates/pages/table/template.doc.mjs
index 07752b7778..c45cc242c3 100644
--- a/packages/cli/templates/pages/table/template.doc.mjs
+++ b/packages/cli/templates/pages/table/template.doc.mjs
@@ -3,8 +3,8 @@
/** @type {import('../../../../core/src/docs-types').TemplateDoc} */
export const doc = {
type: 'page',
- name: 'Basic',
- displayName: 'Basic',
+ name: 'Simple Table',
+ displayName: 'Simple Table',
description: 'Data table with actions',
isReady: false,
category: 'Table - Basic',
diff --git a/packages/core/src/docs-types.ts b/packages/core/src/docs-types.ts
index 3d0fb4da50..4e206a3e55 100644
--- a/packages/core/src/docs-types.ts
+++ b/packages/core/src/docs-types.ts
@@ -815,6 +815,8 @@ export type TemplateCategory =
| 'Settings'
| 'Settings - Dialog'
| 'Settings - Sidebar'
+ | 'Settings - Panels'
+ | 'Settings - Form'
// Login
| 'Login - Basic'
| 'Login - Card'