mirror of
https://github.com/Sea-Haven-Industries/payments-dashboard.git
synced 2026-09-30 08:53:12 +00:00
|
Some checks are pending
Deploy / deploy (push) Waiting to run
* feat: add cash-position tile from boa_balance snapshots to App Home Read the latest previous-day boa_balance snapshot (authoritative) to display current ledger and available balance on the App Home summary bar. Optionally surfaces today's intraday snapshot as provisional. Walks backward up to 14 days to handle weekend/holiday gaps, using targeted GetItem by computed key instead of a scan. Refs: #77 * fix: null-guard cash-position tile, add error logging, drop UTC date skew and serial GetItems - Null-guard current_ledger on the authoritative cash-position tile so a missing ledger renders 'Not available' instead of the false '/bin/bash.00' - Log GetCommand failures with console.error + logSafe instead of silent catch, matching the rest of the codebase - Derive dates from local midnight instead of toISOString UTC, so the current-day lookup doesn't miss from 8pm ET to midnight - Fetch all 14 balance keys in parallel with Promise.allSettled instead of 14 serial GetCommands; start previous-day walk at i=1 since today's previous-day snapshot can't exist until tomorrow - Use Item.as_of_date directly instead of a synthetic _asOfDate field - Remove _asOfDate from test fixtures; add test for the null-ledger guard --------- Co-authored-by: amoussa1229 <166072409+amoussa1229@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| boaRecon.test.js | ||
| boaReconIntraday.test.js | ||
| postingDate.test.js | ||
| slackAppHome.test.js | ||