Logo

Developer Notes

Private scratchpad — admin only

Buy/Book Button Toggle: The code for a 'Show Buy/Book Buttons' toggle exists in the site but is currently hidden from the Theme Editor. If you ever need it again, you can re-add { key: "theme_enable_buy_buttons", label: "Show Buy/Book Buttons", type: "boolean", default: "true" } to the THEME_FIELDS array in components/siteadmin/ThemeEditor.jsx.

Manager Mode Kit — Reuse Instructions

This module provides an RBAC mechanism tailored for CHUNX projects.

  • Required Entity: ManagerFieldPermission (block_type, field_key, visible_to_manager)
  • Required Pages/Components: FieldAudit, BlockFields.jsx, PermissionsContext.jsx
  • Required helper: usePermissions hook

How to copy this module into another Base44 project:

  1. Create the ManagerFieldPermission entity.
  2. Copy lib/PermissionsContext.jsx and wrap the main app (e.g., inside App.jsx or the Admin layout).
  3. Copy components/siteadmin/FieldAudit.jsx and add it to the SiteAdmin tabs.
  4. Refactor any block field forms (like BlockFields.jsx) to consume const isVisible = usePermissions('BlockName') and wrap fields conditionally: {isVisible("data.heading") && <Field />}.

How to seed default permissions:

Visit the Field Audit page as a Super Admin. The AUDIT_DATA array defines all fields. Toggling any switch will automatically create the corresponding ManagerFieldPermission record.

How to test as Manager:

Invite a secondary email via the Base44 Dashboard Users tab and set their role to manager. Log in with that account to verify they only see permitted fields and do not see the Field Audit, Theme, or Core Kit sidebars.

Black Orchid Hair

Hair Atelier, Maastricht.

Follow Us

Opening Hours

  • 09:00 – 18:30

Open last Sunday of every month: 12:00 – 18:00

© 2026 Black Orchid Hair. All rights reserved. Website by Bad Dog.