Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: change notion to linear team mapping (#35363)

Wen Bo Xiec638255cb225
diff --git a/apps/docs/components/Feedback/Feedback.tsx b/apps/docs/components/Feedback/Feedback.tsx
index 16771ca6e5b..e2aa841aa43 100644
--- a/apps/docs/components/Feedback/Feedback.tsx
+++ b/apps/docs/components/Feedback/Feedback.tsx
@@ -18,7 +18,7 @@ import { Button, cn } from 'ui'
import { IS_PLATFORM } from '~/lib/constants'
import { useSendFeedbackMutation } from '~/lib/fetch/feedback'
import { useSendTelemetryEvent } from '~/lib/telemetry'
-import { getNotionTeam, getSanitizedTabParams } from './Feedback.utils'
+import { getLinearTeam, getSanitizedTabParams } from './Feedback.utils'
import { type FeedbackFields, FeedbackModal } from './FeedbackModal'
const FeedbackButton = forwardRef<
@@ -134,7 +134,7 @@ function Feedback({ className }: { className?: string }) {
title,
// @ts-expect-error -- can't click this button without having a state.response
isHelpful: state.response === 'yes',
- team: getNotionTeam(pathname),
+ team: getLinearTeam(pathname),
})
setModalOpen(false)
refocusButton()
diff --git a/apps/docs/components/Feedback/Feedback.utils.ts b/apps/docs/components/Feedback/Feedback.utils.ts
index cf9ff4c989a..2fa626ce14d 100644
--- a/apps/docs/components/Feedback/Feedback.utils.ts
+++ b/apps/docs/components/Feedback/Feedback.utils.ts
@@ -3,8 +3,8 @@ import { pick } from 'lodash'
/**
* Gets the Notion team to send feedback to based on the pathname.
*/
-const getNotionTeam = (pathname: string) => {
- const DEFAULT_TEAM = 'team-docs'
+const getLinearTeam = (pathname: string) => {
+ const DEFAULT_TEAM = 'Docs'
// Pathname has format `/guides/(team)/**`
const pathParts = pathname.split('/')
@@ -13,26 +13,26 @@ const getNotionTeam = (pathname: string) => {
switch (pathParts[2]) {
case 'database':
- return 'team-postgres'
+ return 'Postgres'
case 'auth':
- return 'team-auth'
+ return 'Auth'
case 'storage':
- return 'team-storage'
+ return 'Storage'
case 'functions':
- return 'team-functions'
+ return 'Functions'
case 'realtime':
- return 'team-realtime'
+ return 'Realtime'
case 'ai':
- return 'team-ai'
+ return 'AI'
case 'local-development':
case 'self-hosting':
case 'deployment':
- return 'team-dev-workflows'
+ return 'Dev Workflows'
case 'integrations':
- return 'team-api'
+ return 'API'
case 'platform':
case 'monitoring-troubleshooting':
- return 'team-infra'
+ return 'Infra'
default:
return DEFAULT_TEAM
}
@@ -51,4 +51,4 @@ const getSanitizedTabParams = () => {
return pick(Object.fromEntries(searchParams.entries()), queryGroups)
}
-export { getNotionTeam, getSanitizedTabParams }
+export { getLinearTeam, getSanitizedTabParams }