Skip to content

feat(taxes): fidelity taxes page with the household settings - #442

Merged
daggerok merged 1 commit into
mainfrom
feat/taxes-page
Dec 3, 2026
Merged

daggerok merged 1 commit into
mainfrom
feat/taxes-page

Conversation

@daggerok

@daggerok daggerok commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What

  • New page Fidelity Taxes (RU "Налоги Fidelity"), after Fidelity Reports; its tab shows only when Fidelity's tax summary has a year. The Fidelity accounts strip chooses the accounts, only the taxable ones count
    • Tax added by the investments: federal + New Jersey = total, effective rate, the federal ordinary and qualified rates, the NJ rate, "One more dollar of short-term gain costs X%", the "YTD as of ..., before the 1099s; an estimate, not tax advice" line, the Form 1116 and NIIT notes, a note when a year has no rules of its own; year pills when Fidelity has more than one year (saved per page as taxYear)
    • Room before the next rate: three bars (ordinary income before 22%, qualified dividends and long-term gains at 0%, NJ before its next rate) with the dollars left; a line already passed says so and turns amber
    • Income like Fidelity's Tax Info page (ordinary dividends with qualified and non-qualified, capital gain distributions, interest, Treasury interest apart, other income, realized short and long term, foreign tax paid, federal withheld, margin interest, section 199A); zero lines dimmed but shown; short hints on qualified, Treasury interest, losses and the foreign credit; ⤢ shows the same lines per account plus Total
    • Empty state keeps the three cards and the year pills and says why: no taxable account shown, the year read for other accounts only, or the script older than 0.1.89
  • ⚙️ Settings -> Taxes section: gross wages, pre-tax 401(k), other pre-tax, NJ dependents, deduction standard or itemized with its total; filing status and state shown as fixed text; each line names the source of its default. Stored under accounts.taxes (app/tax-household.ts: checked field by field, a bad field falls back to its default alone), carried by Export and Import, kept by Reset view
  • Pure helpers: app/taxes-page.ts (taxYears, shownYear, taxPage, roomRows) on top of the merged engine app/taxes.ts; components only draw
  • Reusable pieces at their first repeat: ui/FillBar.tsx (the Income tile progress bar and the allocation bars switched to it), ui/Empty.tsx (Summary switched to it), ui/AmountField.tsx; format.ts rate() prints a bracket rate as written (22%, 5.525%); BalanceHead free drops the balance cards' min height where no chart follows

Why

Owner 2026-12-03: the room left before the next rate and the tax the investments add, on line and constantly updating in the viewer (plan F20, the page section)

Checks

  • bun test: 597 pass, 0 fail (new: tax-household, taxes-page, Taxes.test.tsx render smoke with happy-dom, prefs, transfer, format)
  • bun run build the repo's local way: APP_VERSION=0.1.89 npx parcel build --no-cache --no-source-maps --dist-dir ./.check/out, DIST=.check/out bun src/build/postbuild.ts, then rm -rf .check
  • .claude/tools/etfs/tc/check.sh "$PWD" <every new or changed .ts/.tsx> prints nothing
  • git diff --check clean
  • Looked in Chrome on localhost:1237 with made-up accounts and amounts (desktop, a 390 px phone frame, the empty state, RU, the ⤢ table, Settings -> Taxes); the seed was removed afterwards

@daggerok
daggerok merged commit babb0b3 into main Dec 3, 2026
1 check passed
@daggerok
daggerok deleted the feat/taxes-page branch December 3, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant