The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): report advisorCategory consistently across advisor telemetry surfaces (#49746)
claude[bot]5b01b5a9c7a4
diff --git a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsxindex f26b15f6112..b0dc49349fa 100644--- a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx+++ b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx@@ -82,11 +82,7 @@ export const AdvisorSection = ({ showEmptyState = false }: { showEmptyState?: boconst advisorCategory =item.source === 'lint'- ? item.original.categories.includes('SECURITY')- ? 'SECURITY'- : item.original.categories.includes('PERFORMANCE')- ? 'PERFORMANCE'- : undefined+ ? item.original.categories[0]: item.source === 'signal'? 'SECURITY': undefineddiff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.tsxindex 7622d057825..e19bd4b1674 100644--- a/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.tsx+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.tsx@@ -202,11 +202,7 @@ export const AdvisorPanel = () => {const advisorCategory =item.source === 'lint'- ? item.original.categories.includes('SECURITY')- ? 'SECURITY'- : item.original.categories.includes('PERFORMANCE')- ? 'PERFORMANCE'- : undefined+ ? item.original.categories[0]: item.source === 'signal'? 'SECURITY': undefineddiff --git a/packages/common/telemetry-constants.ts b/packages/common/telemetry-constants.tsindex a164992611f..d0e5db8d925 100644--- a/packages/common/telemetry-constants.ts+++ b/packages/common/telemetry-constants.ts@@ -2959,7 +2959,7 @@ export interface AdvisorDetailOpenedEvent {*/advisorSource: 'lint' | 'notification' | 'signal'/**- * Category of the advisor (SECURITY or PERFORMANCE)+ * Category of the advisor*/advisorCategory?: AdvisorCategory/**@@ -2990,7 +2990,7 @@ export interface AdvisorAssistantButtonClickedEvent {*/origin: 'homepage' | 'lint_detail'/**- * Category of the advisor (SECURITY or PERFORMANCE)+ * Category of the advisor*/advisorCategory?: AdvisorCategory/**