From dd6ed8398fc783fa94a85665d66b2bc6e40749b5 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 16 Mar 2026 09:26:00 -0700 Subject: [PATCH] Move theme gallery over to publishable page --- .../app/{trees-dev/themes => theme/gallery}/Swatches.tsx | 0 .../themes => theme/gallery}/ThemesGridClient.tsx | 0 .../app/{trees-dev/themes => theme/gallery}/constants.ts | 0 apps/docs/app/{trees-dev/themes => theme/gallery}/page.tsx | 7 +------ .../themes => theme/gallery}/useTreeStatePreview.ts | 0 5 files changed, 1 insertion(+), 6 deletions(-) rename apps/docs/app/{trees-dev/themes => theme/gallery}/Swatches.tsx (100%) rename apps/docs/app/{trees-dev/themes => theme/gallery}/ThemesGridClient.tsx (100%) rename apps/docs/app/{trees-dev/themes => theme/gallery}/constants.ts (100%) rename apps/docs/app/{trees-dev/themes => theme/gallery}/page.tsx (95%) rename apps/docs/app/{trees-dev/themes => theme/gallery}/useTreeStatePreview.ts (100%) diff --git a/apps/docs/app/trees-dev/themes/Swatches.tsx b/apps/docs/app/theme/gallery/Swatches.tsx similarity index 100% rename from apps/docs/app/trees-dev/themes/Swatches.tsx rename to apps/docs/app/theme/gallery/Swatches.tsx diff --git a/apps/docs/app/trees-dev/themes/ThemesGridClient.tsx b/apps/docs/app/theme/gallery/ThemesGridClient.tsx similarity index 100% rename from apps/docs/app/trees-dev/themes/ThemesGridClient.tsx rename to apps/docs/app/theme/gallery/ThemesGridClient.tsx diff --git a/apps/docs/app/trees-dev/themes/constants.ts b/apps/docs/app/theme/gallery/constants.ts similarity index 100% rename from apps/docs/app/trees-dev/themes/constants.ts rename to apps/docs/app/theme/gallery/constants.ts diff --git a/apps/docs/app/trees-dev/themes/page.tsx b/apps/docs/app/theme/gallery/page.tsx similarity index 95% rename from apps/docs/app/trees-dev/themes/page.tsx rename to apps/docs/app/theme/gallery/page.tsx index 48576fd15..32fa11d80 100644 --- a/apps/docs/app/trees-dev/themes/page.tsx +++ b/apps/docs/app/theme/gallery/page.tsx @@ -1,6 +1,5 @@ import { parseDiffFromFile, resolveTheme } from '@pierre/diffs'; import { themeToTreeStyles } from '@pierre/trees'; -import { notFound } from 'next/navigation'; import { Suspense } from 'react'; import { ThemesGridClient } from './ThemesGridClient'; @@ -164,11 +163,7 @@ const THEMES = [ 'min-dark', ] as const; -export default async function TreesThemesPage() { - if (process.env.NODE_ENV !== 'development') { - return notFound(); - } - +export default async function ThemeGalleryPage() { const resolvedThemes = await Promise.all( THEMES.map(async (themeName) => { try { diff --git a/apps/docs/app/trees-dev/themes/useTreeStatePreview.ts b/apps/docs/app/theme/gallery/useTreeStatePreview.ts similarity index 100% rename from apps/docs/app/trees-dev/themes/useTreeStatePreview.ts rename to apps/docs/app/theme/gallery/useTreeStatePreview.ts