diff --git a/src/lib/components/composites/NamedList.svelte b/src/lib/components/composites/NamedList.svelte index 7e95a04c..ade06413 100644 --- a/src/lib/components/composites/NamedList.svelte +++ b/src/lib/components/composites/NamedList.svelte @@ -1,14 +1,20 @@ -
-

{listName}

+
+ {#if showNumberOfListItems} +

{listName} ({items.length})

+ {:else} +

{listName}

+ {/if} -
+ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index eba2b8f0..4be60ad6 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -18,7 +18,7 @@

Open Reviews

- + {#snippet ListItemComponent(componentData)} {/snippet} diff --git a/src/routes/+page.ts b/src/routes/+page.ts index 72f90cf2..e1dd1cda 100644 --- a/src/routes/+page.ts +++ b/src/routes/+page.ts @@ -93,6 +93,24 @@ export const load: PageLoad = async () => { stage: 1, stageProgress: 82, }, + { + project: createProject({ id: 3, name: "Demo Project 2" }), + members: [Users.johnDoe, Users.janeDoe], + stage: 2, + stageProgress: 70, + }, + { + project: createProject({ id: 4, name: "Demo Project 3" }), + members: [Users.johnDoe, Users.janeDoe], + stage: 2, + stageProgress: 70, + }, + { + project: createProject({ id: 5, name: "Demo Project 4" }), + members: [Users.johnDoe, Users.janeDoe], + stage: 2, + stageProgress: 70, + }, ]; return { projectMetadata: projectMetadataExamples };