From 7c7e5eb01064546e7a168545b591aeca2c15a972 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 26 Mar 2026 20:43:31 +0100 Subject: [PATCH] feat(zitare): add favorites count badge and respect display settings Show a count badge next to the favorites title and use the global display settings for category/source visibility on quote cards. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../web/src/routes/(app)/favorites/+page.svelte | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/zitare/apps/web/src/routes/(app)/favorites/+page.svelte b/apps/zitare/apps/web/src/routes/(app)/favorites/+page.svelte index a71e25b76..b09f2f04f 100644 --- a/apps/zitare/apps/web/src/routes/(app)/favorites/+page.svelte +++ b/apps/zitare/apps/web/src/routes/(app)/favorites/+page.svelte @@ -4,6 +4,7 @@ import { authStore } from '$lib/stores/auth.svelte'; import { favoritesStore } from '$lib/stores/favorites.svelte'; import { getQuoteById, getQuoteText, type Quote } from '@zitare/content'; + import { zitareSettings } from '$lib/stores/settings.svelte'; import QuoteCard from '$lib/components/QuoteCard.svelte'; import { ContextMenu, type ContextMenuItem } from '@manacore/shared-ui'; @@ -74,7 +75,14 @@
-

{$_('favorites.title')}

+
+

{$_('favorites.title')}

+ {#if authStore.isAuthenticated && favoriteQuotes.length > 0} + + {favoriteQuotes.length} + + {/if} +
{#if !authStore.isAuthenticated} @@ -132,7 +140,11 @@ {#each favoriteQuotes as quote (quote.id)}
handleContextMenu(e, quote)}> - +
{/each}