Some checks failed
AITBC CI/CD Pipeline / lint-and-test (3.11) (push) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.12) (push) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.13) (push) Has been cancelled
AITBC CI/CD Pipeline / test-cli (push) Has been cancelled
AITBC CI/CD Pipeline / test-services (push) Has been cancelled
AITBC CI/CD Pipeline / test-production-services (push) Has been cancelled
AITBC CI/CD Pipeline / security-scan (push) Has been cancelled
AITBC CI/CD Pipeline / build (push) Has been cancelled
AITBC CI/CD Pipeline / deploy-staging (push) Has been cancelled
AITBC CI/CD Pipeline / deploy-production (push) Has been cancelled
AITBC CI/CD Pipeline / performance-test (push) Has been cancelled
AITBC CI/CD Pipeline / docs (push) Has been cancelled
AITBC CI/CD Pipeline / release (push) Has been cancelled
AITBC CI/CD Pipeline / notify (push) Has been cancelled
Security Scanning / Bandit Security Scan (apps/coordinator-api/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (cli/aitbc_cli) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-core/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-crypto/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-sdk/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (tests) (push) Has been cancelled
Security Scanning / CodeQL Security Analysis (javascript) (push) Has been cancelled
Security Scanning / CodeQL Security Analysis (python) (push) Has been cancelled
Security Scanning / Dependency Security Scan (push) Has been cancelled
Security Scanning / Container Security Scan (push) Has been cancelled
Security Scanning / OSSF Scorecard (push) Has been cancelled
Security Scanning / Security Summary Report (push) Has been cancelled
AITBC CLI Level 1 Commands Test / test-cli-level1 (3.11) (push) Has been cancelled
AITBC CLI Level 1 Commands Test / test-cli-level1 (3.12) (push) Has been cancelled
AITBC CLI Level 1 Commands Test / test-cli-level1 (3.13) (push) Has been cancelled
AITBC CLI Level 1 Commands Test / test-summary (push) Has been cancelled
- Remove debugging service documentation (DEBUgging_SERVICES.md) - Remove development logs policy and quick reference guides - Remove E2E test creation summary - Remove gift certificate example file - Remove GitHub pull summary documentation
85 lines
2.6 KiB
Python
Executable File
85 lines
2.6 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Verify that the data mode toggle button is removed from the explorer
|
|
"""
|
|
|
|
import requests
|
|
import re
|
|
|
|
def main():
|
|
print("🔍 Verifying Data Mode Toggle is Removed")
|
|
print("=" * 60)
|
|
|
|
# Get the explorer page
|
|
print("\n1. Checking explorer page...")
|
|
try:
|
|
response = requests.get("https://aitbc.bubuit.net/explorer/")
|
|
if response.status_code == 200:
|
|
print("✅ Explorer page loaded")
|
|
else:
|
|
print(f"❌ Failed to load page: {response.status_code}")
|
|
return
|
|
except Exception as e:
|
|
print(f"❌ Error: {e}")
|
|
return
|
|
|
|
# Check for data mode toggle elements
|
|
print("\n2. Checking for data mode toggle...")
|
|
|
|
html_content = response.text
|
|
|
|
# Check for toggle button
|
|
if 'dataModeBtn' in html_content:
|
|
print("❌ Data mode toggle button still present!")
|
|
return
|
|
else:
|
|
print("✅ Data mode toggle button removed")
|
|
|
|
# Check for mode-button class
|
|
if 'mode-button' in html_content:
|
|
print("❌ Mode button class still found!")
|
|
return
|
|
else:
|
|
print("✅ Mode button class removed")
|
|
|
|
# Check for data-mode-toggle
|
|
if 'data-mode-toggle' in html_content:
|
|
print("❌ Data mode toggle component still present!")
|
|
return
|
|
else:
|
|
print("✅ Data mode toggle component removed")
|
|
|
|
# Check JS file
|
|
print("\n3. Checking JavaScript file...")
|
|
try:
|
|
js_response = requests.get("https://aitbc.bubuit.net/explorer/assets/index-7nlLaz1v.js")
|
|
if js_response.status_code == 200:
|
|
js_content = js_response.text
|
|
|
|
if 'initDataModeToggle' in js_content:
|
|
print("❌ Data mode toggle initialization still in JS!")
|
|
return
|
|
else:
|
|
print("✅ Data mode toggle initialization removed")
|
|
|
|
if 'dataMode:"mock"' in js_content:
|
|
print("❌ Mock data mode still configured!")
|
|
return
|
|
elif 'dataMode:"live"' in js_content:
|
|
print("✅ Live data mode confirmed")
|
|
else:
|
|
print(f"❌ Failed to load JS: {js_response.status_code}")
|
|
except Exception as e:
|
|
print(f"❌ Error checking JS: {e}")
|
|
|
|
print("\n" + "=" * 60)
|
|
print("✅ Data mode toggle successfully removed!")
|
|
print("\n🎉 The explorer now:")
|
|
print(" • Uses live data only")
|
|
print(" • Has no mock/live toggle button")
|
|
print(" • Shows real blockchain data")
|
|
print(" • Is cleaner and more professional")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|