Truncate access review roles with badge list
Long role strings in the access review table broke row layout when drivers joined many roles into one comma-separated value. Expose roles as a string array in GraphQL by splitting the stored role at the API layer, and render the first three roles as badges with a "+X more" popover for the rest. Closes ENG-459. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -37,8 +37,8 @@ import (
|
||||
type AccountRecord struct {
|
||||
Email string
|
||||
FullName string
|
||||
Role string // system role/permission (e.g. "Admin", "Viewer")
|
||||
JobTitle string // HR job title / department (e.g. "Software Engineer")
|
||||
Roles []string // system roles/permissions (e.g. "Admin", "Viewer")
|
||||
JobTitle string // HR job title / department (e.g. "Software Engineer")
|
||||
Active *bool
|
||||
IsAdmin bool
|
||||
MFAStatus coredata.MFAStatus
|
||||
|
||||
Reference in New Issue
Block a user