Skip to content

Commit ddc3060

Browse files
committed
chore: add compass web entry points
1 parent 9014d4e commit ddc3060

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/compass-web/src/entrypoint.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,19 @@ const CompassWeb = ({
337337
});
338338
}
339339
}}
340+
onContextMenuOpen={(itemGroups) => {
341+
if (itemGroups.length > 0) {
342+
onTrackRef.current?.('Context Menu Opened', {
343+
item_groups: itemGroups.map((group) => group.telemetryLabel),
344+
});
345+
}
346+
}}
347+
onContextMenuItemClick={(itemGroup, item) => {
348+
onTrackRef.current?.('Context Menu Item Clicked', {
349+
item_group: itemGroup.telemetryLabel,
350+
item_label: item.label,
351+
});
352+
}}
340353
onSignalMount={(id) => {
341354
onTrackRef.current?.('Signal Shown', { id });
342355
}}

0 commit comments

Comments
 (0)