From 66dc9192fb4887cdb840e4150528422303fa8e66 Mon Sep 17 00:00:00 2001 From: eleith Date: Wed, 4 Nov 2026 19:48:14 -0800 Subject: [PATCH 1/2] [web] show dashboard piece types in a table --- .changeset/dashboard-piece-types-table.md | 5 + apps/web/src/routes/(auth)/admin/+page.svelte | 144 +++++++++++++++--- apps/web/src/routes/(auth)/admin/page.test.ts | 30 +++- 3 files changed, 155 insertions(+), 24 deletions(-) create mode 100644 .changeset/dashboard-piece-types-table.md diff --git a/.changeset/dashboard-piece-types-table.md b/.changeset/dashboard-piece-types-table.md new file mode 100644 index 00000000..ef8259bd --- /dev/null +++ b/.changeset/dashboard-piece-types-table.md @@ -0,0 +1,5 @@ +--- +"@luzzle/web": patch +--- + +Show dashboard piece types in a compact table while retaining their names, counts, browse links and type-specific create actions. diff --git a/apps/web/src/routes/(auth)/admin/+page.svelte b/apps/web/src/routes/(auth)/admin/+page.svelte index 44569824..7ca2ca07 100644 --- a/apps/web/src/routes/(auth)/admin/+page.svelte +++ b/apps/web/src/routes/(auth)/admin/+page.svelte @@ -120,24 +120,35 @@ {#if data.pieceStats.byType.length}
-

pieces by type

-
- {#each data.pieceStats.byType as { type, count } (type)} - - {/each} +

pieces by type

+
+ + + + + + + + + + {#each data.pieceStats.byType as { type, count } (type)} + + + + + + {/each} + +
typepiecesaction
{type}{count.toLocaleString()} + + +
{/if} @@ -175,6 +186,11 @@ diff --git a/apps/web/src/routes/signin/+page.svelte b/apps/web/src/routes/signin/+page.svelte index 025ad47e..11ab205a 100644 --- a/apps/web/src/routes/signin/+page.svelte +++ b/apps/web/src/routes/signin/+page.svelte @@ -153,11 +153,13 @@