@massdriver/backstage-plugin 1.0.0

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 (346) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +196 -0
  3. package/dist/MassdriverRouter.esm.js +78 -0
  4. package/dist/MassdriverRouter.esm.js.map +1 -0
  5. package/dist/api.esm.js +119 -0
  6. package/dist/api.esm.js.map +1 -0
  7. package/dist/assets/massdriver-logo-dark.svg +55 -0
  8. package/dist/assets/massdriver-logo-light.svg +50 -0
  9. package/dist/components/AttributesColumn.esm.js +95 -0
  10. package/dist/components/AttributesColumn.esm.js.map +1 -0
  11. package/dist/components/AttributesSummaryCell.esm.js +103 -0
  12. package/dist/components/AttributesSummaryCell.esm.js.map +1 -0
  13. package/dist/components/AuthedIcon.esm.js +26 -0
  14. package/dist/components/AuthedIcon.esm.js.map +1 -0
  15. package/dist/components/ConditionsCell.esm.js +48 -0
  16. package/dist/components/ConditionsCell.esm.js.map +1 -0
  17. package/dist/components/DisabledAction.esm.js +30 -0
  18. package/dist/components/DisabledAction.esm.js.map +1 -0
  19. package/dist/components/EntityMassdriverContent/EntityMassdriverContent.esm.js +80 -0
  20. package/dist/components/EntityMassdriverContent/EntityMassdriverContent.esm.js.map +1 -0
  21. package/dist/components/EntityMassdriverContent/index.esm.js +6 -0
  22. package/dist/components/EntityMassdriverContent/index.esm.js.map +1 -0
  23. package/dist/components/EntityMassdriverOverviewCard/EntityMassdriverOverviewCard.esm.js +75 -0
  24. package/dist/components/EntityMassdriverOverviewCard/EntityMassdriverOverviewCard.esm.js.map +1 -0
  25. package/dist/components/EntityMassdriverOverviewCard/index.esm.js +6 -0
  26. package/dist/components/EntityMassdriverOverviewCard/index.esm.js.map +1 -0
  27. package/dist/components/ForkPill.esm.js +84 -0
  28. package/dist/components/ForkPill.esm.js.map +1 -0
  29. package/dist/components/InstanceStatusIndicator.esm.js +21 -0
  30. package/dist/components/InstanceStatusIndicator.esm.js.map +1 -0
  31. package/dist/components/InstanceStatusPill.esm.js +67 -0
  32. package/dist/components/InstanceStatusPill.esm.js.map +1 -0
  33. package/dist/components/MassdriverIcon.esm.js +13 -0
  34. package/dist/components/MassdriverIcon.esm.js.map +1 -0
  35. package/dist/components/MassdriverSidebarItem.esm.js +45 -0
  36. package/dist/components/MassdriverSidebarItem.esm.js.map +1 -0
  37. package/dist/components/NotFound.esm.js +44 -0
  38. package/dist/components/NotFound.esm.js.map +1 -0
  39. package/dist/components/OpenInMassdriverButton.esm.js +24 -0
  40. package/dist/components/OpenInMassdriverButton.esm.js.map +1 -0
  41. package/dist/components/PageLayout.esm.js +88 -0
  42. package/dist/components/PageLayout.esm.js.map +1 -0
  43. package/dist/components/RouterLinkAdapter.esm.js +12 -0
  44. package/dist/components/RouterLinkAdapter.esm.js.map +1 -0
  45. package/dist/components/VersionBadge.esm.js +57 -0
  46. package/dist/components/VersionBadge.esm.js.map +1 -0
  47. package/dist/components/grantColumns.esm.js +56 -0
  48. package/dist/components/grantColumns.esm.js.map +1 -0
  49. package/dist/components/icons/BundleIcon.esm.js +7 -0
  50. package/dist/components/icons/BundleIcon.esm.js.map +1 -0
  51. package/dist/components/icons/FolderOutlinedIcon.esm.js +7 -0
  52. package/dist/components/icons/FolderOutlinedIcon.esm.js.map +1 -0
  53. package/dist/components/icons/TokenIcon.esm.js +7 -0
  54. package/dist/components/icons/TokenIcon.esm.js.map +1 -0
  55. package/dist/entity.esm.js +23 -0
  56. package/dist/entity.esm.js.map +1 -0
  57. package/dist/features/environment/CompareDeploymentsDialog/CompareDeploymentsDialog.esm.js +115 -0
  58. package/dist/features/environment/CompareDeploymentsDialog/CompareDeploymentsDialog.esm.js.map +1 -0
  59. package/dist/features/environment/CompareDeploymentsDialog/ResultsStep.esm.js +165 -0
  60. package/dist/features/environment/CompareDeploymentsDialog/ResultsStep.esm.js.map +1 -0
  61. package/dist/features/environment/CompareDeploymentsDialog/SelectStep.esm.js +216 -0
  62. package/dist/features/environment/CompareDeploymentsDialog/SelectStep.esm.js.map +1 -0
  63. package/dist/features/environment/CompareDeploymentsDialog/compareColumns.esm.js +86 -0
  64. package/dist/features/environment/CompareDeploymentsDialog/compareColumns.esm.js.map +1 -0
  65. package/dist/features/environment/CompareDeploymentsDialog/flattenDeploymentComparison.esm.js +57 -0
  66. package/dist/features/environment/CompareDeploymentsDialog/flattenDeploymentComparison.esm.js.map +1 -0
  67. package/dist/features/environment/CompareDeploymentsDialog/queries.esm.js +53 -0
  68. package/dist/features/environment/CompareDeploymentsDialog/queries.esm.js.map +1 -0
  69. package/dist/features/environment/CompareEnvironmentsDialog/CompareEnvironmentsDialog.esm.js +94 -0
  70. package/dist/features/environment/CompareEnvironmentsDialog/CompareEnvironmentsDialog.esm.js.map +1 -0
  71. package/dist/features/environment/CompareEnvironmentsDialog/ComparisonValueCell.esm.js +67 -0
  72. package/dist/features/environment/CompareEnvironmentsDialog/ComparisonValueCell.esm.js.map +1 -0
  73. package/dist/features/environment/CompareEnvironmentsDialog/ResultsStep.esm.js +202 -0
  74. package/dist/features/environment/CompareEnvironmentsDialog/ResultsStep.esm.js.map +1 -0
  75. package/dist/features/environment/CompareEnvironmentsDialog/SelectStep.esm.js +183 -0
  76. package/dist/features/environment/CompareEnvironmentsDialog/SelectStep.esm.js.map +1 -0
  77. package/dist/features/environment/CompareEnvironmentsDialog/compareColumns.esm.js +73 -0
  78. package/dist/features/environment/CompareEnvironmentsDialog/compareColumns.esm.js.map +1 -0
  79. package/dist/features/environment/CompareEnvironmentsDialog/flattenComparison.esm.js +70 -0
  80. package/dist/features/environment/CompareEnvironmentsDialog/flattenComparison.esm.js.map +1 -0
  81. package/dist/features/environment/CompareEnvironmentsDialog/queries.esm.js +32 -0
  82. package/dist/features/environment/CompareEnvironmentsDialog/queries.esm.js.map +1 -0
  83. package/dist/features/environment/EnvironmentGraphPage.esm.js +131 -0
  84. package/dist/features/environment/EnvironmentGraphPage.esm.js.map +1 -0
  85. package/dist/features/environment/GraphHeader/EnvironmentDefaults.esm.js +252 -0
  86. package/dist/features/environment/GraphHeader/EnvironmentDefaults.esm.js.map +1 -0
  87. package/dist/features/environment/GraphHeader/GraphHeader.esm.js +247 -0
  88. package/dist/features/environment/GraphHeader/GraphHeader.esm.js.map +1 -0
  89. package/dist/features/environment/GraphHeader/HeaderActions.esm.js +127 -0
  90. package/dist/features/environment/GraphHeader/HeaderActions.esm.js.map +1 -0
  91. package/dist/features/environment/GraphHeader/Switcher.esm.js +75 -0
  92. package/dist/features/environment/GraphHeader/Switcher.esm.js.map +1 -0
  93. package/dist/features/environment/GraphHeader/queries.esm.js +60 -0
  94. package/dist/features/environment/GraphHeader/queries.esm.js.map +1 -0
  95. package/dist/features/environment/InstanceDrawer/AlarmCard.esm.js +151 -0
  96. package/dist/features/environment/InstanceDrawer/AlarmCard.esm.js.map +1 -0
  97. package/dist/features/environment/InstanceDrawer/InstanceDrawer.esm.js +165 -0
  98. package/dist/features/environment/InstanceDrawer/InstanceDrawer.esm.js.map +1 -0
  99. package/dist/features/environment/InstanceDrawer/InstanceDrawerHeader.esm.js +241 -0
  100. package/dist/features/environment/InstanceDrawer/InstanceDrawerHeader.esm.js.map +1 -0
  101. package/dist/features/environment/InstanceDrawer/InstanceTabs.esm.js +119 -0
  102. package/dist/features/environment/InstanceDrawer/InstanceTabs.esm.js.map +1 -0
  103. package/dist/features/environment/InstanceDrawer/TabState.esm.js +30 -0
  104. package/dist/features/environment/InstanceDrawer/TabState.esm.js.map +1 -0
  105. package/dist/features/environment/InstanceDrawer/formsDataSource.esm.js +25 -0
  106. package/dist/features/environment/InstanceDrawer/formsDataSource.esm.js.map +1 -0
  107. package/dist/features/environment/InstanceDrawer/helpers.esm.js +282 -0
  108. package/dist/features/environment/InstanceDrawer/helpers.esm.js.map +1 -0
  109. package/dist/features/environment/InstanceDrawer/queries.esm.js +281 -0
  110. package/dist/features/environment/InstanceDrawer/queries.esm.js.map +1 -0
  111. package/dist/features/environment/InstanceDrawer/tabs/ConfigTab.esm.js +170 -0
  112. package/dist/features/environment/InstanceDrawer/tabs/ConfigTab.esm.js.map +1 -0
  113. package/dist/features/environment/InstanceDrawer/tabs/DependenciesTab.esm.js +413 -0
  114. package/dist/features/environment/InstanceDrawer/tabs/DependenciesTab.esm.js.map +1 -0
  115. package/dist/features/environment/InstanceDrawer/tabs/DeploymentLogsPanel.esm.js +191 -0
  116. package/dist/features/environment/InstanceDrawer/tabs/DeploymentLogsPanel.esm.js.map +1 -0
  117. package/dist/features/environment/InstanceDrawer/tabs/DeploymentReadOnlyActions.esm.js +63 -0
  118. package/dist/features/environment/InstanceDrawer/tabs/DeploymentReadOnlyActions.esm.js.map +1 -0
  119. package/dist/features/environment/InstanceDrawer/tabs/GuideTab.esm.js +48 -0
  120. package/dist/features/environment/InstanceDrawer/tabs/GuideTab.esm.js.map +1 -0
  121. package/dist/features/environment/InstanceDrawer/tabs/HistoryTab.esm.js +446 -0
  122. package/dist/features/environment/InstanceDrawer/tabs/HistoryTab.esm.js.map +1 -0
  123. package/dist/features/environment/InstanceDrawer/tabs/MonitorTab.esm.js +146 -0
  124. package/dist/features/environment/InstanceDrawer/tabs/MonitorTab.esm.js.map +1 -0
  125. package/dist/features/environment/InstanceDrawer/tabs/OverviewTab.esm.js +572 -0
  126. package/dist/features/environment/InstanceDrawer/tabs/OverviewTab.esm.js.map +1 -0
  127. package/dist/features/environment/InstanceDrawer/tabs/ResourcesTab.esm.js +471 -0
  128. package/dist/features/environment/InstanceDrawer/tabs/ResourcesTab.esm.js.map +1 -0
  129. package/dist/features/environment/InstanceDrawer/tabs/SecretsTab.esm.js +109 -0
  130. package/dist/features/environment/InstanceDrawer/tabs/SecretsTab.esm.js.map +1 -0
  131. package/dist/features/environment/InstanceDrawer/tabs/ViewDeploymentDetails.esm.js +384 -0
  132. package/dist/features/environment/InstanceDrawer/tabs/ViewDeploymentDetails.esm.js.map +1 -0
  133. package/dist/features/environment/InstanceDrawer/tabs/flattenParams.esm.js +23 -0
  134. package/dist/features/environment/InstanceDrawer/tabs/flattenParams.esm.js.map +1 -0
  135. package/dist/features/environment/InstanceDrawer/useInstanceApiQuery.esm.js +6 -0
  136. package/dist/features/environment/InstanceDrawer/useInstanceApiQuery.esm.js.map +1 -0
  137. package/dist/features/environment/InstanceDrawer/useOverflowMeasure.esm.js +55 -0
  138. package/dist/features/environment/InstanceDrawer/useOverflowMeasure.esm.js.map +1 -0
  139. package/dist/features/environment/InstanceDrawer/useResizableWidth.esm.js +44 -0
  140. package/dist/features/environment/InstanceDrawer/useResizableWidth.esm.js.map +1 -0
  141. package/dist/features/environment/components/InstanceStatusPill.esm.js +54 -0
  142. package/dist/features/environment/components/InstanceStatusPill.esm.js.map +1 -0
  143. package/dist/features/environment/graph/Diagram.esm.js +143 -0
  144. package/dist/features/environment/graph/Diagram.esm.js.map +1 -0
  145. package/dist/features/environment/graph/DiagramNode.constants.esm.js +5 -0
  146. package/dist/features/environment/graph/DiagramNode.constants.esm.js.map +1 -0
  147. package/dist/features/environment/graph/DiagramNode.esm.js +221 -0
  148. package/dist/features/environment/graph/DiagramNode.esm.js.map +1 -0
  149. package/dist/features/environment/graph/NodeMeta.esm.js +182 -0
  150. package/dist/features/environment/graph/NodeMeta.esm.js.map +1 -0
  151. package/dist/features/environment/graph/NodeVersionBadges.esm.js +150 -0
  152. package/dist/features/environment/graph/NodeVersionBadges.esm.js.map +1 -0
  153. package/dist/features/environment/graph/diagramFactory.esm.js +151 -0
  154. package/dist/features/environment/graph/diagramFactory.esm.js.map +1 -0
  155. package/dist/features/environment/graph/handles/ExpandableHandleWrapper.esm.js +174 -0
  156. package/dist/features/environment/graph/handles/ExpandableHandleWrapper.esm.js.map +1 -0
  157. package/dist/features/environment/graph/handles/NodeHandle.esm.js +45 -0
  158. package/dist/features/environment/graph/handles/NodeHandle.esm.js.map +1 -0
  159. package/dist/features/environment/graph/handles/NodeHandleTooltip.esm.js +134 -0
  160. package/dist/features/environment/graph/handles/NodeHandleTooltip.esm.js.map +1 -0
  161. package/dist/features/environment/graph/handles/handleTypes.esm.js +170 -0
  162. package/dist/features/environment/graph/handles/handleTypes.esm.js.map +1 -0
  163. package/dist/features/environment/graph/handles/useAnimationFrameSync.esm.js +19 -0
  164. package/dist/features/environment/graph/handles/useAnimationFrameSync.esm.js.map +1 -0
  165. package/dist/features/environment/graph/handles/useRadialPositions.esm.js +37 -0
  166. package/dist/features/environment/graph/handles/useRadialPositions.esm.js.map +1 -0
  167. package/dist/features/environment/graph/handles/useTransitionLifecycle.esm.js +19 -0
  168. package/dist/features/environment/graph/handles/useTransitionLifecycle.esm.js.map +1 -0
  169. package/dist/features/environment/graph/hasUndeployedPlan.esm.js +43 -0
  170. package/dist/features/environment/graph/hasUndeployedPlan.esm.js.map +1 -0
  171. package/dist/features/environment/graph/queries.esm.js +103 -0
  172. package/dist/features/environment/graph/queries.esm.js.map +1 -0
  173. package/dist/features/environment/graph/useDiagramSnapshot.esm.js +43 -0
  174. package/dist/features/environment/graph/useDiagramSnapshot.esm.js.map +1 -0
  175. package/dist/features/environment/realtime/RealtimeProvider.esm.js +43 -0
  176. package/dist/features/environment/realtime/RealtimeProvider.esm.js.map +1 -0
  177. package/dist/features/environment/realtime/queries.esm.js +76 -0
  178. package/dist/features/environment/realtime/queries.esm.js.map +1 -0
  179. package/dist/features/environment/realtime/useLiveRelayQuery.esm.js +36 -0
  180. package/dist/features/environment/realtime/useLiveRelayQuery.esm.js.map +1 -0
  181. package/dist/features/project/ProjectDetailsPage.esm.js +101 -0
  182. package/dist/features/project/ProjectDetailsPage.esm.js.map +1 -0
  183. package/dist/features/project/tabs/ComponentsTab.esm.js +149 -0
  184. package/dist/features/project/tabs/ComponentsTab.esm.js.map +1 -0
  185. package/dist/features/project/tabs/EnvStatus.esm.js +149 -0
  186. package/dist/features/project/tabs/EnvStatus.esm.js.map +1 -0
  187. package/dist/features/project/tabs/EnvironmentsTab.esm.js +199 -0
  188. package/dist/features/project/tabs/EnvironmentsTab.esm.js.map +1 -0
  189. package/dist/features/project/tabs/OverviewTab.esm.js +420 -0
  190. package/dist/features/project/tabs/OverviewTab.esm.js.map +1 -0
  191. package/dist/features/projects/ProjectsListPage.esm.js +50 -0
  192. package/dist/features/projects/ProjectsListPage.esm.js.map +1 -0
  193. package/dist/features/projects/ProjectsListPageLazy.esm.js +12 -0
  194. package/dist/features/projects/ProjectsListPageLazy.esm.js.map +1 -0
  195. package/dist/features/projects/projectColumns.esm.js +38 -0
  196. package/dist/features/projects/projectColumns.esm.js.map +1 -0
  197. package/dist/features/projects/useProjects.esm.js +48 -0
  198. package/dist/features/projects/useProjects.esm.js.map +1 -0
  199. package/dist/features/repo/DeploymentLogsDrawer.esm.js +213 -0
  200. package/dist/features/repo/DeploymentLogsDrawer.esm.js.map +1 -0
  201. package/dist/features/repo/DeploymentLogsDrawer.loading.esm.js +43 -0
  202. package/dist/features/repo/DeploymentLogsDrawer.loading.esm.js.map +1 -0
  203. package/dist/features/repo/FileTree.esm.js +179 -0
  204. package/dist/features/repo/FileTree.esm.js.map +1 -0
  205. package/dist/features/repo/FileViewer.esm.js +115 -0
  206. package/dist/features/repo/FileViewer.esm.js.map +1 -0
  207. package/dist/features/repo/FileViewer.helpers.esm.js +54 -0
  208. package/dist/features/repo/FileViewer.helpers.esm.js.map +1 -0
  209. package/dist/features/repo/RepoDetailsPage.esm.js +127 -0
  210. package/dist/features/repo/RepoDetailsPage.esm.js.map +1 -0
  211. package/dist/features/repo/RepoEmptyState.esm.js +58 -0
  212. package/dist/features/repo/RepoEmptyState.esm.js.map +1 -0
  213. package/dist/features/repo/RepoNoVersionsState.esm.js +29 -0
  214. package/dist/features/repo/RepoNoVersionsState.esm.js.map +1 -0
  215. package/dist/features/repo/RepoTabHeader.esm.js +30 -0
  216. package/dist/features/repo/RepoTabHeader.esm.js.map +1 -0
  217. package/dist/features/repo/RepoTabLayout.esm.js +18 -0
  218. package/dist/features/repo/RepoTabLayout.esm.js.map +1 -0
  219. package/dist/features/repo/RepoVersionSelect.esm.js +176 -0
  220. package/dist/features/repo/RepoVersionSelect.esm.js.map +1 -0
  221. package/dist/features/repo/ViewDeploymentDetailsDialog.esm.js +427 -0
  222. package/dist/features/repo/ViewDeploymentDetailsDialog.esm.js.map +1 -0
  223. package/dist/features/repo/deploymentHelpers.esm.js +74 -0
  224. package/dist/features/repo/deploymentHelpers.esm.js.map +1 -0
  225. package/dist/features/repo/fileTreeHelpers.esm.js +45 -0
  226. package/dist/features/repo/fileTreeHelpers.esm.js.map +1 -0
  227. package/dist/features/repo/flattenParams.esm.js +23 -0
  228. package/dist/features/repo/flattenParams.esm.js.map +1 -0
  229. package/dist/features/repo/queries.esm.js +239 -0
  230. package/dist/features/repo/queries.esm.js.map +1 -0
  231. package/dist/features/repo/repoFilter.esm.js +9 -0
  232. package/dist/features/repo/repoFilter.esm.js.map +1 -0
  233. package/dist/features/repo/repoTabs.esm.js +22 -0
  234. package/dist/features/repo/repoTabs.esm.js.map +1 -0
  235. package/dist/features/repo/resolveVersion.esm.js +22 -0
  236. package/dist/features/repo/resolveVersion.esm.js.map +1 -0
  237. package/dist/features/repo/tabs/DeploymentRow.esm.js +201 -0
  238. package/dist/features/repo/tabs/DeploymentRow.esm.js.map +1 -0
  239. package/dist/features/repo/tabs/DeploymentsTab.esm.js +188 -0
  240. package/dist/features/repo/tabs/DeploymentsTab.esm.js.map +1 -0
  241. package/dist/features/repo/tabs/DeploymentsTab.helpers.esm.js +46 -0
  242. package/dist/features/repo/tabs/DeploymentsTab.helpers.esm.js.map +1 -0
  243. package/dist/features/repo/tabs/DeploymentsTab.loading.esm.js +37 -0
  244. package/dist/features/repo/tabs/DeploymentsTab.loading.esm.js.map +1 -0
  245. package/dist/features/repo/tabs/FilesTab.esm.js +142 -0
  246. package/dist/features/repo/tabs/FilesTab.esm.js.map +1 -0
  247. package/dist/features/repo/tabs/InstanceRow.esm.js +121 -0
  248. package/dist/features/repo/tabs/InstanceRow.esm.js.map +1 -0
  249. package/dist/features/repo/tabs/InstancesTab.esm.js +147 -0
  250. package/dist/features/repo/tabs/InstancesTab.esm.js.map +1 -0
  251. package/dist/features/repo/tabs/InstancesTab.helpers.esm.js +44 -0
  252. package/dist/features/repo/tabs/InstancesTab.helpers.esm.js.map +1 -0
  253. package/dist/features/repo/tabs/InstancesTab.loading.esm.js +33 -0
  254. package/dist/features/repo/tabs/InstancesTab.loading.esm.js.map +1 -0
  255. package/dist/features/repo/tabs/OverviewTab.esm.js +77 -0
  256. package/dist/features/repo/tabs/OverviewTab.esm.js.map +1 -0
  257. package/dist/features/repo/tabs/PermissionsTab.esm.js +56 -0
  258. package/dist/features/repo/tabs/PermissionsTab.esm.js.map +1 -0
  259. package/dist/features/repo/tabs/VersionsTab.esm.js +152 -0
  260. package/dist/features/repo/tabs/VersionsTab.esm.js.map +1 -0
  261. package/dist/features/repo/useInfiniteRelayList.esm.js +92 -0
  262. package/dist/features/repo/useInfiniteRelayList.esm.js.map +1 -0
  263. package/dist/features/repo/useInfiniteScroll.esm.js +21 -0
  264. package/dist/features/repo/useInfiniteScroll.esm.js.map +1 -0
  265. package/dist/features/repos/ReposListPage.esm.js +53 -0
  266. package/dist/features/repos/ReposListPage.esm.js.map +1 -0
  267. package/dist/features/repos/queries.esm.js +40 -0
  268. package/dist/features/repos/queries.esm.js.map +1 -0
  269. package/dist/features/repos/repoColumns.esm.js +121 -0
  270. package/dist/features/repos/repoColumns.esm.js.map +1 -0
  271. package/dist/features/repos/useRepos.esm.js +22 -0
  272. package/dist/features/repos/useRepos.esm.js.map +1 -0
  273. package/dist/features/resource/OriginChip.esm.js +42 -0
  274. package/dist/features/resource/OriginChip.esm.js.map +1 -0
  275. package/dist/features/resource/ResourceDetailsPage.esm.js +167 -0
  276. package/dist/features/resource/ResourceDetailsPage.esm.js.map +1 -0
  277. package/dist/features/resource/queries.esm.js +141 -0
  278. package/dist/features/resource/queries.esm.js.map +1 -0
  279. package/dist/features/resource/tabs/GeneralTab.esm.js +247 -0
  280. package/dist/features/resource/tabs/GeneralTab.esm.js.map +1 -0
  281. package/dist/features/resource/tabs/GeneralTab.loading.esm.js +76 -0
  282. package/dist/features/resource/tabs/GeneralTab.loading.esm.js.map +1 -0
  283. package/dist/features/resource/tabs/PermissionsTab.esm.js +57 -0
  284. package/dist/features/resource/tabs/PermissionsTab.esm.js.map +1 -0
  285. package/dist/features/resource/tabs/SettingsTabLayout.esm.js +18 -0
  286. package/dist/features/resource/tabs/SettingsTabLayout.esm.js.map +1 -0
  287. package/dist/features/resource/tabs/TabHeader.esm.js +30 -0
  288. package/dist/features/resource/tabs/TabHeader.esm.js.map +1 -0
  289. package/dist/features/resource/tabs/UsagePanel.esm.js +35 -0
  290. package/dist/features/resource/tabs/UsagePanel.esm.js.map +1 -0
  291. package/dist/features/resource/tabs/UsageTab.esm.js +91 -0
  292. package/dist/features/resource/tabs/UsageTab.esm.js.map +1 -0
  293. package/dist/features/resource/tabs/UsageTab.helpers.esm.js +168 -0
  294. package/dist/features/resource/tabs/UsageTab.helpers.esm.js.map +1 -0
  295. package/dist/features/resources/ResourcesEmptyState.esm.js +148 -0
  296. package/dist/features/resources/ResourcesEmptyState.esm.js.map +1 -0
  297. package/dist/features/resources/ResourcesListPage.esm.js +115 -0
  298. package/dist/features/resources/ResourcesListPage.esm.js.map +1 -0
  299. package/dist/features/resources/queries.esm.js +50 -0
  300. package/dist/features/resources/queries.esm.js.map +1 -0
  301. package/dist/features/resources/resourceColumns.esm.js +158 -0
  302. package/dist/features/resources/resourceColumns.esm.js.map +1 -0
  303. package/dist/features/resources/resourceConstants.esm.js +7 -0
  304. package/dist/features/resources/resourceConstants.esm.js.map +1 -0
  305. package/dist/features/resources/toResourceRow.esm.js +29 -0
  306. package/dist/features/resources/toResourceRow.esm.js.map +1 -0
  307. package/dist/hooks/useAuthedSvg.esm.js +34 -0
  308. package/dist/hooks/useAuthedSvg.esm.js.map +1 -0
  309. package/dist/hooks/useCursorPagination.esm.js +40 -0
  310. package/dist/hooks/useCursorPagination.esm.js.map +1 -0
  311. package/dist/hooks/useMassdriverSubscription.esm.js +61 -0
  312. package/dist/hooks/useMassdriverSubscription.esm.js.map +1 -0
  313. package/dist/hooks/usePaginatedRelayQuery.esm.js +68 -0
  314. package/dist/hooks/usePaginatedRelayQuery.esm.js.map +1 -0
  315. package/dist/index.d.ts +256 -0
  316. package/dist/index.esm.js +8 -0
  317. package/dist/index.esm.js.map +1 -0
  318. package/dist/internalRoutes.esm.js +29 -0
  319. package/dist/internalRoutes.esm.js.map +1 -0
  320. package/dist/plugin.esm.js +57 -0
  321. package/dist/plugin.esm.js.map +1 -0
  322. package/dist/queries.esm.js +54 -0
  323. package/dist/queries.esm.js.map +1 -0
  324. package/dist/routes.esm.js +6 -0
  325. package/dist/routes.esm.js.map +1 -0
  326. package/dist/shell/MassdriverHeader.esm.js +37 -0
  327. package/dist/shell/MassdriverHeader.esm.js.map +1 -0
  328. package/dist/shell/MassdriverShell.esm.js +30 -0
  329. package/dist/shell/MassdriverShell.esm.js.map +1 -0
  330. package/dist/theme/MassdriverThemeScope.esm.js +30 -0
  331. package/dist/theme/MassdriverThemeScope.esm.js.map +1 -0
  332. package/dist/theme/ThemeModeContext.esm.js +35 -0
  333. package/dist/theme/ThemeModeContext.esm.js.map +1 -0
  334. package/dist/theme/muiClassNameAudit.esm.js +11 -0
  335. package/dist/theme/muiClassNameAudit.esm.js.map +1 -0
  336. package/dist/useInstances.esm.js +39 -0
  337. package/dist/useInstances.esm.js.map +1 -0
  338. package/dist/utils/attributes.esm.js +28 -0
  339. package/dist/utils/attributes.esm.js.map +1 -0
  340. package/dist/utils/conditions.esm.js +20 -0
  341. package/dist/utils/conditions.esm.js.map +1 -0
  342. package/dist/utils/formatRelativeTime.esm.js +40 -0
  343. package/dist/utils/formatRelativeTime.esm.js.map +1 -0
  344. package/dist/utils/instanceStatuses.esm.js +74 -0
  345. package/dist/utils/instanceStatuses.esm.js.map +1 -0
  346. package/package.json +92 -0
