chore: remove event enums (#33730)

* chore: remove event enums

* chore: remove more event enums

* chore: remove unused HomepageHeroRequestDemoClickedEvent

* chore: remove unused HomepageHeroRequestDemoClickedEvent

* chore: rename custom_report events to use underscores

* chore: remove telemetry enum

* chore: remove unused imports

* chore: remove enums from merged events

* chore: remove unused imports

* chore: add typedocs for module and hide exported types that are not events
This commit is contained in:
Long Hoang
2025-02-25 13:08:31 +08:00
committed by GitHub
parent 07d82b6edc
commit 69726689c9
57 changed files with 155 additions and 289 deletions

View File

@@ -2,7 +2,6 @@ import { Edit } from 'lucide-react'
import { useRouter } from 'next/router'
import { useParams } from 'common'
import { TelemetryActions } from 'common/telemetry-constants'
import { DiffType } from 'components/interfaces/SQLEditor/SQLEditor.types'
import useNewQuery from 'components/interfaces/SQLEditor/hooks'
import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
@@ -93,7 +92,7 @@ export const EditQueryButton = ({
handleEditInSQLEditor()
}
sendEvent({
action: TelemetryActions.ASSISTANT_EDIT_IN_SQL_EDITOR_CLICKED,
action: 'assistant_edit_in_sql_editor_clicked',
properties: {
isInSQLEditor,
isInNewSnippet,