fix(dashboard): stat cards, trend percentages, rolling windows + Render deploy#262
Open
BigBen-7 wants to merge 1 commit into
Open
fix(dashboard): stat cards, trend percentages, rolling windows + Render deploy#262BigBen-7 wants to merge 1 commit into
BigBen-7 wants to merge 1 commit into
Conversation
….yaml FeeCharged serde fix: - Horizon fee_stats returns "mode" not "avg"; serde was failing the whole /fees/current parse → BASE FEE and AVG FEE always showed blank - Add #[serde(rename = "mode")] to FeeCharged::avg; update test fixtures Rolling window durations: - Config had 1h/6h/24h but UI labels 5min/1h/24h → all windows returned identical averages and trend showed 0.0% always - Changed to minutes(5)/hours(1)/hours(24) to match UI labels - Update integration test: add point inside the 5-min window config.rs PORT fallback: - Backend now reads PORT env as fallback for API_PORT; Render injects PORT=10000 automatically, no override needed in render.yaml render.yaml (new): - Blueprint: backend (Docker/Rust), frontend (Next.js), keep-alive cron - Cron pings /health every 14 min to prevent free-tier cold starts - Frontend BACKEND_URL references backend service via fromService Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Fixes three real-data issues discovered after #67 merged, plus Render Blueprint.
Bugs Fixed
1. BASE FEE / AVG FEE always blank
FeeCharged was using
avgas the serde field name, but Horizon fee_statsreturns "mode" — the whole /fees/current parse silently failed every time,
leaving both stat cards empty.
Fix:
#[serde(rename = "mode")]on FeeCharged::avg.2. Trend panel showing 0.0% always
InsightsConfig had windows of 1h/6h/24h, but the UI labels them 5min/1h/24h.
Because the windows were too wide, all three buffers held identical data on any
busy network, making all rolling averages equal and all trend deltas 0.0%.
Fix: Changed to minutes(5)/hours(1)/hours(24).
3. Integration test updated
Added a data point within the new 5-minute short-term window so the engine
integration test still passes.
New: Render Blueprint
render.yaml deploys the full stack to Render.com:
Generated with Claude Code