Merge pull request #31035 from overleaf/mg-context-menu-analytics

Add analytics event for context menu, comment, track changes, and jump to location

GitOrigin-RevId: 8412cc3c8039cd1582ccee20b162b4bef4467dea
This commit is contained in:
Malik Glossop
2026-03-06 09:14:26 +00:00
committed by Copybot
parent ab5be2261b
commit a293474c0c
14 changed files with 203 additions and 48 deletions
@@ -17,6 +17,8 @@ import { useProjectContext } from '@/shared/context/project-context'
import { useEditorPropertiesContext } from '@/features/ide-react/context/editor-properties-context'
import { usePermissionsContext } from '@/features/ide-react/context/permissions-context'
const addCommentFromToolbar = () => commands.addComment('toolbar')
export const ToolbarItems: FC<{
state: EditorState
overflowed?: Set<string>
@@ -135,7 +137,7 @@ export const ToolbarItems: FC<{
id="toolbar-add-comment"
label={t('add_comment')}
disabled={state.selection.main.empty}
command={commands.addComment}
command={addCommentFromToolbar}
icon="add_comment"
/>
)}