Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- Marked submodules ai-mcp-pmm-controller, explorer-monorepo, and smom-dbis-138 as dirty to reflect recent changes. - Updated documentation to clarify operator script usage, including dotenv loading and task execution instructions. - Enhanced the README and various index files to provide clearer navigation and task completion guidance. Made-with: Cursor
2.5 KiB
2.5 KiB
Explorer "Wallet" Link — Quick Win Runbook
Purpose: Add a Wallet link to the Blockscout/explorer navbar so users can reach the wallet page (e.g. https://explorer.d-bis.org/wallet).
Effort: ~15 minutes.
Prerequisite: SSH access to the explorer VM (e.g. VMID 5000).
Option A: Blockscout frontend (recommended)
If the explorer uses a Blockscout frontend with a configurable nav:
- SSH to the explorer host:
ssh user@explorer-host # or pct exec if container - Locate the frontend config or template that defines the navbar (e.g. env
NAV_LINKS, or a template under the Blockscout app). - Add a Wallet entry. Example (env-style):
# If NAV_LINKS or similar is JSON: # Add {"label":"Wallet","href":"/wallet"} to the links array - Restart the frontend service if required; reload the site.
Option B: Static HTML / proxy landing page
If the explorer is served by Nginx with a static landing page (e.g. /var/www/html/index.html):
- SSH to the host that serves the explorer (e.g. VMID 5000 or the NPMplus/proxy host).
- Find the main HTML file. Common paths:
/var/www/html/index.html- Nginx root for the explorer vhost
- Open the file and locate the navigation section (e.g.
<nav>,<header>, or a div with nav links). - Add the Wallet link next to existing nav items:
Example in context:
<a href="/wallet">Wallet</a><nav> <a href="/">Explorer</a> <a href="/wallet">Wallet</a> <!-- other links --> </nav> - Save and reload https://explorer.d-bis.org — the Wallet link should appear.
Option C: One-liner (when you know the exact file)
If the nav is in a single file and you can edit it:
# After SSH to explorer host — backup then append or sed (adjust path and nav structure)
sudo cp /var/www/html/index.html /var/www/html/index.html.bak
# Then edit manually, or use sed only if the structure is known and stable:
# sudo sed -i 's|</nav>| <a href="/wallet">Wallet</a>\n</nav>|' /var/www/html/index.html
Prefer manual edit when the HTML structure is not uniform.
Verify
- Open https://explorer.d-bis.org (or your explorer URL).
- Confirm "Wallet" appears in the navbar.
- Click it and confirm the wallet page loads (e.g. MetaMask chain-add / token list).
References
- REMAINING_TASKS.md § Quick Wins
- OPTIONAL_RECOMMENDATIONS_INDEX.md § Quick win: Explorer "Wallet" link