Skip to content

refactor: hygiene — dead helpers and shared quote/settings paths - #9

Merged
harshabala merged 5 commits into
mainfrom
ref/hygiene-2026-10-06
Oct 9, 2026
Merged

harshabala merged 5 commits into
mainfrom
ref/hygiene-2026-10-06

Conversation

@harshabala

@harshabala harshabala commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Shared quote cache and settings helpers. MV3 permissions, pts_* keys, quote URLs/timeouts, and P&L math are unchanged.

Ticker symbols go through the original CRYPTO_ID_BY_SYMBOL table (normalizeCryptoId). Holdings still use the wider resolveCryptoCatalogEntry. Inputs the old ticker path left unknown (BTCUSD, bitcoinusd, Bitcoin) stay unknown on the ticker path. Local npm test 91 pass. CI test 20.x / 22.x green.

Draft; do not merge until reviewed.

harsha balakrishnan added 5 commits October 6, 2026 13:35
Remove the unused day-start helper and unused metrics writer, export the
content-lifecycle stage set once, and reuse one header lookup plus one
TTL cache path for Yahoo/Finnhub fetches.
Resolve crypto tape ids through the shared catalog, schedule the price
alarm from one helper, and write poll state through a single persist
path after quota pruning.
Drop unused tape/options helpers, share drop-zone and save wiring, and
reuse popup tab plus P&L display helpers without changing user-visible
copy or P&L math.
buildCryptoTickerItems used the wide catalog resolver, which accepted
names and usd suffixes the old table rejected. Restore normalizeCryptoId
for tickers. Holdings still use resolveCryptoCatalogEntry.
@harshabala
harshabala marked this pull request as ready for review October 9, 2026 05:37
@harshabala
harshabala merged commit c2e01b8 into main Oct 9, 2026
4 checks passed
@harshabala
harshabala deleted the ref/hygiene-2026-10-06 branch October 11, 2026 09:28
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