Files
Jonathan Adeline af125616d1 feat: refresh workspace members, invites, teams and agents pages (#6306)
* feat: align management pages with the refreshed table design

* feat: refresh agent dialogs using shared UI components

* test: cover refreshed management pages and agent dialogs

* fix: use the standard UI modal for agent management

* feat: expand member rows with available role details

* Revert "feat: expand member rows with available role details"

This reverts commit e0516c6ce43896508b918db10b028f1cdf88c29b.

* docs: show scoped member roles in CrudTable stories

* fix: align tab labels with badges

* fix: define management role icons in the role registry

* fix: reuse shared name abbreviations in management tables

* style: format management tables and tabs for CI

* test: preserve agent totals and tab badges after rebase
2026-10-22 17:06:02 +04:00

25 lines
865 B
JavaScript

export default (client, $hasFeature, $registry) => {
return {
// TODO implement once endpoint exists
get(workspace) {
return {
data: Object.values($registry.getAll('roles')).map((role) => ({
uid: role.getUid(),
icon: role.getIconClass(),
description: role.getDescription(),
invitationSubtitle: role.getInvitationSubtitle(workspace.id),
showIsBillable: role.showIsBillable(workspace.id),
isBillable: role.getIsBillable(),
isVisible: role.isVisible(workspace.id),
isDeactivated: role.isDeactivated(workspace.id),
isDefaultForInvitations: role.getIsDefaultForInvitations(
workspace.id
),
allowedScopeTypes: role.allowedScopeTypes,
allowedSubjectTypes: role.allowedSubjectTypes,
})),
}
},
}
}