From e9683b326aee1a62b7e4ae1c9331e3bc0f6aceef Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Mon, 8 Jul 2024 03:33:59 +0200 Subject: [PATCH] refactor(web): show & hide people (#10933) --- .../assets/thumbnail/image-thumbnail.svelte | 4 +- .../manage-people-visibility.spec.ts | 108 +++++++++ .../manage-people-visibility.svelte | 162 ++++++++++++++ .../components/faces-page/show-hide.svelte | 81 ------- web/src/routes/(user)/people/+page.svelte | 205 +++--------------- web/src/test-data/factories/person-factory.ts | 12 + 6 files changed, 312 insertions(+), 260 deletions(-) create mode 100644 web/src/lib/components/faces-page/manage-people-visibility.spec.ts create mode 100644 web/src/lib/components/faces-page/manage-people-visibility.svelte delete mode 100644 web/src/lib/components/faces-page/show-hide.svelte create mode 100644 web/src/test-data/factories/person-factory.ts diff --git a/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte b/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte index 8e5b739001..73a63a4a8a 100644 --- a/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte +++ b/web/src/lib/components/assets/thumbnail/image-thumbnail.svelte @@ -19,7 +19,7 @@ export let hidden = false; export let border = false; export let preload = true; - export let eyeColor: 'black' | 'white' = 'white'; + export let hiddenIconClass = 'text-white'; let complete = false; let img: HTMLImageElement; @@ -54,7 +54,7 @@ {#if hidden}
{$t('show_and_hide_people')}
+({people.length.toLocaleString($locale)})
+{$t('show_and_hide_people')}
-({countTotalPeople.toLocaleString($locale)})
-