Skip to content

Conversation

cprussin
Copy link
Collaborator

Summary

Include the live count of price feeds as a final data point after the kpi history metrics in the insights hub Overview tab metric cards.

Rationale

Previously, we only displayed the historical values for the number of price feeds. However, since we're adding price feeds fairly fast, this means there's an obvious discrepancy between the last data point for the number of feeds which shows up in the metric card in the Overview page and the much higher number of feeds that you see on the price feeds page.

This PR solves the problem by including a data point for today's value along with the KPI metrics.

TBH it's a bit janky because this means the amount of time between the last two data points much less than between any other two points -- all other points will have a month between them but the last point could come as little as a few days after the prior point. However, the Overview page is a bit of a stopgap which we don't expect to live long so it should be OK to hold us over for now.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@cprussin cprussin requested a review from a team as a code owner February 28, 2025 00:06
@linear
Copy link

linear bot commented Feb 28, 2025

@vercel
Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:06am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:06am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:06am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:06am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Feb 28, 2025 0:06am
entropy-debugger ⬜️ Ignored (Inspect) Feb 28, 2025 0:06am

@cprussin cprussin merged commit 4c1dbf6 into main Feb 28, 2025
10 checks passed
@cprussin cprussin deleted the cprussin/ui-81-add-live-metrics-to-kpis-on-overview-page branch February 28, 2025 00:15
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