Repository navigation
fix(web): show a moving-to-new-devnet notice while moutai is retired - #166
Conversation
Devnet moutai was upgraded in place to Platform v4.2.0-beta.7, which retired every contract forge-web reads there. Instead of the generic "Dash Forge isn't deployed on devnet moutai right now" message, the contracts-missing state now names the real situation: the forge is being re-registered on devnet bonsia with a new contract design. Gated on the same runtime detection (contracts missing) plus the devnet name actually seen (moutai), not a hard-coded date, so it stops applying on its own once bonsia becomes the default network. Other networks keep the prior wording unchanged. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Code review: the README still calls moutai live and has no mention of bonsia yet, so a "Follow the move on GitHub" label would point readers at a page that contradicts the banner. Keep the existing "Dash Forge on GitHub" label for every network instead of varying it by condition, and trim a docblock/inline-comment duplication. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe README and missing-contract state now describe Moutai’s move to devnet Bonsia. The state shows a Platform v4.2.0-beta.7 migration message for Moutai and retains existing messaging for other networks. ChangesDevnet transition
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The Moutai migration notice is limited to its missing-contract state, while other network messages are preserved. No concrete issue currently blocks merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Devnet moutai's forge-v2 contracts were retired when it was upgraded to Platform v4.2.0-beta.7. The README still called moutai "Live" and the site "live"; say plainly that the public devnet is moving to bonsia and the site is down until the cut-over. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Summary
Devnet moutai was upgraded in place to Platform v4.2.0-beta.7, which retired every forge-v2 contract this build reads there. The deployed site (forge.dashhq.org) currently shows the generic "Dash Forge isn't deployed on devnet moutai right now" state — accurate mechanically, but misleading: this isn't a routine devnet reset, it's a permanent move to a new devnet (bonsia).
This PR replaces the copy shown for that specific case with an honest notice:
config.devnetName === 'moutai') — not a hard-coded date, so it stops applying on its own once bonsia becomes the default network and a fresh reset produces a different devnet name.forge-web/components/ui/contracts-missing.tsxis the only component touched;forge-web/components/ui/contracts-missing.test.tsxandforge-web/e2e/contracts-missing.spec.ts(hermetic, mocked DAPI — does not hit real network) are updated to match.Test plan
npx tsc --noEmit— cleannpx eslinton the three touched files — cleannpx vitest run components/ui/contracts-missing.test.tsx— 5/5 passing (moutai copy, another-devnet copy unchanged, mainnet copy unchanged, Details/raw-error/no-retry behavior, GitHub link)next devforNEXT_PUBLIC_NETWORK=devnet NEXT_PUBLIC_DEVNET_NAME=moutai(forge.dashhq.org's actual build config) and viewed the notice via a scratch route (removed before commit) in both light and dark themes — card renders correctly, wraps the copy inside the existingmax-w-2xl/max-w-mdlayout, no layout changes were made so mobile responsiveness is inherited from the unchanged existing card.playwright (read-only, devnet moutai)CI job — expected to fail/be skipped per the task: moutai is genuinely missing its contracts right now, so most specs in that job cannot pass until the site cuts over to bonsia.🤖 Generated with Claude Code
Summary by CodeRabbit