Add Bank accounts, transactions, and pending transfer views
CI / checks (push) Successful in 7m50s

This commit is contained in:
2026-10-13 11:50:26 -04:00
parent d6147077d7
commit e85dc58130
19 changed files with 1888 additions and 7 deletions
@@ -164,8 +164,13 @@
description="Stats appear after a game's end report arrives, provided this player was observed at round 2 or later. Games without an end report do not contribute."
/>
{/if}
<section aria-labelledby="bank-title">
<h2 id="bank-title">Bank</h2>
<section class="bank-card" aria-labelledby="bank-title">
<div class="bank-heading">
<h2 id="bank-title">Bank</h2>
<Button size="sm" href={`/bank?player=${encodeURIComponent(profile.guid)}`}
>View bank history</Button
>
</div>
<p>
<strong>{number.format(data.bank.balance)} points</strong> shared across Black Ops I and II.
</p>
@@ -184,7 +189,7 @@
></thead
>
<tbody
>{#each data.bank.entries as entry (entry.id)}
>{#each data.bank.entries.slice(0, 3) as entry (entry.id)}
<tr
><td>{$timeFormat.dateTime(entry.createdAt)}</td><td
>{serverTitle(entry.server)}</td
@@ -499,6 +504,22 @@
</Dialog>
<style>
.bank-card {
padding: var(--space-5);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
background: var(--surface);
}
.bank-heading {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-3);
}
.bank-heading h2 {
margin: 0;
}
.profile {
display: flex;
flex-direction: column;