feat(webui): use project members for asset comment mentions (#315)

* feat(webui): use project members for asset comment mentions

* refactor(project): remove legacy unused bots endpoint and props
This commit is contained in:
Yiling-J
2026-08-16 16:44:50 +08:00
committed by GitHub
parent 55d9596835
commit dd82daf65c
17 changed files with 170 additions and 109 deletions
@@ -1,29 +1,29 @@
import { client } from '@/ui/api/client'
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
} from '@/ui/components/ui/alert-dialog'
import { Badge } from '@/ui/components/ui/badge'
import { Button } from '@/ui/components/ui/button'
import { Card, CardContent } from '@/ui/components/ui/card'
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/ui/components/ui/dropdown-menu'
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/ui/components/ui/select'
import { Switch } from '@/ui/components/ui/switch'
import { usePermissions } from '@/ui/hooks/use-permissions'
@@ -32,16 +32,16 @@ import { m } from '@/ui/paraglide/messages.js'
import { AgentInfo, AgentPermission, AgentType, ThinkingLevel } from '@shumai/dtos'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import {
Bot,
ChevronDown,
Cpu,
Loader2,
MessageSquare,
MoreVertical,
Plus,
Puzzle,
Trash2,
Zap,
Bot,
ChevronDown,
Cpu,
Loader2,
MessageSquare,
MoreVertical,
Plus,
Puzzle,
Trash2,
Zap,
} from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'