Skip to content

fix: scope purchase disable flag and update gateway URL routing#930

Merged
atticusofsparta merged 4 commits intodevelopfrom
PE-9057-fix-purchase-disable-scope
Apr 14, 2026
Merged

fix: scope purchase disable flag and update gateway URL routing#930
atticusofsparta merged 4 commits intodevelopfrom
PE-9057-fix-purchase-disable-scope

Conversation

@vilenarios
Copy link
Copy Markdown
Contributor

Summary

  • Gateway URL routing: Separated URLs by purpose — GraphQL stays on arweave.net, transaction/data fetching moves to turbo-gateway.com, ArNS name links use ar.io
  • Purchase disable scope: ARNS_PURCHASES_DISABLED now only blocks flows that create new ANTs (BUY_RECORD, UPGRADE_NAME). Lease extensions and undername upgrades proceed normally during the migration
  • Version bump to 1.30.1

Test plan

  • Verify lease extension flow works end-to-end with ARNS_PURCHASES_DISABLED = true
  • Verify undername upgrade flow works end-to-end with flag enabled
  • Verify new name registration is still blocked (HomeSearch, Register, Checkout)
  • Verify upgrade-to-permabuy on ExtendLease page is still blocked
  • Verify GraphQL queries resolve correctly via arweave.net
  • Verify transaction data loads via turbo-gateway.com
  • Verify ArNS domain links route through ar.io

🤖 Generated with Claude Code

…isable flag

Separate gateway URLs by purpose: GraphQL stays on arweave.net, transaction/data
fetching moves to turbo-gateway.com, ArNS name links use ar.io. Scope
ARNS_PURCHASES_DISABLED to only block new name registrations and name upgrades
(which create new ANTs), allowing lease extensions and undername upgrades to
proceed during the migration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vilenarios vilenarios requested a review from a team as a code owner April 13, 2026 20:23
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 13, 2026

Warning

Rate limit exceeded

@vilenarios has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 47 minutes and 17 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 47 minutes and 17 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d5601764-0616-48bd-b861-46a718ba97b1

📥 Commits

Reviewing files that changed from the base of the PR and between f799621 and 3584cb7.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (12)
  • 404_page/index.html
  • CHANGELOG.md
  • CLAUDE.md
  • README.md
  • landing_page/index.html
  • package.json
  • src/components/cards/ARNSCard/ARNSCard.tsx
  • src/components/layout/ExtendLease/ExtendLease.tsx
  • src/components/layout/UpgradeUndernames/UpgradeUndernames.tsx
  • src/components/pages/Register/Checkout.tsx
  • src/state/contexts/GlobalState.tsx
  • src/utils/constants.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch PE-9057-fix-purchase-disable-scope

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Includes gateway URL routing strategy, feature flag scope documentation,
architecture overview, development commands, and file organization rules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 13, 2026

Permaweb Preview Deployed

Your preview is available at: https://arns-react-pr-930_arns.ar.io

Property Value
Transaction ID kObTNpBW2BA7TP4lPmArJ6vXB64jt7SyAu6PoyDcmbw
ArNS Name arns
Undername arns-react-pr-930

This preview will be available permanently on Arweave via the AR.IO Network.

vilenarios and others added 2 commits April 13, 2026 16:34
…links

Wayfinder was routing featured domain links to random network gateways
(e.g. ardrive.4.ario.io.vn) instead of ar.io. Removed @ar.io/wayfinder-core
and @ar.io/wayfinder-react entirely — they were only used for this one
feature. ARNSCard now links directly to https://{domain}.ar.io.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Instead of hardcoding ar.io, derive the base gateway from the current
hostname by stripping the first subdomain (e.g. arns.ar.io -> ar.io,
arns.vilenarios.com -> vilenarios.com). Falls back to ar.io on localhost.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vilenarios
Copy link
Copy Markdown
Contributor Author

@CodeRabbit review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 13, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@atticusofsparta atticusofsparta merged commit 268342a into develop Apr 14, 2026
4 checks passed
@atticusofsparta atticusofsparta deleted the PE-9057-fix-purchase-disable-scope branch April 14, 2026 18:10
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