diff --git a/packages/auth/src/db/utils.js b/packages/auth/src/db/utils.js index 40f5f05b70..eb3c593c12 100644 --- a/packages/auth/src/db/utils.js +++ b/packages/auth/src/db/utils.js @@ -157,7 +157,7 @@ const getScopedFullConfig = async function (db, { type, user, group }) { (a, b) => determineScore(a) - determineScore(b) )[0] - return scopedConfig.doc + return scopedConfig && scopedConfig.doc } async function getScopedConfig(db, params) { diff --git a/packages/builder/src/components/common/ConfigChecklist.svelte b/packages/builder/src/components/common/ConfigChecklist.svelte new file mode 100644 index 0000000000..9652222ba2 --- /dev/null +++ b/packages/builder/src/components/common/ConfigChecklist.svelte @@ -0,0 +1,54 @@ + + + +
+ +
+ +
+ Get Started Checklist + +
+
+ {#each Object.keys($admin.checklist) as checklistItem, idx} + +
+ {idx + 1}. {MESSAGES[checklistItem]} + +
+
+ {/each} +
+ + diff --git a/packages/builder/src/pages/_layout.svelte b/packages/builder/src/pages/_layout.svelte new file mode 100644 index 0000000000..ce10dc8c91 --- /dev/null +++ b/packages/builder/src/pages/_layout.svelte @@ -0,0 +1,29 @@ + + +{#if $admin.checklist} + +{/if} diff --git a/packages/builder/src/pages/admin/index.svelte b/packages/builder/src/pages/admin/index.svelte new file mode 100644 index 0000000000..3f7793da2a --- /dev/null +++ b/packages/builder/src/pages/admin/index.svelte @@ -0,0 +1,69 @@ + + +
+
+
+ Create an admin user + The admin user has access to everything in budibase. +
+
+ + + + + +
+
+
+ + diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte index de657a63ac..77f8b655f5 100644 --- a/packages/builder/src/pages/builder/_layout.svelte +++ b/packages/builder/src/pages/builder/_layout.svelte @@ -23,7 +23,6 @@