Days in risk of developing an activity history hole. (days with one activity)
{#if user === undefined} Please log in to view this page. {:else} {#await activityHistoryData} Loading ... {:then activities} {#if activities === undefined} Loading ... {:else} {@const highestActivity = Math.max(...activities.map((activity) => activity.amount))}
{#each activities as activity}
(baseHue = Math.floor(Math.random() * 360))} on:keydown={() => {}} role="button" tabindex="0" title={`Date: ${new Date(activity.date * 1000).toLocaleDateString()}\nAmount: ${ activity.amount }`} /> {/each}

Generate grid image

{/if} {/await} {/if}