diff --git a/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.ts b/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.ts index 3c7ac58336..00c6dcf03b 100644 --- a/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.ts +++ b/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.ts @@ -4,9 +4,124 @@ */ import { getInjectable } from "@ogre-tools/injectable"; +const navigateTo = [ + "navigate-to-preference-tab-id", + "navigate-to-preference-tab", + "navigate-to-front-page", + "navigate-to-horizontal-pod-autoscalers", + "navigate-to-secrets", + "navigate-to-limit-ranges", + "navigate-to-pod-disruption-budgets", + "navigate-to-resource-quotas", + "navigate-to-priority-classes", + "navigate-to-config-maps", + "navigate-to-nodes", + "navigate-to-port-forwards", + "navigate-to-endpoints", + "navigate-to-network-policies", + "navigate-to-ingresses", + "navigate-to-services", + "navigate-to-persistent-volumes", + "navigate-to-persistent-volume-claims", + "navigate-to-storage-classes", + "navigate-to-namespaces", + "navigate-to-statefulsets", + "navigate-to-cron-jobs", + "navigate-to-pods", + "navigate-to-replicasets", + "navigate-to-daemonsets", + "navigate-to-jobs", + "navigate-to-workloads-overview", + "navigate-to-deployments", + "navigate-to-crd-list", + "navigate-to-custom-resources", + "navigate-to-pod-security-policies", + "navigate-to-cluster-role-bindings", + "navigate-to-roles", + "navigate-to-role-bindings", + "navigate-to-service-accounts", + "navigate-to-cluster-roles", + "navigate-to-events", + "navigate-to-cluster-overview", + "navigate-to-helm-releases", + "navigate-to-helm-charts", + "navigate-to-extension-preferences", + "navigate-to-app-preferences", + "navigate-to-proxy-preferences", + "navigate-to-preferences", + "navigate-to-terminal-preferences", + "navigate-to-telemetry-preferences", + "navigate-to-kubernetes-preferences", + "navigate-to-editor-preferences", + "navigate-to-add-cluster", + "navigate-to-catalog", + "navigate-to-welcome", + "navigate-to-extensions", + "navigate-to-cluster-view", + "navigate-to-entity-settings", +]; + +const helmInjectableIds = [ + "update-helm-release", + "install-helm-chart", + "delete-helm-release", + "list-helm-charts", + "add-helm-repository-channel", + "remove-helm-repository-channel", + "select-helm-repository", + "call-for-helm-chart-versions", +]; + +const kubeConfigActions = [ + "create-cluster", + "add-sync-entries", + "open-delete-cluster-dialog", +]; + +const extensions = [ + "enable-extension", + "disable-extension", + "attempt-install", + "unpack-extension", + "install-extension-from-input", + "confirm-uninstall-extension", + "uninstall-extension", +]; + +const externalActions = [ + "open-link-in-browser", +]; + +const uiInteraction = [ + "show-details", +]; + +const terminal = [ + "create-terminal-tab", +]; + +const logs = [ + "get-logs", +]; + +const resourceEditor = [ + "create-edit-resource-tab", + "clear-edit-resource-tab", +]; + const telemetryWhiteListForFunctionsInjectable = getInjectable({ id: "telemetry-white-list-for-functions", - instantiate: () => ["some-placeholder-injectable-id"], + instantiate: () => [ + ...navigateTo, + ...helmInjectableIds, + ...kubeConfigActions, + ...extensions, + ...externalActions, + ...uiInteraction, + ...terminal, + ...logs, + ...resourceEditor, + ], decorable: false, }); diff --git a/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.ts b/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.ts index f5417758e8..1f1a073293 100644 --- a/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.ts +++ b/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.ts @@ -10,7 +10,7 @@ import extensionInstallationStateStoreInjectable from "../../../../extensions/extension-installation-state-store/extension-installation-state-store.injectable"; const installFromInputInjectable = getInjectable({ - id: "install-from-input", + id: "install-extension-from-input", instantiate: (di) => installFromInput({ diff --git a/src/renderer/routes/navigate-to-route.injectable.ts b/src/renderer/routes/navigate-to-route.injectable.ts index 1207841c7a..8b57a02613 100644 --- a/src/renderer/routes/navigate-to-route.injectable.ts +++ b/src/renderer/routes/navigate-to-route.injectable.ts @@ -33,8 +33,6 @@ const navigateToRouteInjectable = getInjectable({ }; }, - tags: ["emit-telemetry"], - injectionToken: navigateToRouteInjectionToken, });