vectara / create-ui

Generate a working React codebase for a range of generative and semantic search UIs
https://vectara.github.io/create-ui
Apache License 2.0
69 stars 12 forks source link

Simplify plop script #19

Closed cjcenizal closed 10 months ago

cjcenizal commented 10 months ago

Closes https://github.com/vectara/create-ui/issues/1 Blocked on https://github.com/vectara/create-ui/pull/18

Changes

I redesigned the initial prompt to provide more info up-front and require fewer steps.

image

I also removed the question for the directory name. Instead, now the script generates a directory name by kebab-casing the app name.

image

Continuing from the default app name shown above, all questions default to values for the Feynman example. If this is weird maybe we can just add a branching question earlier that prompts the user to either generate a working example or to connect to their own data source. @mrderyk WDYT?

image

That would simplify things in the last step, which defaults to Feynman-oriented questions.

image

cjcenizal commented 10 months ago

@mrderyk I ended up implementing the branching question, which I think is easier to understand. If you select sample data then the prompts end and plop generates the app.

image