fix: Show industry presets on project selector page

Presets were only visible after entering a project. Now they appear
on the /sdk landing page where users first see their project list.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-03 09:05:08 +02:00
parent c5678c7101
commit 40e2c76ab3
@@ -7,6 +7,7 @@ import type { ProjectInfo } from '@/lib/sdk/types'
import { CreateProjectDialog, normalizeProject } from './CreateProjectDialog' import { CreateProjectDialog, normalizeProject } from './CreateProjectDialog'
import { ProjectActionDialog } from './ProjectActionDialog' import { ProjectActionDialog } from './ProjectActionDialog'
import { ProjectCard } from './ProjectCard' import { ProjectCard } from './ProjectCard'
import { PresetSection } from '@/app/sdk/_components/PresetSection'
export function ProjectSelector() { export function ProjectSelector() {
const router = useRouter() const router = useRouter()
@@ -152,6 +153,9 @@ export function ProjectSelector() {
</div> </div>
)} )}
{/* Industry Presets — quick-start for new projects */}
{!loading && <PresetSection />}
{/* Archived Projects Section */} {/* Archived Projects Section */}
{!loading && archivedProjects.length > 0 && ( {!loading && archivedProjects.length > 0 && (
<div className="mt-8"> <div className="mt-8">