Skip to content

Conversation

@tg339
Copy link
Member

@tg339 tg339 commented Nov 16, 2025

Note

Introduce a dedicated /templates page with sidebar filters and search, enhanced template/app cards with deploy/actions, and a reusable command snippet, plus routing/content and TS config updates.

  • Docs (framework-docs-v2)
    • Templates overhaul:
      • Add explicit app/templates/ route with layout and TemplatesSideNav (URL-driven filters for type, language, category).
      • Update content/templates/index.mdx to use <CommandSnippet /> and TemplatesGridServer.
      • TemplateGrid reads URL params for filtering; search retained in main content.
      • TemplateCard redesigned: combined chips (frameworks/features) with expand, terminal snippet, and action buttons (Deploy, Blog, GitHub).
      • Expose CommandSnippet via MDX renderer/components.
    • Routing/Content:
      • Exclude templates from catch‑all [...slug] routing and from content scanning; adjust generateStaticParams.
      • Add guides/strategy/platform-engineering page with metadata/TOC.
    • UI components/styles:
      • Add ui/checkbox, ui/item; tweak ui/input, ui/select, ui/command to use bg-card.
      • Dark theme color tokens updated in globals.css.
    • Config:
      • Switch tsconfig to extend @repo/ts-config/nextjs.json; disable declarations.
    • Deps:
      • Add @radix-ui/react-checkbox, @radix-ui/react-popover; lockfile updates (incl. @clickhouse/client minor bump).
  • Chore
    • Remove app-level .npmrc hoisting in framework-docs-v2.

Written by Cursor Bugbot for commit 54f8a84. This will update automatically on new commits. Configure here.

@linear
Copy link

linear bot commented Nov 16, 2025

@vercel
Copy link

vercel bot commented Nov 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Nov 16, 2025 0:58am
framework-docs Ready Ready Preview Comment Nov 16, 2025 0:58am

// Get filter values from URL params
const typeFilter = (searchParams.get("type") as TypeFilter) || null;
const languageFilter =
(searchParams.get("language") as LanguageFilter) || null;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unvalidated Filters Cause UI State Inconsistency

The typeFilter and languageFilter values are cast from URL params without validation, unlike categoryFilter which properly validates values. This creates inconsistent behavior with TemplateGrid which validates these same params. Invalid URL params like ?type=invalid will cause the sidebar to have no checkboxes selected while the grid shows all items (treating invalid as null), creating confusing UX and state inconsistency between the two components.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants