@backstage/plugin-org 0.5.2 → 0.5.4-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @backstage/plugin-org
|
|
2
2
|
|
|
3
|
+
## 0.5.4-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 111995470d: add aggregated ownership type for kind group in OwnershipCard
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-catalog-react@1.0.1-next.1
|
|
10
|
+
|
|
11
|
+
## 0.5.4-next.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/catalog-model@1.0.1-next.0
|
|
17
|
+
- @backstage/plugin-catalog-react@1.0.1-next.0
|
|
18
|
+
- @backstage/core-components@0.9.3-next.0
|
|
19
|
+
|
|
20
|
+
## 0.5.3
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- a422d7ce5e: chore(deps): bump `@testing-library/react` from 11.2.6 to 12.1.3
|
|
25
|
+
- 132189e466: Updated the code to handle User kind `spec.memberOf` now being optional.
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/core-components@0.9.2
|
|
28
|
+
- @backstage/core-plugin-api@1.0.0
|
|
29
|
+
- @backstage/plugin-catalog-react@1.0.0
|
|
30
|
+
- @backstage/catalog-model@1.0.0
|
|
31
|
+
|
|
3
32
|
## 0.5.2
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ import '@material-ui/icons/Edit';
|
|
|
15
15
|
import '@material-ui/icons/Cached';
|
|
16
16
|
import '@material-ui/lab/Alert';
|
|
17
17
|
import '@material-ui/icons/Person';
|
|
18
|
-
import 'qs';
|
|
19
18
|
import 'pluralize';
|
|
20
|
-
|
|
19
|
+
import 'p-limit';
|
|
20
|
+
import 'qs';
|
|
21
|
+
//# sourceMappingURL=index-8208bb36.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-8208bb36.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createExternalRouteRef, createPlugin, createComponentExtension, useApi, alertApiRef, useRouteRef } from '@backstage/core-plugin-api';
|
|
2
2
|
import { stringifyEntityRef, DEFAULT_NAMESPACE, RELATION_PARENT_OF, RELATION_CHILD_OF, ANNOTATION_LOCATION, ANNOTATION_EDIT_URL, RELATION_MEMBER_OF } from '@backstage/catalog-model';
|
|
3
|
-
import { useEntity, catalogApiRef, entityRouteParams, getEntityRelations, EntityRefLinks
|
|
4
|
-
import { makeStyles, createStyles, Grid, Box, Typography, IconButton, List, ListItem, ListItemIcon, Tooltip, ListItemText } from '@material-ui/core';
|
|
3
|
+
import { useEntity, catalogApiRef, entityRouteParams, getEntityRelations, EntityRefLinks } from '@backstage/plugin-catalog-react';
|
|
4
|
+
import { makeStyles, createStyles, Grid, Box, Typography, IconButton, List, ListItem, ListItemIcon, Tooltip, ListItemText, ListItemSecondaryAction, Switch } from '@material-ui/core';
|
|
5
5
|
import Pagination from '@material-ui/lab/Pagination';
|
|
6
|
-
import React, { useCallback } from 'react';
|
|
6
|
+
import React, { useCallback, useState } from 'react';
|
|
7
7
|
import { generatePath } from 'react-router-dom';
|
|
8
8
|
import useAsync from 'react-use/lib/useAsync';
|
|
9
9
|
import { Progress, ResponseErrorPanel, InfoCard, Avatar, Link } from '@backstage/core-components';
|
|
@@ -14,8 +14,9 @@ import EditIcon from '@material-ui/icons/Edit';
|
|
|
14
14
|
import CachedIcon from '@material-ui/icons/Cached';
|
|
15
15
|
import Alert from '@material-ui/lab/Alert';
|
|
16
16
|
import PersonIcon from '@material-ui/icons/Person';
|
|
17
|
-
import qs from 'qs';
|
|
18
17
|
import pluralize from 'pluralize';
|
|
18
|
+
import limiterFactory from 'p-limit';
|
|
19
|
+
import qs from 'qs';
|
|
19
20
|
|
|
20
21
|
const catalogIndexRouteRef = createExternalRouteRef({
|
|
21
22
|
id: "catalog-index"
|
|
@@ -30,29 +31,29 @@ const orgPlugin = createPlugin({
|
|
|
30
31
|
const EntityGroupProfileCard = orgPlugin.provide(createComponentExtension({
|
|
31
32
|
name: "EntityGroupProfileCard",
|
|
32
33
|
component: {
|
|
33
|
-
lazy: () => import('./esm/index-
|
|
34
|
+
lazy: () => import('./esm/index-8208bb36.esm.js').then((m) => m.GroupProfileCard)
|
|
34
35
|
}
|
|
35
36
|
}));
|
|
36
37
|
const EntityMembersListCard = orgPlugin.provide(createComponentExtension({
|
|
37
38
|
name: "EntityMembersListCard",
|
|
38
39
|
component: {
|
|
39
|
-
lazy: () => import('./esm/index-
|
|
40
|
+
lazy: () => import('./esm/index-8208bb36.esm.js').then((m) => m.MembersListCard)
|
|
40
41
|
}
|
|
41
42
|
}));
|
|
42
43
|
const EntityOwnershipCard = orgPlugin.provide(createComponentExtension({
|
|
43
44
|
name: "EntityOwnershipCard",
|
|
44
45
|
component: {
|
|
45
|
-
lazy: () => import('./esm/index-
|
|
46
|
+
lazy: () => import('./esm/index-8208bb36.esm.js').then((m) => m.OwnershipCard)
|
|
46
47
|
}
|
|
47
48
|
}));
|
|
48
49
|
const EntityUserProfileCard = orgPlugin.provide(createComponentExtension({
|
|
49
50
|
name: "EntityUserProfileCard",
|
|
50
51
|
component: {
|
|
51
|
-
lazy: () => import('./esm/index-
|
|
52
|
+
lazy: () => import('./esm/index-8208bb36.esm.js').then((m) => m.UserProfileCard)
|
|
52
53
|
}
|
|
53
54
|
}));
|
|
54
55
|
|
|
55
|
-
const useStyles$
|
|
56
|
+
const useStyles$2 = makeStyles((theme) => createStyles({
|
|
56
57
|
card: {
|
|
57
58
|
border: `1px solid ${theme.palette.divider}`,
|
|
58
59
|
boxShadow: theme.shadows[2],
|
|
@@ -66,7 +67,7 @@ const useStyles$1 = makeStyles((theme) => createStyles({
|
|
|
66
67
|
}));
|
|
67
68
|
const MemberComponent = ({ member }) => {
|
|
68
69
|
var _a;
|
|
69
|
-
const classes = useStyles$
|
|
70
|
+
const classes = useStyles$2();
|
|
70
71
|
const {
|
|
71
72
|
metadata: { name: metaName },
|
|
72
73
|
spec: { profile }
|
|
@@ -327,85 +328,84 @@ const UserProfileCard = ({
|
|
|
327
328
|
})))))));
|
|
328
329
|
};
|
|
329
330
|
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
333
|
-
boxShadow: theme.shadows[2],
|
|
334
|
-
borderRadius: "4px",
|
|
335
|
-
padding: theme.spacing(2),
|
|
336
|
-
color: "#fff",
|
|
337
|
-
transition: `${theme.transitions.duration.standard}ms`,
|
|
338
|
-
"&:hover": {
|
|
339
|
-
boxShadow: theme.shadows[4]
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
bold: {
|
|
343
|
-
fontWeight: theme.typography.fontWeightBold
|
|
344
|
-
},
|
|
345
|
-
entityTypeBox: {
|
|
346
|
-
background: (props) => theme.getPageTheme({ themeId: props.type }).backgroundImage
|
|
347
|
-
}
|
|
348
|
-
}));
|
|
349
|
-
const EntityCountTile = ({
|
|
350
|
-
counter,
|
|
351
|
-
type,
|
|
352
|
-
name,
|
|
353
|
-
url
|
|
354
|
-
}) => {
|
|
355
|
-
const classes = useStyles({ type });
|
|
356
|
-
return /* @__PURE__ */ React.createElement(Link, {
|
|
357
|
-
to: url,
|
|
358
|
-
variant: "body2"
|
|
359
|
-
}, /* @__PURE__ */ React.createElement(Box, {
|
|
360
|
-
className: `${classes.card} ${classes.entityTypeBox}`,
|
|
361
|
-
display: "flex",
|
|
362
|
-
flexDirection: "column",
|
|
363
|
-
alignItems: "center"
|
|
364
|
-
}, /* @__PURE__ */ React.createElement(Typography, {
|
|
365
|
-
className: classes.bold,
|
|
366
|
-
variant: "h6"
|
|
367
|
-
}, counter), /* @__PURE__ */ React.createElement(Typography, {
|
|
368
|
-
className: classes.bold,
|
|
369
|
-
variant: "h6"
|
|
370
|
-
}, pluralize(name, counter))));
|
|
371
|
-
};
|
|
372
|
-
const getQueryParams = (owner, selectedEntity) => {
|
|
373
|
-
const ownerName = humanizeEntityRef(owner, { defaultKind: "group" });
|
|
331
|
+
const limiter = limiterFactory(10);
|
|
332
|
+
const getQueryParams = (ownersEntityRef, selectedEntity) => {
|
|
374
333
|
const { kind, type } = selectedEntity;
|
|
334
|
+
const owners = ownersEntityRef.map((owner) => owner.split("/")[1]);
|
|
375
335
|
const filters = {
|
|
376
336
|
kind,
|
|
377
337
|
type,
|
|
378
|
-
owners
|
|
338
|
+
owners,
|
|
379
339
|
user: "all"
|
|
380
340
|
};
|
|
381
|
-
if (owner.kind === "User") {
|
|
382
|
-
const user = owner;
|
|
383
|
-
filters.owners = [...filters.owners, ...user.spec.memberOf];
|
|
384
|
-
}
|
|
385
341
|
const queryParams = qs.stringify({
|
|
386
342
|
filters
|
|
387
|
-
}, {
|
|
388
|
-
arrayFormat: "repeat"
|
|
389
343
|
});
|
|
390
344
|
return queryParams;
|
|
391
345
|
};
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
346
|
+
const getOwnersEntityRef = (owner) => {
|
|
347
|
+
let owners = [stringifyEntityRef(owner)];
|
|
348
|
+
if (owner.kind === "User") {
|
|
349
|
+
const ownerGroups = getEntityRelations(owner, RELATION_MEMBER_OF, {
|
|
350
|
+
kind: "Group"
|
|
351
|
+
});
|
|
352
|
+
const ownerGroupsName = ownerGroups.map((ownerGroup) => stringifyEntityRef({
|
|
353
|
+
kind: ownerGroup.kind,
|
|
354
|
+
namespace: ownerGroup.namespace,
|
|
355
|
+
name: ownerGroup.name
|
|
356
|
+
}));
|
|
357
|
+
owners = [...owners, ...ownerGroupsName];
|
|
358
|
+
}
|
|
359
|
+
return owners;
|
|
360
|
+
};
|
|
361
|
+
const getAggregatedOwnersEntityRef = async (parentGroup, catalogApi) => {
|
|
362
|
+
const requestedEntities = [];
|
|
363
|
+
const outstandingEntities = /* @__PURE__ */ new Map();
|
|
364
|
+
const processedEntities = /* @__PURE__ */ new Set();
|
|
365
|
+
requestedEntities.push(parentGroup);
|
|
366
|
+
let currentEntity = parentGroup;
|
|
367
|
+
while (requestedEntities.length > 0) {
|
|
368
|
+
const childRelations = getEntityRelations(currentEntity, RELATION_PARENT_OF, {
|
|
369
|
+
kind: "Group"
|
|
370
|
+
});
|
|
371
|
+
await Promise.all(childRelations.map((childGroup) => limiter(async () => {
|
|
372
|
+
const promise = catalogApi.getEntityByRef(childGroup);
|
|
373
|
+
outstandingEntities.set(childGroup.name, promise);
|
|
374
|
+
try {
|
|
375
|
+
const processedEntity = await promise;
|
|
376
|
+
if (processedEntity) {
|
|
377
|
+
requestedEntities.push(processedEntity);
|
|
378
|
+
}
|
|
379
|
+
} finally {
|
|
380
|
+
outstandingEntities.delete(childGroup.name);
|
|
381
|
+
}
|
|
382
|
+
})));
|
|
383
|
+
requestedEntities.shift();
|
|
384
|
+
processedEntities.add(stringifyEntityRef({
|
|
385
|
+
kind: currentEntity.kind,
|
|
386
|
+
namespace: currentEntity.metadata.namespace,
|
|
387
|
+
name: currentEntity.metadata.name
|
|
388
|
+
}));
|
|
389
|
+
currentEntity = requestedEntities[0];
|
|
390
|
+
}
|
|
391
|
+
return Array.from(processedEntities);
|
|
392
|
+
};
|
|
393
|
+
function useGetEntities(entity, relationsType, isGroup, entityFilterKind) {
|
|
397
394
|
const catalogApi = useApi(catalogApiRef);
|
|
398
|
-
const
|
|
395
|
+
const kinds = entityFilterKind != null ? entityFilterKind : ["Component", "API", "System"];
|
|
399
396
|
const {
|
|
400
397
|
loading,
|
|
401
398
|
error,
|
|
402
399
|
value: componentsWithCounters
|
|
403
400
|
} = useAsync(async () => {
|
|
404
|
-
const
|
|
405
|
-
const
|
|
406
|
-
filter:
|
|
407
|
-
|
|
408
|
-
|
|
401
|
+
const owners = relationsType === "aggregated" && isGroup ? await getAggregatedOwnersEntityRef(entity, catalogApi) : getOwnersEntityRef(entity);
|
|
402
|
+
const ownedEntitiesList = await catalogApi.getEntities({
|
|
403
|
+
filter: [
|
|
404
|
+
{
|
|
405
|
+
kind: kinds,
|
|
406
|
+
"relations.ownedBy": owners
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
409
|
fields: [
|
|
410
410
|
"kind",
|
|
411
411
|
"metadata.name",
|
|
@@ -414,8 +414,7 @@ const OwnershipCard = ({
|
|
|
414
414
|
"relations"
|
|
415
415
|
]
|
|
416
416
|
});
|
|
417
|
-
const
|
|
418
|
-
const counts = ownedEntitiesList.reduce((acc, ownedEntity) => {
|
|
417
|
+
const counts = ownedEntitiesList.items.reduce((acc, ownedEntity) => {
|
|
419
418
|
var _a, _b, _c;
|
|
420
419
|
const match = acc.find((x) => {
|
|
421
420
|
var _a2, _b2;
|
|
@@ -437,9 +436,66 @@ const OwnershipCard = ({
|
|
|
437
436
|
counter: topOwnedEntity.count,
|
|
438
437
|
type: topOwnedEntity.type,
|
|
439
438
|
name: topOwnedEntity.type.toLocaleUpperCase("en-US"),
|
|
440
|
-
queryParams: getQueryParams(
|
|
439
|
+
queryParams: getQueryParams(owners, topOwnedEntity)
|
|
441
440
|
}));
|
|
442
|
-
}, [catalogApi, entity]);
|
|
441
|
+
}, [catalogApi, entity, relationsType]);
|
|
442
|
+
return {
|
|
443
|
+
componentsWithCounters,
|
|
444
|
+
loading,
|
|
445
|
+
error
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
const useStyles$1 = makeStyles((theme) => createStyles({
|
|
450
|
+
card: {
|
|
451
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
452
|
+
boxShadow: theme.shadows[2],
|
|
453
|
+
borderRadius: "4px",
|
|
454
|
+
padding: theme.spacing(2),
|
|
455
|
+
color: "#fff",
|
|
456
|
+
transition: `${theme.transitions.duration.standard}ms`,
|
|
457
|
+
"&:hover": {
|
|
458
|
+
boxShadow: theme.shadows[4]
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
bold: {
|
|
462
|
+
fontWeight: theme.typography.fontWeightBold
|
|
463
|
+
},
|
|
464
|
+
entityTypeBox: {
|
|
465
|
+
background: (props) => theme.getPageTheme({ themeId: props.type }).backgroundImage
|
|
466
|
+
}
|
|
467
|
+
}));
|
|
468
|
+
const EntityCountTile = ({
|
|
469
|
+
counter,
|
|
470
|
+
type,
|
|
471
|
+
name,
|
|
472
|
+
url
|
|
473
|
+
}) => {
|
|
474
|
+
const classes = useStyles$1({ type });
|
|
475
|
+
return /* @__PURE__ */ React.createElement(Link, {
|
|
476
|
+
to: url,
|
|
477
|
+
variant: "body2"
|
|
478
|
+
}, /* @__PURE__ */ React.createElement(Box, {
|
|
479
|
+
className: `${classes.card} ${classes.entityTypeBox}`,
|
|
480
|
+
display: "flex",
|
|
481
|
+
flexDirection: "column",
|
|
482
|
+
alignItems: "center"
|
|
483
|
+
}, /* @__PURE__ */ React.createElement(Typography, {
|
|
484
|
+
className: classes.bold,
|
|
485
|
+
variant: "h6"
|
|
486
|
+
}, counter), /* @__PURE__ */ React.createElement(Typography, {
|
|
487
|
+
className: classes.bold,
|
|
488
|
+
variant: "h6"
|
|
489
|
+
}, pluralize(name, counter))));
|
|
490
|
+
};
|
|
491
|
+
const ComponentsGrid = ({
|
|
492
|
+
entity,
|
|
493
|
+
relationsType,
|
|
494
|
+
isGroup,
|
|
495
|
+
entityFilterKind
|
|
496
|
+
}) => {
|
|
497
|
+
const catalogLink = useRouteRef(catalogIndexRouteRef);
|
|
498
|
+
const { componentsWithCounters, loading, error } = useGetEntities(entity, relationsType, isGroup, entityFilterKind);
|
|
443
499
|
if (loading) {
|
|
444
500
|
return /* @__PURE__ */ React.createElement(Progress, null);
|
|
445
501
|
} else if (error) {
|
|
@@ -447,10 +503,7 @@ const OwnershipCard = ({
|
|
|
447
503
|
error
|
|
448
504
|
});
|
|
449
505
|
}
|
|
450
|
-
return /* @__PURE__ */ React.createElement(
|
|
451
|
-
title: "Ownership",
|
|
452
|
-
variant
|
|
453
|
-
}, /* @__PURE__ */ React.createElement(Grid, {
|
|
506
|
+
return /* @__PURE__ */ React.createElement(Grid, {
|
|
454
507
|
container: true
|
|
455
508
|
}, componentsWithCounters == null ? void 0 : componentsWithCounters.map((c) => /* @__PURE__ */ React.createElement(Grid, {
|
|
456
509
|
item: true,
|
|
@@ -463,7 +516,67 @@ const OwnershipCard = ({
|
|
|
463
516
|
type: c.type,
|
|
464
517
|
name: c.name,
|
|
465
518
|
url: `${catalogLink()}/?${c.queryParams}`
|
|
466
|
-
}))))
|
|
519
|
+
}))));
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
const useStyles = makeStyles((theme) => ({
|
|
523
|
+
list: {
|
|
524
|
+
[theme.breakpoints.down("xs")]: {
|
|
525
|
+
padding: `0 0 12px`
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
listItemText: {
|
|
529
|
+
[theme.breakpoints.down("xs")]: {
|
|
530
|
+
paddingRight: 0,
|
|
531
|
+
paddingLeft: 0
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
listItemSecondaryAction: {
|
|
535
|
+
[theme.breakpoints.down("xs")]: {
|
|
536
|
+
width: "100%",
|
|
537
|
+
top: "auto",
|
|
538
|
+
right: "auto",
|
|
539
|
+
position: "relative",
|
|
540
|
+
transform: "unset"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}));
|
|
544
|
+
const OwnershipCard = ({
|
|
545
|
+
variant,
|
|
546
|
+
entityFilterKind
|
|
547
|
+
}) => {
|
|
548
|
+
const classes = useStyles();
|
|
549
|
+
const { entity } = useEntity();
|
|
550
|
+
const isGroup = entity.kind === "Group";
|
|
551
|
+
const [relationsType, setRelationsType] = useState("direct");
|
|
552
|
+
return /* @__PURE__ */ React.createElement(InfoCard, {
|
|
553
|
+
title: "Ownership",
|
|
554
|
+
variant
|
|
555
|
+
}, /* @__PURE__ */ React.createElement(List, {
|
|
556
|
+
dense: true
|
|
557
|
+
}, /* @__PURE__ */ React.createElement(ListItem, {
|
|
558
|
+
className: classes.list
|
|
559
|
+
}, /* @__PURE__ */ React.createElement(ListItemText, {
|
|
560
|
+
className: classes.listItemText
|
|
561
|
+
}), /* @__PURE__ */ React.createElement(ListItemSecondaryAction, {
|
|
562
|
+
className: classes.listItemSecondaryAction
|
|
563
|
+
}, "Direct Relations", /* @__PURE__ */ React.createElement(Tooltip, {
|
|
564
|
+
placement: "top",
|
|
565
|
+
arrow: true,
|
|
566
|
+
title: `${relationsType === "direct" ? "Direct" : "Aggregated"} Relations`
|
|
567
|
+
}, /* @__PURE__ */ React.createElement(Switch, {
|
|
568
|
+
color: "primary",
|
|
569
|
+
checked: relationsType !== "direct",
|
|
570
|
+
onChange: () => relationsType === "direct" ? setRelationsType("aggregated") : setRelationsType("direct"),
|
|
571
|
+
name: "pin",
|
|
572
|
+
inputProps: { "aria-label": "Ownership Type Switch" },
|
|
573
|
+
disabled: !isGroup
|
|
574
|
+
})), "Aggregated Relations"))), /* @__PURE__ */ React.createElement(ComponentsGrid, {
|
|
575
|
+
entity,
|
|
576
|
+
relationsType,
|
|
577
|
+
isGroup,
|
|
578
|
+
entityFilterKind
|
|
579
|
+
}));
|
|
467
580
|
};
|
|
468
581
|
|
|
469
582
|
export { EntityGroupProfileCard, EntityMembersListCard, EntityOwnershipCard, EntityUserProfileCard, GroupProfileCard, MembersListCard, OwnershipCard, UserProfileCard, orgPlugin, orgPlugin as plugin };
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/routes.ts","../src/plugin.ts","../src/components/Cards/Group/MembersList/MembersListCard.tsx","../src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx","../src/components/Cards/User/UserProfileCard/UserProfileCard.tsx","../src/components/Cards/OwnershipCard/OwnershipCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createExternalRouteRef } from '@backstage/core-plugin-api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n});\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createComponentExtension,\n createPlugin,\n} from '@backstage/core-plugin-api';\nimport { catalogIndexRouteRef } from './routes';\n\nexport const orgPlugin = createPlugin({\n id: 'org',\n externalRoutes: {\n catalogIndex: catalogIndexRouteRef,\n },\n});\n\nexport const EntityGroupProfileCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityGroupProfileCard',\n component: {\n lazy: () => import('./components').then(m => m.GroupProfileCard),\n },\n }),\n);\nexport const EntityMembersListCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityMembersListCard',\n component: {\n lazy: () => import('./components').then(m => m.MembersListCard),\n },\n }),\n);\nexport const EntityOwnershipCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityOwnershipCard',\n component: {\n lazy: () => import('./components').then(m => m.OwnershipCard),\n },\n }),\n);\nexport const EntityUserProfileCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityUserProfileCard',\n component: {\n lazy: () => import('./components').then(m => m.UserProfileCard),\n },\n }),\n);\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n DEFAULT_NAMESPACE,\n GroupEntity,\n UserEntity,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n catalogApiRef,\n entityRouteParams,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n createStyles,\n Grid,\n makeStyles,\n Theme,\n Typography,\n} from '@material-ui/core';\nimport Pagination from '@material-ui/lab/Pagination';\nimport React from 'react';\nimport { generatePath } from 'react-router-dom';\nimport useAsync from 'react-use/lib/useAsync';\n\nimport {\n Avatar,\n InfoCard,\n Progress,\n ResponseErrorPanel,\n Link,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n overflow: 'visible',\n position: 'relative',\n margin: theme.spacing(4, 1, 1),\n flex: '1',\n minWidth: '0px',\n },\n }),\n);\n\nconst MemberComponent = ({ member }: { member: UserEntity }) => {\n const classes = useStyles();\n const {\n metadata: { name: metaName },\n spec: { profile },\n } = member;\n const displayName = profile?.displayName ?? metaName;\n\n return (\n <Grid item container xs={12} sm={6} md={4} xl={2}>\n <Box className={classes.card}>\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n m={3}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Avatar\n displayName={displayName}\n picture={profile?.picture}\n customStyles={{\n position: 'absolute',\n top: '-2rem',\n }}\n />\n <Box pt={2} textAlign=\"center\">\n <Typography variant=\"h5\">\n <Link\n to={generatePath(\n `/catalog/:namespace/user/${metaName}`,\n entityRouteParams(member),\n )}\n >\n {displayName}\n </Link>\n </Typography>\n {profile?.email && (\n <Link to={`mailto:${profile.email}`}>{profile.email}</Link>\n )}\n </Box>\n </Box>\n </Box>\n </Grid>\n );\n};\n\nexport const MembersListCard = (_props: {\n memberDisplayTitle?: string;\n pageSize?: number;\n}) => {\n const { entity: groupEntity } = useEntity<GroupEntity>();\n let { memberDisplayTitle, pageSize } = _props;\n const {\n metadata: { name: groupName, namespace: grpNamespace },\n spec: { profile },\n } = groupEntity;\n const catalogApi = useApi(catalogApiRef);\n\n const displayName = profile?.displayName ?? groupName;\n\n const groupNamespace = grpNamespace || DEFAULT_NAMESPACE;\n\n const [page, setPage] = React.useState(1);\n const pageChange = (_: React.ChangeEvent<unknown>, pageIndex: number) => {\n setPage(pageIndex);\n };\n pageSize = pageSize ? pageSize : 50;\n memberDisplayTitle = memberDisplayTitle ? memberDisplayTitle : 'Members';\n\n const {\n loading,\n error,\n value: members,\n } = useAsync(async () => {\n const membersList = await catalogApi.getEntities({\n filter: {\n kind: 'User',\n 'relations.memberof': [\n stringifyEntityRef({\n kind: 'group',\n namespace: groupNamespace.toLocaleLowerCase('en-US'),\n name: groupName.toLocaleLowerCase('en-US'),\n }),\n ],\n },\n });\n\n return membersList.items as UserEntity[];\n }, [catalogApi, groupEntity]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n const nbPages = Math.ceil((members?.length || 0) / pageSize);\n const paginationLabel = nbPages < 2 ? '' : `, page ${page} of ${nbPages}`;\n\n const pagination = (\n <Pagination\n count={nbPages}\n page={page}\n onChange={pageChange}\n showFirstButton\n showLastButton\n />\n );\n\n return (\n <Grid item>\n <InfoCard\n title={`${memberDisplayTitle} (${\n members?.length || 0\n }${paginationLabel})`}\n subheader={`of ${displayName}`}\n {...(nbPages <= 1 ? {} : { actions: pagination })}\n >\n <Grid container spacing={3}>\n {members && members.length > 0 ? (\n members\n .slice(pageSize * (page - 1), pageSize * page)\n .map(member => (\n <MemberComponent member={member} key={member.metadata.uid} />\n ))\n ) : (\n <Box p={2}>\n <Typography>\n This group has no {memberDisplayTitle.toLocaleLowerCase()}.\n </Typography>\n </Box>\n )}\n </Grid>\n </InfoCard>\n </Grid>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n GroupEntity,\n RELATION_CHILD_OF,\n RELATION_PARENT_OF,\n ANNOTATION_LOCATION,\n stringifyEntityRef,\n ANNOTATION_EDIT_URL,\n} from '@backstage/catalog-model';\nimport {\n catalogApiRef,\n EntityRefLinks,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n Grid,\n List,\n ListItem,\n ListItemIcon,\n ListItemText,\n Tooltip,\n IconButton,\n} from '@material-ui/core';\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport EditIcon from '@material-ui/icons/Edit';\nimport CachedIcon from '@material-ui/icons/Cached';\nimport Alert from '@material-ui/lab/Alert';\nimport React, { useCallback } from 'react';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\n\nconst CardTitle = ({ title }: { title: string }) => (\n <Box display=\"flex\" alignItems=\"center\">\n <GroupIcon fontSize=\"inherit\" />\n <Box ml={1}>{title}</Box>\n </Box>\n);\n\nexport const GroupProfileCard = ({\n variant,\n}: {\n variant?: InfoCardVariants;\n}) => {\n const catalogApi = useApi(catalogApiRef);\n const alertApi = useApi(alertApiRef);\n const { entity: group } = useEntity<GroupEntity>();\n\n const refreshEntity = useCallback(async () => {\n await catalogApi.refreshEntity(stringifyEntityRef(group));\n alertApi.post({ message: 'Refresh scheduled', severity: 'info' });\n }, [catalogApi, alertApi, group]);\n\n if (!group) {\n return <Alert severity=\"error\">Group not found</Alert>;\n }\n\n const {\n metadata: { name, description, annotations },\n spec: { profile },\n } = group;\n\n const childRelations = getEntityRelations(group, RELATION_PARENT_OF, {\n kind: 'Group',\n });\n const parentRelations = getEntityRelations(group, RELATION_CHILD_OF, {\n kind: 'group',\n });\n\n const entityLocation = annotations?.[ANNOTATION_LOCATION];\n const allowRefresh =\n entityLocation?.startsWith('url:') || entityLocation?.startsWith('file:');\n\n const entityMetadataEditUrl =\n group.metadata.annotations?.[ANNOTATION_EDIT_URL];\n\n const displayName = profile?.displayName ?? name;\n const emailHref = profile?.email ? `mailto:${profile.email}` : '#';\n const infoCardAction = entityMetadataEditUrl ? (\n <IconButton\n aria-label=\"Edit\"\n title=\"Edit Metadata\"\n component={Link}\n to={entityMetadataEditUrl}\n >\n <EditIcon />\n </IconButton>\n ) : (\n <IconButton aria-label=\"Edit\" disabled title=\"Edit Metadata\">\n <EditIcon />\n </IconButton>\n );\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={variant}\n action={\n <>\n {allowRefresh && (\n <IconButton\n aria-label=\"Refresh\"\n title=\"Schedule entity refresh\"\n onClick={refreshEntity}\n >\n <CachedIcon />\n </IconButton>\n )}\n {infoCardAction}\n </>\n }\n >\n <Grid container spacing={3}>\n <Grid item xs={12} sm={2} xl={1}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n </Grid>\n <Grid item md={10} xl={11}>\n <List>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Email\">\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <Link to={emailHref}>{profile.email}</Link>\n </ListItemText>\n </ListItem>\n )}\n\n {parentRelations.length ? (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Parent Group\">\n <AccountTreeIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={parentRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n ) : null}\n\n {childRelations.length ? (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Child Groups\">\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={childRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n ) : null}\n </List>\n </Grid>\n </Grid>\n </InfoCard>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { RELATION_MEMBER_OF, UserEntity } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n Grid,\n List,\n ListItem,\n ListItemIcon,\n ListItemText,\n Tooltip,\n} from '@material-ui/core';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport PersonIcon from '@material-ui/icons/Person';\nimport Alert from '@material-ui/lab/Alert';\nimport React from 'react';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\n\nconst CardTitle = ({ title }: { title?: string }) =>\n title ? (\n <Box display=\"flex\" alignItems=\"center\">\n <PersonIcon fontSize=\"inherit\" />\n <Box ml={1}>{title}</Box>\n </Box>\n ) : null;\n\nexport const UserProfileCard = ({\n variant,\n}: {\n variant?: InfoCardVariants;\n}) => {\n const { entity: user } = useEntity<UserEntity>();\n if (!user) {\n return <Alert severity=\"error\">User not found</Alert>;\n }\n\n const {\n metadata: { name: metaName, description },\n spec: { profile },\n } = user;\n const displayName = profile?.displayName ?? metaName;\n const emailHref = profile?.email ? `mailto:${profile.email}` : undefined;\n const memberOfRelations = getEntityRelations(user, RELATION_MEMBER_OF, {\n kind: 'Group',\n });\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={variant}\n >\n <Grid container spacing={3} alignItems=\"flex-start\">\n <Grid item xs={12} sm={2} xl={1}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n </Grid>\n\n <Grid item md={10} xl={11}>\n <List>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Email\">\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <Link to={emailHref ?? ''}>{profile.email}</Link>\n </ListItemText>\n </ListItem>\n )}\n\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Member of\">\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={memberOfRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n </List>\n </Grid>\n </Grid>\n </InfoCard>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Entity, UserEntity } from '@backstage/catalog-model';\nimport {\n InfoCard,\n InfoCardVariants,\n Link,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n humanizeEntityRef,\n isOwnerOf,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport { BackstageTheme } from '@backstage/theme';\nimport {\n Box,\n createStyles,\n Grid,\n makeStyles,\n Typography,\n} from '@material-ui/core';\nimport qs from 'qs';\nimport React from 'react';\nimport pluralize from 'pluralize';\nimport useAsync from 'react-use/lib/useAsync';\nimport { catalogIndexRouteRef } from '../../../routes';\n\ntype EntityTypeProps = {\n kind: string;\n type: string;\n count: number;\n};\n\nconst useStyles = makeStyles((theme: BackstageTheme) =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n padding: theme.spacing(2),\n color: '#fff',\n transition: `${theme.transitions.duration.standard}ms`,\n '&:hover': {\n boxShadow: theme.shadows[4],\n },\n },\n bold: {\n fontWeight: theme.typography.fontWeightBold,\n },\n entityTypeBox: {\n background: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).backgroundImage,\n },\n }),\n);\n\nconst EntityCountTile = ({\n counter,\n type,\n name,\n url,\n}: {\n counter: number;\n type: string;\n name: string;\n url: string;\n}) => {\n const classes = useStyles({ type });\n\n return (\n <Link to={url} variant=\"body2\">\n <Box\n className={`${classes.card} ${classes.entityTypeBox}`}\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n >\n <Typography className={classes.bold} variant=\"h6\">\n {counter}\n </Typography>\n <Typography className={classes.bold} variant=\"h6\">\n {pluralize(name, counter)}\n </Typography>\n </Box>\n </Link>\n );\n};\n\nconst getQueryParams = (\n owner: Entity,\n selectedEntity: EntityTypeProps,\n): string => {\n const ownerName = humanizeEntityRef(owner, { defaultKind: 'group' });\n const { kind, type } = selectedEntity;\n const filters = {\n kind,\n type,\n owners: [ownerName],\n user: 'all',\n };\n if (owner.kind === 'User') {\n const user = owner as UserEntity;\n filters.owners = [...filters.owners, ...user.spec.memberOf];\n }\n const queryParams = qs.stringify(\n {\n filters,\n },\n {\n arrayFormat: 'repeat',\n },\n );\n\n return queryParams;\n};\n\nexport const OwnershipCard = ({\n variant,\n entityFilterKind,\n}: {\n variant?: InfoCardVariants;\n entityFilterKind?: string[];\n}) => {\n const { entity } = useEntity();\n const catalogApi = useApi(catalogApiRef);\n const catalogLink = useRouteRef(catalogIndexRouteRef);\n\n const {\n loading,\n error,\n value: componentsWithCounters,\n } = useAsync(async () => {\n const kinds = entityFilterKind ?? ['Component', 'API'];\n const entitiesList = await catalogApi.getEntities({\n filter: {\n kind: kinds,\n },\n fields: [\n 'kind',\n 'metadata.name',\n 'metadata.namespace',\n 'spec.type',\n 'relations',\n ],\n });\n\n const ownedEntitiesList = entitiesList.items.filter(component =>\n isOwnerOf(entity, component),\n );\n\n const counts = ownedEntitiesList.reduce(\n (acc: EntityTypeProps[], ownedEntity) => {\n const match = acc.find(\n x =>\n x.kind === ownedEntity.kind &&\n x.type === (ownedEntity.spec?.type ?? ownedEntity.kind),\n );\n if (match) {\n match.count += 1;\n } else {\n acc.push({\n kind: ownedEntity.kind,\n type: ownedEntity.spec?.type?.toString() ?? ownedEntity.kind,\n count: 1,\n });\n }\n return acc;\n },\n [],\n );\n\n // Return top N (six) entities to be displayed in ownership boxes\n const topN = counts.sort((a, b) => b.count - a.count).slice(0, 6);\n\n return topN.map(topOwnedEntity => ({\n counter: topOwnedEntity.count,\n type: topOwnedEntity.type,\n name: topOwnedEntity.type.toLocaleUpperCase('en-US'),\n queryParams: getQueryParams(entity, topOwnedEntity),\n })) as Array<{\n counter: number;\n type: string;\n name: string;\n queryParams: string;\n }>;\n }, [catalogApi, entity]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n return (\n <InfoCard title=\"Ownership\" variant={variant}>\n <Grid container>\n {componentsWithCounters?.map(c => (\n <Grid item xs={6} md={6} lg={4} key={c.name}>\n <EntityCountTile\n counter={c.counter}\n type={c.type}\n name={c.name}\n url={`${catalogLink()}/?${c.queryParams}`}\n />\n </Grid>\n ))}\n </Grid>\n </InfoCard>\n );\n};\n"],"names":["useStyles","CardTitle"],"mappings":";;;;;;;;;;;;;;;;;;;MAkBa,uBAAuB,uBAAuB;AAAA,EACzD,IAAI;AAAA;;MCEO,YAAY,aAAa;AAAA,EACpC,IAAI;AAAA,EACJ,gBAAgB;AAAA,IACd,cAAc;AAAA;AAAA;MAIL,yBAAyB,UAAU,QAC9C,yBAAyB;AAAA,EACvB,MAAM;AAAA,EACN,WAAW;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,KAAK,OAAK,EAAE;AAAA;AAAA;MAIxC,wBAAwB,UAAU,QAC7C,yBAAyB;AAAA,EACvB,MAAM;AAAA,EACN,WAAW;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,KAAK,OAAK,EAAE;AAAA;AAAA;MAIxC,sBAAsB,UAAU,QAC3C,yBAAyB;AAAA,EACvB,MAAM;AAAA,EACN,WAAW;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,KAAK,OAAK,EAAE;AAAA;AAAA;MAIxC,wBAAwB,UAAU,QAC7C,yBAAyB;AAAA,EACvB,MAAM;AAAA,EACN,WAAW;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,KAAK,OAAK,EAAE;AAAA;AAAA;;ACRrD,MAAMA,cAAY,WAAW,CAAC,UAC5B,aAAa;AAAA,EACX,MAAM;AAAA,IACJ,QAAQ,aAAa,MAAM,QAAQ;AAAA,IACnC,WAAW,MAAM,QAAQ;AAAA,IACzB,cAAc;AAAA,IACd,UAAU;AAAA,IACV,UAAU;AAAA,IACV,QAAQ,MAAM,QAAQ,GAAG,GAAG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AAI;AAAA,IAAC,IAAI;AAAA,IAAG,IAAI;AAAA,IAAG,IAAI;AAAA,IAAG,KAAK,EAAE;AAAA,yCACpC,iBAAD;AAAA,IACE,SAAS,EAAE;AAAA,IACX,MAAM,EAAE;AAAA,IACR,MAAM,EAAE;AAAA,IACR,KAAK,GAAG,kBAAkB,EAAE;AAAA;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/routes.ts","../src/plugin.ts","../src/components/Cards/Group/MembersList/MembersListCard.tsx","../src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx","../src/components/Cards/User/UserProfileCard/UserProfileCard.tsx","../src/components/Cards/OwnershipCard/useGetEntities.ts","../src/components/Cards/OwnershipCard/ComponentsGrid.tsx","../src/components/Cards/OwnershipCard/OwnershipCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createExternalRouteRef } from '@backstage/core-plugin-api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n});\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n createComponentExtension,\n createPlugin,\n} from '@backstage/core-plugin-api';\nimport { catalogIndexRouteRef } from './routes';\n\nexport const orgPlugin = createPlugin({\n id: 'org',\n externalRoutes: {\n catalogIndex: catalogIndexRouteRef,\n },\n});\n\nexport const EntityGroupProfileCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityGroupProfileCard',\n component: {\n lazy: () => import('./components').then(m => m.GroupProfileCard),\n },\n }),\n);\nexport const EntityMembersListCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityMembersListCard',\n component: {\n lazy: () => import('./components').then(m => m.MembersListCard),\n },\n }),\n);\nexport const EntityOwnershipCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityOwnershipCard',\n component: {\n lazy: () => import('./components').then(m => m.OwnershipCard),\n },\n }),\n);\nexport const EntityUserProfileCard = orgPlugin.provide(\n createComponentExtension({\n name: 'EntityUserProfileCard',\n component: {\n lazy: () => import('./components').then(m => m.UserProfileCard),\n },\n }),\n);\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n DEFAULT_NAMESPACE,\n GroupEntity,\n UserEntity,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n catalogApiRef,\n entityRouteParams,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n createStyles,\n Grid,\n makeStyles,\n Theme,\n Typography,\n} from '@material-ui/core';\nimport Pagination from '@material-ui/lab/Pagination';\nimport React from 'react';\nimport { generatePath } from 'react-router-dom';\nimport useAsync from 'react-use/lib/useAsync';\n\nimport {\n Avatar,\n InfoCard,\n Progress,\n ResponseErrorPanel,\n Link,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n overflow: 'visible',\n position: 'relative',\n margin: theme.spacing(4, 1, 1),\n flex: '1',\n minWidth: '0px',\n },\n }),\n);\n\nconst MemberComponent = ({ member }: { member: UserEntity }) => {\n const classes = useStyles();\n const {\n metadata: { name: metaName },\n spec: { profile },\n } = member;\n const displayName = profile?.displayName ?? metaName;\n\n return (\n <Grid item container xs={12} sm={6} md={4} xl={2}>\n <Box className={classes.card}>\n <Box\n display=\"flex\"\n flexDirection=\"column\"\n m={3}\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Avatar\n displayName={displayName}\n picture={profile?.picture}\n customStyles={{\n position: 'absolute',\n top: '-2rem',\n }}\n />\n <Box pt={2} textAlign=\"center\">\n <Typography variant=\"h5\">\n <Link\n to={generatePath(\n `/catalog/:namespace/user/${metaName}`,\n entityRouteParams(member),\n )}\n >\n {displayName}\n </Link>\n </Typography>\n {profile?.email && (\n <Link to={`mailto:${profile.email}`}>{profile.email}</Link>\n )}\n </Box>\n </Box>\n </Box>\n </Grid>\n );\n};\n\nexport const MembersListCard = (_props: {\n memberDisplayTitle?: string;\n pageSize?: number;\n}) => {\n const { entity: groupEntity } = useEntity<GroupEntity>();\n let { memberDisplayTitle, pageSize } = _props;\n const {\n metadata: { name: groupName, namespace: grpNamespace },\n spec: { profile },\n } = groupEntity;\n const catalogApi = useApi(catalogApiRef);\n\n const displayName = profile?.displayName ?? groupName;\n\n const groupNamespace = grpNamespace || DEFAULT_NAMESPACE;\n\n const [page, setPage] = React.useState(1);\n const pageChange = (_: React.ChangeEvent<unknown>, pageIndex: number) => {\n setPage(pageIndex);\n };\n pageSize = pageSize ? pageSize : 50;\n memberDisplayTitle = memberDisplayTitle ? memberDisplayTitle : 'Members';\n\n const {\n loading,\n error,\n value: members,\n } = useAsync(async () => {\n const membersList = await catalogApi.getEntities({\n filter: {\n kind: 'User',\n 'relations.memberof': [\n stringifyEntityRef({\n kind: 'group',\n namespace: groupNamespace.toLocaleLowerCase('en-US'),\n name: groupName.toLocaleLowerCase('en-US'),\n }),\n ],\n },\n });\n\n return membersList.items as UserEntity[];\n }, [catalogApi, groupEntity]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n const nbPages = Math.ceil((members?.length || 0) / pageSize);\n const paginationLabel = nbPages < 2 ? '' : `, page ${page} of ${nbPages}`;\n\n const pagination = (\n <Pagination\n count={nbPages}\n page={page}\n onChange={pageChange}\n showFirstButton\n showLastButton\n />\n );\n\n return (\n <Grid item>\n <InfoCard\n title={`${memberDisplayTitle} (${\n members?.length || 0\n }${paginationLabel})`}\n subheader={`of ${displayName}`}\n {...(nbPages <= 1 ? {} : { actions: pagination })}\n >\n <Grid container spacing={3}>\n {members && members.length > 0 ? (\n members\n .slice(pageSize * (page - 1), pageSize * page)\n .map(member => (\n <MemberComponent member={member} key={member.metadata.uid} />\n ))\n ) : (\n <Box p={2}>\n <Typography>\n This group has no {memberDisplayTitle.toLocaleLowerCase()}.\n </Typography>\n </Box>\n )}\n </Grid>\n </InfoCard>\n </Grid>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n GroupEntity,\n RELATION_CHILD_OF,\n RELATION_PARENT_OF,\n ANNOTATION_LOCATION,\n stringifyEntityRef,\n ANNOTATION_EDIT_URL,\n} from '@backstage/catalog-model';\nimport {\n catalogApiRef,\n EntityRefLinks,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n Grid,\n List,\n ListItem,\n ListItemIcon,\n ListItemText,\n Tooltip,\n IconButton,\n} from '@material-ui/core';\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport EditIcon from '@material-ui/icons/Edit';\nimport CachedIcon from '@material-ui/icons/Cached';\nimport Alert from '@material-ui/lab/Alert';\nimport React, { useCallback } from 'react';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\n\nconst CardTitle = ({ title }: { title: string }) => (\n <Box display=\"flex\" alignItems=\"center\">\n <GroupIcon fontSize=\"inherit\" />\n <Box ml={1}>{title}</Box>\n </Box>\n);\n\nexport const GroupProfileCard = ({\n variant,\n}: {\n variant?: InfoCardVariants;\n}) => {\n const catalogApi = useApi(catalogApiRef);\n const alertApi = useApi(alertApiRef);\n const { entity: group } = useEntity<GroupEntity>();\n\n const refreshEntity = useCallback(async () => {\n await catalogApi.refreshEntity(stringifyEntityRef(group));\n alertApi.post({ message: 'Refresh scheduled', severity: 'info' });\n }, [catalogApi, alertApi, group]);\n\n if (!group) {\n return <Alert severity=\"error\">Group not found</Alert>;\n }\n\n const {\n metadata: { name, description, annotations },\n spec: { profile },\n } = group;\n\n const childRelations = getEntityRelations(group, RELATION_PARENT_OF, {\n kind: 'Group',\n });\n const parentRelations = getEntityRelations(group, RELATION_CHILD_OF, {\n kind: 'group',\n });\n\n const entityLocation = annotations?.[ANNOTATION_LOCATION];\n const allowRefresh =\n entityLocation?.startsWith('url:') || entityLocation?.startsWith('file:');\n\n const entityMetadataEditUrl =\n group.metadata.annotations?.[ANNOTATION_EDIT_URL];\n\n const displayName = profile?.displayName ?? name;\n const emailHref = profile?.email ? `mailto:${profile.email}` : '#';\n const infoCardAction = entityMetadataEditUrl ? (\n <IconButton\n aria-label=\"Edit\"\n title=\"Edit Metadata\"\n component={Link}\n to={entityMetadataEditUrl}\n >\n <EditIcon />\n </IconButton>\n ) : (\n <IconButton aria-label=\"Edit\" disabled title=\"Edit Metadata\">\n <EditIcon />\n </IconButton>\n );\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={variant}\n action={\n <>\n {allowRefresh && (\n <IconButton\n aria-label=\"Refresh\"\n title=\"Schedule entity refresh\"\n onClick={refreshEntity}\n >\n <CachedIcon />\n </IconButton>\n )}\n {infoCardAction}\n </>\n }\n >\n <Grid container spacing={3}>\n <Grid item xs={12} sm={2} xl={1}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n </Grid>\n <Grid item md={10} xl={11}>\n <List>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Email\">\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <Link to={emailHref}>{profile.email}</Link>\n </ListItemText>\n </ListItem>\n )}\n\n {parentRelations.length ? (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Parent Group\">\n <AccountTreeIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={parentRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n ) : null}\n\n {childRelations.length ? (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Child Groups\">\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={childRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n ) : null}\n </List>\n </Grid>\n </Grid>\n </InfoCard>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { RELATION_MEMBER_OF, UserEntity } from '@backstage/catalog-model';\nimport {\n EntityRefLinks,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport {\n Box,\n Grid,\n List,\n ListItem,\n ListItemIcon,\n ListItemText,\n Tooltip,\n} from '@material-ui/core';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport PersonIcon from '@material-ui/icons/Person';\nimport Alert from '@material-ui/lab/Alert';\nimport React from 'react';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\n\nconst CardTitle = ({ title }: { title?: string }) =>\n title ? (\n <Box display=\"flex\" alignItems=\"center\">\n <PersonIcon fontSize=\"inherit\" />\n <Box ml={1}>{title}</Box>\n </Box>\n ) : null;\n\nexport const UserProfileCard = ({\n variant,\n}: {\n variant?: InfoCardVariants;\n}) => {\n const { entity: user } = useEntity<UserEntity>();\n if (!user) {\n return <Alert severity=\"error\">User not found</Alert>;\n }\n\n const {\n metadata: { name: metaName, description },\n spec: { profile },\n } = user;\n const displayName = profile?.displayName ?? metaName;\n const emailHref = profile?.email ? `mailto:${profile.email}` : undefined;\n const memberOfRelations = getEntityRelations(user, RELATION_MEMBER_OF, {\n kind: 'Group',\n });\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={variant}\n >\n <Grid container spacing={3} alignItems=\"flex-start\">\n <Grid item xs={12} sm={2} xl={1}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n </Grid>\n\n <Grid item md={10} xl={11}>\n <List>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Email\">\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <Link to={emailHref ?? ''}>{profile.email}</Link>\n </ListItemText>\n </ListItem>\n )}\n\n <ListItem>\n <ListItemIcon>\n <Tooltip title=\"Member of\">\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText>\n <EntityRefLinks\n entityRefs={memberOfRelations}\n defaultKind=\"Group\"\n />\n </ListItemText>\n </ListItem>\n </List>\n </Grid>\n </Grid>\n </InfoCard>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Entity,\n RELATION_MEMBER_OF,\n RELATION_PARENT_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n CatalogApi,\n catalogApiRef,\n getEntityRelations,\n} from '@backstage/plugin-catalog-react';\nimport limiterFactory from 'p-limit';\nimport { useApi } from '@backstage/core-plugin-api';\nimport useAsync from 'react-use/lib/useAsync';\nimport qs from 'qs';\n\nconst limiter = limiterFactory(10);\n\ntype EntityTypeProps = {\n kind: string;\n type: string;\n count: number;\n};\n\nconst getQueryParams = (\n ownersEntityRef: string[],\n selectedEntity: EntityTypeProps,\n): string => {\n const { kind, type } = selectedEntity;\n const owners = ownersEntityRef.map(owner => owner.split('/')[1]);\n const filters = {\n kind,\n type,\n owners,\n user: 'all',\n };\n const queryParams = qs.stringify({\n filters,\n });\n\n return queryParams;\n};\n\nconst getOwnersEntityRef = (owner: Entity): string[] => {\n let owners = [stringifyEntityRef(owner)];\n if (owner.kind === 'User') {\n const ownerGroups = getEntityRelations(owner, RELATION_MEMBER_OF, {\n kind: 'Group',\n });\n const ownerGroupsName = ownerGroups.map(ownerGroup =>\n stringifyEntityRef({\n kind: ownerGroup.kind,\n namespace: ownerGroup.namespace,\n name: ownerGroup.name,\n }),\n );\n owners = [...owners, ...ownerGroupsName];\n }\n return owners;\n};\n\nconst getAggregatedOwnersEntityRef = async (\n parentGroup: Entity,\n catalogApi: CatalogApi,\n): Promise<string[]> => {\n const requestedEntities: Entity[] = [];\n const outstandingEntities = new Map<string, Promise<Entity | undefined>>();\n const processedEntities = new Set<string>();\n requestedEntities.push(parentGroup);\n let currentEntity = parentGroup;\n\n while (requestedEntities.length > 0) {\n const childRelations = getEntityRelations(\n currentEntity,\n RELATION_PARENT_OF,\n {\n kind: 'Group',\n },\n );\n\n await Promise.all(\n childRelations.map(childGroup =>\n limiter(async () => {\n const promise = catalogApi.getEntityByRef(childGroup);\n outstandingEntities.set(childGroup.name, promise);\n try {\n const processedEntity = await promise;\n if (processedEntity) {\n requestedEntities.push(processedEntity);\n }\n } finally {\n outstandingEntities.delete(childGroup.name);\n }\n }),\n ),\n );\n requestedEntities.shift();\n processedEntities.add(\n stringifyEntityRef({\n kind: currentEntity.kind,\n namespace: currentEntity.metadata.namespace,\n name: currentEntity.metadata.name,\n }),\n );\n // always set currentEntity to the first element of array requestedEntities\n currentEntity = requestedEntities[0];\n }\n\n return Array.from(processedEntities);\n};\n\nexport function useGetEntities(\n entity: Entity,\n relationsType: string,\n isGroup: boolean,\n entityFilterKind?: string[],\n): {\n componentsWithCounters:\n | {\n counter: number;\n type: string;\n name: string;\n queryParams: string;\n }[]\n | undefined;\n loading: boolean;\n error?: Error;\n} {\n const catalogApi = useApi(catalogApiRef);\n const kinds = entityFilterKind ?? ['Component', 'API', 'System'];\n\n const {\n loading,\n error,\n value: componentsWithCounters,\n } = useAsync(async () => {\n const owners =\n relationsType === 'aggregated' && isGroup\n ? await getAggregatedOwnersEntityRef(entity, catalogApi)\n : getOwnersEntityRef(entity);\n const ownedEntitiesList = await catalogApi.getEntities({\n filter: [\n {\n kind: kinds,\n 'relations.ownedBy': owners,\n },\n ],\n fields: [\n 'kind',\n 'metadata.name',\n 'metadata.namespace',\n 'spec.type',\n 'relations',\n ],\n });\n\n const counts = ownedEntitiesList.items.reduce(\n (acc: EntityTypeProps[], ownedEntity) => {\n const match = acc.find(\n x =>\n x.kind === ownedEntity.kind &&\n x.type === (ownedEntity.spec?.type ?? ownedEntity.kind),\n );\n if (match) {\n match.count += 1;\n } else {\n acc.push({\n kind: ownedEntity.kind,\n type: ownedEntity.spec?.type?.toString() ?? ownedEntity.kind,\n count: 1,\n });\n }\n return acc;\n },\n [],\n );\n\n // Return top N (six) entities to be displayed in ownership boxes\n const topN = counts.sort((a, b) => b.count - a.count).slice(0, 6);\n\n return topN.map(topOwnedEntity => ({\n counter: topOwnedEntity.count,\n type: topOwnedEntity.type,\n name: topOwnedEntity.type.toLocaleUpperCase('en-US'),\n queryParams: getQueryParams(owners, topOwnedEntity),\n })) as Array<{\n counter: number;\n type: string;\n name: string;\n queryParams: string;\n }>;\n }, [catalogApi, entity, relationsType]);\n\n return {\n componentsWithCounters,\n loading,\n error,\n };\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Entity } from '@backstage/catalog-model';\nimport { Link, Progress, ResponseErrorPanel } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { BackstageTheme } from '@backstage/theme';\nimport {\n Box,\n createStyles,\n Grid,\n makeStyles,\n Typography,\n} from '@material-ui/core';\nimport React from 'react';\nimport pluralize from 'pluralize';\nimport { catalogIndexRouteRef } from '../../../routes';\nimport { useGetEntities } from './useGetEntities';\n\nconst useStyles = makeStyles((theme: BackstageTheme) =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n padding: theme.spacing(2),\n color: '#fff',\n transition: `${theme.transitions.duration.standard}ms`,\n '&:hover': {\n boxShadow: theme.shadows[4],\n },\n },\n bold: {\n fontWeight: theme.typography.fontWeightBold,\n },\n entityTypeBox: {\n background: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).backgroundImage,\n },\n }),\n);\n\nconst EntityCountTile = ({\n counter,\n type,\n name,\n url,\n}: {\n counter: number;\n type: string;\n name: string;\n url: string;\n}) => {\n const classes = useStyles({ type });\n\n return (\n <Link to={url} variant=\"body2\">\n <Box\n className={`${classes.card} ${classes.entityTypeBox}`}\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n >\n <Typography className={classes.bold} variant=\"h6\">\n {counter}\n </Typography>\n <Typography className={classes.bold} variant=\"h6\">\n {pluralize(name, counter)}\n </Typography>\n </Box>\n </Link>\n );\n};\n\nexport const ComponentsGrid = ({\n entity,\n relationsType,\n isGroup,\n entityFilterKind,\n}: {\n entity: Entity;\n relationsType: string;\n isGroup: boolean;\n entityFilterKind?: string[];\n}) => {\n const catalogLink = useRouteRef(catalogIndexRouteRef);\n const { componentsWithCounters, loading, error } = useGetEntities(\n entity,\n relationsType,\n isGroup,\n entityFilterKind,\n );\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n return (\n <Grid container>\n {componentsWithCounters?.map(c => (\n <Grid item xs={6} md={6} lg={4} key={c.name}>\n <EntityCountTile\n counter={c.counter}\n type={c.type}\n name={c.name}\n url={`${catalogLink()}/?${c.queryParams}`}\n />\n </Grid>\n ))}\n </Grid>\n );\n};\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InfoCard, InfoCardVariants } from '@backstage/core-components';\nimport { useEntity } from '@backstage/plugin-catalog-react';\nimport {\n List,\n ListItem,\n ListItemSecondaryAction,\n ListItemText,\n makeStyles,\n Switch,\n Tooltip,\n} from '@material-ui/core';\nimport React, { useState } from 'react';\nimport { ComponentsGrid } from './ComponentsGrid';\n\nconst useStyles = makeStyles(theme => ({\n list: {\n [theme.breakpoints.down('xs')]: {\n padding: `0 0 12px`,\n },\n },\n listItemText: {\n [theme.breakpoints.down('xs')]: {\n paddingRight: 0,\n paddingLeft: 0,\n },\n },\n listItemSecondaryAction: {\n [theme.breakpoints.down('xs')]: {\n width: '100%',\n top: 'auto',\n right: 'auto',\n position: 'relative',\n transform: 'unset',\n },\n },\n}));\n\nexport const OwnershipCard = ({\n variant,\n entityFilterKind,\n}: {\n variant?: InfoCardVariants;\n entityFilterKind?: string[];\n}) => {\n const classes = useStyles();\n const { entity } = useEntity();\n const isGroup = entity.kind === 'Group';\n const [relationsType, setRelationsType] = useState('direct');\n\n return (\n <InfoCard title=\"Ownership\" variant={variant}>\n <List dense>\n <ListItem className={classes.list}>\n <ListItemText className={classes.listItemText} />\n <ListItemSecondaryAction className={classes.listItemSecondaryAction}>\n Direct Relations\n <Tooltip\n placement=\"top\"\n arrow\n title={`${\n relationsType === 'direct' ? 'Direct' : 'Aggregated'\n } Relations`}\n >\n <Switch\n color=\"primary\"\n checked={relationsType !== 'direct'}\n onChange={() =>\n relationsType === 'direct'\n ? setRelationsType('aggregated')\n : setRelationsType('direct')\n }\n name=\"pin\"\n inputProps={{ 'aria-label': 'Ownership Type Switch' }}\n disabled={!isGroup}\n />\n </Tooltip>\n Aggregated Relations\n </ListItemSecondaryAction>\n </ListItem>\n </List>\n <ComponentsGrid\n entity={entity}\n relationsType={relationsType}\n isGroup={isGroup}\n entityFilterKind={entityFilterKind}\n />\n </InfoCard>\n );\n};\n"],"names":["useStyles","CardTitle"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkBO,MAAM,uBAAuB,sBAAuB,CAAA;AAAA,EACzD,EAAI,EAAA,eAAA;AACN,CAAC,CAAA;;ACCM,MAAM,YAAY,YAAa,CAAA;AAAA,EACpC,EAAI,EAAA,KAAA;AAAA,EACJ,cAAgB,EAAA;AAAA,IACd,YAAc,EAAA,oBAAA;AAAA,GAChB;AACF,CAAC,EAAA;AAEY,MAAA,sBAAA,GAAyB,SAAU,CAAA,OAAA,CAC9C,wBAAyB,CAAA;AAAA,EACvB,IAAM,EAAA,wBAAA;AAAA,EACN,SAAW,EAAA;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,gBAAgB,CAAA;AAAA,GACjE;AACF,CAAC,CACH,EAAA;AACa,MAAA,qBAAA,GAAwB,SAAU,CAAA,OAAA,CAC7C,wBAAyB,CAAA;AAAA,EACvB,IAAM,EAAA,uBAAA;AAAA,EACN,SAAW,EAAA;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,eAAe,CAAA;AAAA,GAChE;AACF,CAAC,CACH,EAAA;AACa,MAAA,mBAAA,GAAsB,SAAU,CAAA,OAAA,CAC3C,wBAAyB,CAAA;AAAA,EACvB,IAAM,EAAA,qBAAA;AAAA,EACN,SAAW,EAAA;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,aAAa,CAAA;AAAA,GAC9D;AACF,CAAC,CACH,EAAA;AACa,MAAA,qBAAA,GAAwB,SAAU,CAAA,OAAA,CAC7C,wBAAyB,CAAA;AAAA,EACvB,IAAM,EAAA,uBAAA;AAAA,EACN,SAAW,EAAA;AAAA,IACT,MAAM,MAAM,OAAO,+BAAgB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A;AAAA,GAAA,EAAyB,oCAElE,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IACC,SAAU,EAAA,KAAA;AAAA,IACV,KAAK,EAAA,IAAA;AAAA,IACL,KAAO,EAAA,CAAA,EACL,aAAkB,KAAA,QAAA,GAAW,QAAW,GAAA,YAAA,CAAA,UAAA,CAAA;AAAA,GAAA,kBAGzC,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAA,IACC,KAAM,EAAA,SAAA;AAAA,IACN,SAAS,aAAkB,KAAA,QAAA;AAAA,IAC3B,QAAA,EAAU,MACR,aAAkB,KAAA,QAAA,GACd,iBAAiB,YAAY,CAAA,GAC7B,iBAAiB,QAAQ,CAAA;AAAA,IAE/B,IAAK,EAAA,KAAA;AAAA,IACL,UAAA,EAAY,EAAE,YAAA,EAAc,uBAAwB,EAAA;AAAA,IACpD,UAAU,CAAC,OAAA;AAAA,GACb,CACF,CAAU,EAAA,sBAEZ,CACF,CACF,mBACC,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA;AAAA,IACC,MAAA;AAAA,IACA,aAAA;AAAA,IACA,OAAA;AAAA,IACA,gBAAA;AAAA,GACF,CACF,CAAA,CAAA;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-org",
|
|
3
3
|
"description": "A Backstage plugin that helps you create entity pages for your organization",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.4-next.1",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -24,14 +24,15 @@
|
|
|
24
24
|
"clean": "backstage-cli package clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@backstage/catalog-model": "^0.
|
|
28
|
-
"@backstage/core-components": "^0.9.
|
|
29
|
-
"@backstage/core-plugin-api": "^0.
|
|
30
|
-
"@backstage/plugin-catalog-react": "^0.
|
|
27
|
+
"@backstage/catalog-model": "^1.0.1-next.0",
|
|
28
|
+
"@backstage/core-components": "^0.9.3-next.0",
|
|
29
|
+
"@backstage/core-plugin-api": "^1.0.0",
|
|
30
|
+
"@backstage/plugin-catalog-react": "^1.0.1-next.1",
|
|
31
31
|
"@backstage/theme": "^0.2.15",
|
|
32
32
|
"@material-ui/core": "^4.12.2",
|
|
33
33
|
"@material-ui/icons": "^4.9.1",
|
|
34
34
|
"@material-ui/lab": "4.0.0-alpha.57",
|
|
35
|
+
"p-limit": "^3.1.0",
|
|
35
36
|
"pluralize": "^8.0.0",
|
|
36
37
|
"qs": "^6.10.1",
|
|
37
38
|
"react-router": "6.0.0-beta.0",
|
|
@@ -42,13 +43,13 @@
|
|
|
42
43
|
"react": "^16.13.1 || ^17.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@backstage/catalog-client": "^0.
|
|
46
|
-
"@backstage/cli": "^0.
|
|
47
|
-
"@backstage/core-app-api": "^0.
|
|
48
|
-
"@backstage/dev-utils": "^0.
|
|
49
|
-
"@backstage/test-utils": "^0.
|
|
46
|
+
"@backstage/catalog-client": "^1.0.1-next.0",
|
|
47
|
+
"@backstage/cli": "^0.17.0-next.1",
|
|
48
|
+
"@backstage/core-app-api": "^1.0.1-next.0",
|
|
49
|
+
"@backstage/dev-utils": "^1.0.1-next.0",
|
|
50
|
+
"@backstage/test-utils": "^1.0.1-next.1",
|
|
50
51
|
"@testing-library/jest-dom": "^5.10.1",
|
|
51
|
-
"@testing-library/react": "^
|
|
52
|
+
"@testing-library/react": "^12.1.3",
|
|
52
53
|
"@testing-library/user-event": "^13.1.8",
|
|
53
54
|
"@types/jest": "^26.0.7",
|
|
54
55
|
"@types/node": "^14.14.32",
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"files": [
|
|
59
60
|
"dist"
|
|
60
61
|
],
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "57d12dcc35aeb6c33b09e51d1efc3408c574f109"
|
|
62
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-1fe1f1c2.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|