Skip to content

fix(adp): leave out a day mykplan has not priced yet - #428

Merged
daggerok merged 1 commit into
mainfrom
fix/adp-unpriced-day
Dec 3, 2026
Merged

daggerok merged 1 commit into
mainfrom
fix/adp-unpriced-day

Conversation

@daggerok

@daggerok daggerok commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What changed

  • priced in shared/adp/mykplan.ts: a fund balance with units but a price of 0 is a day mykplan has not priced yet, not a balance
  • Left out in all three places balances come in: the history page (parseWindow), the sheet (adpStoreFromRows) and the cached store (parseAdpStore); a fund sold out (no units, $0) stays
  • Userscript 0.1.88 (the page parser is part of it)

Why
mykplan's statement for the first days of December gave the fund a price of 0.000000 with every unit still held, a Market Value Change of minus the whole balance and an Ending Balance of $0.00. The ADP 401k chart fell to $0 and Fund allocation went empty. The viewer reads the sheet through the same filter, so the chart is right again without reinstalling the script; 0.1.88 stops writing such days

How it was checked

  • bun test (all pass, new test with a made-up December page, a sheet and a cached store holding the unpriced day), the type check of the changed files (no errors), parcel build, bun run userscript, git diff --check

mykplan answered a fund with all its units, a price of 0 and an ending balance of $0 for a day it had not priced, and the 401k chart fell to $0 and Fund allocation went empty. A balance with units and no price is now left out on the page, the sheet and the cached store, so the line keeps its last priced day; a fund sold out stays. Userscript 0.1.88
@daggerok
daggerok merged commit ebb6e0a into main Dec 3, 2026
1 check passed
@daggerok
daggerok deleted the fix/adp-unpriced-day branch December 3, 2026 09:00
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