Skip to content

Show parquet export size and DB size on landing page#58

Open
kuzdogan wants to merge 1 commit intostagingfrom
feat/dataset-sizes
Open

Show parquet export size and DB size on landing page#58
kuzdogan wants to merge 1 commit intostagingfrom
feat/dataset-sizes

Conversation

@kuzdogan
Copy link
Copy Markdown
Member

Summary

  • Fetches https://export.sourcify.dev/v2/stats.json (published by the export job) and renders two new headline figures in the #verified-contracts section alongside the contract count:
    • Parquet export size — total compressed size of all parquet files
    • Database size — live Postgres DB size
  • Each figure has an info icon (FiInfo) that opens a react-tooltip with a per-table breakdown:
    • Parquet tooltip: explains daily export + zstd compression, links to docs, shows Table / Size / Files table.
    • DB tooltip: explains live Postgres sizes including indexes/TOAST, shows Table / Size table.
  • On fetch error the two figures are hidden gracefully — the existing contract count is unaffected.

Requires verifier-alliance/parquet-export#17 to be merged and deployed first so that v2/stats.json is published.

Test plan

  • npm start, scroll to #verified-contracts, confirm both figures appear with correct values.
  • Hover/click the info icons and verify tooltip content and per-table tables.
  • Click the "Learn more →" link in the parquet tooltip; verify it opens the correct docs page.
  • Throttle export.sourcify.dev to offline in devtools; confirm the two figures disappear without affecting the contract count.

🤖 Generated with Claude Code

Fetches v2/stats.json from export.sourcify.dev and renders two headline
figures (parquet export size, Postgres DB size) in the contract stats
section. Each figure has an info tooltip breaking down per-table sizes;
the parquet tooltip also explains the daily export + zstd compression
and links to the docs.

Requires verifier-alliance/parquet-export#<PR> to be merged first so
that v2/stats.json is published.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 13, 2026

Deploy Preview for sourcify-ui ready!

Name Link
🔨 Latest commit 032c08a
🔍 Latest deploy log https://app.netlify.com/projects/sourcify-ui/deploys/69dcd5873988b70008404ac6
😎 Deploy Preview https://deploy-preview-58--sourcify-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kuzdogan kuzdogan moved this to Sprint - Needs Review in Sourcify Public Apr 13, 2026
@manuelwedler
Copy link
Copy Markdown
Member

waiting with review until verifier-alliance/parquet-export#17 was deployed and run

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.

2 participants