-
-
Notifications
You must be signed in to change notification settings - Fork 1
fix(frontend): ParticipantList session roles are mocked #3986
Copy link
Copy link
Closed
Labels
Description
Problem
ParticipantList cannot display or manage real session participant roles - all data is hardcoded as 'owner' or 'collaborator'.
Root Cause
Lines 52+ use computed property that mocks role data instead of fetching from session API:
const participantsWithRoles = computed<ParticipantWithRole[]>(() => {
return sessionPresence.value.map(p => ({
...p,
role: p.userId === myPresence.value?.userId ? 'owner' : 'collaborator' as const,
// Placeholder email and joinedAt - NOT from session API
}))
})Impact
- Cannot manage real session permissions
- Cannot assign/revoke participant roles
- Blocking feature for collaborative sessions
Files
- autobot-frontend/src/components/collaboration/ParticipantList.vue
Solution
Fetch real role and permission data from session API endpoint
Reactions are currently unavailable