postgres-new icon indicating copy to clipboard operation
postgres-new copied to clipboard

Cannot new database

Open warjiang opened this issue 1 year ago • 5 comments
trafficstars

Bug report

Describe the bug

I visit https://postgres.new/ and trys to new a database, but the button doesn't work 20240813173159_rec_

Is is a bug or something wrong with my laptop?

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Visit https://postgres.new/
  2. click new database button.

Expected behavior

Create database as expected

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows] macOS
  • Browser (if applies) [e.g. chrome, safari] edge & chrome
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

warjiang avatar Aug 13 '24 09:08 warjiang

@gregnr

warjiang avatar Aug 13 '24 09:08 warjiang

This isn't a bug.. When you click "New database" while you already have a database, it opens a new tab. Start a chat first to create a new database. Once you have the schema and diagram, click "New database" again, and it will open in a new tab. @warjiang

marawan1805 avatar Aug 13 '24 13:08 marawan1805

@marawan1805 is right, you are already on the new database - just need to start chatting (similar to ChatGPT UI).

But I think there's an opportunity to improve this. Some ideas:

  • disable the New Database button when you are on a fresh DB
  • add some sort of tooltip/popover explaining that you need to begin the conversation (we do focus the input, but this might not be enough)
  • something else?

gregnr avatar Aug 13 '24 13:08 gregnr

This isn't a bug.. When you click "New database" while you already have a database, it opens a new tab. Start a chat first to create a new database. Once you have the schema and diagram, click "New database" again, and it will open in a new tab. @warjiang

Thanks, I got it 👍 . The most import thing is that I should start from chart instead of click database to create db、 try to import data and make analysis.

warjiang avatar Aug 13 '24 16:08 warjiang

@marawan1805 is right, you are already on the new database - just need to start chatting (similar to ChatGPT UI).

But I think there's an opportunity to improve this. Some ideas:

  • disable the New Database button when you are on a fresh DB
  • add some sort of tooltip/popover explaining that you need to begin the conversation (we do focus the input, but this might not be enough)
  • something else?

What about use rrweb to make an interactive tutorial, we can use rrweb to record the show-case in the video , for the beginner, they can click next to have a solid experience of product of postgres-new

warjiang avatar Aug 13 '24 16:08 warjiang