@@ -23,8 +23,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip
23
23
import { useDatabaseDeleteMutation } from '~/data/databases/database-delete-mutation'
24
24
import { useDatabaseUpdateMutation } from '~/data/databases/database-update-mutation'
25
25
import { useDatabasesQuery } from '~/data/databases/databases-query'
26
- import { usePublishWaitlistCreateMutation } from '~/data/publish -waitlist/publish -waitlist-create-mutation'
27
- import { useIsOnPublishWaitlistQuery } from '~/data/publish -waitlist/publish -waitlist-query'
26
+ import { useDeployWaitlistCreateMutation } from '~/data/deploy -waitlist/deploy -waitlist-create-mutation'
27
+ import { useIsOnDeployWaitlistQuery } from '~/data/deploy -waitlist/deploy -waitlist-query'
28
28
import { Database } from '~/lib/db'
29
29
import { cn } from '~/lib/utils'
30
30
import { useApp } from './app-provider'
@@ -214,28 +214,28 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
214
214
const { mutateAsync : updateDatabase } = useDatabaseUpdateMutation ( )
215
215
216
216
const [ isRenaming , setIsRenaming ] = useState ( false )
217
- const [ isPublishDialogOpen , setIsPublishDialogOpen ] = useState ( false )
217
+ const [ isDeployDialogOpen , setIsDeployDialogOpen ] = useState ( false )
218
218
219
- const { data : isOnPublishWaitlist } = useIsOnPublishWaitlistQuery ( )
220
- const { mutateAsync : joinPublishWaitlist } = usePublishWaitlistCreateMutation ( )
219
+ const { data : isOnDeployWaitlist } = useIsOnDeployWaitlistQuery ( )
220
+ const { mutateAsync : joinDeployWaitlist } = useDeployWaitlistCreateMutation ( )
221
221
222
222
return (
223
223
< >
224
224
< Dialog
225
- open = { isPublishDialogOpen }
225
+ open = { isDeployDialogOpen }
226
226
onOpenChange = { ( open ) => {
227
- setIsPublishDialogOpen ( open )
227
+ setIsDeployDialogOpen ( open )
228
228
} }
229
229
>
230
230
< DialogContent className = "max-w-2xl" >
231
231
< DialogHeader >
232
- < DialogTitle > Database publishing is in Private Alpha</ DialogTitle >
232
+ < DialogTitle > Deployments are in Private Alpha</ DialogTitle >
233
233
< div className = "py-2 border-b" />
234
234
</ DialogHeader >
235
- < h2 className = "font-medium" > What is database publishing ?</ h2 >
235
+ < h2 className = "font-medium" > What are deployments ?</ h2 >
236
236
< p >
237
- Publish your database so that it can be accessed outside the browser using any Postgres
238
- client:
237
+ Deploy your database to a serverless PGlite instance so that it can be accessed outside
238
+ the browser using any Postgres client:
239
239
</ p >
240
240
< CodeBlock
241
241
className = "language-curl bg-neutral-800"
@@ -247,11 +247,11 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
247
247
</ CodeBlock >
248
248
< div className = "flex justify-center items-center mt-3" >
249
249
< AnimatePresence initial = { false } >
250
- { ! isOnPublishWaitlist ? (
250
+ { ! isOnDeployWaitlist ? (
251
251
< button
252
252
className = "px-4 py-3 bg-black text-white rounded-md"
253
253
onClick = { async ( ) => {
254
- await joinPublishWaitlist ( )
254
+ await joinDeployWaitlist ( )
255
255
} }
256
256
>
257
257
Join Private Alpha
@@ -266,8 +266,8 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
266
266
initial = "hidden"
267
267
animate = "show"
268
268
>
269
- < h3 className = "font-medium mb-2" > 🎉 You're on the list !</ h3 >
270
- < p > We'll let you know when you have access to publish .</ p >
269
+ < h3 className = "font-medium mb-2" > 🎉 You're on the waitlist !</ h3 >
270
+ < p > We'll send you an email when you have access to deploy .</ p >
271
271
</ m . div >
272
272
) }
273
273
</ AnimatePresence >
@@ -364,14 +364,14 @@ function DatabaseMenuItem({ database, isActive }: DatabaseMenuItemProps) {
364
364
onClick = { async ( e ) => {
365
365
e . preventDefault ( )
366
366
367
- setIsPublishDialogOpen ( true )
367
+ setIsDeployDialogOpen ( true )
368
368
setIsPopoverOpen ( false )
369
369
} }
370
370
disabled = { user === undefined }
371
371
>
372
372
< Upload size = { 16 } strokeWidth = { 2 } className = "flex-shrink-0" />
373
373
374
- < span > Publish </ span >
374
+ < span > Deploy </ span >
375
375
</ Button >
376
376
< Button
377
377
className = "bg-inherit text-destructive-600 justify-start hover:bg-neutral-200 flex gap-3"
0 commit comments