@oneuptime/common 10.0.39 → 10.0.40

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 (282) hide show
  1. package/Models/AnalyticsModels/Index.ts +4 -0
  2. package/Models/AnalyticsModels/Profile.ts +687 -0
  3. package/Models/AnalyticsModels/ProfileSample.ts +547 -0
  4. package/Models/DatabaseModels/Dashboard.ts +357 -0
  5. package/Models/DatabaseModels/DashboardDomain.ts +658 -0
  6. package/Models/DatabaseModels/Index.ts +2 -0
  7. package/Models/DatabaseModels/StatusPage.ts +41 -0
  8. package/Server/API/DashboardAPI.ts +408 -0
  9. package/Server/API/DashboardDomainAPI.ts +235 -0
  10. package/Server/API/StatusPageAPI.ts +36 -2
  11. package/Server/API/TelemetryAPI.ts +393 -0
  12. package/Server/EnvironmentConfig.ts +12 -0
  13. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.ts +97 -0
  14. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.ts +17 -0
  15. package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.ts +50 -0
  16. package/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.ts +59 -0
  17. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +8 -0
  18. package/Server/Middleware/UserAuthorization.ts +96 -1
  19. package/Server/Services/DashboardDomainService.ts +647 -0
  20. package/Server/Services/DashboardService.ts +174 -3
  21. package/Server/Services/IncidentService.ts +295 -50
  22. package/Server/Services/IncidentStateTimelineService.ts +1 -0
  23. package/Server/Services/Index.ts +6 -0
  24. package/Server/Services/MonitorService.ts +5 -0
  25. package/Server/Services/ProfileAggregationService.ts +559 -0
  26. package/Server/Services/ProfileSampleService.ts +11 -0
  27. package/Server/Services/ProfileService.ts +11 -0
  28. package/Server/Services/TelemetryUsageBillingService.ts +77 -3
  29. package/Server/Services/WorkspaceNotificationSummaryService.ts +15 -1
  30. package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +9 -0
  31. package/Server/Utils/Cookie.ts +48 -0
  32. package/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.ts +34 -0
  33. package/Server/Utils/Monitor/DataToProcess.ts +3 -1
  34. package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +299 -0
  35. package/Server/Utils/Profile/PprofEncoder.ts +225 -0
  36. package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +53 -16
  37. package/Server/Utils/Workspace/Slack/Slack.ts +26 -6
  38. package/ServiceRoute.ts +2 -0
  39. package/Types/AnalyticsDatabase/AnalyticsTableName.ts +2 -0
  40. package/Types/CookieName.ts +1 -0
  41. package/Types/Dashboard/Chart/ChartType.ts +5 -0
  42. package/Types/Dashboard/DashboardComponentType.ts +4 -0
  43. package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +10 -0
  44. package/Types/Dashboard/DashboardComponents/DashboardChartComponent.ts +1 -2
  45. package/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.ts +17 -0
  46. package/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.ts +15 -0
  47. package/Types/Dashboard/DashboardComponents/DashboardTableComponent.ts +14 -0
  48. package/Types/Dashboard/DashboardComponents/DashboardTextComponent.ts +1 -0
  49. package/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.ts +13 -0
  50. package/Types/Dashboard/DashboardComponents/DashboardValueComponent.ts +2 -0
  51. package/Types/Dashboard/DashboardTemplates.ts +964 -0
  52. package/Types/Dashboard/DashboardVariable.ts +23 -0
  53. package/Types/Dashboard/DashboardViewConfig.ts +59 -0
  54. package/Types/Dashboard/MasterPassword.ts +10 -0
  55. package/Types/Icon/IconProp.ts +1 -0
  56. package/Types/Incident/IncidentMetricType.ts +3 -0
  57. package/Types/MeteredPlan/ProductType.ts +1 -0
  58. package/Types/Metrics/MetricQueryConfigData.ts +3 -0
  59. package/Types/Monitor/CriteriaFilter.ts +3 -0
  60. package/Types/Monitor/KubernetesAlertTemplates.ts +78 -7
  61. package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +20 -0
  62. package/Types/Monitor/MonitorStep.ts +25 -0
  63. package/Types/Monitor/MonitorStepProfileMonitor.ts +96 -0
  64. package/Types/Monitor/MonitorType.ts +11 -0
  65. package/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.ts +12 -0
  66. package/Types/Permission.ts +87 -0
  67. package/Types/Telemetry/TelemetryType.ts +1 -0
  68. package/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.ts +1 -0
  69. package/UI/Components/Button/Button.tsx +1 -1
  70. package/UI/Components/Card/Card.tsx +8 -4
  71. package/UI/Components/Charts/Area/AreaChart.tsx +4 -0
  72. package/UI/Components/Charts/Bar/BarChart.tsx +4 -0
  73. package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +26 -0
  74. package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +26 -0
  75. package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +26 -0
  76. package/UI/Components/Charts/Line/LineChart.tsx +4 -0
  77. package/UI/Components/Charts/Types/ReferenceLineProps.ts +6 -0
  78. package/UI/Components/Icon/Icon.tsx +33 -0
  79. package/UI/Components/ModelTable/BaseModelTable.tsx +13 -10
  80. package/UI/Components/MoreMenu/MoreMenu.tsx +15 -2
  81. package/UI/Components/MoreMenu/MoreMenuItem.tsx +4 -4
  82. package/UI/Components/Workflow/Component.tsx +450 -209
  83. package/UI/Components/Workflow/ComponentPortViewer.tsx +57 -20
  84. package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +65 -25
  85. package/UI/Components/Workflow/ComponentSettingsModal.tsx +202 -37
  86. package/UI/Components/Workflow/ComponentsModal.tsx +180 -93
  87. package/UI/Components/Workflow/Workflow.tsx +105 -9
  88. package/UI/Config.ts +9 -0
  89. package/Utils/Dashboard/Components/DashboardChartComponent.ts +53 -22
  90. package/Utils/Dashboard/Components/DashboardGaugeComponent.ts +124 -0
  91. package/Utils/Dashboard/Components/DashboardLogStreamComponent.ts +110 -0
  92. package/Utils/Dashboard/Components/DashboardTableComponent.ts +86 -0
  93. package/Utils/Dashboard/Components/DashboardTextComponent.ts +32 -7
  94. package/Utils/Dashboard/Components/DashboardTraceListComponent.ts +86 -0
  95. package/Utils/Dashboard/Components/DashboardValueComponent.ts +39 -3
  96. package/Utils/Dashboard/Components/Index.ts +28 -0
  97. package/Utils/ValueFormatter.ts +170 -0
  98. package/build/dist/Models/AnalyticsModels/Index.js +4 -0
  99. package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
  100. package/build/dist/Models/AnalyticsModels/Profile.js +621 -0
  101. package/build/dist/Models/AnalyticsModels/Profile.js.map +1 -0
  102. package/build/dist/Models/AnalyticsModels/ProfileSample.js +497 -0
  103. package/build/dist/Models/AnalyticsModels/ProfileSample.js.map +1 -0
  104. package/build/dist/Models/DatabaseModels/Dashboard.js +365 -0
  105. package/build/dist/Models/DatabaseModels/Dashboard.js.map +1 -1
  106. package/build/dist/Models/DatabaseModels/DashboardDomain.js +691 -0
  107. package/build/dist/Models/DatabaseModels/DashboardDomain.js.map +1 -0
  108. package/build/dist/Models/DatabaseModels/Index.js +2 -0
  109. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  110. package/build/dist/Models/DatabaseModels/StatusPage.js +42 -0
  111. package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
  112. package/build/dist/Server/API/DashboardAPI.js +293 -0
  113. package/build/dist/Server/API/DashboardAPI.js.map +1 -0
  114. package/build/dist/Server/API/DashboardDomainAPI.js +124 -0
  115. package/build/dist/Server/API/DashboardDomainAPI.js.map +1 -0
  116. package/build/dist/Server/API/StatusPageAPI.js +26 -2
  117. package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
  118. package/build/dist/Server/API/TelemetryAPI.js +222 -0
  119. package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
  120. package/build/dist/Server/EnvironmentConfig.js +4 -0
  121. package/build/dist/Server/EnvironmentConfig.js.map +1 -1
  122. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js +40 -0
  123. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js.map +1 -0
  124. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js +12 -0
  125. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js.map +1 -0
  126. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js +23 -0
  127. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js.map +1 -0
  128. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js +26 -0
  129. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js.map +1 -0
  130. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
  131. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  132. package/build/dist/Server/Middleware/UserAuthorization.js +41 -0
  133. package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
  134. package/build/dist/Server/Services/DashboardDomainService.js +595 -0
  135. package/build/dist/Server/Services/DashboardDomainService.js.map +1 -0
  136. package/build/dist/Server/Services/DashboardService.js +117 -3
  137. package/build/dist/Server/Services/DashboardService.js.map +1 -1
  138. package/build/dist/Server/Services/IncidentService.js +231 -55
  139. package/build/dist/Server/Services/IncidentService.js.map +1 -1
  140. package/build/dist/Server/Services/IncidentStateTimelineService.js +1 -1
  141. package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
  142. package/build/dist/Server/Services/Index.js +6 -0
  143. package/build/dist/Server/Services/Index.js.map +1 -1
  144. package/build/dist/Server/Services/MonitorService.js +5 -2
  145. package/build/dist/Server/Services/MonitorService.js.map +1 -1
  146. package/build/dist/Server/Services/ProfileAggregationService.js +356 -0
  147. package/build/dist/Server/Services/ProfileAggregationService.js.map +1 -0
  148. package/build/dist/Server/Services/ProfileSampleService.js +9 -0
  149. package/build/dist/Server/Services/ProfileSampleService.js.map +1 -0
  150. package/build/dist/Server/Services/ProfileService.js +9 -0
  151. package/build/dist/Server/Services/ProfileService.js.map +1 -0
  152. package/build/dist/Server/Services/TelemetryUsageBillingService.js +61 -4
  153. package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
  154. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js +13 -1
  155. package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js.map +1 -1
  156. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +8 -0
  157. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
  158. package/build/dist/Server/Utils/Cookie.js +36 -0
  159. package/build/dist/Server/Utils/Cookie.js.map +1 -1
  160. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js +34 -0
  161. package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js.map +1 -0
  162. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +173 -0
  163. package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
  164. package/build/dist/Server/Utils/Profile/PprofEncoder.js +129 -0
  165. package/build/dist/Server/Utils/Profile/PprofEncoder.js.map +1 -0
  166. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +36 -14
  167. package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
  168. package/build/dist/Server/Utils/Workspace/Slack/Slack.js +23 -6
  169. package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
  170. package/build/dist/ServiceRoute.js +1 -0
  171. package/build/dist/ServiceRoute.js.map +1 -1
  172. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +2 -0
  173. package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
  174. package/build/dist/Types/CookieName.js +1 -0
  175. package/build/dist/Types/CookieName.js.map +1 -1
  176. package/build/dist/Types/Dashboard/Chart/ChartType.js +5 -0
  177. package/build/dist/Types/Dashboard/Chart/ChartType.js.map +1 -1
  178. package/build/dist/Types/Dashboard/DashboardComponentType.js +4 -0
  179. package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
  180. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +1 -0
  181. package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
  182. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js +2 -0
  183. package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js.map +1 -0
  184. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js +2 -0
  185. package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js.map +1 -0
  186. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js +2 -0
  187. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js.map +1 -0
  188. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js +2 -0
  189. package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js.map +1 -0
  190. package/build/dist/Types/Dashboard/DashboardTemplates.js +853 -0
  191. package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -0
  192. package/build/dist/Types/Dashboard/DashboardVariable.js +7 -0
  193. package/build/dist/Types/Dashboard/DashboardVariable.js.map +1 -0
  194. package/build/dist/Types/Dashboard/DashboardViewConfig.js +50 -1
  195. package/build/dist/Types/Dashboard/DashboardViewConfig.js.map +1 -1
  196. package/build/dist/Types/Dashboard/MasterPassword.js +5 -0
  197. package/build/dist/Types/Dashboard/MasterPassword.js.map +1 -0
  198. package/build/dist/Types/Icon/IconProp.js +1 -0
  199. package/build/dist/Types/Icon/IconProp.js.map +1 -1
  200. package/build/dist/Types/Incident/IncidentMetricType.js +3 -0
  201. package/build/dist/Types/Incident/IncidentMetricType.js.map +1 -1
  202. package/build/dist/Types/MeteredPlan/ProductType.js +1 -0
  203. package/build/dist/Types/MeteredPlan/ProductType.js.map +1 -1
  204. package/build/dist/Types/Metrics/MetricQueryConfigData.js +1 -0
  205. package/build/dist/Types/Metrics/MetricQueryConfigData.js.map +1 -1
  206. package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
  207. package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
  208. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js +58 -7
  209. package/build/dist/Types/Monitor/KubernetesAlertTemplates.js.map +1 -1
  210. package/build/dist/Types/Monitor/MonitorStep.js +15 -0
  211. package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
  212. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js +59 -0
  213. package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js.map +1 -0
  214. package/build/dist/Types/Monitor/MonitorType.js +10 -0
  215. package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
  216. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js +2 -0
  217. package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js.map +1 -0
  218. package/build/dist/Types/Permission.js +75 -0
  219. package/build/dist/Types/Permission.js.map +1 -1
  220. package/build/dist/Types/Telemetry/TelemetryType.js +1 -0
  221. package/build/dist/Types/Telemetry/TelemetryType.js.map +1 -1
  222. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js +1 -0
  223. package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js.map +1 -1
  224. package/build/dist/UI/Components/Button/Button.js +1 -1
  225. package/build/dist/UI/Components/Button/Button.js.map +1 -1
  226. package/build/dist/UI/Components/Card/Card.js +4 -4
  227. package/build/dist/UI/Components/Card/Card.js.map +1 -1
  228. package/build/dist/UI/Components/Charts/Area/AreaChart.js +1 -1
  229. package/build/dist/UI/Components/Charts/Area/AreaChart.js.map +1 -1
  230. package/build/dist/UI/Components/Charts/Bar/BarChart.js +1 -1
  231. package/build/dist/UI/Components/Charts/Bar/BarChart.js.map +1 -1
  232. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +5 -2
  233. package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
  234. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +5 -2
  235. package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
  236. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +6 -3
  237. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
  238. package/build/dist/UI/Components/Charts/Line/LineChart.js +1 -1
  239. package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
  240. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js +2 -0
  241. package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js.map +1 -0
  242. package/build/dist/UI/Components/Icon/Icon.js +11 -0
  243. package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
  244. package/build/dist/UI/Components/ModelTable/BaseModelTable.js +12 -9
  245. package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
  246. package/build/dist/UI/Components/MoreMenu/MoreMenu.js +8 -2
  247. package/build/dist/UI/Components/MoreMenu/MoreMenu.js.map +1 -1
  248. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js +4 -4
  249. package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js.map +1 -1
  250. package/build/dist/UI/Components/Workflow/Component.js +311 -143
  251. package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
  252. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +44 -18
  253. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
  254. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +48 -22
  255. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
  256. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +127 -21
  257. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -1
  258. package/build/dist/UI/Components/Workflow/ComponentsModal.js +107 -52
  259. package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
  260. package/build/dist/UI/Components/Workflow/Workflow.js +87 -12
  261. package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
  262. package/build/dist/UI/Config.js +3 -1
  263. package/build/dist/UI/Config.js.map +1 -1
  264. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js +50 -21
  265. package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js.map +1 -1
  266. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js +104 -0
  267. package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js.map +1 -0
  268. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js +91 -0
  269. package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js.map +1 -0
  270. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js +70 -0
  271. package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js.map +1 -0
  272. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js +28 -7
  273. package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js.map +1 -1
  274. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js +70 -0
  275. package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js.map +1 -0
  276. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js +34 -3
  277. package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js.map +1 -1
  278. package/build/dist/Utils/Dashboard/Components/Index.js +16 -0
  279. package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
  280. package/build/dist/Utils/ValueFormatter.js +132 -0
  281. package/build/dist/Utils/ValueFormatter.js.map +1 -0
  282. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- import ErrorMessage from "../ErrorMessage/ErrorMessage";
