Skip to content

Restore Chainstats storage estimates - #30

Merged
easeev merged 2 commits into
mainfrom
codex/restore-chainstats-data
Nov 25, 2026
Merged

easeev merged 2 commits into
mainfrom
codex/restore-chainstats-data

Conversation

@easeev

@easeev easeev commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The retired calculator endpoint returns HTTP 404. Load dedicated full and archive node storage estimates from Chainstack’s public pricing catalog.

  • Show the largest estimate when the catalog lists multiple configurations for the same protocol, network, node type, and client.
  • Add the missing protocol logos and update brand names, client labels, and storage wording.
  • Verify all 55 catalog logos, 21 tests, and the production build.

🤖 Generated with Codex, cross-checked with Claude Code

Summary by CodeRabbit

  • New Features
    • Compare estimated storage for full and archive nodes by network and client, using the largest available estimate for each match.
    • Added coverage for additional blockchain networks, with updated names and logos.
  • Updates
    • Storage estimates now come from Chainstack’s public pricing catalog.
    • Updated page titles and descriptions to clarify that storage values are estimates and reflect the comparison.
    • Improved numbered testnet labels and updated the estimated node storage column heading.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The app now loads node storage estimates from Chainstack’s public pricing catalog. It groups eligible full and archive entries by protocol, network, client, and mode, keeping the largest estimate for each grouping. The change also updates protocol labels and icons, storage wording, page metadata, and catalog-check tooling.

Changes: Catalog-backed storage estimates

Layer / File(s) Summary
Catalog source and parsing
src/helpers/pricingCatalog.mjs, src/helpers/getData.js, src/helpers/getData.test.js, AGENTS.md, README.md
The loader fetches and parses the pricing catalog. The parser validates entries, groups them by protocol, network, client, and mode, and retains the largest storage estimate. Tests cover filtering and grouping. Documentation identifies the catalog source; the README also updates the documented Vite version.
Protocol names and storage labels
src/helpers/clientDisplay.js, src/helpers/protocolMetadata.json, src/helpers/protocolDisplay.js, src/helpers/protocolDisplay.test.js, src/components/TableWrapper/TableWrapper.jsx, src/components/Header/Header.jsx, index.html
The app adds client and protocol display names, updates search aliases, and formats numbered testnet labels. The storage heading, Header description, and page metadata now describe estimated node storage.
Protocol icon coverage
src/components/ProtocolIcon/*, scripts/check-protocol-icons.js, README.md
The icon map adds protocol assets and updates protocol keys. Styles and tests cover image assets. The check script reads protocols from the parsed catalog and warns about missing icons; the README describes the updated check.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant processData
  participant ChainstackPricingCatalog
  participant parsePricingCatalog
  processData->>ChainstackPricingCatalog: fetch pricing catalog URL
  ChainstackPricingCatalog-->>processData: catalog payload
  processData->>parsePricingCatalog: parse catalog data
  parsePricingCatalog-->>processData: grouped network data
Loading
Merge Risk: Minimal · up to 01704 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Restore Chainstats storage estimates" matches the main change. The PR replaces the retired calculator endpoint, which returned HTTP 404, with Chainstack's public pricing catalog as the data…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Restore Chainstats storage estimates" matches the main change. The PR replaces the retired calculator endpoint, which returned HTTP 404, with Chainstack's public pricing catalog as the data source for storage estimates. The title is specific and short, and it names the affected feature without listing files.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a81abad-26ae-4ec2-b296-b37407f25b5c
Commits

Reviewing files that changed from the base of the PR and between f16e95f and 0170411.

Files selected for processing: 1

  • src/components/TableWrapper/TableWrapper.jsx
Files skipped from review as they are similar to previous changes: 1

  • src/components/TableWrapper/TableWrapper.jsx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@easeev
easeev merged commit 4176e51 into main Nov 25, 2026
4 of 6 checks passed
@easeev
easeev deleted the codex/restore-chainstats-data branch November 25, 2026 16:16
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