Skip to content

Display full name in project collaborators table #550

@tomasMizera

Description

@tomasMizera

Summary: Update the Project Collaborators endpoint and UI to prioritize displaying a user’s full name over their username.


Backend Changes

  • Endpoint: GET /v2/projects/{id}/collaborators
  • Task: Add a new attribute name to the response object.
  • Logic: Fetch the value using the existing UserProfile.name() method.

Frontend Changes

  • Table: Project Collaborators

  • Column: "Username" (or "Collaborator")

  • Logic Update: Display the new name attribute if it is present and not empty.

    • Fallback: If name is null/empty, continue to display the username.
  • Avatar Integration: Update the getAvatar function to use the name attribute for generating initials.

Image

Acceptance Criteria

  1. The API response for collaborators includes the name field.
  2. The collaborators table shows "John Doe" instead of "jdoe123" when the full name is available.
  3. User avatars generate initials based on the full name (e.g., "JD").
  4. Existing functionality remains if the full name is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions