The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge remote-tracking branch 'upstream/master' into fix/type-cleanup
Nick Rayburn91af012ff2b8
diff --cc studio/pages/new/[slug].tsxindex 4b029865d21,a505e4f204c..2a5cb901993--- a/studio/pages/new/[slug].tsx+++ b/studio/pages/new/[slug].tsx@@@ -23,55 -25,17 +25,17 @@@ importDEFAULT_FREE_PROJECTS_LIMIT,PRICING_TIER_PRODUCT_IDS,} from 'lib/constants'- import { useStore, withAuth, useSubscriptionStats } from 'hooks'+ import { useStore, useFlag, withAuth, useSubscriptionStats } from 'hooks'import { WizardLayoutWithoutAuth } from 'components/layouts'-import Panel from 'components/to-be-cleaned/Panel'+import Panel from 'components/ui/Panel'- import InformationBox from 'components/ui/InformationBox'import PasswordStrengthBar from 'components/ui/PasswordStrengthBar'- import { AddNewPaymentMethodModal } from 'components/interfaces/Billing'- import { NextPageWithLayout } from 'types'-- interface StripeCustomer {- paymentMethods: any- customer: any- error?: any- }-- const DisabledBox = () => {- return (- <div className="mt-4">- <InformationBox- icon={<IconAlertCircle className="text-white" size="large" strokeWidth={1.5} />}- defaultVisibility={true}- hideCollapse- title="Project creation is currently disabled"- description={- <div className="space-y-3">- <p className="text-sm leading-normal">- Our engineers are currently working on a fix. You can follow updates on{' '}- <a className="text-brand-900" href="https://status.supabase.com/">- https://status.supabase.com/- </a>- </p>- </div>- }- />- </div>- )- }-- async function fetchStripeAccount(stripeCustomerId: string) {- try {- const customer = await post(`${API_URL}/stripe/customer`, {- stripe_customer_id: stripeCustomerId,- })- if (customer.error) throw customer.error- return customer- } catch (error: any) {- return { error }- }- }+ import DisabledWarningDueToIncident from 'components/ui/DisabledWarningDueToIncident'+ import {+ FreeProjectLimitWarning,+ NotOrganizationOwnerWarning,+ EmptyPaymentMethodWarning,+ } from 'components/interfaces/Organization/NewProject'const Wizard: NextPageWithLayout = () => {const router = useRouter()diff --cc studio/pages/project/[ref]/settings/billing/index.tsxindex 5e670095f48,7218dcf1eff..517a4c6ccc3--- a/studio/pages/project/[ref]/settings/billing/index.tsx+++ b/studio/pages/project/[ref]/settings/billing/index.tsx@@@ -9,14 -9,12 +9,13 @@@ import { SettingsLayout } from 'componeimport LoadingUI from 'components/ui/Loading'import { PAYGUsage, Subscription, Invoices } from 'components/interfaces/Billing'-import ProjectUsage from 'components/to-be-cleaned/Usage'+import ProjectUsage from 'components/ui/Usage'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import { PaygStats } from 'components/interfaces/Billing/PAYGUsage/PAYGUsage.types'+import { Project } from '../../../../../types'import { NextPageWithLayout } from 'types'- type ProjectBillingProps = {} & any- const ProjectBilling: NextPageWithLayout = ({ store }: ProjectBillingProps) => {+ const ProjectBilling: NextPageWithLayout = () => {const { ui } = useStore()const project = ui.selectedProject