Skip to content

fix: fetch real participant roles from session API in ParticipantList (#3986)#3994

Merged
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3986
Apr 8, 2026
Merged

fix: fetch real participant roles from session API in ParticipantList (#3986)#3994
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3986

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 8, 2026

Summary

Replaces hardcoded participant role mocking with real backend API data.

Changes

  • Added ParticipantResponse and SessionParticipantsResponse interfaces to api.ts
  • Implemented getSessionParticipants() API method
  • Updated ParticipantList.vue to fetch real roles from /sessions/{session_id}/participants
  • Added loading state while fetching participant data
  • Integrated with session collaboration store
  • Re-fetches when session ID or presence changes

Testing

  • TypeScript compilation: ✓ No errors
  • Vite build: ✓ Success
  • Real roles now display from API
  • Loading state shows correctly
  • Error handling works properly

Closes #3986

…#3986)

Replace hardcoded role mocking with real API integration:
- Added ParticipantResponse and SessionParticipantsResponse interfaces
- Implemented getSessionParticipants() API method
- Updated ParticipantList to fetch real roles from backend API
- Added loading state and error handling
- Re-fetches when session or presence changes
- Supports role levels: owner, editor, viewer

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@mrveiss mrveiss merged commit 1b16061 into Dev_new_gui Apr 8, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-3986 branch April 8, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant