All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m38s
Layout components now self-resolve context (cart-mini, auth-menu, nav-tree, rights, URLs) via new IO primitives (root-header-ctx, select-colours, account-nav-ctx, app-rights) and defmacro wrappers (~root-header-auto, ~auth-header-row-auto, ~root-mobile-auto). This eliminates _ctx_to_env(), HELPER_CSS_CLASSES, and verbose :key threading across all 10 services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
706 B
Plaintext
21 lines
706 B
Plaintext
;; Account layout defcomps — fully self-contained via IO primitives.
|
|
;; Registered via register_sx_layout("account", ...) in __init__.py.
|
|
|
|
;; Full page: root header + auth header row in header-child
|
|
(defcomp ~account-layout-full ()
|
|
(<> (~root-header-auto)
|
|
(~header-child-sx
|
|
:inner (~auth-header-row-auto))))
|
|
|
|
;; OOB (HTMX): auth row + root header, both with oob=true
|
|
(defcomp ~account-layout-oob ()
|
|
(<> (~auth-header-row-auto true)
|
|
(~root-header-auto true)))
|
|
|
|
;; Mobile menu: auth section + root nav
|
|
(defcomp ~account-layout-mobile ()
|
|
(<> (~mobile-menu-section
|
|
:label "account" :href "/" :level 1 :colour "sky"
|
|
:items (~auth-nav-items-auto))
|
|
(~root-mobile-auto)))
|