Skip to content

fix: fetch users from API in InviteUserDialog (#3985)#3992

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

fix: fetch users from API in InviteUserDialog (#3985)#3992
mrveiss merged 1 commit intoDev_new_guifrom
fix/issue-3985

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 8, 2026

Summary

Replaces hardcoded mock users with real user data fetched from backend API.

Changes

  • Removed hardcoded mockUsers array (5 test accounts)
  • Added API integration to fetch users from /user-management/users endpoint
  • Added loading state while fetching users
  • Implemented error handling with user-friendly messages
  • Enhanced search filter to include display_name
  • Proper lifecycle management (fetch on mount, reset on close)

Testing

  • Users now load from real API endpoint
  • Loading state displays correctly
  • Error handling works for API failures
  • Search filtering includes all user fields
  • TypeScript compilation successful

Closes #3985

Replace hardcoded mock users with real API call to /user-management/users endpoint.
Adds loading state while fetching, error handling, and display name support.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@mrveiss mrveiss merged commit b44c592 into Dev_new_gui Apr 8, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-3985 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