From 4d133fa4301b5a122a9019411191887981f4f2fa Mon Sep 17 00:00:00 2001 From: Till JS Date: Fri, 10 Apr 2026 19:28:37 +0200 Subject: [PATCH] fix(mana/web): resolve 14 pre-existing svelte-check type errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sweep of type errors accumulated from parallel development that were blocking the production build's pre-push svelte-check gate. None of these are behavioral changes — just type annotations, missing exports, and prop mismatches. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../page-carousel/PageCarousel.svelte | 2 ++ .../components/page-carousel/PageShell.svelte | 1 + .../lib/modules/zitare/views/DetailView.svelte | 3 +++ .../apps/web/src/routes/(app)/who/+page.svelte | 3 ++- .../(app)/zitare/categories/+page.svelte | 18 ++++++++++++++++++ .../zitare/category/[category]/+page.svelte | 3 +++ 6 files changed, 29 insertions(+), 1 deletion(-) diff --git a/apps/mana/apps/web/src/lib/components/page-carousel/PageCarousel.svelte b/apps/mana/apps/web/src/lib/components/page-carousel/PageCarousel.svelte index a455ca30a..db8ed4fb8 100644 --- a/apps/mana/apps/web/src/lib/components/page-carousel/PageCarousel.svelte +++ b/apps/mana/apps/web/src/lib/components/page-carousel/PageCarousel.svelte @@ -12,6 +12,7 @@ defaultWidth?: number; showPicker: boolean; onReorder: (fromId: string, toId: string) => void; + onRestore?: (id: string) => void; onMaximize?: (id: string) => void; onRemove?: (id: string) => void; onTogglePicker: () => void; @@ -26,6 +27,7 @@ defaultWidth = 480, showPicker, onReorder, + onRestore: _onRestore, onMaximize: _onMaximize, onRemove: _onRemove, onTogglePicker, diff --git a/apps/mana/apps/web/src/lib/components/page-carousel/PageShell.svelte b/apps/mana/apps/web/src/lib/components/page-carousel/PageShell.svelte index 142c892fa..229c4b6e8 100644 --- a/apps/mana/apps/web/src/lib/components/page-carousel/PageShell.svelte +++ b/apps/mana/apps/web/src/lib/components/page-carousel/PageShell.svelte @@ -20,6 +20,7 @@ heightPx?: number; maximized?: boolean; onClose: () => void; + onMinimize?: () => void; onMaximize?: () => void; onResize?: (widthPx: number, heightPx?: number) => void; onMoveLeft?: () => void; diff --git a/apps/mana/apps/web/src/lib/modules/zitare/views/DetailView.svelte b/apps/mana/apps/web/src/lib/modules/zitare/views/DetailView.svelte index 6c75fe8e8..10db4a7b5 100644 --- a/apps/mana/apps/web/src/lib/modules/zitare/views/DetailView.svelte +++ b/apps/mana/apps/web/src/lib/modules/zitare/views/DetailView.svelte @@ -34,6 +34,9 @@ mut: 'Mut', hoffnung: 'Hoffnung', natur: 'Natur', + humor: 'Humor', + wissenschaft: 'Wissenschaft', + kunst: 'Kunst', }; $effect(() => { diff --git a/apps/mana/apps/web/src/routes/(app)/who/+page.svelte b/apps/mana/apps/web/src/routes/(app)/who/+page.svelte index 19a1554b3..d9b6b4d8a 100644 --- a/apps/mana/apps/web/src/routes/(app)/who/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/who/+page.svelte @@ -1,4 +1,5 @@ @@ -6,4 +7,4 @@ Who? — Mana - + goto(`/who/${view}`)} goBack={() => history.back()} params={{}} /> diff --git a/apps/mana/apps/web/src/routes/(app)/zitare/categories/+page.svelte b/apps/mana/apps/web/src/routes/(app)/zitare/categories/+page.svelte index e13c1bea7..1da1fe889 100644 --- a/apps/mana/apps/web/src/routes/(app)/zitare/categories/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/zitare/categories/+page.svelte @@ -69,6 +69,24 @@ labelKey: 'categories.nature', count: getQuotesByCategory('natur').length, }, + humor: { + icon: '😄', + gradient: 'from-amber-400 to-yellow-500', + labelKey: 'categories.humor', + count: getQuotesByCategory('humor').length, + }, + wissenschaft: { + icon: '🔬', + gradient: 'from-cyan-500 to-blue-600', + labelKey: 'categories.science', + count: getQuotesByCategory('wissenschaft').length, + }, + kunst: { + icon: '🎨', + gradient: 'from-fuchsia-500 to-pink-600', + labelKey: 'categories.art', + count: getQuotesByCategory('kunst').length, + }, }; diff --git a/apps/mana/apps/web/src/routes/(app)/zitare/category/[category]/+page.svelte b/apps/mana/apps/web/src/routes/(app)/zitare/category/[category]/+page.svelte index e7005d646..67a0a5611 100644 --- a/apps/mana/apps/web/src/routes/(app)/zitare/category/[category]/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/zitare/category/[category]/+page.svelte @@ -56,6 +56,9 @@ mut: 'categories.courage', hoffnung: 'categories.hope', natur: 'categories.nature', + humor: 'categories.humor', + wissenschaft: 'categories.science', + kunst: 'categories.art', };