Show more info in Manage view (#672)

This commit is contained in:
Kamil Kisiela 2022-11-23 10:26:22 +01:00 committed by GitHub
parent 44f47ec8e0
commit 2dd0f98d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,7 +450,12 @@ export const AdminStats: React.FC<{
return (query.data?.admin?.stats.organizations ?? [])
.filter(node => filterStats(node, filters))
.map(node => ({
name: `${node.organization.name} (id: ${node.organization.cleanId}, owner: ${node.organization.owner.user.email})`,
name: [
`<strong style="padding-bottom: 5px;">${node.organization.name}</strong>`,
`id: ${node.organization.id}`,
`cleanId: ${node.organization.cleanId}`,
`owner: ${node.organization.owner.user.email}`,
].join('<br />'),
members: (node.organization.members.nodes || []).map(v => v.user.email).join(', '),
type: node.organization.type,
users: node.users,