From 423e973f021360a16edc7bdd594525006dfe573e Mon Sep 17 00:00:00 2001 From: s1to Date: Fri, 7 Aug 2026 19:04:25 +0200 Subject: [PATCH] [0.9.1] FORK_IA_UX v6: show the hive only on the home, keep content pages clean The hexagon hive was rendered in the header on EVERY page (~210px), pushing real content far down on Peers/Market/Inbox/etc. Now a middleware flag (__OASIS_SHOW_HIVE__ = path is /activity or /) gates renderHiveNav so the hive is the home hub only; other pages get just the fixed topbar and their content up top. Personal/Community and the bottombar still navigate everywhere. --- src/backend/backend.js | 2 ++ src/views/main_views.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/backend.js b/src/backend/backend.js index 1c73f4d..d839e29 100644 --- a/src/backend/backend.js +++ b/src/backend/backend.js @@ -8660,6 +8660,8 @@ const middleware = [ if (!ctx.path.startsWith('/assets/') && !ctx.path.startsWith('/image/') && !ctx.path.startsWith('/blob/') && !ctx.path.startsWith('/qr') && !ctx.path.startsWith('/c/')) { // filtro del hive (Personal/Community) del home; lo leen la topbar (enlaces) y renderHiveNav (categorías mostradas) global.__OASIS_HIVE_FILTER__ = (ctx.path === '/activity' && (ctx.query.hive === 'personal' || ctx.query.hive === 'community')) ? ctx.query.hive : ''; + // el hive (hexágonos) SOLO en la home; en páginas de contenido el top queda limpio (solo topbar) + global.__OASIS_SHOW_HIVE__ = (ctx.path === '/activity' || ctx.path === '/'); const now = Date.now(); if (now - sharedState.getLastRefresh() > 60000) { sharedState.setLastRefresh(now); diff --git a/src/views/main_views.js b/src/views/main_views.js index 8aa6349..1e54b17 100644 --- a/src/views/main_views.js +++ b/src/views/main_views.js @@ -1332,8 +1332,8 @@ const template = (titlePrefix, ...elements) => { div( { class: uxMode === "ainav" ? "header ainav-only" : "header" }, renderMobileTopbar(), - // hive de vuelta en el header (bajo el topbar); Personal/Community filtran estos hexágonos - renderHiveNav() + // hive (hexágonos) SOLO en la home; en el resto de páginas el top queda limpio (solo topbar) + ((typeof global !== "undefined" && global.__OASIS_SHOW_HIVE__) ? renderHiveNav() : "") ), (() => { const updateFlagPath = path.join(__dirname, '../server/.update_required');