From 4ccd7f12b3af1c36eac5f26b76376dd098d7e871 Mon Sep 17 00:00:00 2001 From: Robert Goniszewski Date: Mon, 23 Sep 2024 16:38:15 +0200 Subject: [PATCH 01/24] chore: release v0.4.1-hotfix.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0f14261..1996435 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grimoire", - "version": "0.4.1-hotfix.2", + "version": "0.4.1-hotfix.3", "description": "Bookmark manager for the wizards 🧙", "author": "Robert Goniszewski ", "main": "./build/index.js", From 69192b343197d0994da03eb2e9f894c8ddcaf7c0 Mon Sep 17 00:00:00 2001 From: Robert Goniszewski <43510122+goniszewski@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:39:02 +0200 Subject: [PATCH 02/24] fix(data-migration): early return if no categories have parents (#128) Signed-off-by: Robert Goniszewski --- src/lib/utils/data-migration/migrate-data.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/utils/data-migration/migrate-data.ts b/src/lib/utils/data-migration/migrate-data.ts index d922943..8137380 100644 --- a/src/lib/utils/data-migration/migrate-data.ts +++ b/src/lib/utils/data-migration/migrate-data.ts @@ -130,6 +130,10 @@ async function migrateCategories( // Update parentId of categories that have a parentId const categoriesWithParentId = categories.filter((c) => c.parent); + if (categoriesWithParentId.length === 0) { + return mappedIds; + } + await targetDbClient .update(categorySchema) .set({ From cd3fe87a3354553d6873ca12da4e2b1ba73970b1 Mon Sep 17 00:00:00 2001 From: Robert Goniszewski <43510122+goniszewski@users.noreply.github.com> Date: Fri, 27 Sep 2024 22:01:51 +0200 Subject: [PATCH 03/24] Closes #130 (#131) Signed-off-by: Robert Goniszewski --- src/routes/signup/+page.svelte | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/routes/signup/+page.svelte b/src/routes/signup/+page.svelte index 9d872ff..b3dcde1 100644 --- a/src/routes/signup/+page.svelte +++ b/src/routes/signup/+page.svelte @@ -1,13 +1,13 @@ -
+
{#if $page.data.signupDisabled} -
+

Sign up

Sign up is currently disabled. Please contact the administrator if you want to sign up. @@ -20,8 +20,7 @@ return async ({ result }) => { await applyAction(result); }; - }} - > + }}>

+ class="input input-bordered w-full max-w-xs" />