@manta-eu/react 0.1.10 → 0.2.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 (324) hide show
  1. package/dist/components/channel-icon/index.d.ts +1 -0
  2. package/dist/components/channel-icon/index.d.ts.map +1 -1
  3. package/dist/components/channel-icon/index.js +1 -1
  4. package/dist/components/channel-icon/index.js.map +1 -1
  5. package/dist/components/chat-view/ChatTurnErrorNotice.d.ts.map +1 -1
  6. package/dist/components/chat-view/ChatTurnErrorNotice.js +3 -1
  7. package/dist/components/chat-view/ChatTurnErrorNotice.js.map +1 -1
  8. package/dist/components/layouts/ConnectedCustomApp.d.ts +13 -0
  9. package/dist/components/layouts/ConnectedCustomApp.d.ts.map +1 -0
  10. package/dist/components/layouts/ConnectedCustomApp.js +37 -0
  11. package/dist/components/layouts/ConnectedCustomApp.js.map +1 -0
  12. package/dist/components/layouts/Sidebar.d.ts.map +1 -1
  13. package/dist/components/layouts/Sidebar.js +6 -3
  14. package/dist/components/layouts/Sidebar.js.map +1 -1
  15. package/dist/components/planning/ActioningView.d.ts +1 -2
  16. package/dist/components/planning/ActioningView.d.ts.map +1 -1
  17. package/dist/components/planning/ActioningView.js +19 -44
  18. package/dist/components/planning/ActioningView.js.map +1 -1
  19. package/dist/components/planning/ManualActionCard.d.ts +4 -0
  20. package/dist/components/planning/ManualActionCard.d.ts.map +1 -1
  21. package/dist/components/planning/ManualActionCard.js +7 -5
  22. package/dist/components/planning/ManualActionCard.js.map +1 -1
  23. package/dist/components/planning/ManualActionList.d.ts +4 -0
  24. package/dist/components/planning/ManualActionList.d.ts.map +1 -1
  25. package/dist/components/planning/ManualActionList.js +8 -2
  26. package/dist/components/planning/ManualActionList.js.map +1 -1
  27. package/dist/components/planning/actioning-view-utils.d.ts +9 -0
  28. package/dist/components/planning/actioning-view-utils.d.ts.map +1 -1
  29. package/dist/components/planning/actioning-view-utils.js +19 -1
  30. package/dist/components/planning/actioning-view-utils.js.map +1 -1
  31. package/dist/components/table-skeleton/index.d.ts +2 -0
  32. package/dist/components/table-skeleton/index.d.ts.map +1 -1
  33. package/dist/components/table-skeleton/index.js +2 -1
  34. package/dist/components/table-skeleton/index.js.map +1 -1
  35. package/dist/components/tooltip/index.d.ts +7 -0
  36. package/dist/components/tooltip/index.d.ts.map +1 -1
  37. package/dist/components/tooltip/index.js +10 -1
  38. package/dist/components/tooltip/index.js.map +1 -1
  39. package/dist/globals.css +19 -6
  40. package/dist/graph/createNodeRouter.js +3 -3
  41. package/dist/graph/createNodeRouter.js.map +1 -1
  42. package/dist/graph/entity-link.d.ts +14 -0
  43. package/dist/graph/entity-link.d.ts.map +1 -0
  44. package/dist/graph/entity-link.js +12 -0
  45. package/dist/graph/entity-link.js.map +1 -0
  46. package/dist/graph/graph-list-utils.d.ts +1 -0
  47. package/dist/graph/graph-list-utils.d.ts.map +1 -1
  48. package/dist/graph/graph-list-utils.js +1 -0
  49. package/dist/graph/graph-list-utils.js.map +1 -1
  50. package/dist/graph/graph-model.d.ts.map +1 -1
  51. package/dist/graph/graph-model.js +14 -5
  52. package/dist/graph/graph-model.js.map +1 -1
  53. package/dist/graph/nodes/BrandAssetAnalysisView.d.ts.map +1 -1
  54. package/dist/graph/nodes/BrandAssetAnalysisView.js +2 -1
  55. package/dist/graph/nodes/BrandAssetAnalysisView.js.map +1 -1
  56. package/dist/graph/nodes/BrandFontSuggestionView.d.ts +3 -0
  57. package/dist/graph/nodes/BrandFontSuggestionView.d.ts.map +1 -0
  58. package/dist/graph/nodes/{BrandFontFamilyView.js → BrandFontSuggestionView.js} +22 -13
  59. package/dist/graph/nodes/BrandFontSuggestionView.js.map +1 -0
  60. package/dist/graph/nodes/BrandGuidelinesView.js +1 -1
  61. package/dist/graph/nodes/BrandGuidelinesView.js.map +1 -1
  62. package/dist/graph/nodes/NodePropertyTable.d.ts +4 -2
  63. package/dist/graph/nodes/NodePropertyTable.d.ts.map +1 -1
  64. package/dist/graph/nodes/NodePropertyTable.js +12 -59
  65. package/dist/graph/nodes/NodePropertyTable.js.map +1 -1
  66. package/dist/graph/nodes/brand-font.d.ts +8 -0
  67. package/dist/graph/nodes/brand-font.d.ts.map +1 -1
  68. package/dist/graph/nodes/brand-font.js +6 -0
  69. package/dist/graph/nodes/brand-font.js.map +1 -1
  70. package/dist/graph/nodes/brand-shared.d.ts +0 -3
  71. package/dist/graph/nodes/brand-shared.d.ts.map +1 -1
  72. package/dist/graph/nodes/brand-shared.js +1 -4
  73. package/dist/graph/nodes/brand-shared.js.map +1 -1
  74. package/dist/graph/nodes/node-property-row.d.ts +30 -0
  75. package/dist/graph/nodes/node-property-row.d.ts.map +1 -0
  76. package/dist/graph/nodes/node-property-row.js +35 -0
  77. package/dist/graph/nodes/node-property-row.js.map +1 -0
  78. package/dist/graph/property-formatters.d.ts +1 -0
  79. package/dist/graph/property-formatters.d.ts.map +1 -1
  80. package/dist/graph/property-formatters.js +4 -1
  81. package/dist/graph/property-formatters.js.map +1 -1
  82. package/dist/graph/special-nodes/AttributeList.d.ts +27 -0
  83. package/dist/graph/special-nodes/AttributeList.d.ts.map +1 -0
  84. package/dist/graph/special-nodes/AttributeList.js +57 -0
  85. package/dist/graph/special-nodes/AttributeList.js.map +1 -0
  86. package/dist/graph/special-nodes/EntityPreview.d.ts +5 -0
  87. package/dist/graph/special-nodes/EntityPreview.d.ts.map +1 -0
  88. package/dist/graph/special-nodes/EntityPreview.js +19 -0
  89. package/dist/graph/special-nodes/EntityPreview.js.map +1 -0
  90. package/dist/graph/special-nodes/EntityValueChip.d.ts +11 -0
  91. package/dist/graph/special-nodes/EntityValueChip.d.ts.map +1 -0
  92. package/dist/graph/special-nodes/EntityValueChip.js +40 -0
  93. package/dist/graph/special-nodes/EntityValueChip.js.map +1 -0
  94. package/dist/graph/special-nodes/GenericView.d.ts +2 -1
  95. package/dist/graph/special-nodes/GenericView.d.ts.map +1 -1
  96. package/dist/graph/special-nodes/GenericView.js +23 -69
  97. package/dist/graph/special-nodes/GenericView.js.map +1 -1
  98. package/dist/graph/special-nodes/card-facts.d.ts +52 -0
  99. package/dist/graph/special-nodes/card-facts.d.ts.map +1 -0
  100. package/dist/graph/special-nodes/card-facts.js +189 -0
  101. package/dist/graph/special-nodes/card-facts.js.map +1 -0
  102. package/dist/graph/special-nodes/property-icons.d.ts +9 -0
  103. package/dist/graph/special-nodes/property-icons.d.ts.map +1 -0
  104. package/dist/graph/special-nodes/property-icons.js +39 -0
  105. package/dist/graph/special-nodes/property-icons.js.map +1 -0
  106. package/dist/graph/status-utils.d.ts +16 -0
  107. package/dist/graph/status-utils.d.ts.map +1 -1
  108. package/dist/graph/status-utils.js +35 -0
  109. package/dist/graph/status-utils.js.map +1 -1
  110. package/dist/graph/types.d.ts +5 -0
  111. package/dist/graph/types.d.ts.map +1 -1
  112. package/dist/hooks/use-approve-anyway.d.ts +12 -0
  113. package/dist/hooks/use-approve-anyway.d.ts.map +1 -0
  114. package/dist/hooks/use-approve-anyway.js +81 -0
  115. package/dist/hooks/use-approve-anyway.js.map +1 -0
  116. package/dist/hooks/use-connection-problems.d.ts.map +1 -1
  117. package/dist/hooks/useAuth.d.ts +2 -2
  118. package/dist/hooks/useAuth.d.ts.map +1 -1
  119. package/dist/hooks/useAuth.js +2 -2
  120. package/dist/hooks/useAuth.js.map +1 -1
  121. package/dist/hooks/useOnboardingState.js +1 -1
  122. package/dist/hooks/useOnboardingState.js.map +1 -1
  123. package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
  124. package/dist/ldo-ui.d.ts +2 -1
  125. package/dist/ldo-ui.d.ts.map +1 -1
  126. package/dist/ldo-ui.js +1 -0
  127. package/dist/ldo-ui.js.map +1 -1
  128. package/dist/lib/datastore-route-table.d.ts +2 -1
  129. package/dist/lib/datastore-route-table.d.ts.map +1 -1
  130. package/dist/lib/datastore-route-table.js +2 -1
  131. package/dist/lib/datastore-route-table.js.map +1 -1
  132. package/dist/lib/manual-actions.d.ts +2 -1
  133. package/dist/lib/manual-actions.d.ts.map +1 -1
  134. package/dist/lib/manual-actions.js +3 -2
  135. package/dist/lib/manual-actions.js.map +1 -1
  136. package/dist/providers/ActiveChatProvider.js +3 -1
  137. package/dist/providers/ActiveChatProvider.js.map +1 -1
  138. package/dist/providers/AuthContext.d.ts +2 -1
  139. package/dist/providers/AuthContext.d.ts.map +1 -1
  140. package/dist/providers/AuthContext.js.map +1 -1
  141. package/dist/providers/ChatManagerProvider.d.ts.map +1 -1
  142. package/dist/providers/ChatManagerProvider.js +22 -9
  143. package/dist/providers/ChatManagerProvider.js.map +1 -1
  144. package/dist/providers/chat-socket-auth.d.ts +7 -2
  145. package/dist/providers/chat-socket-auth.d.ts.map +1 -1
  146. package/dist/providers/chat-socket-auth.js +87 -16
  147. package/dist/providers/chat-socket-auth.js.map +1 -1
  148. package/dist/providers/index.d.ts.map +1 -1
  149. package/dist/providers/index.js +8 -1
  150. package/dist/providers/index.js.map +1 -1
  151. package/dist/routes/activity/detail/ActivityChanges.d.ts +2 -0
  152. package/dist/routes/activity/detail/ActivityChanges.d.ts.map +1 -1
  153. package/dist/routes/activity/detail/ActivityChanges.js +8 -7
  154. package/dist/routes/activity/detail/ActivityChanges.js.map +1 -1
  155. package/dist/routes/activity/detail/ActivityDetail.d.ts +1 -0
  156. package/dist/routes/activity/detail/ActivityDetail.d.ts.map +1 -1
  157. package/dist/routes/activity/detail/ActivityDetail.js +5 -4
  158. package/dist/routes/activity/detail/ActivityDetail.js.map +1 -1
  159. package/dist/routes/activity/detail/ActivityStepsRail.d.ts +1 -0
  160. package/dist/routes/activity/detail/ActivityStepsRail.d.ts.map +1 -1
  161. package/dist/routes/activity/detail/ActivityStepsRail.js +3 -2
  162. package/dist/routes/activity/detail/ActivityStepsRail.js.map +1 -1
  163. package/dist/routes/activity/detail/ActivityTimeline.js +2 -2
  164. package/dist/routes/activity/detail/ActivityTimeline.js.map +1 -1
  165. package/dist/routes/activity/detail/NoChangesMessage.d.ts +6 -0
  166. package/dist/routes/activity/detail/NoChangesMessage.d.ts.map +1 -0
  167. package/dist/routes/activity/detail/NoChangesMessage.js +10 -0
  168. package/dist/routes/activity/detail/NoChangesMessage.js.map +1 -0
  169. package/dist/routes/data-explorer/components/RawTriples.js +1 -1
  170. package/dist/routes/data-explorer/components/RawTriples.js.map +1 -1
  171. package/dist/routes/data-explorer/components/RecentTypes.js +1 -1
  172. package/dist/routes/data-explorer/components/RecentTypes.js.map +1 -1
  173. package/dist/routes/data-explorer/components/class-detail/Instances.js +1 -1
  174. package/dist/routes/data-explorer/components/class-detail/Instances.js.map +1 -1
  175. package/dist/routes/data-explorer/components/namespace-detail/NamespaceClassRow.js +1 -1
  176. package/dist/routes/data-explorer/components/namespace-detail/NamespaceClassRow.js.map +1 -1
  177. package/dist/routes/data-explorer/components/ontology-coverage/CoverageTermColumns.js +1 -1
  178. package/dist/routes/data-explorer/components/ontology-coverage/CoverageTermColumns.js.map +1 -1
  179. package/dist/routes/data-explorer/components/ontology-coverage/UnobservedRuleVocabulary.js +1 -1
  180. package/dist/routes/data-explorer/components/ontology-coverage/UnobservedRuleVocabulary.js.map +1 -1
  181. package/dist/routes/data-explorer/components/record-detail/ChatPreview.js +2 -2
  182. package/dist/routes/data-explorer/components/record-detail/ChatPreview.js.map +1 -1
  183. package/dist/routes/data-explorer/declared-namespaces.d.ts +3 -0
  184. package/dist/routes/data-explorer/declared-namespaces.d.ts.map +1 -1
  185. package/dist/routes/data-explorer/declared-namespaces.js +21 -13
  186. package/dist/routes/data-explorer/declared-namespaces.js.map +1 -1
  187. package/dist/routes/data-explorer/namespaces.d.ts +1 -0
  188. package/dist/routes/data-explorer/namespaces.d.ts.map +1 -1
  189. package/dist/routes/data-explorer/namespaces.js +7 -6
  190. package/dist/routes/data-explorer/namespaces.js.map +1 -1
  191. package/dist/routes/datastores/components/DeleteDatastoreDialog.d.ts +10 -0
  192. package/dist/routes/datastores/components/DeleteDatastoreDialog.d.ts.map +1 -0
  193. package/dist/routes/datastores/components/DeleteDatastoreDialog.js +20 -0
  194. package/dist/routes/datastores/components/DeleteDatastoreDialog.js.map +1 -0
  195. package/dist/routes/datastores/flatten.d.ts +1 -0
  196. package/dist/routes/datastores/flatten.d.ts.map +1 -1
  197. package/dist/routes/datastores/flatten.js +17 -0
  198. package/dist/routes/datastores/flatten.js.map +1 -1
  199. package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts +3 -1
  200. package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts.map +1 -1
  201. package/dist/routes/datastores/hooks/useDatastoreColumns.js +14 -6
  202. package/dist/routes/datastores/hooks/useDatastoreColumns.js.map +1 -1
  203. package/dist/routes/datastores/index.d.ts.map +1 -1
  204. package/dist/routes/datastores/index.js +31 -5
  205. package/dist/routes/datastores/index.js.map +1 -1
  206. package/dist/routes/integrations/components/ProviderGroup.js +2 -2
  207. package/dist/routes/integrations/components/ProviderGroup.js.map +1 -1
  208. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.d.ts.map +1 -1
  209. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.js +13 -6
  210. package/dist/routes/integrations/components/connect-forms/DataConnectionConnectForm.js.map +1 -1
  211. package/dist/routes/integrations/components/connect-forms/data-connection-fields.d.ts +3 -0
  212. package/dist/routes/integrations/components/connect-forms/data-connection-fields.d.ts.map +1 -1
  213. package/dist/routes/integrations/components/connect-forms/data-connection-fields.js +9 -2
  214. package/dist/routes/integrations/components/connect-forms/data-connection-fields.js.map +1 -1
  215. package/dist/routes/plans/components/ActionPlanPage.d.ts.map +1 -1
  216. package/dist/routes/plans/components/ActionPlanPage.js +4 -7
  217. package/dist/routes/plans/components/ActionPlanPage.js.map +1 -1
  218. package/dist/routes/plans/components/PlanDetailRouteContent.d.ts.map +1 -1
  219. package/dist/routes/plans/components/PlanDetailRouteContent.js +2 -1
  220. package/dist/routes/plans/components/PlanDetailRouteContent.js.map +1 -1
  221. package/package.json +12 -7
  222. package/src/app-subpaths.json +1 -0
  223. package/src/components/channel-icon/index.tsx +1 -1
  224. package/src/components/chat-view/ChatTurnErrorNotice.tsx +3 -1
  225. package/src/components/layouts/ConnectedCustomApp.tsx +63 -0
  226. package/src/components/layouts/Sidebar.tsx +9 -3
  227. package/src/components/planning/ActioningView.tsx +62 -70
  228. package/src/components/planning/ManualActionCard.tsx +66 -14
  229. package/src/components/planning/ManualActionList.tsx +30 -11
  230. package/src/components/planning/actioning-view-utils.ts +27 -1
  231. package/src/components/table-skeleton/index.tsx +7 -1
  232. package/src/components/tooltip/index.tsx +35 -2
  233. package/src/graph/createNodeRouter.tsx +3 -3
  234. package/src/graph/entity-link.tsx +20 -0
  235. package/src/graph/graph-list-utils.ts +2 -0
  236. package/src/graph/graph-model.ts +15 -6
  237. package/src/graph/nodes/BrandAssetAnalysisView.tsx +3 -1
  238. package/src/graph/nodes/{BrandFontFamilyView.tsx → BrandFontSuggestionView.tsx} +41 -27
  239. package/src/graph/nodes/BrandGuidelinesView.tsx +1 -1
  240. package/src/graph/nodes/NodePropertyTable.tsx +32 -143
  241. package/src/graph/nodes/brand-font.ts +17 -0
  242. package/src/graph/nodes/brand-shared.tsx +1 -4
  243. package/src/graph/nodes/node-property-row.tsx +154 -0
  244. package/src/graph/property-formatters.ts +5 -1
  245. package/src/graph/special-nodes/AttributeList.tsx +177 -0
  246. package/src/graph/special-nodes/EntityPreview.tsx +27 -0
  247. package/src/graph/special-nodes/EntityValueChip.tsx +85 -0
  248. package/src/graph/special-nodes/GenericView.tsx +49 -139
  249. package/src/graph/special-nodes/card-facts.ts +278 -0
  250. package/src/graph/special-nodes/property-icons.ts +59 -0
  251. package/src/graph/status-utils.ts +40 -0
  252. package/src/graph/types.ts +4 -0
  253. package/src/hooks/use-approve-anyway.ts +100 -0
  254. package/src/hooks/useAuth.ts +3 -3
  255. package/src/hooks/useOnboardingState.ts +1 -1
  256. package/src/ldo-ui.ts +8 -0
  257. package/src/lib/datastore-route-table.ts +4 -2
  258. package/src/lib/manual-actions.ts +3 -2
  259. package/src/providers/ActiveChatProvider.tsx +3 -1
  260. package/src/providers/AuthContext.ts +3 -1
  261. package/src/providers/ChatManagerProvider.tsx +19 -9
  262. package/src/providers/chat-socket-auth.ts +95 -16
  263. package/src/providers/index.tsx +16 -1
  264. package/src/routes/activity/detail/ActivityChanges.tsx +21 -5
  265. package/src/routes/activity/detail/ActivityDetail.tsx +24 -5
  266. package/src/routes/activity/detail/ActivityStepsRail.tsx +4 -2
  267. package/src/routes/activity/detail/ActivityTimeline.tsx +2 -2
  268. package/src/routes/activity/detail/NoChangesMessage.tsx +20 -0
  269. package/src/routes/data-explorer/components/RawTriples.tsx +1 -1
  270. package/src/routes/data-explorer/components/RecentTypes.tsx +1 -1
  271. package/src/routes/data-explorer/components/class-detail/Instances.tsx +1 -1
  272. package/src/routes/data-explorer/components/namespace-detail/NamespaceClassRow.tsx +1 -1
  273. package/src/routes/data-explorer/components/ontology-coverage/CoverageTermColumns.tsx +1 -1
  274. package/src/routes/data-explorer/components/ontology-coverage/UnobservedRuleVocabulary.tsx +1 -1
  275. package/src/routes/data-explorer/components/record-detail/ChatPreview.tsx +2 -2
  276. package/src/routes/data-explorer/declared-namespaces.ts +21 -13
  277. package/src/routes/data-explorer/namespaces.ts +7 -6
  278. package/src/routes/datastores/components/DeleteDatastoreDialog.tsx +78 -0
  279. package/src/routes/datastores/flatten.ts +15 -0
  280. package/src/routes/datastores/hooks/useDatastoreColumns.tsx +88 -49
  281. package/src/routes/datastores/index.tsx +41 -2
  282. package/src/routes/integrations/components/ProviderGroup.tsx +2 -2
  283. package/src/routes/integrations/components/connect-forms/DataConnectionConnectForm.tsx +38 -12
  284. package/src/routes/integrations/components/connect-forms/data-connection-fields.ts +11 -2
  285. package/src/routes/plans/components/ActionPlanPage.tsx +9 -8
  286. package/src/routes/plans/components/PlanDetailRouteContent.tsx +4 -3
  287. package/dist/components/planning/ExecutionActivityRow.d.ts +0 -9
  288. package/dist/components/planning/ExecutionActivityRow.d.ts.map +0 -1
  289. package/dist/components/planning/ExecutionActivityRow.js +0 -53
  290. package/dist/components/planning/ExecutionActivityRow.js.map +0 -1
  291. package/dist/components/planning/ExecutionSectionItem.d.ts +0 -20
  292. package/dist/components/planning/ExecutionSectionItem.d.ts.map +0 -1
  293. package/dist/components/planning/ExecutionSectionItem.js +0 -66
  294. package/dist/components/planning/ExecutionSectionItem.js.map +0 -1
  295. package/dist/components/planning/ExecutionSections.d.ts +0 -16
  296. package/dist/components/planning/ExecutionSections.d.ts.map +0 -1
  297. package/dist/components/planning/ExecutionSections.js +0 -32
  298. package/dist/components/planning/ExecutionSections.js.map +0 -1
  299. package/dist/components/planning/action-plan-icons.d.ts +0 -3
  300. package/dist/components/planning/action-plan-icons.d.ts.map +0 -1
  301. package/dist/components/planning/action-plan-icons.js +0 -25
  302. package/dist/components/planning/action-plan-icons.js.map +0 -1
  303. package/dist/components/planning/execution-section-model.d.ts +0 -24
  304. package/dist/components/planning/execution-section-model.d.ts.map +0 -1
  305. package/dist/components/planning/execution-section-model.js +0 -150
  306. package/dist/components/planning/execution-section-model.js.map +0 -1
  307. package/dist/graph/nodes/BrandFontFamilyView.d.ts +0 -3
  308. package/dist/graph/nodes/BrandFontFamilyView.d.ts.map +0 -1
  309. package/dist/graph/nodes/BrandFontFamilyView.js.map +0 -1
  310. package/dist/graph/nodes/BrandFontUploadButton.d.ts +0 -6
  311. package/dist/graph/nodes/BrandFontUploadButton.d.ts.map +0 -1
  312. package/dist/graph/nodes/BrandFontUploadButton.js +0 -69
  313. package/dist/graph/nodes/BrandFontUploadButton.js.map +0 -1
  314. package/dist/routes/data-explorer/components/TruncateTooltip.d.ts +0 -7
  315. package/dist/routes/data-explorer/components/TruncateTooltip.d.ts.map +0 -1
  316. package/dist/routes/data-explorer/components/TruncateTooltip.js +0 -9
  317. package/dist/routes/data-explorer/components/TruncateTooltip.js.map +0 -1
  318. package/src/components/planning/ExecutionActivityRow.tsx +0 -89
  319. package/src/components/planning/ExecutionSectionItem.tsx +0 -184
  320. package/src/components/planning/ExecutionSections.tsx +0 -97
  321. package/src/components/planning/action-plan-icons.tsx +0 -27
  322. package/src/components/planning/execution-section-model.ts +0 -190
  323. package/src/graph/nodes/BrandFontUploadButton.tsx +0 -95
  324. package/src/routes/data-explorer/components/TruncateTooltip.tsx +0 -25
