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
+2 -6
View File
@@ -1,4 +1,5 @@
import { z } from 'zod'
import { UserType } from '@shumai/db/enums'
import { paginationPageInfoSchema, paginationParamsSchema } from './pagination'
export const createProjectRequestSchema = z.object({
@@ -48,18 +49,13 @@ export const projectUserInfoSchema = z.object({
id: z.string(),
name: z.string(),
role: z.enum(['owner', 'editor', 'reviewer', 'bot', 'unknown']),
type: z.nativeEnum(UserType).optional(),
image: z.string().optional(),
scope: z.enum(['team', 'project']).optional(),
hasCustomRole: z.boolean().optional(),
})
export type ProjectUserInfo = z.infer<typeof projectUserInfoSchema>
export const botInfoSchema = z.object({
id: z.string(),
name: z.string(),
})
export type BotInfo = z.infer<typeof botInfoSchema>
export const recentlyDeletedRequestSchema = z
.object({
assetType: z.string(),