2
1
  import { Port } from "../../../Types/Workflow/Component";
3
2
  import React, { FunctionComponent, ReactElement } from "react";
4
3
 
@@ -12,37 +11,75 @@ const ComponentPortViewer: FunctionComponent<ComponentProps> = (
12
11
  props: ComponentProps,
13
12
  ): ReactElement => {
14
13
  return (
15
- <div className="mt-5 mb-5">
16
- <h2 className="text-base font-medium text-gray-500">{props.name}</h2>
17
- <p className="text-sm font-medium text-gray-400">{props.description}</p>
14
+ <div className="mt-3 mb-3">
15
+ <h2 className="text-sm font-semibold text-gray-600">{props.name}</h2>
16
+ <p className="text-xs text-gray-400 mb-2">{props.description}</p>
18
17
  {props.ports && props.ports.length === 0 && (
19
- <ErrorMessage message={"This component does not have any ports."} />
18
+ <p className="text-xs text-gray-400 italic">No ports configured.</p>
20
19
  )}
21
- <div className="mt-3">
20
+ <div>
22
21
  {props.ports &&
23
22
  props.ports.length > 0 &&
24
23
  props.ports.map((port: Port, i: number) => {
25
24
  return (
26
25
  <div
27
26
  key={i}
28
- className="mt-2 mb-2 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-pink-500 focus-within:ring-offset-2"
27
+ style={{
28
+ display: "flex",
29
+ alignItems: "center",
30
+ gap: "0.625rem",
31
+ padding: "0.5rem 0.75rem",
32
+ borderRadius: "8px",
33
+ backgroundColor: "#f8fafc",
34
+ border: "1px solid #f1f5f9",
35
+ marginBottom: "0.375rem",
36
+ }}
29
37
  >
30
- <div className="min-w-0 flex-1">
31
- <div className="focus:outline-none">
38
+ <div
39
+ style={{
40
+ width: "8px",
41
+ height: "8px",
42
+ borderRadius: "50%",
43
+ backgroundColor: "#94a3b8",
44
+ flexShrink: 0,
45
+ }}
46
+ />
47
+ <div style={{ minWidth: 0, flex: 1 }}>
48
+ <p
49
+ style={{
50
+ fontSize: "0.8125rem",
51
+ fontWeight: 500,
52
+ color: "#334155",
53
+ margin: 0,
54
+ lineHeight: "1.25rem",
55
+ }}
56
+ >
57
+ {port.title}
32
58
  <span
33
- className="absolute inset-0"
34
- aria-hidden="true"
35
- ></span>
36
- <p className="text-sm font-medium text-gray-900">
37
- {port.title}{" "}
38
- <span className="text-gray-500 font-normal">
39
- (ID: {port.id})
40
- </span>
41
- </p>
42
- <p className="truncate text-sm text-gray-500">
59
+ style={{
60
+ color: "#94a3b8",
61
+ fontWeight: 400,
62
+ fontSize: "0.6875rem",
63
+ marginLeft: "0.375rem",
64
+ fontFamily:
65
+ 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',
66
+ }}
67
+ >
68
+ {port.id}
69
+ </span>
70
+ </p>
71
+ {port.description && (
72
+ <p
73
+ style={{
74
+ fontSize: "0.75rem",
75
+ color: "#94a3b8",
76
+ margin: 0,
77
+ lineHeight: "1rem",
78
+ }}
79
+ >
43
80
  {port.description}
44
81
  </p>
45
- </div>
82
+ )}
46
83
  </div>
47
84
  </div>
48
85
  );
@@ -1,6 +1,3 @@
1
- import ErrorMessage from "../ErrorMessage/ErrorMessage";
2
- import Pill from "../Pill/Pill";
3
- import { Black } from "../../../Types/BrandColors";
4
1
  import { ReturnValue } from "../../../Types/Workflow/Component";
5
2
  import React, { FunctionComponent, ReactElement } from "react";
6
3
 
@@ -14,41 +11,84 @@ const ComponentReturnValueViewer: FunctionComponent<ComponentProps> = (
14
11
  props: ComponentProps,
15
12
  ): ReactElement => {
16
13
  return (
17
- <div className="mt-5 mb-5">
18
- <h2 className="text-base font-medium text-gray-500">{props.name}</h2>
19
- <p className="text-sm font-medium text-gray-400">{props.description}</p>
14
+ <div className="mt-3 mb-3">
15
+ <h2 className="text-sm font-semibold text-gray-600">{props.name}</h2>
16
+ <p className="text-xs text-gray-400 mb-2">{props.description}</p>
20
17
  {props.returnValues && props.returnValues.length === 0 && (
21
- <ErrorMessage message={"This component does not return any value."} />
18
+ <p className="text-xs text-gray-400 italic">
19
+ This component does not return any values.
20
+ </p>
22
21
  )}
23
- <div className="mt-3">
22
+ <div>
24
23
  {props.returnValues &&
25
24
  props.returnValues.length > 0 &&
26
25
  props.returnValues.map((returnValue: ReturnValue, i: number) => {
27
26
  return (
28
27
  <div
29
28
  key={i}
30
- className="mt-2 mb-2 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white px-6 py-5 shadow-sm focus-within:ring-2 focus-within:ring-pink-500 focus-within:ring-offset-2"
29
+ style={{
30
+ display: "flex",
31
+ alignItems: "center",
32
+ justifyContent: "space-between",
33
+ gap: "0.625rem",
34
+ padding: "0.5rem 0.75rem",
35
+ borderRadius: "8px",
36
+ backgroundColor: "#f8fafc",
37
+ border: "1px solid #f1f5f9",
38
+ marginBottom: "0.375rem",
39
+ }}
31
40
  >
32
- <div className="min-w-0 flex-1 flex justify-between">
33
- <div className="focus:outline-none">
41
+ <div style={{ minWidth: 0, flex: 1 }}>
42
+ <p
43
+ style={{
44
+ fontSize: "0.8125rem",
45
+ fontWeight: 500,
46
+ color: "#334155",
47
+ margin: 0,
48
+ lineHeight: "1.25rem",
49
+ }}
50
+ >
51
+ {returnValue.name}
34
52
  <span
35
- className="absolute inset-0"
36
- aria-hidden="true"
37
- ></span>
38
- <p className="text-sm font-medium text-gray-900">
39
- {returnValue.name}{" "}
40
- <span className="text-gray-500 font-normal">
41
- (ID: {returnValue.id})
42
- </span>
43
- </p>
44
- <p className="truncate text-sm text-gray-500">
53
+ style={{
54
+ color: "#94a3b8",
55
+ fontWeight: 400,
56
+ fontSize: "0.6875rem",
57
+ marginLeft: "0.375rem",
58
+ fontFamily:
59
+ 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',
60
+ }}
61
+ >
62
+ {returnValue.id}
63
+ </span>
64
+ </p>
65
+ {returnValue.description && (
66
+ <p
67
+ style={{
68
+ fontSize: "0.75rem",
69
+ color: "#94a3b8",
70
+ margin: 0,
71
+ lineHeight: "1rem",
72
+ }}
73
+ >
45
74
  {returnValue.description}
46
75
  </p>
47
- </div>
48
- <div>
49
- <Pill color={Black} text={returnValue.type} />
50
- </div>
76
+ )}
51
77
  </div>
78
+ <span
79
+ style={{
80
+ fontSize: "0.6875rem",
81
+ fontWeight: 500,
82
+ color: "#6366f1",
83
+ backgroundColor: "#eef2ff",
84
+ padding: "0.125rem 0.5rem",
85
+ borderRadius: "100px",
86
+ whiteSpace: "nowrap",
87
+ border: "1px solid #e0e7ff",
88
+ }}
89
+ >
90
+ {returnValue.type}
91
+ </span>
52
92
  </div>
53
93
  );
54
94
  })}
@@ -1,5 +1,4 @@
1
1
  import Button, { ButtonStyleType } from "../Button/Button";
2
- import Divider from "../Divider/Divider";
3
2
  import BasicForm from "../Forms/BasicForm";
4
3
  import FormFieldSchemaType from "../Forms/Types/FormFieldSchemaType";
5
4
  import FormValues from "../Forms/Types/FormValues";
@@ -15,6 +14,7 @@ import { JSONObject } from "../../../Types/JSON";
15
14
  import ObjectID from "../../../Types/ObjectID";
16
15
  import { NodeDataProp } from "../../../Types/Workflow/Component";
17
16
  import React, { FunctionComponent, ReactElement, useState } from "react";
17
+ import Icon from "../Icon/Icon";
18
18
 
19
19
  export interface ComponentProps {
20
20
  title: string;
@@ -47,7 +47,7 @@ const ComponentSettingsModal: FunctionComponent<ComponentProps> = (
47
47
  }}
48
48
  leftFooterElement={
49
49
  <Button
50
- title={`Delete ${component.metadata.componentType}`}
50
+ title={`Delete`}
51
51
  icon={IconProp.Trash}
52
52
  buttonStyle={ButtonStyleType.DANGER_OUTLINE}
53
53
  onClick={() => {
@@ -73,7 +73,44 @@ const ComponentSettingsModal: FunctionComponent<ComponentProps> = (
73
73
  submitButtonType={ButtonStyleType.DANGER}
74
74
  />
75
75
  )}
76
- <div className="mb-3 mt-3">
76
+
77
+ {/* Component ID Section */}
78
+ <div
79
+ style={{
80
+ backgroundColor: "#f8fafc",
81
+ borderRadius: "10px",
82
+ border: "1px solid #e2e8f0",
83
+ padding: "1rem",
84
+ marginTop: "0.75rem",
85
+ marginBottom: "1rem",
86
+ }}
87
+ >
88
+ <div
89
+ style={{
90
+ display: "flex",
91
+ alignItems: "center",
92
+ gap: "0.5rem",
93
+ marginBottom: "0.5rem",
94
+ }}
95
+ >
96
+ <Icon
97
+ icon={IconProp.Label}
98
+ style={{
99
+ color: "#64748b",
100
+ width: "0.875rem",
101
+ height: "0.875rem",
102
+ }}
103
+ />
104
+ <span
105
+ style={{
106
+ fontSize: "0.8125rem",
107
+ fontWeight: 600,
108
+ color: "#334155",
109
+ }}
110
+ >
111
+ Identity
112
+ </span>
113
+ </div>
77
114
  <BasicForm
78
115
  hideSubmitButton={true}
79
116
  initialValues={{
@@ -91,23 +128,54 @@ const ComponentSettingsModal: FunctionComponent<ComponentProps> = (
91
128
  fields={[
92
129
  {
93
130
  title: `${component.metadata.componentType} ID`,
94
- description: `${component.metadata.componentType} ID will make it easier for you to connect to other components.`,
131
+ description: `Unique identifier used to reference this ${component.metadata.componentType.toLowerCase()} from other components.`,
95
132
  field: {
96
133
  id: true,
97
134
  },
98
-
99
135
  required: true,
100
-
101
136
  fieldType: FormFieldSchemaType.Text,
102
137
  },
103
138
  ]}
104
139
  />
105
140
  </div>
106
141
 
142
+ {/* Documentation Section */}
107
143
  {component.metadata.documentationLink && (
108
- <div>
109
- <Divider />
110
-
144
+ <div
145
+ style={{
146
+ backgroundColor: "#eff6ff",
147
+ borderRadius: "10px",
148
+ border: "1px solid #bfdbfe",
149
+ padding: "1rem",
150
+ marginBottom: "1rem",
151
+ }}
152
+ >
153
+ <div
154
+ style={{
155
+ display: "flex",
156
+ alignItems: "center",
157
+ gap: "0.5rem",
158
+ marginBottom: "0.5rem",
159
+ }}
160
+ >
161
+ <Icon
162
+ icon={IconProp.Book}
163
+ style={{
164
+ color: "#3b82f6",
165
+ width: "0.875rem",
166
+ height: "0.875rem",
167
+ }}
168
+ />
169
+ <span
170
+ style={{
171
+ fontSize: "0.8125rem",
172
+ fontWeight: 600,
173
+ color: "#1e40af",
174
+ }}
175
+ >
176
+ Documentation
177
+ </span>
178
+ </div>
111
179
  <DocumentationViewer
112
180
  documentationLink={component.metadata.documentationLink}
113
181
  workflowId={props.workflowId}
@@ -115,48 +183,145 @@ const ComponentSettingsModal: FunctionComponent<ComponentProps> = (
115
183
  </div>
116
184
  )}
117
185
 
118
- <Divider />
119
-
120
- <ArgumentsForm
121
- graphComponents={props.graphComponents}
122
- workflowId={props.workflowId}
123
- component={component}
124
- onFormChange={(component: NodeDataProp) => {
125
- setComponent({ ...component });
126
- }}
127
- onHasFormValidationErrors={(value: Dictionary<boolean>) => {
128
- setHasFormValidationErrors({
129
- ...hasFormValidationErrors,
130
- ...value,
131
- });
186
+ {/* Arguments Section */}
187
+ <div
188
+ style={{
189
+ backgroundColor: "#ffffff",
190
+ borderRadius: "10px",
191
+ border: "1px solid #e2e8f0",
192
+ padding: "1rem",
193
+ marginBottom: "1rem",
132
194
  }}
133
- />
134
-
135
- <Divider />
195
+ >
196
+ <div
197
+ style={{
198
+ display: "flex",
199
+ alignItems: "center",
200
+ gap: "0.5rem",
201
+ marginBottom: "0.75rem",
202
+ }}
203
+ >
204
+ <Icon
205
+ icon={IconProp.Settings}
206
+ style={{
207
+ color: "#64748b",
208
+ width: "0.875rem",
209
+ height: "0.875rem",
210
+ }}
211
+ />
212
+ <span
213
+ style={{
214
+ fontSize: "0.8125rem",
215
+ fontWeight: 600,
216
+ color: "#334155",
217
+ }}
218
+ >
219
+ Configuration
220
+ </span>
221
+ </div>
222
+ <ArgumentsForm
223
+ graphComponents={props.graphComponents}
224
+ workflowId={props.workflowId}
225
+ component={component}
226
+ onFormChange={(component: NodeDataProp) => {
227
+ setComponent({ ...component });
228
+ }}
229
+ onHasFormValidationErrors={(value: Dictionary<boolean>) => {
230
+ setHasFormValidationErrors({
231
+ ...hasFormValidationErrors,
232
+ ...value,
233
+ });
234
+ }}
235
+ />
236
+ </div>
136
237
 
137
- <div className="mb-3 mt-3">
238
+ {/* Ports Section */}
239
+ <div
240
+ style={{
241
+ backgroundColor: "#ffffff",
242
+ borderRadius: "10px",
243
+ border: "1px solid #e2e8f0",
244
+ padding: "1rem",
245
+ marginBottom: "1rem",
246
+ }}
247
+ >
248
+ <div
249
+ style={{
250
+ display: "flex",
251
+ alignItems: "center",
252
+ gap: "0.5rem",
253
+ marginBottom: "0.25rem",
254
+ }}
255
+ >
256
+ <Icon
257
+ icon={IconProp.Link}
258
+ style={{
259
+ color: "#64748b",
260
+ width: "0.875rem",
261
+ height: "0.875rem",
262
+ }}
263
+ />
264
+ <span
265
+ style={{
266
+ fontSize: "0.8125rem",
267
+ fontWeight: 600,
268
+ color: "#334155",
269
+ }}
270
+ >
271
+ Connections
272
+ </span>
273
+ </div>
138
274
  <ComponentPortViewer
139
275
  name="In Ports"
140
- description="Here is a list of inports for this component"
276
+ description="Input connections for this component"
141
277
  ports={component.metadata.inPorts}
142
278
  />
143
- </div>
144
-
145
- <Divider />
146
-
147
- <div className="mb-3 mt-3">
148
279
  <ComponentPortViewer
149
280
  name="Out Ports"
150
- description="Here is a list of outports for this component"
281
+ description="Output connections from this component"
151
282
  ports={component.metadata.outPorts}
152
283
  />
153
284
  </div>
154
285
 
155
- <Divider />
156
- <div className="mb-3 mt-3">
286
+ {/* Return Values Section */}
287
+ <div
288
+ style={{
289
+ backgroundColor: "#ffffff",
290
+ borderRadius: "10px",
291
+ border: "1px solid #e2e8f0",
292
+ padding: "1rem",
293
+ marginBottom: "1rem",
294
+ }}
295
+ >
296
+ <div
297
+ style={{
298
+ display: "flex",
299
+ alignItems: "center",
300
+ gap: "0.5rem",
301
+ marginBottom: "0.25rem",
302
+ }}
303
+ >
304
+ <Icon
305
+ icon={IconProp.ArrowCircleRight}
306
+ style={{
307
+ color: "#64748b",
308
+ width: "0.875rem",
309
+ height: "0.875rem",
310
+ }}
311
+ />
312
+ <span
313
+ style={{
314
+ fontSize: "0.8125rem",
315
+ fontWeight: 600,
316
+ color: "#334155",
317
+ }}
318
+ >
319
+ Output
320
+ </span>
321
+ </div>
157
322
  <ComponentReturnValueViewer
158
323
  name="Return Values"
159
- description="Here is a list of values that this component returns"
324
+ description="Values this component produces for downstream use"
160
325
  returnValues={component.metadata.returnValues}
161
326
  />
162
327
  </div>