diff --git a/src/ui/components/public-share-manager.tsx b/src/ui/components/public-share-manager.tsx index eeef02a1..e3f9f4ad 100644 --- a/src/ui/components/public-share-manager.tsx +++ b/src/ui/components/public-share-manager.tsx @@ -445,4 +445,3 @@ export function PublicShareManager({ ) } - diff --git a/src/ui/routes/teams/$teamId/index.tsx b/src/ui/routes/teams/$teamId/index.tsx index 680e4a13..b19b28be 100644 --- a/src/ui/routes/teams/$teamId/index.tsx +++ b/src/ui/routes/teams/$teamId/index.tsx @@ -207,174 +207,170 @@ function TeamPage() { return (
-

Projects

-
-
setIsMembersDialogOpen(true)} - > - {safeMembers.slice(0, 3).map((member) => ( - - - {getInitials(member.name)} - - - ))} - {safeMembers.length > 3 && ( -
- +{safeMembers.length - 3} -
- )} -
- - -
-
-
- {projects.data?.map((project: ProjectInfo) => ( -
handleCardClick(project.id!, e)} - > -
-
- {project.coverImage ? ( - {project.name} - ) : ( -
- -
- )} -
-

{project.name}

-
-
-

- Updated {formatDateAgo((project.updatedAt as string) ?? '')} -

-
e.stopPropagation()}> - - - - - - { - e.stopPropagation() - handleEditProjectClick(project) - }} - > - Project Settings - - handleDeleteProjectClick(project)} - > - Delete - - - -
-
-
-
- ))} +

Projects

+
setIsMembersDialogOpen(true)} + > + {safeMembers.slice(0, 3).map((member) => ( + + {getInitials(member.name)} + + ))} + {safeMembers.length > 3 && ( +
+ +{safeMembers.length - 3} +
)} - onClick={handleCreateCardClick} +
+ + +
+
+
+ {projects.data?.map((project: ProjectInfo) => ( +
handleCardClick(project.id!, e)} >
-
- +
+ {project.coverImage ? ( + {project.name} + ) : ( +
+ +
+ )} +
+

{project.name}

-
-

- Create Project +

+

+ Updated {formatDateAgo((project.updatedAt as string) ?? '')}

+
e.stopPropagation()}> + + + + + + { + e.stopPropagation() + handleEditProjectClick(project) + }} + > + Project Settings + + handleDeleteProjectClick(project)} + > + Delete + + + +
+ ))} +
+
+
+ +
+
+

+ Create Project +

+
+
- - - - - - - 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 */} - +
{/* Main Content Area */} -
+