mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 12:54:55 +00:00
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:
@@ -194,6 +194,10 @@ describe('ProjectService', () => {
|
||||
includeAgents: true,
|
||||
})
|
||||
expect(allMembers).toHaveLength(2)
|
||||
const agentMember = allMembers.find((m) => m.id === bot.id)
|
||||
const humanMember = allMembers.find((m) => m.id === human.id)
|
||||
expect(agentMember?.type).toBe('agent')
|
||||
expect(humanMember?.type).toBe('human')
|
||||
})
|
||||
|
||||
it('filters agent bots by the requester effective project role', async () => {
|
||||
|
||||
@@ -321,6 +321,7 @@ export class ProjectService {
|
||||
id: m.user.id,
|
||||
name: m.user.name,
|
||||
role: m.role as ProjectUserInfo['role'],
|
||||
type: m.user.type || undefined,
|
||||
image: await getAvatarUrl(m.user.image),
|
||||
scope: m.scope,
|
||||
hasCustomRole: m.hasCustomRole,
|
||||
|
||||
Reference in New Issue
Block a user