Skip to content

fix(ipfs2filecoin): derive the $2.50 rate from USD_PER_TIB_MONTH_PER_COPY - #2

Merged
gmoranxyz merged 1 commit into
ipfs2filecoin-design-reviewfrom
claude/filecoin-cloud-pr-1-ptd0g2
Aug 5, 2026
Merged

fix(ipfs2filecoin): derive the $2.50 rate from USD_PER_TIB_MONTH_PER_COPY#2
gmoranxyz merged 1 commit into
ipfs2filecoin-design-reviewfrom
claude/filecoin-cloud-pr-1-ptd0g2

Conversation

@gmoranxyz

Copy link
Copy Markdown
Owner

📝 Description

Follow-up to #1, which called out this exact gap in its description: the $2.50 per TiB per month per copy rate was restated as a string literal in three places instead of being derived from USD_PER_TIB_MONTH_PER_COPY, the same constant the comparison table and cost estimator already use. That left those three spots free to silently drift from the actual priced rate if the constant ever changed.

  • Type: Bug fix

🛠️ Key Changes

  • constants/seo.ts: the page's meta description now builds its rate mention from formatUsd(USD_PER_TIB_MONTH_PER_COPY) instead of a hardcoded '$2.50' string.
  • data/reasons.ts: the "A fraction of pinning-service pricing" reason card description is now a template literal driven by the same constant.
  • page.tsx: the rate footnote under the comparison table now interpolates {formatUsd(USD_PER_TIB_MONTH_PER_COPY)} rather than hardcoding $2.50.

All three now match exactly what ComparisonTable and CostEstimator already price off of, so there's a single source of truth for the rate.

📌 To-Do Before Merging

  • Confirm rendered output still reads "$2.50" in all three spots (verified in the production build output).

🧪 How to Test

  • Setup: npm install && npx next build --webpack, or npm run dev and visit /ipfs2filecoin.
  • Steps to Test:
    1. Load /ipfs2filecoin and check the page's <meta name="description"> tag.
    2. Scroll to "Why move to Filecoin warm storage" and read the "A fraction of pinning-service pricing" card.
    3. Scroll to "What it costs" and read the rate footnote under the comparison table.
  • Expected Results: All three still read "$2.50 per TiB per month per copy" — same visible copy as before, now computed rather than hardcoded.
  • Additional Notes: npx tsc --noEmit shows the same 28 pre-existing, unrelated errors on this branch with and without this change (missing static-asset type declarations elsewhere in the repo); npx biome check is clean on the touched files; npx next build --webpack compiles successfully and statically generates /ipfs2filecoin.

📸 Screenshots

No visual change — the rendered copy is identical, only its source changed from a literal to a derived value.

🔖 Resources


🤖 Generated with Claude Code


Generated by Claude Code

…COPY

The rate footnote, one reason card, and the SEO description each restated
$2.50 as a literal, so they could silently drift from the comparison table
and estimator, which already derive from the constant.
@gmoranxyz
gmoranxyz merged commit 9d4a089 into ipfs2filecoin-design-review Aug 5, 2026
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