The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: minor spelling fixes
Alaister Young09120198062b
diff --git a/examples/realtime/nextjs-auth-presence/pages/index.tsx b/examples/realtime/nextjs-auth-presence/pages/index.tsxindex 4752907f29b..b382f523f70 100644--- a/examples/realtime/nextjs-auth-presence/pages/index.tsx+++ b/examples/realtime/nextjs-auth-presence/pages/index.tsx@@ -45,7 +45,7 @@ const HomePage: NextPage = () => {<><button onClick={() => supabaseClient.auth.signOut()}>Sign out</button>- <p> List of Currenly Logged in Users: </p>+ <p> List of Currently Logged in Users: </p>{Object.keys(userState).map((key) => (<p key={key}>Hi {key}</p>))}diff --git a/spec/supabase_py_v2.yml b/spec/supabase_py_v2.ymlindex f3cae7a043d..a3af18a5acd 100644--- a/spec/supabase_py_v2.yml+++ b/spec/supabase_py_v2.yml@@ -113,7 +113,7 @@ functions:notes: |- Requires either an email or phone number.- This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number.- - If the user doesn't exist, `sign_in_with_otp()` will signup the user instead. To restrict this behaviour, you can set `should_create_user` in `SignInWithPasswordlessCredentials.options` to `false`.+ - If the user doesn't exist, `sign_in_with_otp()` will signup the user instead. To restrict this behavior, you can set `should_create_user` in `SignInWithPasswordlessCredentials.options` to `false`.- If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP.- If you're using phone, you can configure whether you want the user to receive a OTP.- The magic link's destination URL is determined by the [`SITE_URL`](/docs/reference/auth/config#site_url).diff --git a/studio/components/interfaces/Billing/Subscription/Subscription.tsx b/studio/components/interfaces/Billing/Subscription/Subscription.tsxindex 635a6843c1a..4bf3bf8ad04 100644--- a/studio/components/interfaces/Billing/Subscription/Subscription.tsx+++ b/studio/components/interfaces/Billing/Subscription/Subscription.tsx@@ -14,7 +14,7 @@ import CostBreakdownRow from './CostBreakdownRow'import { StripeSubscription } from './Subscription.types'import NoPermission from 'components/ui/NoPermission'import { USAGE_BASED_PRODUCTS } from 'components/interfaces/Billing/Billing.constants'-import { ProjectUsagResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'+import { ProjectUsageResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'interface Props {project: any@@ -62,7 +62,7 @@ const Subscription: FC<Props> = ({? 0: Object.keys(usage).map((productKey) => {- return usage[productKey as ProjectUsagResponseUsageKeys].cost ?? 0+ return usage[productKey as ProjectUsageResponseUsageKeys].cost ?? 0}).reduce((prev, current) => prev + current, 0)@@ -183,10 +183,10 @@ const Subscription: FC<Props> = ({{isPayg &&USAGE_BASED_PRODUCTS.map((product) => {return product.features.map((feature) => {- const amount = usage?.[feature.key as ProjectUsagResponseUsageKeys]?.usage ?? 0- const limit = usage?.[feature.key as ProjectUsagResponseUsageKeys]?.limit ?? 0+ const amount = usage?.[feature.key as ProjectUsageResponseUsageKeys]?.usage ?? 0+ const limit = usage?.[feature.key as ProjectUsageResponseUsageKeys]?.limit ?? 0const cost = (- usage?.[feature.key as ProjectUsagResponseUsageKeys]?.cost ?? 0+ usage?.[feature.key as ProjectUsageResponseUsageKeys]?.cost ?? 0).toFixed(2)return (diff --git a/studio/components/interfaces/Home/ProjectUsageSection.tsx b/studio/components/interfaces/Home/ProjectUsageSection.tsxindex acc90f06745..9064717135c 100644--- a/studio/components/interfaces/Home/ProjectUsageSection.tsx+++ b/studio/components/interfaces/Home/ProjectUsageSection.tsx@@ -5,7 +5,7 @@ import { IconLoader, IconAlertCircle } from 'ui'import { useParams } from 'hooks'import { ProjectUsage, NewProjectPanel } from 'components/interfaces/Home'import InformationBox from 'components/ui/InformationBox'-import { ProjectUsagResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'+import { ProjectUsageResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'const ProjectUsageSection: FC = observer(({}) => {const { ref: projectRef } = useParams()@@ -24,7 +24,7 @@ const ProjectUsageSection: FC = observer(({}) => {const hasProjectData = usage? Object.keys(usage)- .map((key) => usage[key as ProjectUsagResponseUsageKeys].usage)+ .map((key) => usage[key as ProjectUsageResponseUsageKeys].usage).some((usage) => (usage ?? 0) > 0): falsediff --git a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsxindex ec050eed8c6..a7d3134706e 100644--- a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx+++ b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx@@ -8,7 +8,7 @@ import SparkBar from 'components/ui/SparkBar'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import InformationBox from 'components/ui/InformationBox'import { USAGE_BASED_PRODUCTS } from 'components/interfaces/Billing/Billing.constants'-import { ProjectUsagResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'+import { ProjectUsageResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'import { useRouter } from 'next/router'import * as Tooltip from '@radix-ui/react-tooltip'@@ -89,7 +89,7 @@ const ProjectUsage: FC<Props> = ({ projectRef }) => {showUsageExceedMessage &&product.features.map((feature) => {- const featureUsage = usage[feature.key as ProjectUsagResponseUsageKeys]+ const featureUsage = usage[feature.key as ProjectUsageResponseUsageKeys]return (featureUsage.usage ?? 0) / featureUsage.limit > 1}).some((x) => x === true)@@ -136,7 +136,7 @@ const ProjectUsage: FC<Props> = ({ projectRef }) => {) : (<tbody>{product.features.map((feature) => {- const featureUsage = usage[feature.key as ProjectUsagResponseUsageKeys]+ const featureUsage = usage[feature.key as ProjectUsageResponseUsageKeys]const usageValue = featureUsage.usage || 0const usageRatio = usageValue / featureUsage.limitconst isApproaching = usageRatio >= USAGE_APPROACHING_THRESHOLDdiff --git a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsxindex cdae8ac6953..48b1af4d650 100644--- a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx+++ b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageMinimal.tsx@@ -1,7 +1,7 @@import { FC } from 'react'import { Loading } from 'ui'-import { ProjectUsagResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'+import { ProjectUsageResponseUsageKeys, useProjectUsageQuery } from 'data/usage/project-usage-query'import { useProjectSubscriptionQuery } from 'data/subscriptions/project-subscription-query'import { formatBytes } from 'lib/helpers'import { PRICING_TIER_PRODUCT_IDS, USAGE_APPROACHING_THRESHOLD } from 'lib/constants'@@ -24,7 +24,7 @@ const ProjectUsageMinimal: FC<ProjectUsageMinimalProps> = ({ projectRef, filterif (subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PAYG ||subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.ENTERPRISE ||- subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.TEAM+ subscription?.tier.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.TEAM) {return <></>}@@ -41,7 +41,7 @@ const ProjectUsageMinimal: FC<ProjectUsageMinimalProps> = ({ projectRef, filter{usage && (<div className="space-y-8">{product.features.map((feature) => {- const featureUsage = usage[feature.key as ProjectUsagResponseUsageKeys]+ const featureUsage = usage[feature.key as ProjectUsageResponseUsageKeys]const usageRatio = (featureUsage.usage ?? 0) / featureUsage.limitconst isApproaching = usageRatio >= USAGE_APPROACHING_THRESHOLDconst isExceeded = usageRatio >= 1diff --git a/studio/data/usage/project-usage-query.ts b/studio/data/usage/project-usage-query.tsindex 2616fe467a8..dca03ce536f 100644--- a/studio/data/usage/project-usage-query.ts+++ b/studio/data/usage/project-usage-query.ts@@ -54,7 +54,7 @@ export type ProjectUsageResponse = {disk_volume_size_gb: number}-export type ProjectUsagResponseUsageKeys = keyof Omit<ProjectUsageResponse, 'disk_volume_size_gb'>+export type ProjectUsageResponseUsageKeys = keyof Omit<ProjectUsageResponse, 'disk_volume_size_gb'>export async function getProjectUsage({ projectRef }: ProjectUsageVariables, signal?: AbortSignal) {if (!projectRef) {