Repository navigation
feat(dashboard): add historical oracle-staleness view on protocol detail page - #151
Conversation
…ail page - Calculate historical oracle staleness percentage and counts from past runs - Add OracleStalenessView component visualizing staleness frequency and run ratio - Place view on protocol detail page distinct from current-state status pill - Add unit tests verifying staleness calculation against documented scenarios Closes stenion-lab#132
|
@Ranjeet2063 is attempting to deploy a commit to the Oyibe's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @Jagadeeshftw / maintainers — this PR is ready for review. All implementation is complete. Could you please review when you get a chance? Happy to address any feedback promptly. 🙏 |
Hello @Ranjeet2063 |
dubemoyibe-star
left a comment
There was a problem hiding this comment.
Nice work but CI is failing on the format step
Run pnpm run format to fix
|
Formatted with Prettier as requested! The format check in CI should pass cleanly now. |
There was a problem hiding this comment.
CI still fails but on the build step @Ranjeet2063
Ensure CI is green locally before pushing
Star the repo while you are at it
|
Hi @dubemoyibe-star — fixed the build step! 🛠️
Verified 100% locally with Also starred the repo as requested! ⭐ Ready for your review and merge. Thank you! |
dubemoyibe-star
left a comment
There was a problem hiding this comment.
Nice Work
Merging!!!!!!!!
Summary of Changes
Adds a historical oracle-staleness view to the protocol detail page to represent how often a protocol's oracle price feeds have been stale across observed indexer scoring runs.
Calculation Logic (
dashboard/app/lib/oracle-staleness.ts):oracleSafetyfactor and sub-signals likepriceFreshness).priceFreshness < 50orvalue < 50).UI Component (
dashboard/components/oracle-staleness-view.tsx):safe,accent, orwarn).Integration (
dashboard/app/protocol/[id]/page.tsx):<Reveal delay={0.09}>.Test Suite (
dashboard/app/lib/oracle-staleness.test.ts):Closes #132