diff --git a/frontend/packages/dashboard/src/home.js b/frontend/packages/dashboard/src/home.js index 95112e4b..2e216ce0 100644 --- a/frontend/packages/dashboard/src/home.js +++ b/frontend/packages/dashboard/src/home.js @@ -27,6 +27,18 @@ async function init() { if (tile) tile.hidden = false; } + // Forge tile: reveal + point at the live forge only when the + // hive-forge container is up. Prefer the gateway-served public URL + // (set when forge.behindGateway=true), fall back to the direct :3000 + // port — same precedence the dashboard uses for forge links. + if (state.forge_present) { + const tile = $('home-tile-forge'); + if (tile) { + tile.href = state.forge_public_url || `http://${location.hostname}:3000`; + tile.hidden = false; + } + } + const ident = $('hive-identity'); if (ident && (state.swarm_name || state.hive_name)) { const parts = [state.swarm_name, state.hive_name].filter(Boolean); diff --git a/frontend/packages/dashboard/src/index.html b/frontend/packages/dashboard/src/index.html index 669b40a1..64021b66 100644 --- a/frontend/packages/dashboard/src/index.html +++ b/frontend/packages/dashboard/src/index.html @@ -68,6 +68,18 @@ operator-local prefs · browser notifications + + +