@knime/hub-features 1.29.2 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/hub-features",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "Vue components & composables for shared hub features",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"lodash-es": "4.18.1",
|
|
40
40
|
"ofetch": "^1.4.1",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"@knime/
|
|
42
|
+
"@knime/utils": "1.11.1",
|
|
43
43
|
"@knime/styles": "1.15.1",
|
|
44
|
-
"@knime/
|
|
44
|
+
"@knime/components": "1.46.7"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"consola": "3.x",
|
|
@@ -124,9 +124,9 @@ export const secretCreatedPersonalSecrets = <T extends DefaultContext>(ctx: T) =
|
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* Fired when the user clicks the Create button in the deployment creation side panel
|
|
127
|
+
* Fired when the user clicks the Create button in the deployment creation side panel on the workflow details page
|
|
128
128
|
*/
|
|
129
|
-
export const
|
|
129
|
+
export const deploymentCreatedFromWorkflowDetails = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"deploymentCreatedFromWorkflowDetails">): AnalyticsEvent => {
|
|
130
130
|
const staticData = {
|
|
131
131
|
...toSnakeCaseDeep(ctx),
|
|
132
132
|
unique_event_id: crypto.randomUUID(),
|
|
@@ -136,7 +136,7 @@ export const deploymentCreated = <T extends DefaultContext>(ctx: T) => (eventDat
|
|
|
136
136
|
event_display_name: "Deployment Created",
|
|
137
137
|
interaction: {
|
|
138
138
|
location: "contextual_side_panel",
|
|
139
|
-
page: "
|
|
139
|
+
page: "workflow_details",
|
|
140
140
|
trigger: "user",
|
|
141
141
|
type: "click",
|
|
142
142
|
},
|
|
@@ -1117,3 +1117,26 @@ export const nodeCreatedFloatingToolsAddByFile = <T extends DefaultContext>(ctx:
|
|
|
1117
1117
|
return event;
|
|
1118
1118
|
};
|
|
1119
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Fired when the user submits feedback for a node
|
|
1122
|
+
*/
|
|
1123
|
+
export const nodeConfigFeedbackSubmitted = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"nodeConfigFeedbackSubmitted">): AnalyticsEvent => {
|
|
1124
|
+
const staticData = {
|
|
1125
|
+
...toSnakeCaseDeep(ctx),
|
|
1126
|
+
unique_event_id: crypto.randomUUID(),
|
|
1127
|
+
timestamp: new Date().toISOString(),
|
|
1128
|
+
event_name: "node_feedback_submitted",
|
|
1129
|
+
event_source: "editor",
|
|
1130
|
+
event_display_name: "Node Feedback Submitted",
|
|
1131
|
+
interaction: {
|
|
1132
|
+
location: "node_configuration",
|
|
1133
|
+
trigger: "user",
|
|
1134
|
+
type: "click",
|
|
1135
|
+
},
|
|
1136
|
+
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1137
|
+
|
|
1138
|
+
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1139
|
+
|
|
1140
|
+
return event;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
@@ -672,13 +672,13 @@ export interface AnalyticsEventSchema {
|
|
|
672
672
|
};
|
|
673
673
|
payload: ContainerNodeTypePayload;
|
|
674
674
|
};
|
|
675
|
-
|
|
675
|
+
deploymentCreatedFromWorkflowDetails: {
|
|
676
676
|
event_name: "deployment_created";
|
|
677
677
|
event_source: "cloudhome";
|
|
678
678
|
event_display_name: "Deployment Created";
|
|
679
679
|
interaction: {
|
|
680
680
|
location: "contextual_side_panel";
|
|
681
|
-
page: "
|
|
681
|
+
page: "workflow_details";
|
|
682
682
|
trigger: InteractionTrigger & "user";
|
|
683
683
|
type: InteractionType & "click";
|
|
684
684
|
};
|
|
@@ -754,6 +754,17 @@ export interface AnalyticsEventSchema {
|
|
|
754
754
|
};
|
|
755
755
|
payload: NodeCreated_Base;
|
|
756
756
|
};
|
|
757
|
+
nodeConfigFeedbackSubmitted: {
|
|
758
|
+
event_name: "node_feedback_submitted";
|
|
759
|
+
event_source: "editor";
|
|
760
|
+
event_display_name: "Node Feedback Submitted";
|
|
761
|
+
interaction: {
|
|
762
|
+
location: "node_configuration";
|
|
763
|
+
trigger: InteractionTrigger & "user";
|
|
764
|
+
type: InteractionType & "click";
|
|
765
|
+
};
|
|
766
|
+
payload: NodeConfigFeedbackPayload;
|
|
767
|
+
};
|
|
757
768
|
};
|
|
758
769
|
}
|
|
759
770
|
export interface KaiPromptedPayload {
|
|
@@ -832,3 +843,8 @@ export interface DeploymentSharedPayload {
|
|
|
832
843
|
deploymentType: "dataApp" | "service";
|
|
833
844
|
sharingMethod: "invite" | "copy_link";
|
|
834
845
|
}
|
|
846
|
+
export interface NodeConfigFeedbackPayload {
|
|
847
|
+
nodeFactoryId: string;
|
|
848
|
+
rating: number;
|
|
849
|
+
message?: string;
|
|
850
|
+
}
|
|
@@ -73,13 +73,14 @@
|
|
|
73
73
|
"containerNodeEnteredCtxMenu",
|
|
74
74
|
"containerNodeExitedKeyboard",
|
|
75
75
|
"containerNodeExitedToolbar",
|
|
76
|
-
"
|
|
76
|
+
"deploymentCreatedFromWorkflowDetails",
|
|
77
77
|
"deploymentSharedDeploymentsAccessPanel",
|
|
78
78
|
"deploymentSharedDeploymentsSharingPopup",
|
|
79
79
|
"deploymentSharedWorkflowAccessPanel",
|
|
80
80
|
"deploymentSharedWorkflowSharingPopup",
|
|
81
81
|
"nodeCreatedCanvasDragDropFile",
|
|
82
|
-
"nodeCreatedFloatingToolsAddByFile"
|
|
82
|
+
"nodeCreatedFloatingToolsAddByFile",
|
|
83
|
+
"nodeConfigFeedbackSubmitted"
|
|
83
84
|
],
|
|
84
85
|
"properties": {
|
|
85
86
|
"kaiPromptedQA": {
|
|
@@ -3563,10 +3564,10 @@
|
|
|
3563
3564
|
}
|
|
3564
3565
|
}
|
|
3565
3566
|
},
|
|
3566
|
-
"
|
|
3567
|
+
"deploymentCreatedFromWorkflowDetails": {
|
|
3567
3568
|
"type": "object",
|
|
3568
3569
|
"additionalProperties": false,
|
|
3569
|
-
"$comment": "Fired when the user clicks the Create button in the deployment creation side panel",
|
|
3570
|
+
"$comment": "Fired when the user clicks the Create button in the deployment creation side panel on the workflow details page",
|
|
3570
3571
|
"required": [
|
|
3571
3572
|
"event_name",
|
|
3572
3573
|
"event_source",
|
|
@@ -3598,7 +3599,7 @@
|
|
|
3598
3599
|
},
|
|
3599
3600
|
"page": {
|
|
3600
3601
|
"type": "string",
|
|
3601
|
-
"const": "
|
|
3602
|
+
"const": "workflow_details"
|
|
3602
3603
|
},
|
|
3603
3604
|
"trigger": {
|
|
3604
3605
|
"allOf": [
|
|
@@ -4000,6 +4001,66 @@
|
|
|
4000
4001
|
"$ref": "#/definitions/NodeCreated_Base"
|
|
4001
4002
|
}
|
|
4002
4003
|
}
|
|
4004
|
+
},
|
|
4005
|
+
"nodeConfigFeedbackSubmitted": {
|
|
4006
|
+
"type": "object",
|
|
4007
|
+
"additionalProperties": false,
|
|
4008
|
+
"$comment": "Fired when the user submits feedback for a node",
|
|
4009
|
+
"required": [
|
|
4010
|
+
"event_name",
|
|
4011
|
+
"event_source",
|
|
4012
|
+
"event_display_name",
|
|
4013
|
+
"interaction",
|
|
4014
|
+
"payload"
|
|
4015
|
+
],
|
|
4016
|
+
"properties": {
|
|
4017
|
+
"event_name": {
|
|
4018
|
+
"type": "string",
|
|
4019
|
+
"const": "node_feedback_submitted"
|
|
4020
|
+
},
|
|
4021
|
+
"event_source": {
|
|
4022
|
+
"type": "string",
|
|
4023
|
+
"const": "editor"
|
|
4024
|
+
},
|
|
4025
|
+
"event_display_name": {
|
|
4026
|
+
"type": "string",
|
|
4027
|
+
"const": "Node Feedback Submitted"
|
|
4028
|
+
},
|
|
4029
|
+
"interaction": {
|
|
4030
|
+
"type": "object",
|
|
4031
|
+
"additionalProperties": false,
|
|
4032
|
+
"required": ["location", "trigger", "type"],
|
|
4033
|
+
"properties": {
|
|
4034
|
+
"location": {
|
|
4035
|
+
"type": "string",
|
|
4036
|
+
"const": "node_configuration"
|
|
4037
|
+
},
|
|
4038
|
+
"trigger": {
|
|
4039
|
+
"allOf": [
|
|
4040
|
+
{
|
|
4041
|
+
"$ref": "#/definitions/InteractionTrigger"
|
|
4042
|
+
},
|
|
4043
|
+
{
|
|
4044
|
+
"const": "user"
|
|
4045
|
+
}
|
|
4046
|
+
]
|
|
4047
|
+
},
|
|
4048
|
+
"type": {
|
|
4049
|
+
"allOf": [
|
|
4050
|
+
{
|
|
4051
|
+
"$ref": "#/definitions/InteractionType"
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
"const": "click"
|
|
4055
|
+
}
|
|
4056
|
+
]
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
},
|
|
4060
|
+
"payload": {
|
|
4061
|
+
"$ref": "#/definitions/NodeConfigFeedbackPayload"
|
|
4062
|
+
}
|
|
4063
|
+
}
|
|
4003
4064
|
}
|
|
4004
4065
|
}
|
|
4005
4066
|
}
|
|
@@ -4336,6 +4397,24 @@
|
|
|
4336
4397
|
"enum": ["timedout", "user_closed"]
|
|
4337
4398
|
}
|
|
4338
4399
|
}
|
|
4400
|
+
},
|
|
4401
|
+
"NodeConfigFeedbackPayload": {
|
|
4402
|
+
"type": "object",
|
|
4403
|
+
"additionalProperties": false,
|
|
4404
|
+
"required": ["nodeFactoryId", "rating"],
|
|
4405
|
+
"properties": {
|
|
4406
|
+
"nodeFactoryId": {
|
|
4407
|
+
"type": "string"
|
|
4408
|
+
},
|
|
4409
|
+
"rating": {
|
|
4410
|
+
"type": "integer",
|
|
4411
|
+
"minimum": 1,
|
|
4412
|
+
"maximum": 5
|
|
4413
|
+
},
|
|
4414
|
+
"message": {
|
|
4415
|
+
"type": "string"
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4339
4418
|
}
|
|
4340
4419
|
}
|
|
4341
4420
|
}
|