This commit is contained in:
JCEEE
2026-09-14 21:29:10 +01:00
parent 49658bd791
commit f9fa99f5ff
5 changed files with 31 additions and 24 deletions
+12 -10
View File
@@ -306,6 +306,18 @@
announcement={disabled && !activating ? accessMessage(accessReason, isParent) : ''}
connected={!famStore.connectionDown}
>
{#snippet left()}
<button
class="shared-toggle"
class:on={sharedOn}
onclick={toggleShared}
aria-label="Toggle shared computer mode"
aria-pressed={sharedOn}
title={sharedOn ? 'Shared computer mode is ON' : 'Mark this as a shared computer'}
>
{@html monitorIcon}
</button>
{/snippet}
<button class="chat-toggle" onclick={() => chatStore.toggle()} aria-label="Open chat">
{@html chatIcon}
{#if chatStore.unread > 0}
@@ -323,16 +335,6 @@
></span>
</button>
{/if}
<button
class="shared-toggle"
class:on={sharedOn}
onclick={toggleShared}
aria-label="Toggle shared computer mode"
aria-pressed={sharedOn}
title={sharedOn ? 'Shared computer mode is ON' : 'Mark this as a shared computer'}
>
{@html monitorIcon}
</button>
</TopNav>
<main class="app-main" class:join-page={page.url.pathname.split('/')[2] === 'join'}>
<div class="page-wrap">
@@ -550,9 +550,10 @@
const name = bonusConfigs.find((b: BonusConfig) => b.id === r.bonusConfigId)?.name || r.label;
map.set(name, (map.get(name) || 0) + 1);
}
// Only badge recurring/multiple bonuses — a single occurrence (×1) is
// already obvious from the wallet, so it just adds noise here.
return [...map.entries()].map(([name, count]) => ({ name, count })).filter((t) => t.count > 1);
// Badge every bonus earned this week — including a single occurrence
// (×1): the hero is the child's only at-a-glance signal, so nothing
// earned should stay invisible here.
return [...map.entries()].map(([name, count]) => ({ name, count }));
});
let anyWeekBonuses = $derived(weekRewards.length > 0);