@oneuptime/common 10.0.39 → 10.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/Index.ts +4 -0
- package/Models/AnalyticsModels/Profile.ts +687 -0
- package/Models/AnalyticsModels/ProfileSample.ts +547 -0
- package/Models/DatabaseModels/Dashboard.ts +357 -0
- package/Models/DatabaseModels/DashboardDomain.ts +658 -0
- package/Models/DatabaseModels/Index.ts +2 -0
- package/Models/DatabaseModels/StatusPage.ts +41 -0
- package/Server/API/DashboardAPI.ts +408 -0
- package/Server/API/DashboardDomainAPI.ts +235 -0
- package/Server/API/StatusPageAPI.ts +36 -2
- package/Server/API/TelemetryAPI.ts +393 -0
- package/Server/EnvironmentConfig.ts +12 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.ts +97 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.ts +50 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.ts +59 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +8 -0
- package/Server/Middleware/UserAuthorization.ts +96 -1
- package/Server/Services/DashboardDomainService.ts +647 -0
- package/Server/Services/DashboardService.ts +174 -3
- package/Server/Services/IncidentService.ts +295 -50
- package/Server/Services/IncidentStateTimelineService.ts +1 -0
- package/Server/Services/Index.ts +6 -0
- package/Server/Services/MonitorService.ts +5 -0
- package/Server/Services/ProfileAggregationService.ts +559 -0
- package/Server/Services/ProfileSampleService.ts +11 -0
- package/Server/Services/ProfileService.ts +11 -0
- package/Server/Services/TelemetryUsageBillingService.ts +77 -3
- package/Server/Services/WorkspaceNotificationSummaryService.ts +15 -1
- package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +9 -0
- package/Server/Utils/Cookie.ts +48 -0
- package/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.ts +34 -0
- package/Server/Utils/Monitor/DataToProcess.ts +3 -1
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +299 -0
- package/Server/Utils/Profile/PprofEncoder.ts +225 -0
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +53 -16
- package/Server/Utils/Workspace/Slack/Slack.ts +26 -6
- package/ServiceRoute.ts +2 -0
- package/Tests/UI/Components/ComponentsModal.test.tsx +19 -15
- package/Types/AnalyticsDatabase/AnalyticsTableName.ts +2 -0
- package/Types/CookieName.ts +1 -0
- package/Types/Dashboard/Chart/ChartType.ts +5 -0
- package/Types/Dashboard/DashboardComponentType.ts +4 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.ts +10 -0
- package/Types/Dashboard/DashboardComponents/DashboardChartComponent.ts +1 -2
- package/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.ts +17 -0
- package/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.ts +15 -0
- package/Types/Dashboard/DashboardComponents/DashboardTableComponent.ts +14 -0
- package/Types/Dashboard/DashboardComponents/DashboardTextComponent.ts +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.ts +13 -0
- package/Types/Dashboard/DashboardComponents/DashboardValueComponent.ts +2 -0
- package/Types/Dashboard/DashboardTemplates.ts +964 -0
- package/Types/Dashboard/DashboardVariable.ts +23 -0
- package/Types/Dashboard/DashboardViewConfig.ts +59 -0
- package/Types/Dashboard/MasterPassword.ts +10 -0
- package/Types/Icon/IconProp.ts +1 -0
- package/Types/Incident/IncidentMetricType.ts +3 -0
- package/Types/MeteredPlan/ProductType.ts +1 -0
- package/Types/Metrics/MetricQueryConfigData.ts +3 -0
- package/Types/Monitor/CriteriaFilter.ts +3 -0
- package/Types/Monitor/KubernetesAlertTemplates.ts +78 -7
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.ts +20 -0
- package/Types/Monitor/MonitorStep.ts +25 -0
- package/Types/Monitor/MonitorStepProfileMonitor.ts +96 -0
- package/Types/Monitor/MonitorType.ts +11 -0
- package/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.ts +12 -0
- package/Types/Permission.ts +87 -0
- package/Types/Telemetry/TelemetryType.ts +1 -0
- package/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.ts +1 -0
- package/UI/Components/Button/Button.tsx +1 -1
- package/UI/Components/Card/Card.tsx +8 -4
- package/UI/Components/Charts/Area/AreaChart.tsx +4 -0
- package/UI/Components/Charts/Bar/BarChart.tsx +4 -0
- package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +26 -0
- package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +26 -0
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +26 -0
- package/UI/Components/Charts/Line/LineChart.tsx +4 -0
- package/UI/Components/Charts/Types/ReferenceLineProps.ts +6 -0
- package/UI/Components/Icon/Icon.tsx +33 -0
- package/UI/Components/ModelTable/BaseModelTable.tsx +13 -10
- package/UI/Components/MoreMenu/MoreMenu.tsx +15 -2
- package/UI/Components/MoreMenu/MoreMenuItem.tsx +4 -4
- package/UI/Components/Workflow/Component.tsx +450 -209
- package/UI/Components/Workflow/ComponentPortViewer.tsx +57 -20
- package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +65 -25
- package/UI/Components/Workflow/ComponentSettingsModal.tsx +202 -37
- package/UI/Components/Workflow/ComponentsModal.tsx +180 -93
- package/UI/Components/Workflow/Workflow.tsx +105 -9
- package/UI/Config.ts +9 -0
- package/Utils/Dashboard/Components/DashboardChartComponent.ts +53 -22
- package/Utils/Dashboard/Components/DashboardGaugeComponent.ts +124 -0
- package/Utils/Dashboard/Components/DashboardLogStreamComponent.ts +110 -0
- package/Utils/Dashboard/Components/DashboardTableComponent.ts +86 -0
- package/Utils/Dashboard/Components/DashboardTextComponent.ts +32 -7
- package/Utils/Dashboard/Components/DashboardTraceListComponent.ts +86 -0
- package/Utils/Dashboard/Components/DashboardValueComponent.ts +39 -3
- package/Utils/Dashboard/Components/Index.ts +28 -0
- package/Utils/ValueFormatter.ts +170 -0
- package/build/dist/Models/AnalyticsModels/Index.js +4 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Profile.js +621 -0
- package/build/dist/Models/AnalyticsModels/Profile.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/ProfileSample.js +497 -0
- package/build/dist/Models/AnalyticsModels/ProfileSample.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Dashboard.js +365 -0
- package/build/dist/Models/DatabaseModels/Dashboard.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DashboardDomain.js +691 -0
- package/build/dist/Models/DatabaseModels/DashboardDomain.js.map +1 -0
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPage.js +42 -0
- package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
- package/build/dist/Server/API/DashboardAPI.js +293 -0
- package/build/dist/Server/API/DashboardAPI.js.map +1 -0
- package/build/dist/Server/API/DashboardDomainAPI.js +124 -0
- package/build/dist/Server/API/DashboardDomainAPI.js.map +1 -0
- package/build/dist/Server/API/StatusPageAPI.js +26 -2
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/API/TelemetryAPI.js +222 -0
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +4 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js +40 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742177-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742178-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js +23 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774524742179-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1774559064919-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/UserAuthorization.js +41 -0
- package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
- package/build/dist/Server/Services/DashboardDomainService.js +595 -0
- package/build/dist/Server/Services/DashboardDomainService.js.map +1 -0
- package/build/dist/Server/Services/DashboardService.js +117 -3
- package/build/dist/Server/Services/DashboardService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +231 -55
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js +1 -1
- package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +6 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +5 -2
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/ProfileAggregationService.js +356 -0
- package/build/dist/Server/Services/ProfileAggregationService.js.map +1 -0
- package/build/dist/Server/Services/ProfileSampleService.js +9 -0
- package/build/dist/Server/Services/ProfileSampleService.js.map +1 -0
- package/build/dist/Server/Services/ProfileService.js +9 -0
- package/build/dist/Server/Services/ProfileService.js.map +1 -0
- package/build/dist/Server/Services/TelemetryUsageBillingService.js +61 -4
- package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js +13 -1
- package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js.map +1 -1
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +8 -0
- package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -1
- package/build/dist/Server/Utils/Cookie.js +36 -0
- package/build/dist/Server/Utils/Cookie.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js +34 -0
- package/build/dist/Server/Utils/Monitor/Criteria/ProfileMonitorCriteria.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +173 -0
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Profile/PprofEncoder.js +129 -0
- package/build/dist/Server/Utils/Profile/PprofEncoder.js.map +1 -0
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +36 -14
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js +23 -6
- package/build/dist/Server/Utils/Workspace/Slack/Slack.js.map +1 -1
- package/build/dist/ServiceRoute.js +1 -0
- package/build/dist/ServiceRoute.js.map +1 -1
- package/build/dist/Tests/UI/Components/ComponentsModal.test.js +15 -15
- package/build/dist/Tests/UI/Components/ComponentsModal.test.js.map +1 -1
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +2 -0
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
- package/build/dist/Types/CookieName.js +1 -0
- package/build/dist/Types/CookieName.js.map +1 -1
- package/build/dist/Types/Dashboard/Chart/ChartType.js +5 -0
- package/build/dist/Types/Dashboard/Chart/ChartType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponentType.js +4 -0
- package/build/dist/Types/Dashboard/DashboardComponentType.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/ComponentArgument.js.map +1 -1
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardGaugeComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardLogStreamComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardTableComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js +2 -0
- package/build/dist/Types/Dashboard/DashboardComponents/DashboardTraceListComponent.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js +853 -0
- package/build/dist/Types/Dashboard/DashboardTemplates.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardVariable.js +7 -0
- package/build/dist/Types/Dashboard/DashboardVariable.js.map +1 -0
- package/build/dist/Types/Dashboard/DashboardViewConfig.js +50 -1
- package/build/dist/Types/Dashboard/DashboardViewConfig.js.map +1 -1
- package/build/dist/Types/Dashboard/MasterPassword.js +5 -0
- package/build/dist/Types/Dashboard/MasterPassword.js.map +1 -0
- package/build/dist/Types/Icon/IconProp.js +1 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Incident/IncidentMetricType.js +3 -0
- package/build/dist/Types/Incident/IncidentMetricType.js.map +1 -1
- package/build/dist/Types/MeteredPlan/ProductType.js +1 -0
- package/build/dist/Types/MeteredPlan/ProductType.js.map +1 -1
- package/build/dist/Types/Metrics/MetricQueryConfigData.js +1 -0
- package/build/dist/Types/Metrics/MetricQueryConfigData.js.map +1 -1
- package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
- package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
- package/build/dist/Types/Monitor/KubernetesAlertTemplates.js +58 -7
- package/build/dist/Types/Monitor/KubernetesAlertTemplates.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStep.js +15 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js +59 -0
- package/build/dist/Types/Monitor/MonitorStepProfileMonitor.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorType.js +10 -0
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js +2 -0
- package/build/dist/Types/Monitor/ProfileMonitor/ProfileMonitorResponse.js.map +1 -0
- package/build/dist/Types/Permission.js +75 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Telemetry/TelemetryType.js +1 -0
- package/build/dist/Types/Telemetry/TelemetryType.js.map +1 -1
- package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js +1 -0
- package/build/dist/Types/Workspace/NotificationSummary/WorkspaceNotificationSummaryItem.js.map +1 -1
- package/build/dist/UI/Components/Button/Button.js +1 -1
- package/build/dist/UI/Components/Button/Button.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +4 -4
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/Area/AreaChart.js +1 -1
- package/build/dist/UI/Components/Charts/Area/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Bar/BarChart.js +1 -1
- package/build/dist/UI/Components/Charts/Bar/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +5 -2
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +5 -2
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +6 -3
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Line/LineChart.js +1 -1
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js +2 -0
- package/build/dist/UI/Components/Charts/Types/ReferenceLineProps.js.map +1 -0
- package/build/dist/UI/Components/Icon/Icon.js +11 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +12 -9
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/MoreMenu/MoreMenu.js +8 -2
- package/build/dist/UI/Components/MoreMenu/MoreMenu.js.map +1 -1
- package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js +4 -4
- package/build/dist/UI/Components/MoreMenu/MoreMenuItem.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Component.js +311 -143
- package/build/dist/UI/Components/Workflow/Component.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +44 -18
- package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +48 -22
- package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +127 -21
- package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ComponentsModal.js +107 -52
- package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -1
- package/build/dist/UI/Components/Workflow/Workflow.js +87 -12
- package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -1
- package/build/dist/UI/Config.js +3 -1
- package/build/dist/UI/Config.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js +50 -21
- package/build/dist/Utils/Dashboard/Components/DashboardChartComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js +104 -0
- package/build/dist/Utils/Dashboard/Components/DashboardGaugeComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js +91 -0
- package/build/dist/Utils/Dashboard/Components/DashboardLogStreamComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js +70 -0
- package/build/dist/Utils/Dashboard/Components/DashboardTableComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js +28 -7
- package/build/dist/Utils/Dashboard/Components/DashboardTextComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js +70 -0
- package/build/dist/Utils/Dashboard/Components/DashboardTraceListComponent.js.map +1 -0
- package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js +34 -3
- package/build/dist/Utils/Dashboard/Components/DashboardValueComponent.js.map +1 -1
- package/build/dist/Utils/Dashboard/Components/Index.js +16 -0
- package/build/dist/Utils/Dashboard/Components/Index.js.map +1 -1
- package/build/dist/Utils/ValueFormatter.js +132 -0
- package/build/dist/Utils/ValueFormatter.js.map +1 -0
- 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-
|
|
16
|
-
<h2 className="text-
|
|
17
|
-
<p className="text-
|
|
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
|
-
<
|
|
18
|
+
<p className="text-xs text-gray-400 italic">No ports configured.</p>
|
|
20
19
|
)}
|
|
21
|
-
<div
|
|
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
|
-
|
|
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
|
|
31
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
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-
|
|
18
|
-
<h2 className="text-
|
|
19
|
-
<p className="text-
|
|
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
|
-
<
|
|
18
|
+
<p className="text-xs text-gray-400 italic">
|
|
19
|
+
This component does not return any values.
|
|
20
|
+
</p>
|
|
22
21
|
)}
|
|
23
|
-
<div
|
|
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
|
-
|
|
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
|
|
33
|
-
<
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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="
|
|
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="
|
|
281
|
+
description="Output connections from this component"
|
|
151
282
|
ports={component.metadata.outPorts}
|
|
152
283
|
/>
|
|
153
284
|
</div>
|
|
154
285
|
|
|
155
|
-
|
|
156
|
-
<div
|
|
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="
|
|
324
|
+
description="Values this component produces for downstream use"
|
|
160
325
|
returnValues={component.metadata.returnValues}
|
|
161
326
|
/>
|
|
162
327
|
</div>
|