From 42208f15fff356da355076beb19f20fac3483602 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 11 Jul 2026 23:49:58 -0500 Subject: [PATCH] refac --- cptr/frontend/src/routes/+page.svelte | 63 +++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 9 deletions(-) diff --git a/cptr/frontend/src/routes/+page.svelte b/cptr/frontend/src/routes/+page.svelte index dea2d53..c095fcb 100644 --- a/cptr/frontend/src/routes/+page.svelte +++ b/cptr/frontend/src/routes/+page.svelte @@ -1132,6 +1132,9 @@ {#if continuation} + {@const unreadCount = + $workspaceList.find((workspace) => workspace.path === continuation.path) + ?.unread_count ?? 0}

{$t('home.continue')} @@ -1141,10 +1144,22 @@ onclick={() => quickOpen(continuation.path)} > - - {continuation.name} + + + {continuation.name} + + {#if unreadCount > 0} + + {new Intl.NumberFormat(undefined, { + notation: 'compact', + compactDisplay: 'short' + }).format(unreadCount)} + + {/if} workspace.path === item.path) + ?.unread_count ?? 0}