Skip to content

fix(frontend): ParticipantList session roles are mocked #3986

@mrveiss

Description

@mrveiss

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions