The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: cmdk event naming and description (#39860)
Pamela Chia928d5f49c5f9
diff --git a/apps/docs/hooks/useDocsCommandMenuTelemetry.ts b/apps/docs/hooks/useDocsCommandMenuTelemetry.tsindex c2b8371d183..6514699fc7a 100644--- a/apps/docs/hooks/useDocsCommandMenuTelemetry.ts+++ b/apps/docs/hooks/useDocsCommandMenuTelemetry.ts@@ -4,7 +4,7 @@ import { useCallback } from 'react'import type {CommandMenuOpenedEvent,- CommandMenuCommandSelectedEvent,+ CommandMenuCommandClickedEvent,CommandMenuSearchSubmittedEvent,} from 'common/telemetry-constants'import { useSendTelemetryEvent } from 'lib/telemetry'@@ -16,7 +16,7 @@ export function useDocsCommandMenuTelemetry() {(event:| CommandMenuOpenedEvent- | CommandMenuCommandSelectedEvent+ | CommandMenuCommandClickedEvent| CommandMenuSearchSubmittedEvent) => {sendTelemetryEvent(event)diff --git a/apps/studio/hooks/misc/useStudioCommandMenuTelemetry.ts b/apps/studio/hooks/misc/useStudioCommandMenuTelemetry.tsindex 925c9c600a8..4b5457a9eea 100644--- a/apps/studio/hooks/misc/useStudioCommandMenuTelemetry.ts+++ b/apps/studio/hooks/misc/useStudioCommandMenuTelemetry.ts@@ -5,7 +5,7 @@ import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganizationimport { useSendEventMutation } from 'data/telemetry/send-event-mutation'import type {CommandMenuOpenedEvent,- CommandMenuCommandSelectedEvent,+ CommandMenuCommandClickedEvent,CommandMenuSearchSubmittedEvent,} from 'common/telemetry-constants'@@ -18,7 +18,7 @@ export function useStudioCommandMenuTelemetry() {(event:| CommandMenuOpenedEvent- | CommandMenuCommandSelectedEvent+ | CommandMenuCommandClickedEvent| CommandMenuSearchSubmittedEvent) => {// Add studio-specific groups (project and organization)diff --git a/apps/www/hooks/useWwwCommandMenuTelemetry.ts b/apps/www/hooks/useWwwCommandMenuTelemetry.tsindex cf7a6037eff..a2bb7a625be 100644--- a/apps/www/hooks/useWwwCommandMenuTelemetry.ts+++ b/apps/www/hooks/useWwwCommandMenuTelemetry.ts@@ -2,7 +2,7 @@ import { useCallback } from 'react'import type {CommandMenuOpenedEvent,- CommandMenuCommandSelectedEvent,+ CommandMenuCommandClickedEvent,CommandMenuSearchSubmittedEvent,} from 'common/telemetry-constants'import { useSendTelemetryEvent } from 'lib/telemetry'@@ -14,7 +14,7 @@ export function useWwwCommandMenuTelemetry() {(event:| CommandMenuOpenedEvent- | CommandMenuCommandSelectedEvent+ | CommandMenuCommandClickedEvent| CommandMenuSearchSubmittedEvent) => {sendTelemetryEvent(event)diff --git a/packages/common/telemetry-constants.ts b/packages/common/telemetry-constants.tsindex 300f25a189e..1d7f654a71a 100644--- a/packages/common/telemetry-constants.ts+++ b/packages/common/telemetry-constants.ts@@ -1953,7 +1953,7 @@ export interface AuthUsersSearchSubmittedEvent {* User opened the command menu.** @group Events- * @source ui-patterns+ * @source studio, docs, www* @page any*/export interface CommandMenuOpenedEvent {@@ -1979,7 +1979,7 @@ export interface CommandMenuOpenedEvent {* User typed a search term in the command menu input.** @group Events- * @source ui-patterns+ * @source studio, docs, www* @page any*/export interface CommandMenuSearchSubmittedEvent {@@ -1998,17 +1998,17 @@ export interface CommandMenuSearchSubmittedEvent {}/**- * User selected a command from the command menu.+ * User clicked a command from the command menu.** @group Events- * @source ui-patterns+ * @source studio, docs, www* @page any*/-export interface CommandMenuCommandSelectedEvent {- action: 'command_menu_command_selected'+export interface CommandMenuCommandClickedEvent {+ action: 'command_menu_command_clicked'properties: {/**- * The selected command+ * The clicked command*/command_name: stringcommand_value?: string@@ -2137,4 +2137,4 @@ export type TelemetryEvent =| AuthUsersSearchSubmittedEvent| CommandMenuOpenedEvent| CommandMenuSearchSubmittedEvent- | CommandMenuCommandSelectedEvent+ | CommandMenuCommandClickedEventdiff --git a/packages/ui-patterns/src/CommandMenu/api/hooks/useCommandMenuTelemetry.ts b/packages/ui-patterns/src/CommandMenu/api/hooks/useCommandMenuTelemetry.tsindex 1ec7f51d8a7..44308c39b8f 100644--- a/packages/ui-patterns/src/CommandMenu/api/hooks/useCommandMenuTelemetry.ts+++ b/packages/ui-patterns/src/CommandMenu/api/hooks/useCommandMenuTelemetry.ts@@ -6,12 +6,12 @@ import { useCommandMenuOpen } from './viewHooks'import type {CommandMenuOpenedEvent,- CommandMenuCommandSelectedEvent,+ CommandMenuCommandClickedEvent,CommandMenuSearchSubmittedEvent,} from 'common/telemetry-constants'export type CommandMenuTelemetryCallback = (- event: CommandMenuOpenedEvent | CommandMenuCommandSelectedEvent | CommandMenuSearchSubmittedEvent+ event: CommandMenuOpenedEvent | CommandMenuCommandClickedEvent | CommandMenuSearchSubmittedEvent) => voidexport interface UseCommandMenuTelemetryOptions {diff --git a/packages/ui-patterns/src/CommandMenu/internal/Command.tsx b/packages/ui-patterns/src/CommandMenu/internal/Command.tsxindex 9fa962fa79c..e0c5d03942f 100644--- a/packages/ui-patterns/src/CommandMenu/internal/Command.tsx+++ b/packages/ui-patterns/src/CommandMenu/internal/Command.tsx@@ -61,7 +61,7 @@ const CommandItem = forwardRef<// Send telemetry eventif (telemetryContext?.onTelemetry) {const event = {- action: 'command_menu_command_selected' as const,+ action: 'command_menu_command_clicked' as const,properties: {command_name: command.name,command_value: command.value,