Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
add added by and added at fields to table, changes to API header
Mish Ushakov0a960032c44c
diff --git a/apps/web/src/components/Dashboard/Team.tsx b/apps/web/src/components/Dashboard/Team.tsxindex 98aedb9ed..a612f614e 100644--- a/apps/web/src/components/Dashboard/Team.tsx+++ b/apps/web/src/components/Dashboard/Team.tsx@@ -22,13 +22,17 @@ import {AlertDialogFooter,AlertDialogHeader,AlertDialogTitle,- AlertDialogTrigger,} from '../ui/alert-dialog'import Spinner from '@/components/Spinner'interface TeamMember {id: stringemail: string+ addedBy: {+ id: string+ email: string+ } | null+ addedAt: string}const emailRegex = new RegExp(@@ -62,7 +66,7 @@ export const TeamContent = ({`${process.env.NEXT_PUBLIC_BILLING_API_URL}/teams/${team.id}/users`,{headers: {- 'X-Team-API-Key': team.apiKeys[0],+ 'X-User-Access-Token': user.accessToken,},})@@ -261,6 +265,8 @@ export const TeamContent = ({<TableHeader><TableRow className="hover:bg-inherit dark:hover:bg-inherit border-b border-white/5"><TableHead>Email</TableHead>+ <TableHead>Added by</TableHead>+ <TableHead>Added at</TableHead><TableHead></TableHead></TableRow></TableHeader>@@ -278,13 +284,14 @@ export const TeamContent = ({key={user.id}><TableCell>{user.email}</TableCell>- <TableCell>+ <TableCell>{user.addedBy?.email}</TableCell>+ <TableCell>{user.addedAt}</TableCell>+ <TableCell align="right"><Button- className="text-sm"variant="desctructive"onClick={() => openDialog(user.id)}>- Remove team member+ Remove</Button></TableCell></TableRow>@@ -295,18 +302,13 @@ export const TeamContent = ({)}<AlertDialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>- <AlertDialogTrigger asChild>- <Button variant="outline" style={{ display: 'none' }}>- Show Dialog- </Button>- </AlertDialogTrigger><AlertDialogContent className="bg-inherit text-white border-black"><AlertDialogHeader><AlertDialogTitle>- You are about to delete a member from the team+ You are about to remove a member from the team</AlertDialogTitle><AlertDialogDescription className="text-white/90">- This action cannot be undone. This will permanently delete the+ This action cannot be undone. This will permanently remove themember from the team.</AlertDialogDescription></AlertDialogHeader>@@ -321,7 +323,7 @@ export const TeamContent = ({className="bg-red-500 text-white hover:bg-red-600"onClick={() => deleteUserFromTeam()}>- Continue+ Remove</AlertDialogAction></AlertDialogFooter></AlertDialogContent>