Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
'use client'

import { useState } from 'react'
import { useEffect, useState } from 'react'
import { ProjectStatus } from '@prisma/client'
import { useRouter } from 'next/navigation'

import type { ProjectWithRelations } from '@/lib/data/project'

import { PageHeaderWithFilter } from './page-header-with-filter'
import { ProjectList } from './project-list'

const REFRESH_INTERVAL_MS = 3000

interface HomePageContentProps {
projects: ProjectWithRelations<{ sandboxes: true }>[]
}

export function HomePageContent({ projects }: HomePageContentProps) {
const router = useRouter()
const [activeFilter, setActiveFilter] = useState<'ALL' | ProjectStatus>('ALL')

useEffect(() => {
const interval = setInterval(() => {
router.refresh()
}, REFRESH_INTERVAL_MS)

return () => clearInterval(interval)
}, [router])

return (
<>
<PageHeaderWithFilter activeFilter={activeFilter} onFilterChange={setActiveFilter} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function ProjectActionsMenu({ projectId, projectName, status }: ProjectAc
{/* Confirmation Input */}
<div className="space-y-2">
<Label className="text-xs font-semibold text-muted-foreground uppercase tracking-wider pl-1">
Type <span className="text-white select-all">{projectName}</span> to confirm
Type <span className="text-white select-all normal-case">{projectName}</span> to confirm
</Label>
<Input
value={confirmInput}
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 0 additions & 20 deletions app/(dashboard)/projects/page.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions components/features/projectList/EmptyProjectCard.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions components/features/projectList/ProjectCard.tsx

This file was deleted.

155 changes: 0 additions & 155 deletions components/features/projectList/ProjectCardDropdown.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions components/features/projectList/ProjectCardSkeleton.tsx

This file was deleted.

Loading