@backstage-community/plugin-ilert 0.3.0 → 0.3.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/ILertIcon.esm.js +61 -0
  3. package/dist/ILertIcon.esm.js.map +1 -0
  4. package/dist/api/client.esm.js +395 -0
  5. package/dist/api/client.esm.js.map +1 -0
  6. package/dist/components/Alert/AlertActionsMenu.esm.js +142 -0
  7. package/dist/components/Alert/AlertActionsMenu.esm.js.map +1 -0
  8. package/dist/components/Alert/AlertAssignModal.esm.js +147 -0
  9. package/dist/components/Alert/AlertAssignModal.esm.js.map +1 -0
  10. package/dist/components/Alert/AlertLink.esm.js +15 -0
  11. package/dist/components/Alert/AlertLink.esm.js.map +1 -0
  12. package/dist/components/Alert/AlertNewModal.esm.js +192 -0
  13. package/dist/components/Alert/AlertNewModal.esm.js.map +1 -0
  14. package/dist/components/AlertSource/AlertSourceLink.esm.js +49 -0
  15. package/dist/components/AlertSource/AlertSourceLink.esm.js.map +1 -0
  16. package/dist/components/AlertsPage/AlertsPage.esm.js +67 -0
  17. package/dist/components/AlertsPage/AlertsPage.esm.js.map +1 -0
  18. package/dist/components/AlertsPage/AlertsTable.esm.js +185 -0
  19. package/dist/components/AlertsPage/AlertsTable.esm.js.map +1 -0
  20. package/dist/components/AlertsPage/StatusChip.esm.js +47 -0
  21. package/dist/components/AlertsPage/StatusChip.esm.js.map +1 -0
  22. package/dist/components/AlertsPage/TableTitle.esm.js +74 -0
  23. package/dist/components/AlertsPage/TableTitle.esm.js.map +1 -0
  24. package/dist/components/Errors/MissingAuthorizationHeaderError.esm.js +24 -0
  25. package/dist/components/Errors/MissingAuthorizationHeaderError.esm.js.map +1 -0
  26. package/dist/components/ILertCard/ILertCard.esm.js +113 -0
  27. package/dist/components/ILertCard/ILertCard.esm.js.map +1 -0
  28. package/dist/components/ILertCard/ILertCardActionsHeader.esm.js +138 -0
  29. package/dist/components/ILertCard/ILertCardActionsHeader.esm.js.map +1 -0
  30. package/dist/components/ILertCard/ILertCardEmptyState.esm.js +57 -0
  31. package/dist/components/ILertCard/ILertCardEmptyState.esm.js.map +1 -0
  32. package/dist/components/ILertCard/ILertCardHeaderStatus.esm.js +29 -0
  33. package/dist/components/ILertCard/ILertCardHeaderStatus.esm.js.map +1 -0
  34. package/dist/components/ILertCard/ILertCardMaintenanceModal.esm.js +101 -0
  35. package/dist/components/ILertCard/ILertCardMaintenanceModal.esm.js.map +1 -0
  36. package/dist/components/ILertCard/ILertCardOnCall.esm.js +78 -0
  37. package/dist/components/ILertCard/ILertCardOnCall.esm.js.map +1 -0
  38. package/dist/components/ILertCard/ILertCardOnCallEmptyState.esm.js +26 -0
  39. package/dist/components/ILertCard/ILertCardOnCallEmptyState.esm.js.map +1 -0
  40. package/dist/components/ILertCard/ILertCardOnCallItem.esm.js +109 -0
  41. package/dist/components/ILertCard/ILertCardOnCallItem.esm.js.map +1 -0
  42. package/dist/components/ILertCard/index.esm.js +2 -0
  43. package/dist/components/ILertCard/index.esm.js.map +1 -0
  44. package/dist/components/ILertPage/ILertPage.esm.js +48 -0
  45. package/dist/components/ILertPage/ILertPage.esm.js.map +1 -0
  46. package/dist/components/OnCallSchedulesPage/OnCallSchedulesGrid.esm.js +135 -0
  47. package/dist/components/OnCallSchedulesPage/OnCallSchedulesGrid.esm.js.map +1 -0
  48. package/dist/components/OnCallSchedulesPage/OnCallSchedulesPage.esm.js +27 -0
  49. package/dist/components/OnCallSchedulesPage/OnCallSchedulesPage.esm.js.map +1 -0
  50. package/dist/components/OnCallSchedulesPage/OnCallShiftItem.esm.js +63 -0
  51. package/dist/components/OnCallSchedulesPage/OnCallShiftItem.esm.js.map +1 -0
  52. package/dist/components/Service/ServiceActionsMenu.esm.js +47 -0
  53. package/dist/components/Service/ServiceActionsMenu.esm.js.map +1 -0
  54. package/dist/components/Service/ServiceLink.esm.js +15 -0
  55. package/dist/components/Service/ServiceLink.esm.js.map +1 -0
  56. package/dist/components/ServicesPage/ServicesPage.esm.js +32 -0
  57. package/dist/components/ServicesPage/ServicesPage.esm.js.map +1 -0
  58. package/dist/components/ServicesPage/ServicesTable.esm.js +99 -0
  59. package/dist/components/ServicesPage/ServicesTable.esm.js.map +1 -0
  60. package/dist/components/ServicesPage/StatusChip.esm.js +67 -0
  61. package/dist/components/ServicesPage/StatusChip.esm.js.map +1 -0
  62. package/dist/components/Shift/ShiftOverrideModal.esm.js +171 -0
  63. package/dist/components/Shift/ShiftOverrideModal.esm.js.map +1 -0
  64. package/dist/components/StatusPage/StatusPageActionsMenu.esm.js +50 -0
  65. package/dist/components/StatusPage/StatusPageActionsMenu.esm.js.map +1 -0
  66. package/dist/components/StatusPage/StatusPageLink.esm.js +17 -0
  67. package/dist/components/StatusPage/StatusPageLink.esm.js.map +1 -0
  68. package/dist/components/StatusPage/StatusPageURL.esm.js +18 -0
  69. package/dist/components/StatusPage/StatusPageURL.esm.js.map +1 -0
  70. package/dist/components/StatusPagePage/StatusChip.esm.js +67 -0
  71. package/dist/components/StatusPagePage/StatusChip.esm.js.map +1 -0
  72. package/dist/components/StatusPagePage/StatusPagesPage.esm.js +32 -0
  73. package/dist/components/StatusPagePage/StatusPagesPage.esm.js.map +1 -0
  74. package/dist/components/StatusPagePage/StatusPagesTable.esm.js +115 -0
  75. package/dist/components/StatusPagePage/StatusPagesTable.esm.js.map +1 -0
  76. package/dist/components/StatusPagePage/VisibilityChip.esm.js +37 -0
  77. package/dist/components/StatusPagePage/VisibilityChip.esm.js.map +1 -0
  78. package/dist/components/index.esm.js +3 -0
  79. package/dist/components/index.esm.js.map +1 -0
  80. package/dist/constants.esm.js +4 -0
  81. package/dist/constants.esm.js.map +1 -0
  82. package/dist/hooks/index.esm.js +13 -0
  83. package/dist/hooks/index.esm.js.map +1 -0
  84. package/dist/hooks/useAlertActions.esm.js +43 -0
  85. package/dist/hooks/useAlertActions.esm.js.map +1 -0
  86. package/dist/hooks/useAlertSource.esm.js +52 -0
  87. package/dist/hooks/useAlertSource.esm.js.map +1 -0
  88. package/dist/hooks/useAlertSourceOnCalls.esm.js +47 -0
  89. package/dist/hooks/useAlertSourceOnCalls.esm.js.map +1 -0
  90. package/dist/hooks/useAlerts.esm.js +128 -0
  91. package/dist/hooks/useAlerts.esm.js.map +1 -0
  92. package/dist/hooks/useAssignAlert.esm.js +53 -0
  93. package/dist/hooks/useAssignAlert.esm.js.map +1 -0
  94. package/dist/hooks/useNewAlert.esm.js +58 -0
  95. package/dist/hooks/useNewAlert.esm.js.map +1 -0
  96. package/dist/hooks/useOnCallSchedules.esm.js +42 -0
  97. package/dist/hooks/useOnCallSchedules.esm.js.map +1 -0
  98. package/dist/hooks/useServices.esm.js +70 -0
  99. package/dist/hooks/useServices.esm.js.map +1 -0
  100. package/dist/hooks/useShiftOverride.esm.js +60 -0
  101. package/dist/hooks/useShiftOverride.esm.js.map +1 -0
  102. package/dist/hooks/useStatusPages.esm.js +72 -0
  103. package/dist/hooks/useStatusPages.esm.js.map +1 -0
  104. package/dist/index.esm.js +7 -3346
  105. package/dist/index.esm.js.map +1 -1
  106. package/dist/plugin.esm.js +39 -0
  107. package/dist/plugin.esm.js.map +1 -0
  108. package/dist/route-refs.esm.js +8 -0
  109. package/dist/route-refs.esm.js.map +1 -0
  110. package/dist/types.esm.js +13 -0
  111. package/dist/types.esm.js.map +1 -0
  112. package/package.json +12 -8
  113. package/dist/esm/index-D2_Gjvjx.esm.js +0 -58
  114. package/dist/esm/index-D2_Gjvjx.esm.js.map +0 -1
  115. package/dist/esm/index-aory7UQN.esm.js +0 -58
  116. package/dist/esm/index-aory7UQN.esm.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILertCardOnCallItem.esm.js","sources":["../../../src/components/ILertCard/ILertCardOnCallItem.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 React from 'react';\nimport Divider from '@material-ui/core/Divider';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport Avatar from '@material-ui/core/Avatar';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport IconButton from '@material-ui/core/IconButton';\nimport Typography from '@material-ui/core/Typography';\nimport EmailIcon from '@material-ui/icons/Email';\nimport PhoneIcon from '@material-ui/icons/Phone';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { OnCall } from '../../types';\nimport { ilertApiRef } from '../../api';\nimport { DateTime as dt } from 'luxon';\nimport { useApi } from '@backstage/core-plugin-api';\n\nconst useStyles = makeStyles({\n listItemPrimary: {\n fontWeight: 'bold',\n },\n fistItemLine: {\n position: 'absolute',\n bottom: 0,\n height: '50%',\n left: 36,\n },\n lastItemLine: {\n position: 'absolute',\n top: 0,\n height: '50%',\n left: 36,\n },\n itemLine: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n height: '100%',\n left: 36,\n },\n});\n\nexport const ILertCardOnCallItem = ({\n onCall,\n fistItem = false,\n lastItem = false,\n}: {\n onCall: OnCall;\n fistItem?: boolean;\n lastItem?: boolean;\n}) => {\n const ilertApi = useApi(ilertApiRef);\n const classes = useStyles();\n\n if (!onCall || !onCall.user) {\n return null;\n }\n\n const phoneNumber = ilertApi.getUserPhoneNumber(onCall.user);\n const escalationRepeating = onCall.escalationPolicy.repeating;\n const escalationSeconds =\n onCall.escalationPolicy.escalationRules[onCall.escalationLevel - 1]\n .escalationTimeout;\n const escalationHoursOnly = Math.floor(escalationSeconds / 60);\n const escalationMinutesOnly = escalationSeconds % 60;\n\n let escalationText = '';\n if (!lastItem || (lastItem && escalationRepeating)) {\n escalationText = 'escalate';\n if (escalationSeconds === 0) {\n escalationText += ' immediately';\n } else {\n escalationText += ' after';\n if (escalationHoursOnly > 0) {\n escalationText += ` ${escalationHoursOnly} ${\n escalationHoursOnly === 1 ? 'hour' : 'hours'\n }`;\n }\n if (escalationMinutesOnly > 0 || escalationSeconds === 0) {\n escalationText += ` ${escalationMinutesOnly} ${\n escalationMinutesOnly === 1 ? 'minute' : 'minutes'\n }`;\n }\n }\n }\n\n return (\n <ListItem>\n {fistItem ? (\n <Divider orientation=\"vertical\" className={classes.fistItemLine} />\n ) : null}\n {lastItem ? (\n <Divider orientation=\"vertical\" className={classes.lastItemLine} />\n ) : null}\n {!fistItem && !lastItem ? (\n <Divider orientation=\"vertical\" className={classes.itemLine} />\n ) : null}\n <ListItemIcon>\n <Tooltip\n title={`Escalation level #${onCall.escalationLevel}`}\n placement=\"top\"\n >\n <Avatar>{onCall.escalationLevel}</Avatar>\n </Tooltip>\n </ListItemIcon>\n {onCall.schedule ? (\n <Tooltip\n title={\n 'On call shift ' +\n `${dt.fromISO(onCall.start).toFormat('D MMM, HH:mm')} - ` +\n `${dt.fromISO(onCall.end).toFormat('D MMM, HH:mm')}`\n }\n placement=\"top-start\"\n >\n <ListItemText\n primary={\n <Typography className={classes.listItemPrimary}>\n {ilertApi.getUserInitials(onCall.user)}\n </Typography>\n }\n secondary={escalationText}\n />\n </Tooltip>\n ) : (\n <ListItemText\n primary={\n <Typography className={classes.listItemPrimary}>\n {ilertApi.getUserInitials(onCall.user)}\n </Typography>\n }\n secondary={escalationText}\n />\n )}\n <ListItemSecondaryAction>\n {phoneNumber ? (\n <Tooltip title=\"Call to user\" placement=\"top\">\n <IconButton href={`tel:${phoneNumber}`}>\n <PhoneIcon color=\"secondary\" />\n </IconButton>\n </Tooltip>\n ) : null}\n <Tooltip\n title={`Send e-mail to user ${onCall.user.email}`}\n placement=\"top\"\n >\n <IconButton href={`mailto:${onCall.user.email}`}>\n <EmailIcon color=\"primary\" />\n </IconButton>\n </Tooltip>\n </ListItemSecondaryAction>\n </ListItem>\n );\n};\n"],"names":["dt"],"mappings":";;;;;;;;;;;;;;;;;AAiCA,MAAM,YAAY,UAAW,CAAA;AAAA,EAC3B,eAAiB,EAAA;AAAA,IACf,UAAY,EAAA,MAAA;AAAA,GACd;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,QAAU,EAAA,UAAA;AAAA,IACV,MAAQ,EAAA,CAAA;AAAA,IACR,MAAQ,EAAA,KAAA;AAAA,IACR,IAAM,EAAA,EAAA;AAAA,GACR;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,QAAU,EAAA,UAAA;AAAA,IACV,GAAK,EAAA,CAAA;AAAA,IACL,MAAQ,EAAA,KAAA;AAAA,IACR,IAAM,EAAA,EAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA,UAAA;AAAA,IACV,GAAK,EAAA,CAAA;AAAA,IACL,MAAQ,EAAA,CAAA;AAAA,IACR,MAAQ,EAAA,MAAA;AAAA,IACR,IAAM,EAAA,EAAA;AAAA,GACR;AACF,CAAC,CAAA,CAAA;AAEM,MAAM,sBAAsB,CAAC;AAAA,EAClC,MAAA;AAAA,EACA,QAAW,GAAA,KAAA;AAAA,EACX,QAAW,GAAA,KAAA;AACb,CAIM,KAAA;AACJ,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA,CAAA;AACnC,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAE1B,EAAA,IAAI,CAAC,MAAA,IAAU,CAAC,MAAA,CAAO,IAAM,EAAA;AAC3B,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AAEA,EAAA,MAAM,WAAc,GAAA,QAAA,CAAS,kBAAmB,CAAA,MAAA,CAAO,IAAI,CAAA,CAAA;AAC3D,EAAM,MAAA,mBAAA,GAAsB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CAAA,eAAA,CAAgB,MAAO,CAAA,IAAI,CACvC,CAAA;AAAA,MAEF,SAAW,EAAA,cAAA;AAAA,KAAA;AAAA,GACb,sCAED,uBACE,EAAA,IAAA,EAAA,WAAA,uCACE,OAAQ,EAAA,EAAA,KAAA,EAAM,cAAe,EAAA,SAAA,EAAU,KACtC,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,cAAW,IAAM,EAAA,CAAA,IAAA,EAAO,WAAW,CAAA,CAAA,EAAA,kBACjC,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EAAU,OAAM,WAAY,EAAA,CAC/B,CACF,CAAA,GACE,IACJ,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACC,KAAO,EAAA,CAAA,oBAAA,EAAuB,MAAO,CAAA,IAAA,CAAK,KAAK,CAAA,CAAA;AAAA,MAC/C,SAAU,EAAA,KAAA;AAAA,KAAA;AAAA,oBAET,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA,EAAW,IAAM,EAAA,CAAA,OAAA,EAAU,MAAO,CAAA,IAAA,CAAK,KAAK,CAAA,CAAA,EAAA,kBAC1C,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,EAAU,KAAM,EAAA,SAAA,EAAU,CAC7B,CAAA;AAAA,GAEJ,CACF,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,2 @@
1
+ export { ILertCard, isPluginApplicableToEntity } from './ILertCard.esm.js';
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import { Page, Header, HeaderLabel, HeaderTabs, Content } from '@backstage/core-components';
2
+ import React from 'react';
3
+ import { AlertsPage } from '../AlertsPage/AlertsPage.esm.js';
4
+ import '../AlertsPage/AlertsTable.esm.js';
5
+ import { OnCallSchedulesPage } from '../OnCallSchedulesPage/OnCallSchedulesPage.esm.js';
6
+ import '../OnCallSchedulesPage/OnCallSchedulesGrid.esm.js';
7
+ import { ServicesPage } from '../ServicesPage/ServicesPage.esm.js';
8
+ import '../ServicesPage/ServicesTable.esm.js';
9
+ import { StatusPagesPage } from '../StatusPagePage/StatusPagesPage.esm.js';
10
+ import '../StatusPagePage/StatusPagesTable.esm.js';
11
+
12
+ const ILertPage = () => {
13
+ const [selectedTab, setSelectedTab] = React.useState(0);
14
+ const tabs = [
15
+ { label: "Who is on call?" },
16
+ { label: "Alerts" },
17
+ { label: "Services" },
18
+ { label: "Status pages" }
19
+ ];
20
+ const renderTab = () => {
21
+ switch (selectedTab) {
22
+ case 0:
23
+ return /* @__PURE__ */ React.createElement(OnCallSchedulesPage, null);
24
+ case 1:
25
+ return /* @__PURE__ */ React.createElement(AlertsPage, null);
26
+ case 2:
27
+ return /* @__PURE__ */ React.createElement(ServicesPage, null);
28
+ case 3:
29
+ return /* @__PURE__ */ React.createElement(StatusPagesPage, null);
30
+ default:
31
+ return null;
32
+ }
33
+ };
34
+ return /* @__PURE__ */ React.createElement(Page, { themeId: "website" }, /* @__PURE__ */ React.createElement(Header, { title: "iLert", type: "tool" }, /* @__PURE__ */ React.createElement(HeaderLabel, { label: "Owner", value: "iLert" }), /* @__PURE__ */ React.createElement(HeaderLabel, { label: "Lifecycle", value: "Alpha" })), /* @__PURE__ */ React.createElement(
35
+ HeaderTabs,
36
+ {
37
+ selectedIndex: selectedTab,
38
+ onChange: (index) => setSelectedTab(index),
39
+ tabs: tabs.map(({ label }, index) => ({
40
+ id: index.toString(),
41
+ label
42
+ }))
43
+ }
44
+ ), /* @__PURE__ */ React.createElement(Content, { noPadding: true }, renderTab()));
45
+ };
46
+
47
+ export { ILertPage, ILertPage as default };
48
+ //# sourceMappingURL=ILertPage.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILertPage.esm.js","sources":["../../../src/components/ILertPage/ILertPage.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 Content,\n Header,\n HeaderLabel,\n HeaderTabs,\n Page,\n} from '@backstage/core-components';\nimport React from 'react';\nimport { AlertsPage } from '../AlertsPage';\nimport { OnCallSchedulesPage } from '../OnCallSchedulesPage';\nimport { ServicesPage } from '../ServicesPage';\nimport { StatusPagesPage } from '../StatusPagePage';\n\n/** @public */\nexport const ILertPage = () => {\n const [selectedTab, setSelectedTab] = React.useState<number>(0);\n const tabs = [\n { label: 'Who is on call?' },\n { label: 'Alerts' },\n { label: 'Services' },\n { label: 'Status pages' },\n ];\n const renderTab = () => {\n switch (selectedTab) {\n case 0:\n return <OnCallSchedulesPage />;\n case 1:\n return <AlertsPage />;\n case 2:\n return <ServicesPage />;\n case 3:\n return <StatusPagesPage />;\n default:\n return null;\n }\n };\n\n return (\n <Page themeId=\"website\">\n <Header title=\"iLert\" type=\"tool\">\n <HeaderLabel label=\"Owner\" value=\"iLert\" />\n <HeaderLabel label=\"Lifecycle\" value=\"Alpha\" />\n </Header>\n <HeaderTabs\n selectedIndex={selectedTab}\n onChange={index => setSelectedTab(index)}\n tabs={tabs.map(({ label }, index) => ({\n id: index.toString(),\n label,\n }))}\n />\n\n <Content noPadding>{renderTab()}</Content>\n </Page>\n );\n};\n\nexport default ILertPage;\n"],"names":[],"mappings":";;;;;;;;;;;AA6BO,MAAM,YAAY,MAAM;AAC7B,EAAA,MAAM,CAAC,WAAa,EAAA,cAAc,CAAI,GAAA,KAAA,CAAM,SAAiB,CAAC,CAAA,CAAA;AAC9D,EAAA,MAAM,IAAO,GAAA;AAAA,IACX,EAAE,O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A;AAAA,OACA,CAAA,CAAA;AAAA,KAAA;AAAA,qBAGH,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAQ,WAAS,IAAE,EAAA,EAAA,SAAA,EAAY,CAClC,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,135 @@
1
+ import React from 'react';
2
+ import { makeStyles } from '@material-ui/core/styles';
3
+ import Card from '@material-ui/core/Card';
4
+ import CardContent from '@material-ui/core/CardContent';
5
+ import CardHeader from '@material-ui/core/CardHeader';
6
+ import Typography from '@material-ui/core/Typography';
7
+ import { ilertApiRef } from '../../api/client.esm.js';
8
+ import { OnCallShiftItem } from './OnCallShiftItem.esm.js';
9
+ import { useApi } from '@backstage/core-plugin-api';
10
+ import { Progress, ItemCardGrid, Link } from '@backstage/core-components';
11
+
12
+ const useStyles = makeStyles(() => ({
13
+ card: {
14
+ margin: 16,
15
+ width: "calc(100% - 32px)"
16
+ },
17
+ cardHeader: {
18
+ maxWidth: "100%"
19
+ },
20
+ cardContent: {
21
+ marginLeft: 80,
22
+ borderLeft: "1px #808289 solid",
23
+ position: "relative"
24
+ },
25
+ indicatorNext: {
26
+ position: "absolute",
27
+ top: "calc(40% - 10px)",
28
+ left: -6,
29
+ width: 12,
30
+ height: 12,
31
+ background: "#92949c !important",
32
+ borderRadius: "50%"
33
+ },
34
+ indicatorCurrent: {
35
+ position: "absolute",
36
+ top: "calc(40% - 10px)",
37
+ left: -6,
38
+ width: 12,
39
+ height: 12,
40
+ background: "#ffb74d !important",
41
+ color: "#ffb74d !important",
42
+ borderRadius: "50%",
43
+ "&::after": {
44
+ position: "absolute",
45
+ top: 0,
46
+ left: 0,
47
+ width: "100%",
48
+ height: "100%",
49
+ borderRadius: "50%",
50
+ animation: "$ripple 1.2s infinite ease-in-out",
51
+ border: "1px solid currentColor",
52
+ content: '""'
53
+ }
54
+ },
55
+ "@keyframes ripple": {
56
+ "0%": {
57
+ transform: "scale(.8)",
58
+ opacity: 1
59
+ },
60
+ "100%": {
61
+ transform: "scale(2.4)",
62
+ opacity: 0
63
+ }
64
+ },
65
+ beforeText: {
66
+ position: "absolute",
67
+ top: "calc(31% - 10px)",
68
+ left: -78,
69
+ width: 65,
70
+ height: 20,
71
+ textAlign: "center",
72
+ color: "#808289"
73
+ },
74
+ marginBottom: {
75
+ marginBottom: 16
76
+ },
77
+ link: {
78
+ fontSize: "1.5rem",
79
+ fontWeight: 700,
80
+ overflow: "hidden",
81
+ whiteSpace: "nowrap",
82
+ textOverflow: "ellipsis",
83
+ display: "block"
84
+ }
85
+ }));
86
+ const OnCallSchedulesGrid = ({
87
+ onCallSchedules,
88
+ isLoading,
89
+ refetchOnCallSchedules
90
+ }) => {
91
+ const ilertApi = useApi(ilertApiRef);
92
+ const classes = useStyles();
93
+ if (isLoading) {
94
+ return /* @__PURE__ */ React.createElement(Progress, null);
95
+ }
96
+ return /* @__PURE__ */ React.createElement(ItemCardGrid, { "data-testid": "docs-explore" }, !onCallSchedules?.length ? null : onCallSchedules.map((schedule, index) => /* @__PURE__ */ React.createElement(Card, { key: index }, /* @__PURE__ */ React.createElement(
97
+ CardHeader,
98
+ {
99
+ classes: { content: classes.cardHeader },
100
+ title: /* @__PURE__ */ React.createElement(
101
+ Link,
102
+ {
103
+ to: ilertApi.getScheduleDetailsURL(schedule),
104
+ className: classes.link
105
+ },
106
+ schedule.name
107
+ )
108
+ }
109
+ ), /* @__PURE__ */ React.createElement(CardContent, { className: classes.cardContent }, /* @__PURE__ */ React.createElement("div", { className: classes.indicatorCurrent }), /* @__PURE__ */ React.createElement(
110
+ OnCallShiftItem,
111
+ {
112
+ shift: schedule.currentShift,
113
+ scheduleId: schedule.id,
114
+ refetchOnCallSchedules
115
+ }
116
+ ), /* @__PURE__ */ React.createElement(Typography, { className: classes.beforeText, variant: "body2" }, "On call now")), /* @__PURE__ */ React.createElement(
117
+ CardContent,
118
+ {
119
+ className: `${classes.cardContent} ${classes.marginBottom}`
120
+ },
121
+ /* @__PURE__ */ React.createElement("div", { className: classes.indicatorNext }),
122
+ /* @__PURE__ */ React.createElement(
123
+ OnCallShiftItem,
124
+ {
125
+ shift: schedule.nextShift,
126
+ scheduleId: schedule.id,
127
+ refetchOnCallSchedules
128
+ }
129
+ ),
130
+ /* @__PURE__ */ React.createElement(Typography, { className: classes.beforeText, variant: "body2" }, "Next on call")
131
+ ))));
132
+ };
133
+
134
+ export { OnCallSchedulesGrid };
135
+ //# sourceMappingURL=OnCallSchedulesGrid.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnCallSchedulesGrid.esm.js","sources":["../../../src/components/OnCallSchedulesPage/OnCallSchedulesGrid.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardHeader from '@material-ui/core/CardHeader';\nimport Typography from '@material-ui/core/Typography';\nimport { Schedule } from '../../types';\nimport { ilertApiRef } from '../../api';\nimport { OnCallShiftItem } from './OnCallShiftItem';\n\nimport { useApi } from '@backstage/core-plugin-api';\nimport { ItemCardGrid, Progress, Link } from '@backstage/core-components';\n\nconst useStyles = makeStyles(() => ({\n card: {\n margin: 16,\n width: 'calc(100% - 32px)',\n },\n\n cardHeader: {\n maxWidth: '100%',\n },\n\n cardContent: {\n marginLeft: 80,\n borderLeft: '1px #808289 solid',\n position: 'relative',\n },\n\n indicatorNext: {\n position: 'absolute',\n top: 'calc(40% - 10px)',\n left: -6,\n width: 12,\n height: 12,\n background: '#92949c !important',\n borderRadius: '50%',\n },\n\n indicatorCurrent: {\n position: 'absolute',\n top: 'calc(40% - 10px)',\n left: -6,\n width: 12,\n height: 12,\n background: '#ffb74d !important',\n color: '#ffb74d !important',\n borderRadius: '50%',\n '&::after': {\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n borderRadius: '50%',\n animation: '$ripple 1.2s infinite ease-in-out',\n border: '1px solid currentColor',\n content: '\"\"',\n },\n },\n '@keyframes ripple': {\n '0%': {\n transform: 'scale(.8)',\n opacity: 1,\n },\n '100%': {\n transform: 'scale(2.4)',\n opacity: 0,\n },\n },\n\n beforeText: {\n position: 'absolute',\n top: 'calc(31% - 10px)',\n left: -78,\n width: 65,\n height: 20,\n textAlign: 'center',\n color: '#808289',\n },\n\n marginBottom: {\n marginBottom: 16,\n },\n\n link: {\n fontSize: '1.5rem',\n fontWeight: 700,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n display: 'block',\n },\n}));\n\nexport const OnCallSchedulesGrid = ({\n onCallSchedules,\n isLoading,\n refetchOnCallSchedules,\n}: {\n onCallSchedules: Schedule[];\n isLoading: boolean;\n refetchOnCallSchedules: () => void;\n}) => {\n const ilertApi = useApi(ilertApiRef);\n const classes = useStyles();\n\n if (isLoading) {\n return <Progress />;\n }\n return (\n <ItemCardGrid data-testid=\"docs-explore\">\n {!onCallSchedules?.length\n ? null\n : onCallSchedules.map((schedule, index) => (\n <Card key={index}>\n <CardHeader\n classes={{ content: classes.cardHeader }}\n title={\n <Link\n to={ilertApi.getScheduleDetailsURL(schedule)}\n className={classes.link}\n >\n {schedule.name}\n </Link>\n }\n />\n\n <CardContent className={classes.cardContent}>\n <div className={classes.indicatorCurrent} />\n <OnCallShiftItem\n shift={schedule.currentShift}\n scheduleId={schedule.id}\n refetchOnCallSchedules={refetchOnCallSchedules}\n />\n <Typography className={classes.beforeText} variant=\"body2\">\n On call now\n </Typography>\n </CardContent>\n\n <CardContent\n className={`${classes.cardContent} ${classes.marginBottom}`}\n >\n <div className={classes.indicatorNext} />\n <OnCallShiftItem\n shift={schedule.nextShift}\n scheduleId={schedule.id}\n refetchOnCallSchedules={refetchOnCallSchedules}\n />\n <Typography className={classes.beforeText} variant=\"body2\">\n Next on call\n </Typography>\n </CardContent>\n </Card>\n ))}\n </ItemCardGrid>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AA4BA,MAAM,SAAA,GAAY,WAAW,OAAO;AAAA,EAClC,IAAM,EAAA;AAAA,IACJ,MAAQ,EAAA,EAAA;AAAA,IACR,KAAO,EAAA,mBAAA;AAAA,GACT;AAAA,EAEA,UAAY,EAAA;AAAA,IACV,QAAU,EAAA,MAAA;AAAA,GACZ;AAAA,EAEA,WAAa,EAAA;AAAA,IACX,UAAY,EAAA,EAAA;AAAA,IACZ,UAAY,EAAA,mBAAA;AAAA,IACZ,QAAU,EAAA,UAAA;AAAA,GACZ;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,QAAU,EAAA,UAAA;AAAA,IACV,GAAK,EAAA,kBAAA;AAAA,IACL,IAAM,EAAA,CAAA,CAAA;AAAA,IACN,KAAO,EAAA,EAAA;AAAA,IACP,MAAQ,EAAA,EAAA;AAAA,IACR,UAAY,EAAA,oBAAA;AAAA,IACZ,YAAc,EAAA,KAAA;AAAA,GAChB;AAAA,EAEA,gBAAkB,EAAA;AAAA,IAChB,QAAU,EAAA,UAAA;AAAA,IACV,GAAK,EAAA,kBAAA;AAAA,IACL,IAAM,EAAA,CAAA,CAAA;AAAA,IACN,KAAO,EAAA,EAAA;AAAA,IACP,MAAQ,EAAA,EAAA;AAAA,IACR,UAAY,EAAA,oBAAA;AAAA,IACZ,KAAO,EAAA,oBAAA;AAAA,IACP,YAAc,EAAA,KAAA;AAAA,IACd,UAAY,EAAA;AAAA,MACV,QAAU,EAAA,UAAA;AAAA,MACV,GAAK,EAAA,CAAA;AAAA,MACL,IAAM,EAAA,CAAA;AAAA,MACN,KAAO,EAAA,MAAA;AAAA,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oBAExD,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,aAAe,EAAA,CAAA;AAAA,oBACvC,KAAA,CAAA,aAAA;AAAA,MAAC,eAAA;AAAA,MAAA;AAAA,QACC,OAAO,QAAS,CAAA,SAAA;AAAA,QAChB,YAAY,QAAS,CAAA,EAAA;AAAA,QACrB,sBAAA;AAAA,OAAA;AAAA,KACF;AAAA,wCACC,UAAW,EAAA,EAAA,SAAA,EAAW,QAAQ,UAAY,EAAA,OAAA,EAAQ,WAAQ,cAE3D,CAAA;AAAA,GAEJ,CACD,CACP,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { AuthenticationError } from '@backstage/errors';
3
+ import { OnCallSchedulesGrid } from './OnCallSchedulesGrid.esm.js';
4
+ import { MissingAuthorizationHeaderError } from '../Errors/MissingAuthorizationHeaderError.esm.js';
5
+ import { useOnCallSchedules } from '../../hooks/useOnCallSchedules.esm.js';
6
+ import { Content, ResponseErrorPanel, ContentHeader, SupportButton } from '@backstage/core-components';
7
+
8
+ const OnCallSchedulesPage = () => {
9
+ const [{ onCallSchedules, isLoading, error }, { refetchOnCallSchedules }] = useOnCallSchedules();
10
+ if (error) {
11
+ if (error instanceof AuthenticationError) {
12
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(MissingAuthorizationHeaderError, null));
13
+ }
14
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ResponseErrorPanel, { error }));
15
+ }
16
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ContentHeader, { title: "Who is on call?" }, /* @__PURE__ */ React.createElement(SupportButton, null, "This helps you to bring iLert into your developer portal.")), /* @__PURE__ */ React.createElement(
17
+ OnCallSchedulesGrid,
18
+ {
19
+ onCallSchedules,
20
+ isLoading,
21
+ refetchOnCallSchedules
22
+ }
23
+ ));
24
+ };
25
+
26
+ export { OnCallSchedulesPage };
27
+ //# sourceMappingURL=OnCallSchedulesPage.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnCallSchedulesPage.esm.js","sources":["../../../src/components/OnCallSchedulesPage/OnCallSchedulesPage.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 React from 'react';\nimport { AuthenticationError } from '@backstage/errors';\nimport { OnCallSchedulesGrid } from './OnCallSchedulesGrid';\nimport { MissingAuthorizationHeaderError } from '../Errors';\nimport { useOnCallSchedules } from '../../hooks/useOnCallSchedules';\nimport {\n Content,\n ContentHeader,\n SupportButton,\n ResponseErrorPanel,\n} from '@backstage/core-components';\n\nexport const OnCallSchedulesPage = () => {\n const [{ onCallSchedules, isLoading, error }, { refetchOnCallSchedules }] =\n useOnCallSchedules();\n\n if (error) {\n if (error instanceof AuthenticationError) {\n return (\n <Content>\n <MissingAuthorizationHeaderError />\n </Content>\n );\n }\n\n return (\n <Content>\n <ResponseErrorPanel error={error} />\n </Content>\n );\n }\n\n return (\n <Content>\n <ContentHeader title=\"Who is on call?\">\n <SupportButton>\n This helps you to bring iLert into your developer portal.\n </SupportButton>\n </ContentHeader>\n <OnCallSchedulesGrid\n onCallSchedules={onCallSchedules}\n isLoading={isLoading}\n refetchOnCallSchedules={refetchOnCallSchedules}\n />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;;;AA2BO,MAAM,sBAAsB,MAAM;AACvC,EAAM,MAAA,CAAC,EAAE,eAAA,EAAiB,SAAW,EAAA,KAAA,IAAS,EAAE,sBAAA,EAAwB,CAAA,GACtE,kBAAmB,EAAA,CAAA;AAErB,EAAA,IAAI,KAAO,EAAA;AACT,IAAA,IAAI,iBAAiB,mBAAqB,EAAA;AACxC,MAAA,uBACG,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,+BAAA,EAAA,IAAgC,CACnC,CAAA,CAAA;AAAA,KAEJ;AAEA,IAAA,uBACG,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,EAAmB,OAAc,CACpC,CAAA,CAAA;AAAA,GAEJ;AAEA,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,OACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,aAAc,EAAA,EAAA,KAAA,EAAM,qCAClB,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,IAAA,EAAc,2DAEf,CACF,CACA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,mBAAA;AAAA,IAAA;AAAA,MACC,eAAA;AAAA,MACA,SAAA;AAAA,MACA,sBAAA;AAAA,KAAA;AAAA,GAEJ,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,63 @@
1
+ import { useApi } from '@backstage/core-plugin-api';
2
+ import Button from '@material-ui/core/Button';
3
+ import Grid from '@material-ui/core/Grid';
4
+ import { makeStyles } from '@material-ui/core/styles';
5
+ import Typography from '@material-ui/core/Typography';
6
+ import RepeatIcon from '@material-ui/icons/Repeat';
7
+ import { DateTime } from 'luxon';
8
+ import React from 'react';
9
+ import { ilertApiRef } from '../../api/client.esm.js';
10
+ import { ShiftOverrideModal } from '../Shift/ShiftOverrideModal.esm.js';
11
+
12
+ const useStyles = makeStyles({
13
+ button: {
14
+ marginTop: 4,
15
+ padding: 0,
16
+ lineHeight: 1.8,
17
+ "& span": {
18
+ lineHeight: 1.8,
19
+ fontSize: "0.65rem"
20
+ },
21
+ "& svg": {
22
+ fontSize: "0.85rem !important"
23
+ }
24
+ }
25
+ });
26
+ const OnCallShiftItem = ({
27
+ scheduleId,
28
+ shift,
29
+ refetchOnCallSchedules
30
+ }) => {
31
+ const classes = useStyles();
32
+ const ilertApi = useApi(ilertApiRef);
33
+ const [isModalOpened, setIsModalOpened] = React.useState(false);
34
+ const handleOverride = () => {
35
+ setIsModalOpened(true);
36
+ };
37
+ if (!shift || !shift.start) {
38
+ return /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 0 }, /* @__PURE__ */ React.createElement(Grid, { item: true, sm: 12 }, /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle1", color: "textSecondary" }, "Nobody")));
39
+ }
40
+ return /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 0 }, shift && shift.user ? /* @__PURE__ */ React.createElement(Grid, { item: true, sm: 12 }, /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle1", noWrap: true }, ilertApi.getUserInitials(shift.user))) : null, /* @__PURE__ */ React.createElement(Grid, { item: true, sm: 12 }, /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle2", color: "textSecondary" }, `${DateTime.fromISO(shift.start).toFormat("D MMM, HH:mm")} - ${DateTime.fromISO(shift.end).toFormat("D MMM, HH:mm")}`)), /* @__PURE__ */ React.createElement(Grid, { item: true, sm: 12 }, /* @__PURE__ */ React.createElement(
41
+ Button,
42
+ {
43
+ color: "primary",
44
+ size: "small",
45
+ className: classes.button,
46
+ startIcon: /* @__PURE__ */ React.createElement(RepeatIcon, null),
47
+ onClick: handleOverride
48
+ },
49
+ /* @__PURE__ */ React.createElement(Typography, { variant: "overline" }, "Override shift")
50
+ ), /* @__PURE__ */ React.createElement(
51
+ ShiftOverrideModal,
52
+ {
53
+ scheduleId,
54
+ shift,
55
+ refetchOnCallSchedules,
56
+ isModalOpened,
57
+ setIsModalOpened
58
+ }
59
+ )));
60
+ };
61
+
62
+ export { OnCallShiftItem };
63
+ //# sourceMappingURL=OnCallShiftItem.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnCallShiftItem.esm.js","sources":["../../../src/components/OnCallSchedulesPage/OnCallShiftItem.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { useApi } from '@backstage/core-plugin-api';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport RepeatIcon from '@material-ui/icons/Repeat';\nimport { DateTime as dt } from 'luxon';\nimport React from 'react';\nimport { ilertApiRef } from '../../api';\nimport { Shift } from '../../types';\nimport { ShiftOverrideModal } from '../Shift/ShiftOverrideModal';\n\nconst useStyles = makeStyles({\n button: {\n marginTop: 4,\n padding: 0,\n lineHeight: 1.8,\n '& span': {\n lineHeight: 1.8,\n fontSize: '0.65rem',\n },\n '& svg': {\n fontSize: '0.85rem !important',\n },\n },\n});\n\nexport const OnCallShiftItem = ({\n scheduleId,\n shift,\n refetchOnCallSchedules,\n}: {\n scheduleId: number;\n shift: Shift;\n refetchOnCallSchedules: () => void;\n}) => {\n const classes = useStyles();\n const ilertApi = useApi(ilertApiRef);\n const [isModalOpened, setIsModalOpened] = React.useState(false);\n\n const handleOverride = () => {\n setIsModalOpened(true);\n };\n\n if (!shift || !shift.start) {\n return (\n <Grid container spacing={0}>\n <Grid item sm={12}>\n <Typography variant=\"subtitle1\" color=\"textSecondary\">\n Nobody\n </Typography>\n </Grid>\n </Grid>\n );\n }\n\n return (\n <Grid container spacing={0}>\n {shift && shift.user ? (\n <Grid item sm={12}>\n <Typography variant=\"subtitle1\" noWrap>\n {ilertApi.getUserInitials(shift.user)}\n </Typography>\n </Grid>\n ) : null}\n <Grid item sm={12}>\n <Typography variant=\"subtitle2\" color=\"textSecondary\">\n {`${dt.fromISO(shift.start).toFormat('D MMM, HH:mm')} - ${dt\n .fromISO(shift.end)\n .toFormat('D MMM, HH:mm')}`}\n </Typography>\n </Grid>\n <Grid item sm={12}>\n <Button\n color=\"primary\"\n size=\"small\"\n className={classes.button}\n startIcon={<RepeatIcon />}\n onClick={handleOverride}\n >\n <Typography variant=\"overline\">Override shift</Typography>\n </Button>\n <ShiftOverrideModal\n scheduleId={scheduleId}\n shift={shift}\n refetchOnCallSchedules={refetchOnCallSchedules}\n isModalOpened={isModalOpened}\n setIsModalOpened={setIsModalOpened}\n />\n </Grid>\n </Grid>\n );\n};\n"],"names":["dt"],"mappings":";;;;;;;;;;;AA2BA,MAAM,YAAY,UAAW,CAAA;AAAA,EAC3B,MAAQ,EAAA;AAAA,IACN,SAAW,EAAA,CAAA;AAAA,IACX,OAAS,EAAA,CAAA;AAAA,IACT,UAAY,EAAA,GAAA;AAAA,IACZ,QAAU,EAAA;AAAA,MACR,UAAY,EAAA,GAAA;AAAA,MACZ,QAAU,EAAA,SAAA;AAAA,KACZ;AAAA,IACA,OAAS,EAAA;AAAA,MACP,QAAU,EAAA,oBAAA;AAAA,KACZ;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AAEM,MAAM,kBAAkB,CAAC;AAAA,EAC9B,UAAA;AAAA,EACA,KAAA;AAAA,EACA,sBAAA;AACF,CAIM,KAAA;AACJ,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAC1B,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA,CAAA;AACnC,EAAA,MAAM,CAAC,aAAe,EAAA,gBAAgB,CAAI,GAAA,KAAA,CAAM,SAAS,KAAK,CAAA,CAAA;AAE9D,EAAA,MAAM,iBAAiB,MAAM;AAC3B,IAAA,gBAAA,CAAiB,IAAI,CAAA,CA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,EAAK,IAAI,EAAA,IAAA,EAAC,IAAI,EACb,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,KAAM,EAAA,SAAA;AAAA,MACN,IAAK,EAAA,OAAA;AAAA,MACL,WAAW,OAAQ,CAAA,MAAA;AAAA,MACnB,SAAA,sCAAY,UAAW,EAAA,IAAA,CAAA;AAAA,MACvB,OAAS,EAAA,cAAA;AAAA,KAAA;AAAA,oBAER,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA,EAAW,OAAQ,EAAA,UAAA,EAAA,EAAW,gBAAc,CAAA;AAAA,GAE/C,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,kBAAA;AAAA,IAAA;AAAA,MACC,UAAA;AAAA,MACA,KAAA;AAAA,MACA,sBAAA;AAAA,MACA,aAAA;AAAA,MACA,gBAAA;AAAA,KAAA;AAAA,GAEJ,CACF,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,47 @@
1
+ import IconButton from '@material-ui/core/IconButton';
2
+ import Menu from '@material-ui/core/Menu';
3
+ import MenuItem from '@material-ui/core/MenuItem';
4
+ import Typography from '@material-ui/core/Typography';
5
+ import MoreVertIcon from '@material-ui/icons/MoreVert';
6
+ import React from 'react';
7
+ import { ilertApiRef } from '../../api/client.esm.js';
8
+ import { Link } from '@backstage/core-components';
9
+ import { useApi } from '@backstage/core-plugin-api';
10
+
11
+ const ServiceActionsMenu = ({ service }) => {
12
+ const ilertApi = useApi(ilertApiRef);
13
+ const [anchorEl, setAnchorEl] = React.useState(null);
14
+ const handleClick = (event) => {
15
+ setAnchorEl(event.currentTarget);
16
+ };
17
+ const handleCloseMenu = () => {
18
+ setAnchorEl(null);
19
+ };
20
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
21
+ IconButton,
22
+ {
23
+ "aria-label": "more",
24
+ "aria-controls": "long-menu",
25
+ "aria-haspopup": "true",
26
+ onClick: handleClick,
27
+ size: "small"
28
+ },
29
+ /* @__PURE__ */ React.createElement(MoreVertIcon, null)
30
+ ), /* @__PURE__ */ React.createElement(
31
+ Menu,
32
+ {
33
+ id: `service-actions-menu-${service.id}`,
34
+ anchorEl,
35
+ keepMounted: true,
36
+ open: Boolean(anchorEl),
37
+ onClose: handleCloseMenu,
38
+ PaperProps: {
39
+ style: { maxHeight: 48 * 5.5 }
40
+ }
41
+ },
42
+ /* @__PURE__ */ React.createElement(MenuItem, { key: "details", onClick: handleCloseMenu }, /* @__PURE__ */ React.createElement(Typography, { variant: "inherit", noWrap: true }, /* @__PURE__ */ React.createElement(Link, { to: ilertApi.getServiceDetailsURL(service) }, "View in iLert")))
43
+ ));
44
+ };
45
+
46
+ export { ServiceActionsMenu };
47
+ //# sourceMappingURL=ServiceActionsMenu.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceActionsMenu.esm.js","sources":["../../../src/components/Service/ServiceActionsMenu.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 IconButton from '@material-ui/core/IconButton';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Typography from '@material-ui/core/Typography';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport React from 'react';\nimport { ilertApiRef } from '../../api';\nimport { Service } from '../../types';\n\nimport { Link } from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nexport const ServiceActionsMenu = ({ service }: { service: Service }) => {\n const ilertApi = useApi(ilertApiRef);\n const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);\n\n const handleClick = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleCloseMenu = () => {\n setAnchorEl(null);\n };\n\n return (\n <>\n <IconButton\n aria-label=\"more\"\n aria-controls=\"long-menu\"\n aria-haspopup=\"true\"\n onClick={handleClick}\n size=\"small\"\n >\n <MoreVertIcon />\n </IconButton>\n <Menu\n id={`service-actions-menu-${service.id}`}\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleCloseMenu}\n PaperProps={{\n style: { maxHeight: 48 * 5.5 },\n }}\n >\n <MenuItem key=\"details\" onClick={handleCloseMenu}>\n <Typography variant=\"inherit\" noWrap>\n <Link to={ilertApi.getServiceDetailsURL(service)}>\n View in iLert\n </Link>\n </Typography>\n </MenuItem>\n </Menu>\n </>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AA2BO,MAAM,kBAAqB,GAAA,CAAC,EAAE,OAAA,EAAoC,KAAA;AACvE,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA,CAAA;AACnC,EAAA,MAAM,CAAC,QAAU,EAAA,WAAW,CAAI,GAAA,KAAA,CAAM,SAA6B,IAAI,CAAA,CAAA;AAEvE,EAAM,MAAA,WAAA,GAAc,CAAC,KAAyC,KAAA;AAC5D,IAAA,WAAA,CAAY,MAAM,aAAa,CAAA,CAAA;AAAA,GACjC,CAAA;AAEA,EAAA,MAAM,kBAAkB,MAAM;AAC5B,IAAA,WAAA,CAAY,IAAI,CAAA,CAAA;AAAA,GAClB,CAAA;AAEA,EAAA,uBAEI,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,YAAW,EAAA,MAAA;AAAA,MACX,eAAc,EAAA,WAAA;AAAA,MACd,eAAc,EAAA,MAAA;AAAA,MACd,OAAS,EAAA,WAAA;AAAA,MACT,IAAK,EAAA,OAAA;AAAA,KAAA;AAAA,wCAEJ,YAAa,EAAA,IAAA,CAAA;AAAA,GAEhB,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAI,CAAwB,qBAAA,EAAA,OAAA,CAAQ,EAAE,CAAA,CAAA;AAAA,MACtC,QAAA;AAAA,MACA,WAAW,EAAA,IAAA;AAAA,MACX,IAAA,EAAM,QAAQ,QAAQ,CAAA;AAAA,MACtB,OAAS,EAAA,eAAA;AAAA,MACT,UAAY,EAAA;AAAA,QACV,KAAO,EAAA,EAAE,SAAW,EAAA,EAAA,GAAK,GAAI,EAAA;AAAA,OAC/B;AAAA,KAAA;AAAA,oBAEA,KAAA,CAAA,aAAA,CAAC,YAAS,GAAI,EAAA,SAAA,EAAU,SAAS,eAC/B,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,cAAW,OAAQ,EAAA,SAAA,EAAU,QAAM,IAClC,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,EAAI,EAAA,QAAA,CAAS,qBAAqB,OAAO,CAAA,EAAA,EAAG,eAElD,CACF,CACF,CAAA;AAAA,GAEJ,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ilertApiRef } from '../../api/client.esm.js';
3
+ import { Link } from '@backstage/core-components';
4
+ import { useApi } from '@backstage/core-plugin-api';
5
+
6
+ const ServiceLink = ({ service }) => {
7
+ const ilertApi = useApi(ilertApiRef);
8
+ if (!service) {
9
+ return null;
10
+ }
11
+ return /* @__PURE__ */ React.createElement(Link, { to: ilertApi.getServiceDetailsURL(service) }, "#", service.id);
12
+ };
13
+
14
+ export { ServiceLink };
15
+ //# sourceMappingURL=ServiceLink.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceLink.esm.js","sources":["../../../src/components/Service/ServiceLink.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 React from 'react';\nimport { ilertApiRef } from '../../api';\nimport { Service } from '../../types';\n\nimport { Link } from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\n\nexport const ServiceLink = ({ service }: { service: Service | null }) => {\n const ilertApi = useApi(ilertApiRef);\n\n if (!service) {\n return null;\n }\n\n return <Link to={ilertApi.getServiceDetailsURL(service)}>#{service.id}</Link>;\n};\n"],"names":[],"mappings":";;;;;AAsBO,MAAM,WAAc,GAAA,CAAC,EAAE,OAAA,EAA2C,KAAA;AACvE,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA,CAAA;AAEnC,EAAA,IAAI,CAAC,OAAS,EAAA;AACZ,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AAEA,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,EAAI,EAAA,QAAA,CAAS,qBAAqB,OAAO,CAAA,EAAA,EAAG,GAAE,EAAA,OAAA,CAAQ,EAAG,CAAA,CAAA;AACxE;;;;"}
@@ -0,0 +1,32 @@
1
+ import { Content, ResponseErrorPanel, ContentHeader, SupportButton } from '@backstage/core-components';
2
+ import React from 'react';
3
+ import { useServices } from '../../hooks/useServices.esm.js';
4
+ import { MissingAuthorizationHeaderError } from '../Errors/MissingAuthorizationHeaderError.esm.js';
5
+ import { ServicesTable } from './ServicesTable.esm.js';
6
+
7
+ const ServicesPage = () => {
8
+ const [
9
+ { tableState, services, isLoading, error },
10
+ { onChangePage, onChangeRowsPerPage, setIsLoading }
11
+ ] = useServices(true);
12
+ if (error) {
13
+ if (error.name === "AuthenticationError") {
14
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(MissingAuthorizationHeaderError, null));
15
+ }
16
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ResponseErrorPanel, { error }));
17
+ }
18
+ return /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ContentHeader, { title: "Services" }, /* @__PURE__ */ React.createElement(SupportButton, null, "This helps you to bring iLert into your developer portal.")), /* @__PURE__ */ React.createElement(
19
+ ServicesTable,
20
+ {
21
+ services,
22
+ tableState,
23
+ onChangePage,
24
+ onChangeRowsPerPage,
25
+ isLoading,
26
+ setIsLoading
27
+ }
28
+ ));
29
+ };
30
+
31
+ export { ServicesPage };
32
+ //# sourceMappingURL=ServicesPage.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServicesPage.esm.js","sources":["../../../src/components/ServicesPage/ServicesPage.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 Content,\n ContentHeader,\n ResponseErrorPanel,\n SupportButton,\n} from '@backstage/core-components';\nimport React from 'react';\nimport { useServices } from '../../hooks/useServices';\nimport { MissingAuthorizationHeaderError } from '../Errors';\nimport { ServicesTable } from './ServicesTable';\n\nexport const ServicesPage = () => {\n const [\n { tableState, services, isLoading, error },\n { onChangePage, onChangeRowsPerPage, setIsLoading },\n ] = useServices(true);\n\n if (error) {\n if (error.name === 'AuthenticationError') {\n return (\n <Content>\n <MissingAuthorizationHeaderError />\n </Content>\n );\n }\n\n return (\n <Content>\n <ResponseErrorPanel error={error} />\n </Content>\n );\n }\n\n return (\n <Content>\n <ContentHeader title=\"Services\">\n <SupportButton>\n This helps you to bring iLert into your developer portal.\n </SupportButton>\n </ContentHeader>\n <ServicesTable\n services={services}\n tableState={tableState}\n onChangePage={onChangePage}\n onChangeRowsPerPage={onChangeRowsPerPage}\n isLoading={isLoading}\n setIsLoading={setIsLoading}\n />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;;AA0BO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA;AAAA,IACJ,EAAE,UAAA,EAAY,QAAU,EAAA,SAAA,EAAW,KAAM,EAAA;AAAA,IACzC,EAAE,YAAc,EAAA,mBAAA,EAAqB,YAAa,EAAA;AAAA,GACpD,GAAI,YAAY,IAAI,CAAA,CAAA;AAEpB,EAAA,IAAI,KAAO,EAAA;AACT,IAAI,IAAA,KAAA,CAAM,SAAS,qBAAuB,EAAA;AACxC,MAAA,uBACG,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,+BAAA,EAAA,IAAgC,CACnC,CAAA,CAAA;AAAA,KAEJ;AAEA,IAAA,uBACG,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,EAAmB,OAAc,CACpC,CAAA,CAAA;AAAA,GAEJ;AAEA,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,OACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,aAAc,EAAA,EAAA,KAAA,EAAM,8BAClB,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,IAAA,EAAc,2DAEf,CACF,CACA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,QAAA;AAAA,MACA,UAAA;AAAA,MACA,YAAA;AAAA,MACA,mBAAA;AAAA,MACA,SAAA;AAAA,MACA,YAAA;AAAA,KAAA;AAAA,GAEJ,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,99 @@
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+ import Typography from '@material-ui/core/Typography';
3
+ import React from 'react';
4
+ import { StatusChip } from './StatusChip.esm.js';
5
+ import { Table } from '@backstage/core-components';
6
+ import { ServiceActionsMenu } from '../Service/ServiceActionsMenu.esm.js';
7
+ import { ServiceLink } from '../Service/ServiceLink.esm.js';
8
+
9
+ const useStyles = makeStyles((theme) => ({
10
+ empty: {
11
+ padding: theme.spacing(2),
12
+ display: "flex",
13
+ justifyContent: "center"
14
+ }
15
+ }));
16
+ const ServicesTable = ({
17
+ services,
18
+ tableState,
19
+ isLoading,
20
+ onChangePage,
21
+ onChangeRowsPerPage,
22
+ compact
23
+ }) => {
24
+ const classes = useStyles();
25
+ const smColumnStyle = {
26
+ width: "10%",
27
+ maxWidth: "10%"
28
+ };
29
+ const xlColumnStyle = {
30
+ width: "30%",
31
+ maxWidth: "30%"
32
+ };
33
+ const idColumn = {
34
+ title: "ID",
35
+ field: "id",
36
+ highlight: true,
37
+ cellStyle: smColumnStyle,
38
+ headerStyle: smColumnStyle,
39
+ render: (rowData) => /* @__PURE__ */ React.createElement(ServiceLink, { service: rowData })
40
+ };
41
+ const nameColumn = {
42
+ title: "Name",
43
+ field: "name",
44
+ cellStyle: !compact ? xlColumnStyle : void 0,
45
+ headerStyle: !compact ? xlColumnStyle : void 0,
46
+ render: (rowData) => /* @__PURE__ */ React.createElement(Typography, null, rowData.name)
47
+ };
48
+ const statusColumn = {
49
+ title: "Status",
50
+ field: "status",
51
+ cellStyle: smColumnStyle,
52
+ headerStyle: smColumnStyle,
53
+ render: (rowData) => /* @__PURE__ */ React.createElement(StatusChip, { service: rowData })
54
+ };
55
+ const uptimeColumn = {
56
+ title: "Uptime in the last 90 days",
57
+ field: "uptimePercentage",
58
+ cellStyle: smColumnStyle,
59
+ headerStyle: smColumnStyle,
60
+ render: (rowData) => /* @__PURE__ */ React.createElement(Typography, null, rowData.uptime?.uptimePercentage?.p90 || "")
61
+ };
62
+ const actionsColumn = {
63
+ title: "",
64
+ field: "",
65
+ cellStyle: smColumnStyle,
66
+ headerStyle: smColumnStyle,
67
+ render: (rowData) => /* @__PURE__ */ React.createElement(ServiceActionsMenu, { service: rowData })
68
+ };
69
+ const columns = compact ? [nameColumn, statusColumn, uptimeColumn, actionsColumn] : [idColumn, nameColumn, statusColumn, uptimeColumn, actionsColumn];
70
+ return /* @__PURE__ */ React.createElement(
71
+ Table,
72
+ {
73
+ options: {
74
+ sorting: false,
75
+ search: !compact,
76
+ paging: !compact,
77
+ actionsColumnIndex: -1,
78
+ pageSize: tableState.pageSize,
79
+ pageSizeOptions: !compact ? [10, 20, 50, 100] : [3, 10, 20, 50, 100],
80
+ padding: "dense",
81
+ loadingType: "overlay",
82
+ showEmptyDataSourceMessage: !isLoading,
83
+ showTitle: true,
84
+ toolbar: true
85
+ },
86
+ emptyContent: /* @__PURE__ */ React.createElement(Typography, { color: "textSecondary", className: classes.empty }, "No services"),
87
+ title: /* @__PURE__ */ React.createElement(Typography, { variant: "button", color: "textSecondary" }, "SERVICES"),
88
+ page: tableState.page,
89
+ onPageChange: onChangePage,
90
+ onRowsPerPageChange: onChangeRowsPerPage,
91
+ columns,
92
+ data: services,
93
+ isLoading
94
+ }
95
+ );
96
+ };
97
+
98
+ export { ServicesTable };
99
+ //# sourceMappingURL=ServicesTable.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServicesTable.esm.js","sources":["../../../src/components/ServicesPage/ServicesTable.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport React from 'react';\nimport { TableState } from '../../api';\nimport { Service } from '../../types';\nimport { StatusChip } from './StatusChip';\n\nimport { Table, TableColumn } from '@backstage/core-components';\nimport { ServiceActionsMenu } from '../Service/ServiceActionsMenu';\nimport { ServiceLink } from '../Service/ServiceLink';\n\nconst useStyles = makeStyles(theme => ({\n empty: {\n padding: theme.spacing(2),\n display: 'flex',\n justifyContent: 'center',\n },\n}));\n\nexport const ServicesTable = ({\n services,\n tableState,\n isLoading,\n onChangePage,\n onChangeRowsPerPage,\n compact,\n}: {\n services: Service[];\n tableState: TableState;\n isLoading: boolean;\n setIsLoading: (isLoading: boolean) => void;\n onChangePage: (page: number) => void;\n onChangeRowsPerPage: (pageSize: number) => void;\n compact?: boolean;\n}) => {\n const classes = useStyles();\n\n const smColumnStyle = {\n width: '10%',\n maxWidth: '10%',\n };\n const xlColumnStyle = {\n width: '30%',\n maxWidth: '30%',\n };\n const idColumn: TableColumn<Service> = {\n title: 'ID',\n field: 'id',\n highlight: true,\n cellStyle: smColumnStyle,\n headerStyle: smColumnStyle,\n render: rowData => <ServiceLink service={rowData} />,\n };\n const nameColumn: TableColumn<Service> = {\n title: 'Name',\n field: 'name',\n cellStyle: !compact ? xlColumnStyle : undefined,\n headerStyle: !compact ? xlColumnStyle : undefined,\n render: rowData => <Typography>{rowData.name}</Typography>,\n };\n const statusColumn: TableColumn<Service> = {\n title: 'Status',\n field: 'status',\n cellStyle: smColumnStyle,\n headerStyle: smColumnStyle,\n render: rowData => <StatusChip service={rowData} />,\n };\n const uptimeColumn: TableColumn<Service> = {\n title: 'Uptime in the last 90 days',\n field: 'uptimePercentage',\n cellStyle: smColumnStyle,\n headerStyle: smColumnStyle,\n render: rowData => (\n <Typography>{rowData.uptime?.uptimePercentage?.p90 || ''}</Typography>\n ),\n };\n const actionsColumn: TableColumn<Service> = {\n title: '',\n field: '',\n cellStyle: smColumnStyle,\n headerStyle: smColumnStyle,\n render: rowData => <ServiceActionsMenu service={rowData} />,\n };\n\n const columns: TableColumn<Service>[] = compact\n ? [nameColumn, statusColumn, uptimeColumn, actionsColumn]\n : [idColumn, nameColumn, statusColumn, uptimeColumn, actionsColumn];\n\n return (\n <Table\n options={{\n sorting: false,\n search: !compact,\n paging: !compact,\n actionsColumnIndex: -1,\n pageSize: tableState.pageSize,\n pageSizeOptions: !compact ? [10, 20, 50, 100] : [3, 10, 20, 50, 100],\n padding: 'dense',\n loadingType: 'overlay',\n showEmptyDataSourceMessage: !isLoading,\n showTitle: true,\n toolbar: true,\n }}\n emptyContent={\n <Typography color=\"textSecondary\" className={classes.empty}>\n No services\n </Typography>\n }\n title={\n <Typography variant=\"button\" color=\"textSecondary\">\n SERVICES\n </Typography>\n }\n page={tableState.page}\n onPageChange={onChangePage}\n onRowsPerPageChange={onChangeRowsPerPage}\n columns={columns}\n data={services}\n isLoading={isLoading}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;AA0BA,MAAM,SAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,KAAO,EAAA;AAAA,IACL,OAAA,EAAS,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,IACxB,OAAS,EAAA,MAAA;AAAA,IACT,cAAgB,EAAA,QAAA;AAAA,GAClB;AACF,CAAE,CAAA,CAAA,CAAA;AAEK,MAAM,gBAAgB,CAAC;AAAA,EAC5B,QAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,mBAAA;AAAA,EACA,OAAA;AACF,CAQM,KAAA;AACJ,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAE1B,EAAA,MAAM,aAAgB,GAAA;AAAA,IACpB,KAAO,EAAA,KAAA;AAAA,IACP,QAAU,EAAA,KAAA;AAAA,GACZ,CAAA;AACA,EAAA,MAAM,aAAgB,GAAA;AAAA,IACpB,KAAO,EAAA,KAAA;AAAA,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