= observer((props) => {
const MENU_ITEMS: (TContextMenuItem & { tooltipContent?: string })[] = [
{
key: "edit",
- action: () => onEditIssueTypeIdChange(issueTypeId),
+ action: () => {
+ captureClick({
+ elementName: WORK_ITEM_TYPE_TRACKER_ELEMENTS.PROPERTY_QUICK_ACTIONS,
+ });
+ onEditIssueTypeIdChange(issueTypeId);
+ },
title: t("common.actions.edit"),
icon: Pencil,
},
{
key: "delete",
- action: () => onDeleteIssueTypeIdChange(issueTypeId),
+ action: () => {
+ captureClick({
+ elementName: WORK_ITEM_TYPE_TRACKER_ELEMENTS.PROPERTY_QUICK_ACTIONS,
+ });
+ onDeleteIssueTypeIdChange(issueTypeId);
+ },
title: t("common.actions.delete"),
tooltipContent: issueTypeDetail?.is_default
? t("work_item_types.settings.cant_delete_default_message")
diff --git a/apps/web/ee/components/issue-types/root.tsx b/apps/web/ee/components/issue-types/root.tsx
index bbcb0c21eb..3618446011 100644
--- a/apps/web/ee/components/issue-types/root.tsx
+++ b/apps/web/ee/components/issue-types/root.tsx
@@ -3,9 +3,11 @@ import { useCallback, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane imports
+import { WORK_ITEM_TYPE_TRACKER_ELEMENTS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// plane web components
import { SettingsHeading } from "@/components/settings";
+import { captureClick } from "@/helpers/event-tracker.helper";
import { IssueTypeEmptyState, IssueTypesList, CreateOrUpdateIssueTypeModal } from "@/plane-web/components/issue-types";
// plane web hooks
import { useIssueTypes } from "@/plane-web/hooks/store";
@@ -62,7 +64,12 @@ export const IssueTypesRoot = observer(() => {
showButton={isWorkItemTypeEnabled}
button={{
label: t("work_item_types.create.button"),
- onClick: () => setIsModalOpen(true),
+ onClick: () => {
+ captureClick({
+ elementName: WORK_ITEM_TYPE_TRACKER_ELEMENTS.HEADER_CREATE_WORK_ITEM_TYPE_BUTTON,
+ });
+ setIsModalOpen(true);
+ },
}}
/>
diff --git a/packages/constants/src/event-tracker/extended.ts b/packages/constants/src/event-tracker/extended.ts
index 0161cac1c7..85fbc063ce 100644
--- a/packages/constants/src/event-tracker/extended.ts
+++ b/packages/constants/src/event-tracker/extended.ts
@@ -198,6 +198,44 @@ export const TEAMSPACE_VIEW_TRACKER_ELEMENTS = {
CONTEXT_MENU: "teamspace_view_context_menu",
};
+export const WORK_ITEM_TYPE_TRACKER_EVENTS = {
+ TYPES_ENABLED: "work_item_types_enabled",
+ CREATE: "work_item_type_created",
+ UPDATE: "work_item_type_updated",
+ DELETE: "work_item_type_deleted",
+ ENABLE: "work_item_type_enabled",
+ DISABLE: "work_item_type_disabled",
+ CREATE_PROPERTY: "work_item_type_create_property",
+};
+
+export const WORK_ITEM_TYPE_TRACKER_ELEMENTS = {
+ HEADER_CREATE_WORK_ITEM_TYPE_BUTTON: "work_item_type_header_create_button",
+ HEADER_ENABLE_WORK_ITEM_TYPES_BUTTON: "work_item_type_header_enable_work_item_types_button",
+ HEADER_ENABLE_DISABLE_WORK_ITEM_TYPE_BUTTON: "work_item_type_header_enable_disable_button",
+ CREATE_PROPERTY_BUTTON: "work_item_type_create_property_button",
+ PROPERTY_QUICK_ACTIONS: "work_item_type_property_quick_actions",
+};
+
+export const EPIC_CUSTOM_PROPERTY_TRACKER_EVENTS = {
+ CREATE: "epic_custom_property_created",
+ UPDATE: "epic_custom_property_updated",
+ DELETE: "epic_custom_property_deleted",
+};
+export const EPIC_CUSTOM_PROPERTY_TRACKER_ELEMENTS = {
+ CREATE_PROPERTY_BUTTON: "epic_custom_property_create_property_button",
+ PROPERTY_QUICK_ACTIONS: "epic_custom_property_property_quick_actions",
+};
+
+export const CUSTOMER_PROPERTY_TRACKER_EVENTS = {
+ CREATE: "customer_custom_property_created",
+ UPDATE: "customer_custom_property_updated",
+ DELETE: "customer_custom_property_deleted",
+};
+export const CUSTOMER_PROPERTY_TRACKER_ELEMENTS = {
+ CREATE_PROPERTY_BUTTON: "customer_custom_property_create_property_button",
+ PROPERTY_QUICK_ACTIONS: "customer_custom_property_property_quick_actions",
+};
+// Project Template Tracker Start
export const INTEGRATION_TRACKER_ELEMENTS = {
INTEGRATIONS_MAPPING_ENTITY_ITEM_BUTTON: "integrations_mapping_entity_item_button",
};