@@ -0,0 +1,199 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { useApi } from '@backstage/frontend-plugin-api';
3
+ import { parseEnvironmentId, projectUrl } from '@massdriver/backstage-plugin-common';
4
+ import Box from '@massdriver/ui/Box';
5
+ import DataList, { col } from '@massdriver/ui/DataList';
6
+ import { HelpIconButton } from '@massdriver/ui/IconButton';
7
+ import Stack from '@massdriver/ui/Stack';
8
+ import Typography from '@massdriver/ui/Typography';
9
+ import CheckIcon from '@massdriver/ui/icons/CheckIcon';
10
+ import CloseIcon from '@massdriver/ui/icons/CloseIcon';
11
+ import stylin from '@massdriver/ui/stylin';
12
+ import { massdriverApiRef } from '../../../api.esm.js';
13
+ import { buildAttributesColumn, Code } from '../../../components/AttributesColumn.esm.js';
14
+ import { ForkPill } from '../../../components/ForkPill.esm.js';
15
+ import { OpenInMassdriverButton } from '../../../components/OpenInMassdriverButton.esm.js';
16
+ import { RouterLinkAdapter } from '../../../components/RouterLinkAdapter.esm.js';
17
+ import { usePaginatedRelayQuery } from '../../../hooks/usePaginatedRelayQuery.esm.js';
18
+ import { internalRoutes } from '../../../internalRoutes.esm.js';
19
+
20
+ const ENVIRONMENTS_QUERY = `
21
+ query MassdriverProjectEnvironments(
22
+ $organizationId: ID!
23
+ $sort: EnvironmentsSort
24
+ $cursor: Cursor
25
+ $filter: EnvironmentsFilter
26
+ ) {
27
+ environments(
28
+ organizationId: $organizationId
29
+ sort: $sort
30
+ cursor: $cursor
31
+ filter: $filter
32
+ ) {
33
+ items {
34
+ id
35
+ name
36
+ description
37
+ decommissionProtection
38
+ attributes
39
+ effectiveAttributes
40
+ createdAt
41
+ parent { id name createdAt }
42
+ }
43
+ cursor { next previous }
44
+ }
45
+ }
46
+ `;
47
+ const EnvironmentsTab = ({ projectId }) => {
48
+ const api = useApi(massdriverApiRef);
49
+ const { items, loading, error, hasMore, dataListParams } = usePaginatedRelayQuery(ENVIRONMENTS_QUERY, {
50
+ responseKey: "environments",
51
+ sortFieldMap: { name: "NAME", createdAt: "CREATED_AT" },
52
+ defaultSort: { field: "name", direction: "asc" },
53
+ pageSize: 20,
54
+ baseFilter: { projectId: { eq: projectId } }
55
+ });
56
+ const rows = items.map((env) => ({
57
+ ...env,
58
+ scopedEnvironmentId: parseEnvironmentId(env.id).scopedEnvironmentId
59
+ }));
60
+ const columns = [
61
+ col.custom(
62
+ "name",
63
+ "Name",
64
+ (value, row) => /* @__PURE__ */ jsxs(NameCell, { children: [
65
+ /* @__PURE__ */ jsx(
66
+ NameLink,
67
+ {
68
+ component: RouterLinkAdapter,
69
+ href: internalRoutes.environment(projectId, row.id),
70
+ children: value || "--"
71
+ }
72
+ ),
73
+ /* @__PURE__ */ jsx(ForkPill, { parent: row.parent, createdAt: row.createdAt })
74
+ ] }),
75
+ { flex: 2, minWidth: 180, sortable: true, searchable: true }
76
+ ),
77
+ col.text("scopedEnvironmentId", "Identifier", {
78
+ flex: 1,
79
+ minWidth: 120,
80
+ sortable: false
81
+ }),
82
+ col.text("description", "Description", {
83
+ flex: 3,
84
+ minWidth: 150,
85
+ sortable: false
86
+ }),
87
+ col.custom(
88
+ "decommissionProtection",
89
+ /* @__PURE__ */ jsx(ProtectedColumnHeader, {}),
90
+ (_value, row) => row.decommissionProtection ? /* @__PURE__ */ jsx(ProtectedYes, { "aria-label": "Protected", children: /* @__PURE__ */ jsx(CheckIcon, { fontSize: "small" }) }) : /* @__PURE__ */ jsx(ProtectedNo, { "aria-label": "Not protected", children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" }) }),
91
+ { flex: 1, minWidth: 120, sortable: false, searchable: false }
92
+ ),
93
+ buildAttributesColumn({
94
+ directText: "Key-value attributes assigned directly to this environment. Attributes cascade to instances within the environment.",
95
+ effectiveText: /* @__PURE__ */ jsxs(Fragment, { children: [
96
+ "The full attribute map the authorization system evaluates policies against for this environment \u2014 the environment's own user attributes plus auto-injected ",
97
+ /* @__PURE__ */ jsx(Code, { children: "md-*" }),
98
+ " system attributes."
99
+ ] })
100
+ })
101
+ ];
102
+ const createUrl = `${projectUrl(
103
+ api.appUrl,
104
+ api.organizationId,
105
+ projectId
106
+ )}/environments?createEnvironment=true`;
107
+ return /* @__PURE__ */ jsxs(Wrapper, { children: [
108
+ /* @__PURE__ */ jsxs(Header, { children: [
109
+ /* @__PURE__ */ jsx(Typography, { variant: "h6", children: "Environments" }),
110
+ /* @__PURE__ */ jsx(OpenInMassdriverButton, { url: createUrl, children: "Create Environment" })
111
+ ] }),
112
+ /* @__PURE__ */ jsx(
113
+ DataList,
114
+ {
115
+ rows,
116
+ columns,
117
+ loading,
118
+ serverSide: true,
119
+ hasMore,
120
+ emptyMessage: "This project doesn't have any environments yet.",
121
+ variant: "outlined",
122
+ ...dataListParams
123
+ }
124
+ ),
125
+ error && /* @__PURE__ */ jsx(ErrorNote, { children: String(error.message ?? error) })
126
+ ] });
127
+ };
128
+ const ProtectedColumnHeader = () => /* @__PURE__ */ jsxs(HeaderRow, { children: [
129
+ "Protected",
130
+ /* @__PURE__ */ jsx(
131
+ SmallHelpButton,
132
+ {
133
+ tooltip: /* @__PURE__ */ jsx(HelpText, { children: "When enabled, this environment cannot be decommissioned or deleted without first turning protection off in environment settings." }),
134
+ size: "small"
135
+ }
136
+ )
137
+ ] });
138
+ const Wrapper = stylin(Box)(({ theme }) => ({
139
+ padding: theme.spacing(4),
140
+ maxWidth: 1400,
141
+ mx: "auto",
142
+ width: "100%",
143
+ display: "flex",
144
+ flexDirection: "column",
145
+ gap: theme.spacing(2)
146
+ }));
147
+ const Header = stylin(Stack)({
148
+ justifyContent: "space-between",
149
+ alignItems: "center",
150
+ flexDirection: "row"
151
+ });
152
+ const NameCell = stylin(Box)(({ theme }) => ({
153
+ display: "flex",
154
+ alignItems: "center",
155
+ gap: theme.spacing(1),
156
+ minWidth: 0
157
+ }));
158
+ const NameLink = stylin(Box)({
159
+ color: "inherit",
160
+ textDecoration: "none",
161
+ whiteSpace: "nowrap",
162
+ overflow: "hidden",
163
+ textOverflow: "ellipsis",
164
+ minWidth: 0,
165
+ "&:hover": { textDecoration: "underline" }
166
+ });
167
+ const HeaderRow = stylin(Box)(({ theme }) => ({
168
+ display: "inline-flex",
169
+ alignItems: "center",
170
+ gap: theme.spacing(0.5)
171
+ }));
172
+ const SmallHelpButton = stylin(HelpIconButton)({
173
+ padding: "2px",
174
+ "& svg": { fontSize: 14 }
175
+ });
176
+ const HelpText = stylin("span")(({ theme }) => ({
177
+ display: "block",
178
+ fontSize: theme.typography.pxToRem(12),
179
+ lineHeight: 1.5,
180
+ maxWidth: 260,
181
+ color: "inherit"
182
+ }));
183
+ const ProtectedYes = stylin(Box)(({ theme }) => ({
184
+ display: "inline-flex",
185
+ alignItems: "center",
186
+ color: theme.palette.success.main
187
+ }));
188
+ const ProtectedNo = stylin(Box)(({ theme }) => ({
189
+ display: "inline-flex",
190
+ alignItems: "center",
191
+ color: theme.palette.text.disabled
192
+ }));
193
+ const ErrorNote = stylin("div")(({ theme }) => ({
194
+ color: theme.palette.error.main,
195
+ fontSize: theme.typography.body2.fontSize
196
+ }));
197
+
198
+ export { EnvironmentsTab };
199
+ //# sourceMappingURL=EnvironmentsTab.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentsTab.esm.js","sources":["../../../../src/features/project/tabs/EnvironmentsTab.tsx"],"sourcesContent":["import { useApi } from '@backstage/frontend-plugin-api';\nimport {\n parseEnvironmentId,\n projectUrl,\n} from '@massdriver/backstage-plugin-common';\nimport Box from '@massdriver/ui/Box';\nimport { col } from '@massdriver/ui/DataList';\nimport DataList from '@massdriver/ui/DataList';\nimport { HelpIconButton } from '@massdriver/ui/IconButton';\nimport Stack from '@massdriver/ui/Stack';\nimport Typography from '@massdriver/ui/Typography';\nimport CheckIcon from '@massdriver/ui/icons/CheckIcon';\nimport CloseIcon from '@massdriver/ui/icons/CloseIcon';\nimport stylin from '@massdriver/ui/stylin';\nimport { massdriverApiRef } from '../../../api';\nimport {\n buildAttributesColumn,\n Code,\n} from '../../../components/AttributesColumn';\nimport { ForkPill } from '../../../components/ForkPill';\nimport { OpenInMassdriverButton } from '../../../components/OpenInMassdriverButton';\nimport { RouterLinkAdapter } from '../../../components/RouterLinkAdapter';\nimport { usePaginatedRelayQuery } from '../../../hooks/usePaginatedRelayQuery';\nimport { internalRoutes } from '../../../internalRoutes';\n\ninterface EnvRow {\n id: string;\n name: string;\n description?: string | null;\n decommissionProtection?: boolean;\n attributes?: unknown;\n effectiveAttributes?: unknown;\n createdAt?: string | null;\n parent?: { id: string; name?: string; createdAt?: string } | null;\n scopedEnvironmentId?: string;\n}\n\nconst ENVIRONMENTS_QUERY = `\n query MassdriverProjectEnvironments(\n $organizationId: ID!\n $sort: EnvironmentsSort\n $cursor: Cursor\n $filter: EnvironmentsFilter\n ) {\n environments(\n organizationId: $organizationId\n sort: $sort\n cursor: $cursor\n filter: $filter\n ) {\n items {\n id\n name\n description\n decommissionProtection\n attributes\n effectiveAttributes\n createdAt\n parent { id name createdAt }\n }\n cursor { next previous }\n }\n }\n`;\n\n/** Read-only Environments tab: server-paginated list scoped to the project. */\nexport const EnvironmentsTab = ({ projectId }: { projectId: string }) => {\n const api = useApi(massdriverApiRef);\n const { items, loading, error, hasMore, dataListParams } =\n usePaginatedRelayQuery<EnvRow>(ENVIRONMENTS_QUERY, {\n responseKey: 'environments',\n sortFieldMap: { name: 'NAME', createdAt: 'CREATED_AT' },\n defaultSort: { field: 'name', direction: 'asc' },\n pageSize: 20,\n baseFilter: { projectId: { eq: projectId } },\n });\n\n const rows: EnvRow[] = items.map(env => ({\n ...env,\n scopedEnvironmentId: parseEnvironmentId(env.id).scopedEnvironmentId,\n }));\n\n const columns = [\n col.custom(\n 'name',\n 'Name',\n (value: string, row: EnvRow) => (\n <NameCell>\n <NameLink\n component={RouterLinkAdapter}\n href={internalRoutes.environment(projectId, row.id)}\n >\n {value || '--'}\n </NameLink>\n <ForkPill parent={row.parent} createdAt={row.createdAt} />\n </NameCell>\n ),\n { flex: 2, minWidth: 180, sortable: true, searchable: true },\n ),\n col.text('scopedEnvironmentId', 'Identifier', {\n flex: 1,\n minWidth: 120,\n sortable: false,\n }),\n col.text('description', 'Description', {\n flex: 3,\n minWidth: 150,\n sortable: false,\n }),\n col.custom(\n 'decommissionProtection',\n <ProtectedColumnHeader />,\n (_value: unknown, row: EnvRow) =>\n row.decommissionProtection ? (\n <ProtectedYes aria-label=\"Protected\">\n <CheckIcon fontSize=\"small\" />\n </ProtectedYes>\n ) : (\n <ProtectedNo aria-label=\"Not protected\">\n <CloseIcon fontSize=\"small\" />\n </ProtectedNo>\n ),\n { flex: 1, minWidth: 120, sortable: false, searchable: false },\n ),\n buildAttributesColumn({\n directText:\n 'Key-value attributes assigned directly to this environment. Attributes cascade to instances within the environment.',\n effectiveText: (\n <>\n The full attribute map the authorization system evaluates policies\n against for this environment — the environment's own user attributes\n plus auto-injected <Code>md-*</Code> system attributes.\n </>\n ),\n }),\n ];\n\n const createUrl = `${projectUrl(\n api.appUrl,\n api.organizationId,\n projectId,\n )}/environments?createEnvironment=true`;\n\n return (\n <Wrapper>\n <Header>\n <Typography variant=\"h6\">Environments</Typography>\n <OpenInMassdriverButton url={createUrl}>\n Create Environment\n </OpenInMassdriverButton>\n </Header>\n <DataList\n rows={rows}\n columns={columns}\n loading={loading}\n serverSide\n hasMore={hasMore}\n emptyMessage=\"This project doesn't have any environments yet.\"\n variant=\"outlined\"\n {...dataListParams}\n />\n {error && <ErrorNote>{String(error.message ?? error)}</ErrorNote>}\n </Wrapper>\n );\n};\n\nconst ProtectedColumnHeader = () => (\n <HeaderRow>\n Protected\n <SmallHelpButton\n tooltip={\n <HelpText>\n When enabled, this environment cannot be decommissioned or deleted\n without first turning protection off in environment settings.\n </HelpText>\n }\n size=\"small\"\n />\n </HeaderRow>\n);\n\nconst Wrapper = stylin(Box)(({ theme }: { theme: any }) => ({\n padding: theme.spacing(4),\n maxWidth: 1400,\n mx: 'auto',\n width: '100%',\n display: 'flex',\n flexDirection: 'column',\n gap: theme.spacing(2),\n}));\n\nconst Header = stylin(Stack)({\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n});\n\nconst NameCell = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'flex',\n alignItems: 'center',\n gap: theme.spacing(1),\n minWidth: 0,\n}));\n\nconst NameLink = stylin(Box)({\n color: 'inherit',\n textDecoration: 'none',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n minWidth: 0,\n '&:hover': { textDecoration: 'underline' },\n});\n\nconst HeaderRow = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n gap: theme.spacing(0.5),\n}));\n\nconst SmallHelpButton = stylin(HelpIconButton)({\n padding: '2px',\n '& svg': { fontSize: 14 },\n});\n\nconst HelpText = stylin('span')(({ theme }: { theme: any }) => ({\n display: 'block',\n fontSize: theme.typography.pxToRem(12),\n lineHeight: 1.5,\n maxWidth: 260,\n color: 'inherit',\n}));\n\nconst ProtectedYes = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n color: theme.palette.success.main,\n}));\n\nconst ProtectedNo = stylin(Box)(({ theme }: { theme: any }) => ({\n display: 'inline-flex',\n alignItems: 'center',\n color: theme.palette.text.disabled,\n}));\n\nconst ErrorNote = stylin('div')(({ theme }: { theme: any }) => ({\n color: theme.palette.error.main,\n fontSize: theme.typography.body2.fontSize,\n}));\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA,MAAM,kBAAA,GAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AA6BpB,MAAM,eAAA,GAAkB,CAAC,EAAE,SAAA,EAAU,KAA6B;AACvE,EAAA,MAAM,GAAA,GAAM,OAAO,gBAAgB,CAAA;AACnC,EAAA,MAAM,EAAE,OAAO,OAA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E,CAAA;AAAA,EACrC,UAAA,EAAY,GAAA;AAAA,EACZ,QAAA,EAAU,GAAA;AAAA,EACV,KAAA,EAAO;AACT,CAAA,CAAE,CAAA;AAEF,MAAM,eAAe,MAAA,CAAO,GAAG,EAAE,CAAC,EAAE,OAAM,MAAuB;AAAA,EAC/D,OAAA,EAAS,aAAA;AAAA,EACT,UAAA,EAAY,QAAA;AAAA,EACZ,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,OAAA,CAAQ;AAC/B,CAAA,CAAE,CAAA;AAEF,MAAM,cAAc,MAAA,CAAO,GAAG,EAAE,CAAC,EAAE,OAAM,MAAuB;AAAA,EAC9D,OAAA,EAAS,aAAA;AAAA,EACT,UAAA,EAAY,QAAA;AAAA,EACZ,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK;AAC5B,CAAA,CAAE,CAAA;AAEF,MAAM,YAAY,MAAA,CAAO,KAAK,EAAE,CAAC,EAAE,OAAM,MAAuB;AAAA,EAC9D,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,KAAA,CAAM,IAAA;AAAA,EAC3B,QAAA,EAAU,KAAA,CAAM,UAAA,CAAW,KAAA,CAAM;AACnC,CAAA,CAAE,CAAA;;;;"}
@@ -0,0 +1,420 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { useApi } from '@backstage/frontend-plugin-api';
3
+ import { parseEnvironmentId } from '@massdriver/backstage-plugin-common';
4
+ import Box from '@massdriver/ui/Box';
5
+ import Card from '@massdriver/ui/Card';
6
+ import Divider from '@massdriver/ui/Divider';
7
+ import LoadingIndicator from '@massdriver/ui/LoadingIndicator';
8
+ import Alert from '@massdriver/ui/Alert';
9
+ import Typography from '@massdriver/ui/Typography';
10
+ import ChevronRightIcon from '@massdriver/ui/icons/ChevronRightIcon';
11
+ import stylin from '@massdriver/ui/stylin';
12
+ import useAsync from 'react-use/esm/useAsync';
13
+ import { massdriverApiRef } from '../../../api.esm.js';
14
+ import { RouterLinkAdapter } from '../../../components/RouterLinkAdapter.esm.js';
15
+ import { internalRoutes } from '../../../internalRoutes.esm.js';
16
+ import { formatRelativeTime, formatCurrency } from '../../../utils/formatRelativeTime.esm.js';
17
+
18
+ const MONEY = `{ amount currency }`;
19
+ const COST = `cost { lastDay ${MONEY} dailyAverage ${MONEY} lastMonth ${MONEY} monthlyAverage ${MONEY} }`;
20
+ const OVERVIEW_QUERY = `
21
+ query MassdriverProjectOverview($organizationId: ID!, $id: ID!) {
22
+ project(organizationId: $organizationId, id: $id) {
23
+ id
24
+ name
25
+ description
26
+ createdAt
27
+ updatedAt
28
+ ${COST}
29
+ environments(cursor: { limit: 100 }) {
30
+ items { id name description updatedAt ${COST} }
31
+ }
32
+ }
33
+ }
34
+ `;
35
+ const useProjectOverview = (projectId) => {
36
+ const api = useApi(massdriverApiRef);
37
+ return useAsync(async () => {
38
+ const data = await api.query(OVERVIEW_QUERY, { id: projectId });
39
+ return data.project;
40
+ }, [api, projectId]);
41
+ };
42
+ const OverviewTab = ({ projectId }) => {
43
+ const { value: project, loading, error } = useProjectOverview(projectId);
44
+ if (loading) {
45
+ return /* @__PURE__ */ jsx(Centered, { children: /* @__PURE__ */ jsx(LoadingIndicator, {}) });
46
+ }
47
+ if (error) {
48
+ return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsx(Alert, { severity: "error", children: String(error.message ?? error) }) });
49
+ }
50
+ const environments = (project?.environments?.items ?? []).filter(
51
+ Boolean
52
+ );
53
+ return /* @__PURE__ */ jsxs(Wrapper, { children: [
54
+ /* @__PURE__ */ jsxs(TopRow, { children: [
55
+ /* @__PURE__ */ jsx(MetadataCard, { project }),
56
+ /* @__PURE__ */ jsx(CostSummaryCard, { cost: project?.cost })
57
+ ] }),
58
+ /* @__PURE__ */ jsx(
59
+ EnvironmentSummaryCards,
60
+ {
61
+ environments,
62
+ projectId
63
+ }
64
+ )
65
+ ] });
66
+ };
67
+ const MetadataCard = ({ project }) => /* @__PURE__ */ jsxs(MetaWrapper, { children: [
68
+ /* @__PURE__ */ jsx(SectionTitle, { variant: "overline", children: "Details" }),
69
+ /* @__PURE__ */ jsxs(FieldList, { children: [
70
+ /* @__PURE__ */ jsx(Field, { label: "Identifier", value: project?.id, mono: true }),
71
+ /* @__PURE__ */ jsx(
72
+ Field,
73
+ {
74
+ label: "Created",
75
+ value: project?.createdAt ? formatRelativeTime(project.createdAt) : "\u2014"
76
+ }
77
+ ),
78
+ /* @__PURE__ */ jsx(
79
+ Field,
80
+ {
81
+ label: "Last updated",
82
+ value: project?.updatedAt ? formatRelativeTime(project.updatedAt) : "\u2014"
83
+ }
84
+ )
85
+ ] })
86
+ ] });
87
+ const Field = ({
88
+ label,
89
+ value,
90
+ mono
91
+ }) => /* @__PURE__ */ jsxs(FieldRow, { children: [
92
+ /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.secondary", children: label }),
93
+ /* @__PURE__ */ jsx(FieldValue, { variant: "body2", mono, title: value ?? "", children: value })
94
+ ] });
95
+ const CostSummaryCard = ({ cost }) => /* @__PURE__ */ jsxs(CostWrapper, { children: [
96
+ /* @__PURE__ */ jsx(SectionTitle, { variant: "overline", children: "Cost" }),
97
+ /* @__PURE__ */ jsxs(CostRow, { children: [
98
+ /* @__PURE__ */ jsx(
99
+ CostBlock,
100
+ {
101
+ label: "Last 24 hours",
102
+ amount: cost?.lastDay?.amount,
103
+ currency: cost?.lastDay?.currency,
104
+ avg: cost?.dailyAverage?.amount,
105
+ avgLabel: "7-day avg"
106
+ }
107
+ ),
108
+ /* @__PURE__ */ jsx(
109
+ CostBlock,
110
+ {
111
+ label: "Last month",
112
+ amount: cost?.lastMonth?.amount,
113
+ currency: cost?.lastMonth?.currency,
114
+ avg: cost?.monthlyAverage?.amount,
115
+ avgLabel: "Monthly avg"
116
+ }
117
+ )
118
+ ] })
119
+ ] });
120
+ const CostBlock = ({
121
+ label,
122
+ amount,
123
+ currency,
124
+ avg,
125
+ avgLabel
126
+ }) => /* @__PURE__ */ jsxs(CostBlockRoot, { children: [
127
+ /* @__PURE__ */ jsx(CostLabel, { variant: "caption", children: label }),
128
+ /* @__PURE__ */ jsx(CostAmount, { variant: "h4", children: formatCurrency(amount, currency ?? "USD", "No data yet") }),
129
+ /* @__PURE__ */ jsxs(CostAvg, { variant: "caption", children: [
130
+ avgLabel,
131
+ ": ",
132
+ formatCurrency(avg, currency ?? "USD", "No data yet")
133
+ ] })
134
+ ] });
135
+ const EnvironmentSummaryCards = ({
136
+ environments,
137
+ projectId
138
+ }) => /* @__PURE__ */ jsxs(EnvWrapper, { children: [
139
+ /* @__PURE__ */ jsx(SectionTitle, { variant: "overline", children: "Environments" }),
140
+ environments.length === 0 ? /* @__PURE__ */ jsx(EmptyState, { children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: "No environments yet. Create your first environment to start deploying." }) }) : /* @__PURE__ */ jsx(List, { children: environments.map((env, index) => /* @__PURE__ */ jsx(
141
+ EnvironmentRow,
142
+ {
143
+ environment: env,
144
+ href: internalRoutes.environment(projectId, env.id),
145
+ isFirst: index === 0
146
+ },
147
+ env.id
148
+ )) })
149
+ ] });
150
+ const EnvironmentRow = ({
151
+ environment,
152
+ href,
153
+ isFirst
154
+ }) => {
155
+ const { scopedEnvironmentId } = parseEnvironmentId(environment.id);
156
+ const currency = environment.cost?.lastMonth?.currency ?? environment.cost?.monthlyAverage?.currency ?? environment.cost?.lastDay?.currency ?? environment.cost?.dailyAverage?.currency ?? "USD";
157
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
158
+ !isFirst && /* @__PURE__ */ jsx(Divider, {}),
159
+ /* @__PURE__ */ jsx(RowLink, { component: RouterLinkAdapter, href, children: /* @__PURE__ */ jsxs(Row, { children: [
160
+ /* @__PURE__ */ jsxs(PrimaryColumn, { children: [
161
+ /* @__PURE__ */ jsxs(NameRow, { children: [
162
+ /* @__PURE__ */ jsx(Name, { variant: "subtitle1", children: environment.name }),
163
+ /* @__PURE__ */ jsx(IdBadge, { children: scopedEnvironmentId })
164
+ ] }),
165
+ environment.description ? /* @__PURE__ */ jsx(Description, { variant: "body2", children: environment.description }) : /* @__PURE__ */ jsx(DescriptionMuted, { variant: "body2", children: "No description" })
166
+ ] }),
167
+ /* @__PURE__ */ jsxs(Stats, { children: [
168
+ /* @__PURE__ */ jsxs(Stat, { children: [
169
+ /* @__PURE__ */ jsx(StatLabel, { variant: "caption", children: "Last 24 hours" }),
170
+ /* @__PURE__ */ jsx(StatPrimary, { variant: "body1", children: formatCurrency(
171
+ environment.cost?.lastDay?.amount,
172
+ currency,
173
+ "\u2014"
174
+ ) }),
175
+ /* @__PURE__ */ jsxs(StatSecondary, { variant: "caption", children: [
176
+ "7-day avg",
177
+ " ",
178
+ formatCurrency(
179
+ environment.cost?.dailyAverage?.amount,
180
+ currency,
181
+ "\u2014"
182
+ )
183
+ ] })
184
+ ] }),
185
+ /* @__PURE__ */ jsxs(Stat, { children: [
186
+ /* @__PURE__ */ jsx(StatLabel, { variant: "caption", children: "Last month" }),
187
+ /* @__PURE__ */ jsx(StatPrimary, { variant: "body1", children: formatCurrency(
188
+ environment.cost?.lastMonth?.amount,
189
+ currency,
190
+ "\u2014"
191
+ ) }),
192
+ /* @__PURE__ */ jsxs(StatSecondary, { variant: "caption", children: [
193
+ "Monthly avg",
194
+ " ",
195
+ formatCurrency(
196
+ environment.cost?.monthlyAverage?.amount,
197
+ currency,
198
+ "\u2014"
199
+ )
200
+ ] })
201
+ ] })
202
+ ] }),
203
+ /* @__PURE__ */ jsxs(Trailing, { children: [
204
+ environment.updatedAt ? /* @__PURE__ */ jsxs(Updated, { variant: "caption", children: [
205
+ "Updated ",
206
+ formatRelativeTime(environment.updatedAt)
207
+ ] }) : null,
208
+ /* @__PURE__ */ jsx(Chevron, {})
209
+ ] })
210
+ ] }) })
211
+ ] });
212
+ };
213
+ const Wrapper = stylin(Box)(({ theme }) => ({
214
+ padding: theme.spacing(4),
215
+ maxWidth: 1400,
216
+ mx: "auto",
217
+ width: "100%",
218
+ display: "flex",
219
+ flexDirection: "column",
220
+ gap: theme.spacing(4)
221
+ }));
222
+ const Centered = stylin(Box)(({ theme }) => ({
223
+ display: "flex",
224
+ justifyContent: "center",
225
+ padding: theme.spacing(6)
226
+ }));
227
+ const TopRow = stylin(Box)(({ theme }) => ({
228
+ display: "grid",
229
+ gridTemplateColumns: "minmax(280px, 1fr) minmax(360px, 1.6fr)",
230
+ gap: theme.spacing(2),
231
+ [theme.breakpoints.down("md")]: { gridTemplateColumns: "1fr" }
232
+ }));
233
+ const SectionTitle = stylin(Typography)(({ theme }) => ({
234
+ color: theme.palette.text.secondary,
235
+ letterSpacing: theme.spacing(0.1)
236
+ }));
237
+ const MetaWrapper = stylin(Card)(({ theme }) => ({
238
+ display: "flex",
239
+ flexDirection: "column",
240
+ gap: theme.spacing(1.5),
241
+ padding: theme.spacing(3)
242
+ }));
243
+ const FieldList = stylin(Box)(({ theme }) => ({
244
+ display: "flex",
245
+ flexDirection: "column",
246
+ gap: theme.spacing(1.25)
247
+ }));
248
+ const FieldRow = stylin(Box)(({ theme }) => ({
249
+ display: "grid",
250
+ gridTemplateColumns: `${theme.spacing(14)} 1fr`,
251
+ alignItems: "baseline",
252
+ gap: theme.spacing(2),
253
+ minWidth: 0
254
+ }));
255
+ const FieldValue = stylin(Typography, ["mono"])(
256
+ ({ theme, mono }) => ({
257
+ color: theme.palette.text.primary,
258
+ fontFamily: mono ? theme.typography.fontFamilyMono : theme.typography.body2.fontFamily,
259
+ overflow: "hidden",
260
+ textOverflow: "ellipsis",
261
+ whiteSpace: "nowrap",
262
+ minWidth: 0
263
+ })
264
+ );
265
+ const CostWrapper = stylin(Card)(({ theme }) => ({
266
+ display: "flex",
267
+ flexDirection: "column",
268
+ gap: theme.spacing(2),
269
+ padding: theme.spacing(3)
270
+ }));
271
+ const CostRow = stylin(Box)(({ theme }) => ({
272
+ display: "grid",
273
+ gridTemplateColumns: "repeat(2, 1fr)",
274
+ gap: theme.spacing(3)
275
+ }));
276
+ const CostBlockRoot = stylin(Box)(({ theme }) => ({
277
+ display: "flex",
278
+ flexDirection: "column",
279
+ gap: theme.spacing(0.5),
280
+ paddingLeft: theme.spacing(1.5),
281
+ borderLeft: `2px solid ${theme.palette.divider}`
282
+ }));
283
+ const CostLabel = stylin(Typography)(({ theme }) => ({
284
+ color: theme.palette.text.secondary,
285
+ textTransform: "uppercase",
286
+ letterSpacing: "0.05em",
287
+ fontWeight: 600,
288
+ fontSize: "0.7rem"
289
+ }));
290
+ const CostAmount = stylin(Typography)(({ theme }) => ({
291
+ color: theme.palette.text.primary,
292
+ fontWeight: theme.typography.fontWeightBold,
293
+ lineHeight: 1.1
294
+ }));
295
+ const CostAvg = stylin(Typography)(({ theme }) => ({
296
+ color: theme.palette.text.secondary
297
+ }));
298
+ const EnvWrapper = stylin(Box)(({ theme }) => ({
299
+ display: "flex",
300
+ flexDirection: "column",
301
+ gap: theme.spacing(1.5)
302
+ }));
303
+ const List = stylin(Box)(({ theme }) => ({
304
+ display: "flex",
305
+ flexDirection: "column",
306
+ border: `1px solid ${theme.palette.divider}`,
307
+ borderRadius: 1,
308
+ backgroundColor: theme.palette.background.paper,
309
+ overflow: "hidden"
310
+ }));
311
+ const RowLink = stylin(Box)(({ theme }) => ({
312
+ display: "block",
313
+ padding: theme.spacing(2.5, 3),
314
+ textDecoration: "none",
315
+ color: "inherit",
316
+ transition: "background-color 120ms ease",
317
+ "&:hover": { backgroundColor: `${theme.palette.primary.main}14` }
318
+ }));
319
+ const Row = stylin(Box)(({ theme }) => ({
320
+ display: "grid",
321
+ gridTemplateColumns: "minmax(0, 2fr) minmax(0, 3fr) auto",
322
+ gap: theme.spacing(4),
323
+ alignItems: "center",
324
+ [theme.breakpoints.down("md")]: {
325
+ gridTemplateColumns: "1fr",
326
+ gap: theme.spacing(2)
327
+ }
328
+ }));
329
+ const PrimaryColumn = stylin(Box)(({ theme }) => ({
330
+ display: "flex",
331
+ flexDirection: "column",
332
+ gap: theme.spacing(0.5),
333
+ minWidth: 0
334
+ }));
335
+ const NameRow = stylin(Box)(({ theme }) => ({
336
+ display: "flex",
337
+ alignItems: "center",
338
+ gap: theme.spacing(1),
339
+ minWidth: 0
340
+ }));
341
+ const Name = stylin(Typography)(({ theme }) => ({
342
+ fontWeight: theme.typography.fontWeightBold,
343
+ color: theme.palette.text.primary,
344
+ overflow: "hidden",
345
+ textOverflow: "ellipsis",
346
+ whiteSpace: "nowrap"
347
+ }));
348
+ const IdBadge = stylin(Box)(({ theme }) => ({
349
+ fontFamily: theme.typography.fontFamilyMono,
350
+ fontSize: theme.typography.caption.fontSize,
351
+ color: theme.palette.text.secondary,
352
+ backgroundColor: theme.palette.action.hover,
353
+ padding: theme.spacing(0.25, 0.75),
354
+ borderRadius: theme.custom.general.borderRadiusSm,
355
+ whiteSpace: "nowrap",
356
+ flexShrink: 0
357
+ }));
358
+ const Description = stylin(Typography)(({ theme }) => ({
359
+ color: theme.palette.text.secondary,
360
+ overflow: "hidden",
361
+ textOverflow: "ellipsis",
362
+ whiteSpace: "nowrap"
363
+ }));
364
+ const DescriptionMuted = stylin(Typography)(({ theme }) => ({
365
+ color: theme.palette.text.disabled,
366
+ fontStyle: "italic"
367
+ }));
368
+ const Stats = stylin(Box)(({ theme }) => ({
369
+ display: "flex",
370
+ gap: theme.spacing(4),
371
+ [theme.breakpoints.down("md")]: { gap: theme.spacing(3) }
372
+ }));
373
+ const Stat = stylin(Box)(({ theme }) => ({
374
+ display: "flex",
375
+ flexDirection: "column",
376
+ gap: theme.spacing(0.25),
377
+ minWidth: theme.spacing(14)
378
+ }));
379
+ const StatLabel = stylin(Typography)(({ theme }) => ({
380
+ color: theme.palette.text.secondary,
381
+ textTransform: "uppercase",
382
+ letterSpacing: "0.05em",
383
+ fontWeight: 600,
384
+ fontSize: "0.65rem"
385
+ }));
386
+ const StatPrimary = stylin(Typography)(({ theme }) => ({
387
+ color: theme.palette.text.primary,
388
+ fontWeight: theme.typography.fontWeightBold,
389
+ fontVariantNumeric: "tabular-nums"
390
+ }));
391
+ const StatSecondary = stylin(Typography)(({ theme }) => ({
392
+ color: theme.palette.text.secondary,
393
+ fontVariantNumeric: "tabular-nums"
394
+ }));
395
+ const Trailing = stylin(Box)(({ theme }) => ({
396
+ display: "flex",
397
+ alignItems: "center",
398
+ gap: theme.spacing(1.5),
399
+ flexShrink: 0
400
+ }));
401
+ const Updated = stylin(Typography)(({ theme }) => ({
402
+ color: theme.palette.text.secondary,
403
+ whiteSpace: "nowrap"
404
+ }));
405
+ const Chevron = stylin(ChevronRightIcon)(({ theme }) => ({
406
+ color: theme.palette.text.disabled,
407
+ fontSize: 20
408
+ }));
409
+ const EmptyState = stylin(Box)(({ theme }) => ({
410
+ padding: theme.spacing(4),
411
+ border: `1px dashed ${theme.palette.divider}`,
412
+ borderRadius: 1,
413
+ display: "flex",
414
+ alignItems: "center",
415
+ justifyContent: "center",
416
+ textAlign: "center"
417
+ }));
418
+
419
+ export { OverviewTab };
420
+ //# sourceMappingURL=OverviewTab.esm.js.map