+ {projects.data?.map((project: ProjectInfo) => (
+
handleCardClick(project.id!, e)}
>
-
-
+
+ {project.coverImage ? (
+
+ ) : (
+
+
+
+ )}
+
+
{project.name}
-
-
- Create Project
+
+
+ Updated {formatDateAgo((project.updatedAt as string) ?? '')}
+
e.stopPropagation()}>
+
+
+
+
+
+
+
+ {
+ e.stopPropagation()
+ handleEditProjectClick(project)
+ }}
+ >
+ Project Settings
+
+ handleDeleteProjectClick(project)}
+ >
+ Delete
+
+
+
+
+ ))}
+
-
-
-
-
-
-
- Are you absolutely sure?
-
- This action cannot be undone. This will permanently delete the project "
- {projectToDelete?.name}" and all its assets.
-
-
- Type delete to confirm:
-
- setDeleteConfirmText(e.target.value)}
- placeholder="delete"
- className="h-9"
- autoFocus
- />
-
-
-
-
-
- Cancel
-
- {
- e.preventDefault()
- handleConfirmDelete()
- }}
- disabled={deleteConfirmText !== 'delete' || deleteProjectMutation.isPending}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
- >
- {deleteProjectMutation.isPending ? 'Deleting...' : 'Delete'}
-
-
-
-
-
-
+
+
+
+
+
+
+ Are you absolutely sure?
+
+ This action cannot be undone. This will permanently delete the project "
+ {projectToDelete?.name}" and all its assets.
+
+
+ Type delete to confirm:
+
+ setDeleteConfirmText(e.target.value)}
+ placeholder="delete"
+ className="h-9"
+ autoFocus
+ />
+
+
+
+
+ Cancel
+ {
+ e.preventDefault()
+ handleConfirmDelete()
+ }}
+ disabled={deleteConfirmText !== 'delete' || deleteProjectMutation.isPending}
+ className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
+ >
+ {deleteProjectMutation.isPending ? 'Deleting...' : 'Delete'}
+
+
+
+
+
+
+
)
}
diff --git a/src/ui/routes/teams/$teamId/settings.tsx b/src/ui/routes/teams/$teamId/settings.tsx
index dda6abdc..26837ea2 100644
--- a/src/ui/routes/teams/$teamId/settings.tsx
+++ b/src/ui/routes/teams/$teamId/settings.tsx
@@ -1,17 +1,16 @@
+import { ImageTranscodeStrategy, VideoTranscodeStrategy } from '@/dtos/team'
import { client } from '@/ui/api/client'
-import { VideoTranscodeStrategy, ImageTranscodeStrategy } from '@/dtos/team'
+import { AgentsSettings } from '@/ui/components/settings/AgentsSettings'
+import { ProvidersSettings } from '@/ui/components/settings/ProvidersSettings'
+import { SandboxSettings } from '@/ui/components/settings/SandboxSettings'
+import { SkillsConfigCard } from '@/ui/components/settings/SkillsConfigCard'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/ui/components/ui/card'
import { Switch } from '@/ui/components/ui/switch'
-import { useQueryClient, useQuery, useMutation } from '@tanstack/react-query'
-import { createFileRoute } from '@tanstack/react-router'
-import { Loader2, User, Film, Cpu, Puzzle } from 'lucide-react'
import { cn } from '@/ui/lib/utils'
+import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
+import { createFileRoute } from '@tanstack/react-router'
+import { Bot, Cpu, Film, Loader2, Puzzle, Shield, User } from 'lucide-react'
import { useState } from 'react'
-import { ProvidersSettings } from '@/ui/components/settings/ProvidersSettings'
-import { SkillsConfigCard } from '@/ui/components/settings/SkillsConfigCard'
-import { AgentsSettings } from '@/ui/components/settings/AgentsSettings'
-import { SandboxSettings } from '@/ui/components/settings/SandboxSettings'
-import { Bot, Shield } from 'lucide-react'
type SettingsTab = 'general' | 'transcode' | 'skills' | 'providers' | 'agents' | 'sandbox'
@@ -105,10 +104,10 @@ function TeamSettingsPage() {
(settings as any)?.transcode?.imageStrategy || ImageTranscodeStrategy.single
return (
-
-
+
+
{/* Sidebar */}
-
+
Settings
@@ -214,10 +213,10 @@ function TeamSettingsPage() {
)}
-
+
{/* Main Content Area */}
-
+