Changeset 6224462 in Klonkt


Ignore:
Timestamp:
06/16/2026 10:56:49 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
09ac0a5
Parents:
9915786
Message:

Hub: show bottom tab (Home/Search/Login) on the hub landing too

The bottom tab fell under bareChrome → disappeared on the hub-home (no nav
on mobile). Now shown everywhere except auth screens. canCreatePost hardened
against a null site (hub landing without a site context) so the tab does not
crash for logged-in members.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/services/PermissionsService.js

    r9915786 r6224462  
    4444    if (!user) return false;
    4545    if (user.role === 'god') return true;
     46    if (!site) return false; // geen site-context (bv. hub-landing) -> niets te posten
    4647    if (user.id === site.owner_id) return true; // Site owner
    4748    if (this.canAdminSite(user, site)) return true;
  • src/views/shell.ejs

    r9915786 r6224462  
    294294<%- include('partials/footer') %>
    295295
    296 <!-- Mobile bottom-tab navigation (auto-hidden ≥768px) — niet op landing/auth -->
    297 <% if (!bareChrome) { %>
     296<!-- Mobile bottom-tab navigation (auto-hidden ≥768px). Toont overal — óók op de
     297     hub-landing (zodat mobiel altijd Home/Zoek/Inloggen heeft) — behalve op de
     298     auth-focusschermen. -->
     299<% if (!(typeof bodyClass === 'string' && bodyClass.indexOf('on-auth') >= 0)) { %>
    298300<%- include('partials/bottom-tab') %>
    299301<% } %>
Note: See TracChangeset for help on using the changeset viewer.