The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: document sign up/sign in and realtime events (#31394)
Long Hoangffe9a71f8994
diff --git a/apps/studio/data/telemetry/send-event-mutation.ts b/apps/studio/data/telemetry/send-event-mutation.tsindex ddf51171365..9ee61e52e9a 100644--- a/apps/studio/data/telemetry/send-event-mutation.ts+++ b/apps/studio/data/telemetry/send-event-mutation.ts@@ -22,11 +22,21 @@ import {SqlEditorResultCopyMarkdownClickedEvent,SqlEditorResultCopyJsonClickedEvent,TelemetryActions,+ SignUpEvent,+ SignInEvent,+ RealtimeInspectorListenChannelClickedEvent,+ RealtimeInspectorBroadcastSentEvent,+ RealtimeInspectorMessageClickedEvent,+ RealtimeInspectorCopyMessageClickedEvent,+ RealtimeInspectorFiltersAppliedEvent,+ RealtimeInspectorDatabaseRoleUpdatedEvent,} from 'lib/constants/telemetry'import { useRouter } from 'next/router'import type { ResponseError } from 'types'export type SendEventVariables =+ | SignUpEvent+ | SignInEvent| ConnectionStringCopiedEvent| CronJobCreatedEvent| CronJobUpdatedEvent@@ -38,6 +48,12 @@ export type SendEventVariables =| FeaturePreviewsClickedEvent| FeaturePreviewEnabledEvent| FeaturePreviewDisabledEvent+ | RealtimeInspectorListenChannelClickedEvent+ | RealtimeInspectorBroadcastSentEvent+ | RealtimeInspectorMessageClickedEvent+ | RealtimeInspectorCopyMessageClickedEvent+ | RealtimeInspectorFiltersAppliedEvent+ | RealtimeInspectorDatabaseRoleUpdatedEvent| SqlEditorQuickstartClickedEvent| SqlEditorTemplateClickedEvent| SqlEditorResultDownloadCsvClickedEventdiff --git a/apps/studio/lib/constants/telemetry.ts b/apps/studio/lib/constants/telemetry.tsindex d3a9c732ebb..8b9c691c1fe 100644--- a/apps/studio/lib/constants/telemetry.ts+++ b/apps/studio/lib/constants/telemetry.ts@@ -40,6 +40,37 @@ export enum TelemetryActions {SQL_EDITOR_RESULT_COPY_JSON_CLICKED = 'sql_editor_result_copy_markdown_clicked',}+/**+ * Triggered when a user signs up. When signing up with Email and Password, this is only triggered once user confirms their email.+ *+ * @group Events+ * @source studio+ * @page /sign-up+ */+export interface SignUpEvent {+ action: TelemetryActions.SIGN_UP+ properties: {+ category: 'conversion'+ }+}++/**+ * Triggered when a user signs in with Github, Email and Password or SSO.+ *+ * Some unintuitive behavior:+ * - If signing up with GitHub the SignInEvent gets triggered first before the SignUpEvent.+ *+ * @group Events+ * @source studio+ * @page /sign-in-mfa+ */+export interface SignInEvent {+ action: TelemetryActions.SIGN_IN+ properties: {+ category: 'account'+ }+}+/*** User copied the database connection string.*@@ -209,6 +240,72 @@ export interface FeaturePreviewDisabledEvent {}}+/**+ * After selecting channel, either "Listening to channel" or "Start listening" button was clicked.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorListenChannelClickedEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_LISTEN_CHANNEL_CLICKED+}++/**+ * A broadcast message was sent from the SendMessageModal.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorBroadcastSentEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_BROADCAST_SENT+}++/**+ * A message was clicked in the RealtimeInspector, which opens a sidebar that shows the messsage details including metadata.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorMessageClickedEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_MESSAGE_CLICKED+}++/**+ * A message was copied from the RealtimeInspector.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorCopyMessageClickedEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_COPY_MESSAGE_CLICKED+}++/**+ * Filters were applied in the RealtimeInspector.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorFiltersAppliedEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_FILTERS_APPLIED+}++/**+ * Database role was updated in the RealtimeInspector.+ *+ * @group Events+ * @source studio+ * @page /dashboard/project/{ref}/realtime/inspector+ */+export interface RealtimeInspectorDatabaseRoleUpdatedEvent {+ action: TelemetryActions.REALTIME_INSPECTOR_DATABASE_ROLE_UPDATED+}+/*** Quickstart card clicked in the SQL editor.*