Skip to content

fix(web): show a moving-to-new-devnet notice while moutai is retired - #166

Merged
PastaPastaPasta merged 3 commits into
masterfrom
fix/web-moutai-migration-notice
Sep 29, 2026
Merged

PastaPastaPasta merged 3 commits into
masterfrom
fix/web-moutai-migration-notice

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

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:

Dash Forge is moving to a new devnet
Devnet moutai was upgraded to Platform v4.2.0-beta.7, which retired the old contracts. The forge is being re-registered on devnet bonsia with a new contract design; repos will be back shortly.

  • Gated on the same runtime-detected condition the existing state already uses (a "contract not found" read) plus the devnet name actually seen (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.
  • Every other network (other devnets, testnet, mainnet) keeps the prior wording and behavior unchanged — same container, icon, "Reload for a newer build" button, raw error behind Details, and GitHub link.
  • forge-web/components/ui/contracts-missing.tsx is the only component touched; forge-web/components/ui/contracts-missing.test.tsx and forge-web/e2e/contracts-missing.spec.ts (hermetic, mocked DAPI — does not hit real network) are updated to match.

Test plan

  • npx tsc --noEmit — clean
  • npx eslint on the three touched files — clean
  • npx 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)
  • Visual check: built and ran next dev for NEXT_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 existing max-w-2xl/max-w-md layout, 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

  • Service Status
    • The web app is temporarily unavailable while devnet Moutai moves to Bonsia. Service is expected to return after the cut-over.
  • Network Information
    • When contracts are unavailable on Moutai, the app now explains the Platform v4.2.0-beta.7 upgrade and points to Bonsia. Other networks retain their existing messages.
  • Documentation
    • Updated the status and verification information to reflect the web app outage and network transition.

PastaPastaPasta and others added 2 commits September 29, 2026 15:57
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]>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a8ab95dd-4950-4ba1-819d-6880b40b4add

📥 Commits

Reviewing files that changed from the base of the PR and between 3aaf9b4 and c3ef8b9.

📒 Files selected for processing (4)
  • README.md
  • forge-web/components/ui/contracts-missing.test.tsx
  • forge-web/components/ui/contracts-missing.tsx
  • forge-web/e2e/contracts-missing.spec.ts

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


📝 Walkthrough

Walkthrough

The 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.

Changes

Devnet transition

Layer / File(s) Summary
Transition status and missing-contract message
README.md, forge-web/components/ui/contracts-missing.tsx, forge-web/components/ui/contracts-missing.test.tsx, forge-web/e2e/contracts-missing.spec.ts
The README reports that Moutai’s forge-v2 contracts were retired and the web app will return after cut-over to Bonsia. When Moutai has missing contracts, the component displays the migration message. Tests check the Bonsia destination, other devnet reset messaging, the GitHub link, and the updated end-to-end text.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to c3ef8

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning 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 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: showing a migration notice while devnet moutai is retired.
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: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

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]>
@PastaPastaPasta
PastaPastaPasta merged commit b4078a1 into master Sep 29, 2026
5 of 6 checks passed
PastaPastaPasta added a commit that referenced this pull request Sep 29, 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.

1 participant