diff --git a/packages/builder/src/pages/builder/app/[application]/data/_components/CreateExternalDatasourceModal/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/_components/CreateExternalDatasourceModal/index.svelte index 59ea8ce1d1..1511bf990e 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/_components/CreateExternalDatasourceModal/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/_components/CreateExternalDatasourceModal/index.svelte @@ -22,7 +22,11 @@ store.stage === null ? modal?.hide() : modal?.show() if (store.finished) { - goto(`./datasource/${store.datasource._id}`) + const queryString = + store.datasource.plus || store.datasource.source === "REST" + ? "" + : "?promptQuery=true" + goto(`./datasource/${store.datasource._id}${queryString}`) } } diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_components/PromptQueryModal.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_components/PromptQueryModal.svelte new file mode 100644 index 0000000000..9e7f04fd78 --- /dev/null +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/_components/PromptQueryModal.svelte @@ -0,0 +1,61 @@ + + + + goto(`../../query/new/${params["datasourceId"]}`)} + showCloseIcon={false} + > +
+ + You're ready to query your data! +
+
+ Your database is connected and ready to use. + Create a query using Create, Read, + Update + and Delete functions. +
+
+
+ + diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte index b0464e28ee..5b1715c46f 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte @@ -9,6 +9,7 @@ import RestHeadersPanel from "./_components/panels/Headers.svelte" import RestAuthenticationPanel from "./_components/panels/Authentication/index.svelte" import RestVariablesPanel from "./_components/panels/Variables/index.svelte" + import PromptQueryModal from "./_components/PromptQueryModal.svelte" let selectedPanel = null let panelOptions = [] @@ -41,6 +42,8 @@ } + +