Add separate BTC and USD monitoring pages#135
Merged
TaprootFreak merged 3 commits intodevelopfrom Feb 14, 2026
Merged
Conversation
Add /monitoring/btc page aggregating all BTC-equivalent holdings (onchain, LND, Lightning, cBTC, WBTC, WBTCe) with balance sheet. Add /monitoring/usd page aggregating all USD-equivalent holdings (JUSD, USDC, USDT across chains). Both pages fetch from existing /monitoring/data endpoint with frontend-only aggregation.
* Add historical balance charts for BTC and USD monitoring Add Chart.js line charts with 24h/7d/30d range selection to the BTC and USD monitoring pages. BTC shows net balance (holdings minus customer), USD shows total stablecoin holdings. Backend: new history endpoints with raw/hourly/daily aggregation using MSSQL FORMAT-based grouping and forward-fill merge logic. Includes Playwright e2e tests and mock server for chart rendering. * Add e2e tests for BTC/USD monitoring pages and navigation Cover table rendering, sats-to-BTC conversion, token balances, total calculations and cross-page navigation.
Load the last known balance record before the query time window to initialize forward-fill state. Prevents false zero values at the start of BTC and USD history charts when data sources have different update frequencies.
Danswar
approved these changes
Feb 14, 2026
This was referenced Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/monitoring/btcpage aggregating all BTC-equivalent holdings (onchain, LND, Lightning, cBTC, WBTC, WBTCe) with balance sheet showing holdings vs. customer balance/monitoring/usdpage aggregating all USD-equivalent holdings (JUSD, USDC, USDT) across Citrea, Ethereum, and Polygon/monitoring/dataendpoint, no backend changes neededTest plan
/monitoring/btcloads and shows correct BTC aggregation/monitoring/usdloads and shows correct USD aggregation/monitoringpage still works