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:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user