@@ -1,25 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BarChart2, Bell, CircleDot, DollarSign, Image, Settings, Target, UsersRound, Zap } from "lucide-react";
3
- const stepIconKeywords = [
4
- [["campaign", "ad", "advertising", "promote", "advertise", "boost"], Target],
5
- [["audience", "target", "people", "customer", "user", "segment"], UsersRound],
6
- [["remind", "review", "check", "monitor", "follow"], Bell],
7
- [["budget", "spend", "cost", "money", "bid"], DollarSign],
8
- [["creative", "image", "video", "asset", "copy", "content"], Image],
9
- [["launch", "publish", "start", "run", "enable", "activate"], Zap],
10
- [["report", "analys", "track", "metric", "data", "insight"], BarChart2],
11
- [["rule", "logic", "automat", "workflow"], Settings],
12
- ];
13
- function matchStepIcon(name) {
14
- const lower = name.toLowerCase();
15
- for (const [keywords, icon] of stepIconKeywords) {
16
- if (keywords.some((kw) => lower.includes(kw)))
17
- return icon;
18
- }
19
- return CircleDot;
20
- }
21
- export function resolveStepIcon(name, className) {
22
- const Icon = matchStepIcon(name);
23
- return _jsx(Icon, { className: className });
24
- }
25
- //# sourceMappingURL=action-plan-icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-plan-icons.js","sourceRoot":"","sources":["../../../src/components/planning/action-plan-icons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAIhH,MAAM,gBAAgB,GAA6B;IACjD,CAAC,CAAC,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC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AS,GAAI,CAAC;AACxC,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { EntityTypeEntry } from "./ActionPlanDetailView.js";
2
- import type { ActionPlanExecutionProvenanceResult, ExecutionProvenanceActivity, ManualAction } from "#ldo-ui";
3
- export type SectionStatus = "pending" | "running" | "completed" | "failed";
4
- export type SectionData = {
5
- key: string;
6
- entry: EntityTypeEntry;
7
- activities: ExecutionProvenanceActivity[];
8
- status: SectionStatus;
9
- };
10
- export type ResolvedManualActionStatus = Extract<ManualAction["status"], "COMPLETED" | "REJECTED">;
11
- export type BuildSectionsArgs = {
12
- entityTypes: EntityTypeEntry[];
13
- activities: ExecutionProvenanceActivity[];
14
- provenance: ActionPlanExecutionProvenanceResult | null;
15
- planFailed: boolean;
16
- };
17
- export declare function parseTimestampMs(timestamp: string | null | undefined): number | null;
18
- export declare function deriveSectionStatus(activities: ExecutionProvenanceActivity[], provenance: ActionPlanExecutionProvenanceResult | null, planFailed: boolean): SectionStatus;
19
- export declare function matchesSection(activity: ExecutionProvenanceActivity, entry: EntityTypeEntry): boolean;
20
- export declare function matchesManualActionSection(manualAction: ManualAction, entry: EntityTypeEntry, sectionCount: number): boolean;
21
- export declare function matchesManualActionActivity(manualAction: ManualAction, activity: ExecutionProvenanceActivity): boolean;
22
- export declare function findResolvedManualActionStatus(activity: ExecutionProvenanceActivity, manualActions: ManualAction[]): ResolvedManualActionStatus | null;
23
- export declare function buildSections(args: BuildSectionsArgs): SectionData[];
24
- //# sourceMappingURL=execution-section-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-section-model.d.ts","sourceRoot":"","sources":["../../../src/components/planning/execution-section-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,mCAAmC,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9G,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,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"}
@@ -1,150 +0,0 @@
1
- import { iriLocalName } from "@manta-eu/client/shared/rdf-namespaces";
2
- import { isPresent } from "@manta-eu/lib/present";
3
- export function parseTimestampMs(timestamp) {
4
- if (!timestamp)
5
- return null;
6
- const value = new Date(timestamp).getTime();
7
- return Number.isFinite(value) ? value : null;
8
- }
9
- export function deriveSectionStatus(activities, provenance, planFailed) {
10
- if (!isPresent(activities)) {
11
- if (planFailed)
12
- return "failed";
13
- if (provenance?.planEndedAtTime)
14
- return "completed";
15
- return "pending";
16
- }
17
- if (activities.some((a) => a.errorMessage))
18
- return "failed";
19
- if (activities.every((a) => a.endedAtTime)) {
20
- return planFailed ? "failed" : "completed";
21
- }
22
- if (activities.some((a) => a.startedAtTime))
23
- return "running";
24
- return "pending";
25
- }
26
- function isSectionLabelOrIriMatch(activity, typeName) {
27
- const entityLabel = activity.entityLabel.toLowerCase();
28
- const activityIri = activity.iri.toLowerCase();
29
- const typeSlug = typeName.replace(/\s+/g, "_");
30
- return entityLabel.includes(typeName) || activityIri.includes(typeSlug) || activityIri.includes(typeName);
31
- }
32
- function isSectionPauseAliasMatch(activity, typeName) {
33
- if (!typeName.includes("pause"))
34
- return false;
35
- const entityLabel = activity.entityLabel.toLowerCase();
36
- const opType = (activity.operationType ?? "").toLowerCase();
37
- return opType.includes("delete") || opType.includes("pause") || entityLabel.includes("pause");
38
- }
39
- function isSectionScaleAliasMatch(activity, typeName) {
40
- if (!typeName.includes("scale"))
41
- return false;
42
- const entityLabel = activity.entityLabel.toLowerCase();
43
- const opType = (activity.operationType ?? "").toLowerCase();
44
- return (opType.includes("addit") ||
45
- opType.includes("scale") ||
46
- opType.includes("budget") ||
47
- entityLabel.includes("scale") ||
48
- entityLabel.includes("budget"));
49
- }
50
- function isSectionMonitorAliasMatch(activity, typeName) {
51
- if (!typeName.includes("monitor"))
52
- return false;
53
- const entityLabel = activity.entityLabel.toLowerCase();
54
- const opType = (activity.operationType ?? "").toLowerCase();
55
- return opType.includes("monitor") || entityLabel.includes("monitor") || entityLabel.includes("verif");
56
- }
57
- function isSectionEntityTypeNameMatch(activity, typeName) {
58
- if (!activity.entityTypeName)
59
- return false;
60
- return typeName.includes(activity.entityTypeName.toLowerCase());
61
- }
62
- function isSectionRelatedEntitiesMatch(activity, entry) {
63
- const typeName = entry.typeName.toLowerCase();
64
- const entryTypeIri = entry.typeIri.toLowerCase();
65
- for (const entity of activity.entities) {
66
- if (!entity.typeName)
67
- continue;
68
- const entityTypeLower = entity.typeName.toLowerCase();
69
- if (typeName.includes(entityTypeLower))
70
- return true;
71
- if (entryTypeIri.includes(entityTypeLower))
72
- return true;
73
- }
74
- return false;
75
- }
76
- export function matchesSection(activity, entry) {
77
- const typeName = entry.typeName.toLowerCase();
78
- const predicates = [
79
- () => isSectionLabelOrIriMatch(activity, typeName),
80
- () => isSectionPauseAliasMatch(activity, typeName),
81
- () => isSectionScaleAliasMatch(activity, typeName),
82
- () => isSectionMonitorAliasMatch(activity, typeName),
83
- () => isSectionEntityTypeNameMatch(activity, typeName),
84
- () => isSectionRelatedEntitiesMatch(activity, entry),
85
- ];
86
- return predicates.some((p) => p());
87
- }
88
- export function matchesManualActionSection(manualAction, entry, sectionCount) {
89
- if (sectionCount === 1)
90
- return true;
91
- const entryTypeIri = entry.typeIri.toLowerCase();
92
- const entryTypeName = entry.typeName.toLowerCase();
93
- const manualTypeIri = manualAction.typeIri.toLowerCase();
94
- const manualTypeName = manualAction.typeName.toLowerCase();
95
- const manualSubject = manualAction.subjectLabel?.toLowerCase() ?? manualAction.subjectIri.toLowerCase();
96
- return (manualTypeIri === entryTypeIri ||
97
- manualTypeName === entryTypeName ||
98
- entryTypeIri.includes(manualTypeName) ||
99
- manualTypeIri.includes(entryTypeName) ||
100
- manualSubject.includes(entryTypeName));
101
- }
102
- export function matchesManualActionActivity(manualAction, activity) {
103
- if (activity.entityIri === manualAction.subjectIri)
104
- return true;
105
- if (activity.entities.some((entity) => entity.iri === manualAction.subjectIri))
106
- return true;
107
- const subjectLabel = manualAction.subjectLabel?.toLowerCase();
108
- if (subjectLabel && activity.entityLabel.toLowerCase().includes(subjectLabel))
109
- return true;
110
- return activity.iri.toLowerCase().includes(iriLocalName(manualAction.subjectIri).toLowerCase());
111
- }
112
- export function findResolvedManualActionStatus(activity, manualActions) {
113
- const found = manualActions.find((manualAction) => matchesManualActionActivity(manualAction, activity));
114
- return found?.status === "COMPLETED" || found?.status === "REJECTED" ? found.status : null;
115
- }
116
- export function buildSections(args) {
117
- const { entityTypes, activities, provenance, planFailed } = args;
118
- const matched = new Set();
119
- const sections = entityTypes.map((entry) => {
120
- const sectionActivities = activities.filter((a) => {
121
- if (matched.has(a.iri))
122
- return false;
123
- return matchesSection(a, entry);
124
- });
125
- for (const a of sectionActivities)
126
- matched.add(a.iri);
127
- return {
128
- key: entry.typeIri,
129
- entry,
130
- activities: sectionActivities,
131
- status: deriveSectionStatus(sectionActivities, provenance, planFailed),
132
- };
133
- });
134
- const unmatched = activities.filter((a) => !matched.has(a.iri));
135
- if (isPresent(unmatched)) {
136
- sections.push({
137
- key: "__unmatched",
138
- entry: {
139
- typeIri: "__unmatched",
140
- typeName: "Other actions",
141
- addedCount: 0,
142
- updatedCount: unmatched.length,
143
- },
144
- activities: unmatched,
145
- status: deriveSectionStatus(unmatched, provenance, planFailed),
146
- });
147
- }
148
- return sections;
149
- }
150
- //# sourceMappingURL=execution-section-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execution-section-model.js","sourceRoot":"","sources":["../../../src/components/planning/execution-section-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAsBlD,MAAM,UAAU,gBAAgB,CAAC,SAAoC;IACnE,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC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K,CAAC;YACrC,OAAO,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,KAAK,MAAM,CAAC,IAAI,iBAAiB;YAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAEtD,OAAO;YACL,GAAG,EAAE,KAAK,CAAC,OAAO;YAClB,KAAK;YACL,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU,CAAC;SACvE,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QACzB,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE;gBACL,OAAO,EAAE,aAAa;gBACtB,QAAQ,EAAE,eAAe;gBACzB,UAAU,EAAE,CAAC;gBACb,YAAY,EAAE,SAAS,CAAC,MAAM;aAC/B;YACD,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,mBAAmB,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC;SAC/D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { EntityViewProps } from "../types.js";
2
- export declare const BrandFontFamilyView: import("react").NamedExoticComponent<EntityViewProps>;
3
- //# sourceMappingURL=BrandFontFamilyView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandFontFamilyView.d.ts","sourceRoot":"","sources":["../../../src/graph/nodes/BrandFontFamilyView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAiEh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qBAAqB,IAAC,MAAM,EAAE,MAAM,GAAI,IACrC,CACP,EAED,KAAC,iBAAiB,IAChB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,cAAc,EAAE,CAAC,eAAe,EAAE,qBAAqB,CAAC,GACxD,IACY,GACA,CACnB,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- type BrandFontUploadButtonProps = {
2
- family: string;
3
- };
4
- export declare function BrandFontUploadButton(props: BrandFontUploadButtonProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
6
- //# sourceMappingURL=BrandFontUploadButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandFontUploadButton.d.ts","sourceRoot":"","sources":["../../../src/graph/nodes/BrandFontUploadButton.tsx"],"names":[],"mappings":"AAsDA,KAAK,0BAA0B,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAsCtE"}
@@ -1,69 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useAbortUploadMutation, useCompleteUploadMutation, useExecuteAgentActionAdditionMutation, useInitiateUploadMutation, } from "@manta-eu/client";
3
- import { namespaces } from "@manta-eu/rdf-lib/namespaces";
4
- import { Upload } from "lucide-react";
5
- import { use, useRef, useState } from "react";
6
- import { toast } from "sonner";
7
- import { Button } from "#components/button/index";
8
- import { buildActionDocument, mintSubjectIri } from "#lib/action-document";
9
- import { uploadFile } from "#lib/upload-client";
10
- import { MantaClientProviderContext } from "#providers/manta-client-context";
11
- const acceptedFontFiles = ".woff2,.woff,.ttf,.otf";
12
- const attachFontFile = `${namespaces.brand}AttachFontFile`;
13
- const attachFontFileShape = `${namespaces.brand}AttachFontFileShape`;
14
- function ignoreProgress() { }
15
- // Graph views sit below the provider barrels, so this reads the client context directly instead of useExecuteAction.
16
- function useAttachFontFile(family) {
17
- const clientContext = use(MantaClientProviderContext);
18
- const mantaClient = clientContext?.mantaClient;
19
- if (!mantaClient)
20
- throw new Error("BrandFontUploadButton must be used within a MantaClientProvider");
21
- const uploadRelay = clientContext?.uploadRelay;
22
- const { mutateAsync: initiateUpload } = useInitiateUploadMutation(mantaClient);
23
- const { mutateAsync: completeUpload } = useCompleteUploadMutation(mantaClient);
24
- const { mutateAsync: abortUpload } = useAbortUploadMutation(mantaClient);
25
- const { mutateAsync: startAddition } = useExecuteAgentActionAdditionMutation(mantaClient);
26
- return async (file) => {
27
- const { fileIri } = await uploadFile({
28
- file,
29
- onFileProgress: ignoreProgress,
30
- initiateUpload,
31
- completeUpload,
32
- abortUpload,
33
- ...(uploadRelay ? { relay: uploadRelay } : {}),
34
- });
35
- const subjectIri = mintSubjectIri(attachFontFile);
36
- const properties = buildActionDocument({ subjectIri, rdfType: attachFontFile }, { [`${namespaces.brand}fontFamily`]: family, [`${namespaces.brand}fontFile`]: { "@id": fileIri } });
37
- const { executeActionAddition } = await startAddition({
38
- input: { subjectIri, rdfType: attachFontFile, actionShape: attachFontFileShape, properties },
39
- });
40
- if (!executeActionAddition.success)
41
- throw new Error(executeActionAddition.error ?? "The font was not attached");
42
- };
43
- }
44
- export function BrandFontUploadButton(props) {
45
- const { family } = props;
46
- const input = useRef(null);
47
- const [isAttaching, setIsAttaching] = useState(false);
48
- const attach = useAttachFontFile(family);
49
- async function attachChosen(file) {
50
- setIsAttaching(true);
51
- try {
52
- await attach(file);
53
- toast.success(`${file.name} is being attached to ${family}`);
54
- }
55
- catch (error) {
56
- toast.error(error instanceof Error ? error.message : `Could not attach ${file.name}`);
57
- }
58
- finally {
59
- setIsAttaching(false);
60
- }
61
- }
62
- return (_jsxs(_Fragment, { children: [_jsx("input", { ref: input, type: "file", accept: acceptedFontFiles, className: "hidden", onChange: (event) => {
63
- const file = event.target.files?.[0];
64
- event.target.value = "";
65
- if (file)
66
- void attachChosen(file);
67
- } }), _jsxs(Button, { variant: "secondary", size: "sm", disabled: isAttaching, onClick: () => input.current?.click(), children: [_jsx(Upload, { size: 12 }), "Upload font"] })] }));
68
- }
69
- //# sourceMappingURL=BrandFontUploadButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrandFontUploadButton.js","sourceRoot":"","sources":["../../../src/graph/nodes/BrandFontUploadButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,qCAAqC,EACrC,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AACnD,MAAM,cAAc,GAAG,GAAG,UAAU,CAAC,KAAK,gBAAgB,CAAC;AAC3D,MAAM,mBAAmB,GAAG,GAAG,UAAU,CAAC,KAAK,qBAAqB,CAAC;AAErE,SAAS,cAAc,KAAI,CAAC;AAE5B,qHAAqH;AACrH,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,aAAa,GAAG,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,aAAa,EAAE,WAAW,CAAC;IAC/C,IAAI,CAAC,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrG,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AC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,aAChG,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,GAAI,mBAEb,IACR,CACJ,CAAC;AACJ,CAAC"}
@@ -1,7 +0,0 @@
1
- type TruncateTooltipProps = {
2
- text: string;
3
- className: string;
4
- };
5
- export declare function TruncateTooltip(props: TruncateTooltipProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=TruncateTooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TruncateTooltip.d.ts","sourceRoot":"","sources":["../../../../src/routes/data-explorer/components/TruncateTooltip.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhE,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAmB1D"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { Tooltip, TooltipContent, TooltipTrigger } from "#components/tooltip/index";
4
- export function TruncateTooltip(props) {
5
- const { text, className } = props;
6
- const [isTruncated, setIsTruncated] = useState(false);
7
- return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("span", { className: className, onMouseEnter: (event) => setIsTruncated(event.currentTarget.scrollWidth > event.currentTarget.clientWidth), children: text }) }), isTruncated && _jsx(TooltipContent, { children: text })] }));
8
- }
9
- //# sourceMappingURL=TruncateTooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TruncateTooltip.js","sourceRoot":"","sources":["../../../../src/routes/data-explorer/components/TruncateTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAIpF,MAAM,UAAU,eAAe,CAAC,KAA2B;IACzD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAElC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,OAAO,CACL,MAAC,OAAO,eACN,KAAC,cAAc,IAAC,OAAO,kBACrB,eACE,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,YAEzG,IAAI,GACA,GACQ,EAEhB,WAAW,IAAI,KAAC,cAAc,cAAE,IAAI,GAAkB,IAC/C,CACX,CAAC;AACJ,CAAC"}
@@ -1,89 +0,0 @@
1
- import { humanDuration } from "@manta-eu/lib/humanize";
2
- import { AlertCircle, Check, ClockFading, Loader2, X } from "lucide-react";
3
- import { useEffect, useState } from "react";
4
- import { match } from "ts-pattern";
5
- import { parseTimestampMs, type ResolvedManualActionStatus } from "./execution-section-model";
6
- import type { ExecutionProvenanceActivity } from "#ldo-ui";
7
- import { cn } from "#lib/utils";
8
-
9
- type ExecutionActivityRowProps = {
10
- activity: ExecutionProvenanceActivity;
11
- manualActionStatus?: ResolvedManualActionStatus | null;
12
- };
13
-
14
- type ActivityIconState = "error" | "rejected" | "completed" | "running" | "pending";
15
-
16
- function resolveIconState(
17
- activity: ExecutionProvenanceActivity,
18
- manualActionStatus: ResolvedManualActionStatus | null,
19
- ): ActivityIconState {
20
- if (activity.errorMessage) return "error";
21
- if (manualActionStatus === "REJECTED") return "rejected";
22
- if (manualActionStatus === "COMPLETED" || !!activity.endedAtTime) return "completed";
23
- if (activity.startedAtTime) return "running";
24
- return "pending";
25
- }
26
-
27
- export function ExecutionActivityRow(props: ExecutionActivityRowProps) {
28
- const { activity, manualActionStatus = null } = props;
29
- const iconState = resolveIconState(activity, manualActionStatus);
30
- const hasError = iconState === "error";
31
- const isPending = iconState === "pending";
32
-
33
- return (
34
- <div className={cn("flex items-center justify-between pl-5 pr-3 py-2", hasError && "bg-error/10")}>
35
- <div className="flex items-center gap-3 min-w-0">
36
- {match(iconState)
37
- .with("error", () => <AlertCircle className="size-4 shrink-0 text-error-foreground" />)
38
- .with("rejected", () => <X className="size-4 shrink-0 text-error-foreground" />)
39
- .with("completed", () => <Check className="size-4 shrink-0 text-success-foreground" />)
40
- .with("running", () => <Loader2 className="size-4 shrink-0 text-muted-foreground animate-spin" />)
41
- .with("pending", () => <ClockFading className="size-4 shrink-0 text-muted-foreground/40" />)
42
- .exhaustive()}
43
- <span
44
- className={cn(
45
- "text-[12px] font-mono leading-[18px] truncate",
46
- hasError ? "text-error-foreground" : isPending ? "text-muted-foreground" : "text-default-foreground",
47
- )}
48
- >
49
- {activity.errorMessage ?? activity.entityLabel}
50
- </span>
51
- </div>
52
- <ActivityElapsed activity={activity} hasError={hasError} isPending={isPending} />
53
- </div>
54
- );
55
- }
56
-
57
- function ActivityElapsed(props: { activity: ExecutionProvenanceActivity; hasError: boolean; isPending: boolean }) {
58
- const { activity, hasError, isPending } = props;
59
- const isRunning = !!activity.startedAtTime && !activity.endedAtTime;
60
- const [now, setNow] = useState(() => Date.now());
61
-
62
- useEffect(() => {
63
- if (!isRunning) return;
64
- const id = setInterval(() => setNow(Date.now()), 1000);
65
- return () => clearInterval(id);
66
- }, [isRunning]);
67
-
68
- if (!activity.startedAtTime) {
69
- return <span className="text-[12px] font-mono leading-[18px] shrink-0 ml-3 text-muted-foreground">-</span>;
70
- }
71
-
72
- const start = parseTimestampMs(activity.startedAtTime);
73
- if (start === null) {
74
- return <span className="text-[12px] font-mono leading-[18px] shrink-0 ml-3 text-muted-foreground">-</span>;
75
- }
76
- const end = parseTimestampMs(activity.endedAtTime) ?? now;
77
- const label = humanDuration({ start, end, largest: 2 }) || "0 seconds";
78
-
79
- return (
80
- <span
81
- className={cn(
82
- "text-[12px] font-mono leading-[18px] shrink-0 ml-3",
83
- hasError ? "text-error-foreground" : isPending ? "text-muted-foreground" : "text-default-foreground",
84
- )}
85
- >
86
- {label}
87
- </span>
88
- );
89
- }
@@ -1,184 +0,0 @@
1
- import { humanDuration } from "@manta-eu/lib/humanize";
2
- import { isPresent } from "@manta-eu/lib/present";
3
- import { AlertCircle, Check, ChevronDown, ClockFading, Loader2 } from "lucide-react";
4
- import { isNotNil } from "ramda";
5
- import { useEffect, useState } from "react";
6
- import { match } from "ts-pattern";
7
- import { resolveStepIcon } from "./action-plan-icons";
8
- import type { EntityTypeEntry } from "./ActionPlanDetailView";
9
- import { findResolvedManualActionStatus, parseTimestampMs, type SectionStatus } from "./execution-section-model";
10
- import { ExecutionActivityRow } from "./ExecutionActivityRow";
11
- import { ManualActionCard, type ManualActionTarget } from "./ManualActionCard";
12
- import type { ExecutionProvenanceActivity, ManualAction, ManualActionResolution, ManualActionResolving } from "#ldo-ui";
13
- import { getPendingManualActions, getResolvedManualActions } from "#lib/manual-actions";
14
- import { cn } from "#lib/utils";
15
-
16
- export type ExecutionSectionItemProps = {
17
- entry: EntityTypeEntry;
18
- activities: ExecutionProvenanceActivity[];
19
- status: SectionStatus;
20
- fallbackStartedAtMs?: number | null;
21
- isExpanded: boolean;
22
- onToggle: () => void;
23
- manualActions?: ManualAction[];
24
- manualActionEntities?: Map<string, ManualActionTarget[]>;
25
- onManualActionResolve?: (subjectIri: string, resolution: ManualActionResolution) => void;
26
- resolvingManualAction?: ManualActionResolving;
27
- canResolveManualAction?: boolean;
28
- manualActionDisabledReason?: string;
29
- };
30
-
31
- export function ExecutionSectionItem(props: ExecutionSectionItemProps) {
32
- const {
33
- entry,
34
- activities,
35
- status,
36
- fallbackStartedAtMs = null,
37
- isExpanded,
38
- onToggle,
39
- manualActions = [],
40
- manualActionEntities,
41
- onManualActionResolve,
42
- resolvingManualAction,
43
- canResolveManualAction,
44
- manualActionDisabledReason,
45
- } = props;
46
-
47
- const pendingManualActions = getPendingManualActions(manualActions);
48
- const resolvedManualActions = getResolvedManualActions(manualActions);
49
- const hasContent = isPresent(activities) || isPresent(pendingManualActions);
50
-
51
- return (
52
- <div>
53
- <button
54
- type="button"
55
- onClick={onToggle}
56
- className="flex w-full items-center gap-3 pl-2 pr-3 py-3 text-left transition-colors hover:bg-muted/30"
57
- >
58
- <div className="flex shrink-0 items-center p-1.5 rounded-lg">
59
- <ChevronDown
60
- className={cn("size-5 shrink-0 text-muted-foreground transition-transform", !isExpanded && "-rotate-90")}
61
- />
62
- </div>
63
-
64
- <div className="flex size-9 shrink-0 items-center justify-center rounded-lg bg-faint">
65
- {resolveStepIcon(entry.typeName, "size-5 text-muted-foreground")}
66
- </div>
67
-
68
- <div className="flex-1 min-w-0 flex flex-col gap-0.5">
69
- <span
70
- className={cn(
71
- "typography-small-medium block truncate",
72
- status === "pending" ? "text-muted-foreground" : "text-default-foreground",
73
- )}
74
- >
75
- {entry.typeName}
76
- </span>
77
- {entry.description && (
78
- <span className="typography-tiny text-muted-foreground block truncate">{entry.description}</span>
79
- )}
80
- </div>
81
-
82
- <div className="flex items-center gap-3 shrink-0">
83
- <SectionElapsed
84
- activities={activities}
85
- status={status}
86
- estimatedTime={entry.estimatedTime ?? null}
87
- fallbackStartedAtMs={fallbackStartedAtMs}
88
- />
89
- <SectionStatusIcon status={status} />
90
- </div>
91
- </button>
92
-
93
- {isExpanded && hasContent && (
94
- <div className="bg-faint border-t border-default-border py-1.5">
95
- {activities.map((activity) => (
96
- <ExecutionActivityRow
97
- key={activity.iri}
98
- activity={activity}
99
- manualActionStatus={findResolvedManualActionStatus(activity, resolvedManualActions)}
100
- />
101
- ))}
102
-
103
- {pendingManualActions.map((ma) => (
104
- <ManualActionCard
105
- key={ma.subjectIri}
106
- manualAction={ma}
107
- entities={manualActionEntities?.get(ma.subjectIri) ?? []}
108
- description={ma.description ?? entry.description ?? undefined}
109
- resolving={resolvingManualAction}
110
- onResolve={(resolution) => onManualActionResolve?.(ma.subjectIri, resolution)}
111
- canResolve={canResolveManualAction}
112
- disabledReason={manualActionDisabledReason}
113
- />
114
- ))}
115
- </div>
116
- )}
117
- </div>
118
- );
119
- }
120
-
121
- function SectionStatusIcon(props: { status: SectionStatus }) {
122
- return match(props.status)
123
- .with("completed", () => (
124
- <div className="size-5 flex items-center justify-center rounded-full bg-success">
125
- <Check className="size-3 text-success-foreground" />
126
- </div>
127
- ))
128
- .with("running", () => <Loader2 className="size-5 text-muted-foreground animate-spin" />)
129
- .with("failed", () => (
130
- <div className="size-5 flex items-center justify-center rounded-full bg-error">
131
- <AlertCircle className="size-3 text-error-foreground" />
132
- </div>
133
- ))
134
- .with("pending", () => <ClockFading className="size-5 text-muted-foreground/40" />)
135
- .exhaustive();
136
- }
137
-
138
- function SectionElapsed(props: {
139
- activities: ExecutionProvenanceActivity[];
140
- status: SectionStatus;
141
- estimatedTime: string | null;
142
- fallbackStartedAtMs?: number | null;
143
- }) {
144
- const { activities, status, estimatedTime, fallbackStartedAtMs = null } = props;
145
- const isRunning = status === "running";
146
- const [now, setNow] = useState(() => Date.now());
147
-
148
- useEffect(() => {
149
- if (!isRunning) return;
150
- const id = setInterval(() => setNow(Date.now()), 1000);
151
- return () => clearInterval(id);
152
- }, [isRunning]);
153
-
154
- const started = activities
155
- .map((a) => a.startedAtTime)
156
- .filter(isNotNil)
157
- .sort();
158
- if (!isPresent(started)) {
159
- if (fallbackStartedAtMs !== null) {
160
- return (
161
- <span className="typography-tiny text-muted-foreground whitespace-nowrap">
162
- {humanDuration({ start: fallbackStartedAtMs, end: now, largest: 2 }) || "0 seconds"}
163
- </span>
164
- );
165
- }
166
- if (estimatedTime) {
167
- return <span className="typography-tiny text-muted-foreground/60 whitespace-nowrap">{estimatedTime}</span>;
168
- }
169
- return null;
170
- }
171
-
172
- const ended = activities
173
- .map((a) => a.endedAtTime)
174
- .filter(isNotNil)
175
- .sort()
176
- .reverse();
177
- const start = parseTimestampMs(started[0]);
178
- if (start === null) return null;
179
- const end = isPresent(ended) && !isRunning ? parseTimestampMs(ended[0]) : now;
180
- if (end === null) return null;
181
- const label = humanDuration({ start, end, largest: 2 }) || "0 seconds";
182
-
183
- return <span className="typography-tiny text-muted-foreground whitespace-nowrap">{label}</span>;
184
- }