chore(editor): Add telemetry for canvas experiment (#18871)

This commit is contained in:
Suguru Inoue
2025-08-29 12:56:25 +02:00
committed by GitHub
parent e663858c9d
commit de87f67c57
37 changed files with 330 additions and 95 deletions

View File

@@ -769,7 +769,7 @@ function onSetNodeActivated(id: string, event?: MouseEvent) {
}
}
setNodeActive(id);
setNodeActive(id, 'canvas_default_view');
}
function onOpenSubWorkflow(id: string) {
@@ -1212,7 +1212,7 @@ function onSwitchActiveNode(nodeName: string) {
const node = workflowsStore.getNodeByName(nodeName);
if (!node) return;
setNodeActiveByName(nodeName);
setNodeActiveByName(nodeName, 'other');
selectNodes([node.id]);
}
@@ -1773,7 +1773,7 @@ function registerCustomActions() {
registerCustomAction({
key: 'openNodeDetail',
action: ({ node }: { node: string }) => {
setNodeActiveByName(node);
setNodeActiveByName(node, 'other');
},
});
@@ -1795,7 +1795,7 @@ function registerCustomActions() {
registerCustomAction({
key: 'showNodeCreator',
action: () => {
ndvStore.activeNodeName = null;
ndvStore.unsetActiveNodeName();
void nextTick(() => {
void onOpenNodeCreatorForTriggerNodes(NODE_CREATOR_OPEN_SOURCES.TAB);
@@ -1824,7 +1824,7 @@ function showAddFirstStepIfEnabled() {
function updateNodeRoute(nodeId: string) {
const nodeUi = workflowsStore.findNodeByPartialId(nodeId);
if (nodeUi) {
setNodeActive(nodeUi.id);
setNodeActive(nodeUi.id, 'other');
} else {
toast.showToast({
title: i18n.baseText('nodeView.showMessage.ndvUrl.missingNodes.title'),
@@ -1889,7 +1889,7 @@ watch(
watch(
() => route.params.nodeId,
async (newId) => {
if (typeof newId !== 'string' || newId === '') ndvStore.activeNodeName = null;
if (typeof newId !== 'string' || newId === '') ndvStore.unsetActiveNodeName();
else {
updateNodeRoute(newId);
}