[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.
This commit is contained in:
s1to 2026-08-07 19:04:25 +02:00
parent 634625d134
commit 423e973f02
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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');