From db898918d5aad00f1ecef38869b64a6b2acfb766 Mon Sep 17 00:00:00 2001 From: Greg Richardson Date: Wed, 7 Aug 2024 10:14:48 -0500 Subject: [PATCH 1/6] feat: rename publish to deploy --- apps/postgres-new/components/sidebar.tsx | 34 +++++++++---------- .../deploy-waitlist-create-mutation.ts} | 8 ++--- .../deploy-waitlist-query.ts} | 8 ++--- apps/postgres-new/utils/supabase/db-types.ts | 4 +-- ...20240807150202_rename_publish_waitlist.sql | 4 +++ 5 files changed, 31 insertions(+), 27 deletions(-) rename apps/postgres-new/data/{publish-waitlist/publish-waitlist-create-mutation.ts => deploy-waitlist/deploy-waitlist-create-mutation.ts} (68%) rename apps/postgres-new/data/{publish-waitlist/publish-waitlist-query.ts => deploy-waitlist/deploy-waitlist-query.ts} (79%) create mode 100644 supabase/migrations/20240807150202_rename_publish_waitlist.sql diff --git a/apps/postgres-new/components/sidebar.tsx b/apps/postgres-new/components/sidebar.tsx index cc02240d..d092729c 100644 --- a/apps/postgres-new/components/sidebar.tsx +++ b/apps/postgres-new/components/sidebar.tsx @@ -23,8 +23,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip import { useDatabaseDeleteMutation } from '~/data/databases/database-delete-mutation' import { useDatabaseUpdateMutation } from '~/data/databases/database-update-mutation' import { useDatabasesQuery } from '~/data/databases/databases-query' -import { usePublishWaitlistCreateMutation } from '~/data/publish-waitlist/publish-waitlist-create-mutation' -import { useIsOnPublishWaitlistQuery } from '~/data/publish-waitlist/publish-waitlist-query' +import { useDeployWaitlistCreateMutation } from '~/data/deploy-waitlist/deploy-waitlist-create-mutation' +import { useIsOnDeployWaitlistQuery } from '~/data/deploy-waitlist/deploy-waitlist-query' import { Database } from '~/lib/db' import { cn } from '~/lib/utils' import { useApp } from './app-provider' @@ -214,28 +214,28 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) { const { mutateAsync: updateDatabase } = useDatabaseUpdateMutation() const [isRenaming, setIsRenaming] = useState(false) - const [isPublishDialogOpen, setIsPublishDialogOpen] = useState(false) + const [isDeployDialogOpen, setIsDeployDialogOpen] = useState(false) - const { data: isOnPublishWaitlist } = useIsOnPublishWaitlistQuery() - const { mutateAsync: joinPublishWaitlist } = usePublishWaitlistCreateMutation() + const { data: isOnDeployWaitlist } = useIsOnDeployWaitlistQuery() + const { mutateAsync: joinDeployWaitlist } = useDeployWaitlistCreateMutation() return ( <> { - setIsPublishDialogOpen(open) + setIsDeployDialogOpen(open) }} > - Database publishing is in Private Alpha + Deployments are in Private Alpha
-

What is database publishing?

+

What are deployments?

- Publish your database so that it can be accessed outside the browser using any Postgres - client: + Deploy your database to a serverless PGlite instance so that it can be accessed outside + the browser using any Postgres client:

- {!isOnPublishWaitlist ? ( + {!isOnDeployWaitlist ? (