From e07cd40dcec42ea684290c9b2c29e821ee0d2260 Mon Sep 17 00:00:00 2001 From: Trevor Miller Date: Sat, 25 Apr 2026 08:08:43 -0400 Subject: [PATCH] explorer: hide bitbadges-testnet from network switcher (#0340) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Testnet is being temporarily shut down to save infra costs. The deployed Ping.pub-based explorer auto-discovers chains via `import.meta.glob('../../chains/mainnet/*.json')` in `src/stores/useDashboard.ts`, so any file under `chains/mainnet/` shows up in the network dropdown. Move `bitbadges-testnet.json` out of `chains/mainnet/` and into a new `chains/disabled/` directory so the testnet entry stops appearing in the UI once testnet goes offline. Reviving testnet later is a one-line `git mv` back. The runtime hostname check in `useDashboard.ts` (`window.location.hostname.search('testnet') > -1`) is intentionally left alone — it's not the user-visible network switcher, and removing the chain config file is enough to hide the network from the dropdown. Tracked as ticket #0340 in the autopilot repo. Co-Authored-By: Claude Opus 4.7 (1M context) --- chains/{mainnet => disabled}/bitbadges-testnet.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename chains/{mainnet => disabled}/bitbadges-testnet.json (100%) diff --git a/chains/mainnet/bitbadges-testnet.json b/chains/disabled/bitbadges-testnet.json similarity index 100% rename from chains/mainnet/bitbadges-testnet.json rename to chains/disabled/bitbadges-testnet.json