Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions src/viewer/ui/AdpSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ export const AdpSummary = memo(function AdpSummary({ store, hidden, today }: { s
</div>

<div className="gap-4 md:columns-2 lg:gap-6 xl:columns-1">
{/* the right column in the owner's order (2026-12-01): Fund, Contributions, Dividends and earnings, Allocation by
tax, Allocation by fund. The fund held now, and its official documents (owner: "move plate fund on top";
its facts "is not allocation"); (owner: "official info from official site of that fund") */}
{/* the right column in the owner's order (2026-12-01, 2026-12-03): Fund, Contributions, Allocation by tax,
Allocation by fund, Dividends and earnings. The fund held now, and its official documents (owner: "move plate
fund on top"; its facts "is not allocation"); (owner: "official info from official site of that fund") */}
{holdings.map((h) => {
const info = fundInfo(h.fund);
return (
Expand Down Expand Up @@ -173,16 +173,6 @@ export const AdpSummary = memo(function AdpSummary({ store, hidden, today }: { s
})()}
</Card>

{/* the fund's dividends and earnings, reinvested in it (the fund pays no cash) */}
<Card id="adp-income" pulse={mark(Array.from(sums.values()).map((v) => v.dividends))} title={t('Dividends and earnings')} lead={chips('adpIncomeSpans')}
expand={<AdpHistoryTable rows={incomeRows} resetKey={hidden.join()} name="adp-income-history" head={(shown) => <HistoryTotals shown={shown} />} />}>
<div className="flex flex-wrap justify-between gap-x-6 gap-y-3" data-adp-income>
{incomeSpans.map((s) => ({ k: s, name: spanName(s), v: sums.get(s)!.dividends })).map((x) => (
<div key={x.k} className="flex-auto"><div className="text-xs text-slate-500 dark:text-slate-400">{x.name}</div><div className="num text-xl font-semibold">{usd(x.v)}</div></div>
))}
</div>
</Card>

{/* the money put in since the plan began by its tax advantage: my Roth money tax-free, my pre-tax money and the
employer's tax-deferred (owner 2026-12-01: "what we have allocated from money perspective by tax advantage"); the
sources chosen in the navbar */}
Expand All @@ -196,6 +186,17 @@ export const AdpSummary = memo(function AdpSummary({ store, hidden, today }: { s
<Allocation id="adp-allocation" slices={slices} />
</Card>

{/* the fund's dividends and earnings, reinvested in it (the fund pays no cash), the last card
(owner 2026-12-03: "move dividends to bottom") */}
<Card id="adp-income" pulse={mark(Array.from(sums.values()).map((v) => v.dividends))} title={t('Dividends and earnings')} lead={chips('adpIncomeSpans')}
expand={<AdpHistoryTable rows={incomeRows} resetKey={hidden.join()} name="adp-income-history" head={(shown) => <HistoryTotals shown={shown} />} />}>
<div className="flex flex-wrap justify-between gap-x-6 gap-y-3" data-adp-income>
{incomeSpans.map((s) => ({ k: s, name: spanName(s), v: sums.get(s)!.dividends })).map((x) => (
<div key={x.k} className="flex-auto"><div className="text-xs text-slate-500 dark:text-slate-400">{x.name}</div><div className="num text-xl font-semibold">{usd(x.v)}</div></div>
))}
</div>
</Card>

</div>
</div>
);
Expand Down