Rename all 1,169 components to path-based names with namespace support

Component names now reflect filesystem location using / as path separator
and : as namespace separator for shared components:
  ~sx-header → ~layouts/header
  ~layout-app-body → ~shared:layout/app-body
  ~blog-admin-dashboard → ~admin/dashboard

209 files, 4,941 replacements across all services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 22:00:12 +00:00
parent de80d921e9
commit b0920a1121
209 changed files with 4620 additions and 4620 deletions

View File

@@ -8,12 +8,12 @@
(nav-class (or (get styles "nav_button") ""))
(hx-select "#main-panel, #search-mobile, #search-count-mobile, #search-desktop, #search-count-desktop, #menu-items-nav-wrapper"))
(<>
(~nav-group-link
(~shared:misc/nav-group-link
:href (app-url "account" "/tickets/")
:hx-select hx-select
:nav-class nav-class
:label "tickets")
(~nav-group-link
(~shared:misc/nav-group-link
:href (app-url "account" "/bookings/")
:hx-select hx-select
:nav-class nav-class

View File

@@ -10,13 +10,13 @@
(cond
(= slug "tickets")
(let ((tickets (service "calendar" "user-tickets" :user-id uid)))
(~events-frag-tickets-panel
(~fragments/frag-tickets-panel
:items (if (empty? tickets)
(~empty-state :message "No tickets yet."
(~shared:misc/empty-state :message "No tickets yet."
:cls "text-sm text-stone-500")
(~events-frag-tickets-list
(~fragments/frag-tickets-list
:items (<> (map (fn (t)
(~events-frag-ticket-item
(~fragments/frag-ticket-item
:href (app-url "events"
(str "/tickets/" (get t "code") "/"))
:entry-name (get t "entry_name")
@@ -25,18 +25,18 @@
(span (str "\u00b7 " (get t "calendar_name"))))
:type-name (when (get t "ticket_type_name")
(span (str "\u00b7 " (get t "ticket_type_name"))))
:badge (~status-pill :status (or (get t "state") ""))))
:badge (~shared:controls/status-pill :status (or (get t "state") ""))))
tickets))))))
(= slug "bookings")
(let ((bookings (service "calendar" "user-bookings" :user-id uid)))
(~events-frag-bookings-panel
(~fragments/frag-bookings-panel
:items (if (empty? bookings)
(~empty-state :message "No bookings yet."
(~shared:misc/empty-state :message "No bookings yet."
:cls "text-sm text-stone-500")
(~events-frag-bookings-list
(~fragments/frag-bookings-list
:items (<> (map (fn (b)
(~events-frag-booking-item
(~fragments/frag-booking-item
:name (get b "name")
:date-str (str (format-date (get b "start_at") "%d %b %Y, %H:%M")
(if (get b "end_at")
@@ -46,5 +46,5 @@
(span (str "\u00b7 " (get b "calendar_name"))))
:cost-str (when (get b "cost")
(span (str "\u00b7 \u00a3" (get b "cost"))))
:badge (~status-pill :status (or (get b "state") ""))))
:badge (~shared:controls/status-pill :status (or (get b "state") ""))))
bookings))))))))))

View File

@@ -19,13 +19,13 @@
(post-slug (or (nth slugs i) "")))
(<> (str "<!-- card-widget:" pid " -->")
(when (not (empty? entries))
(~events-frag-entries-widget
(~fragments/frag-entries-widget
:cards (<> (map (fn (e)
(let ((time-str (str (format-date (get e "start_at") "%H:%M")
(if (get e "end_at")
(str " \u2013 " (format-date (get e "end_at") "%H:%M"))
""))))
(~events-frag-entry-card
(~fragments/frag-entry-card
:href (app-url "events"
(str "/" post-slug
"/" (get e "calendar_slug")

View File

@@ -53,7 +53,7 @@
(if (get entry "end_at")
(str " " (format-date (get entry "end_at") "%H:%M"))
""))))
(~calendar-entry-nav
(~shared:navigation/calendar-entry-nav
:href (app-url "events" entry-path)
:name (get entry "name")
:date-str date-str
@@ -61,7 +61,7 @@
;; Infinite scroll sentinel
(when (and has-more (not (empty? purl)))
(~htmx-sentinel
(~shared:misc/htmx-sentinel
:id (str "entries-load-sentinel-" pg)
:hx-get (str purl "?page=" (+ pg 1))
:hx-trigger "intersect once"
@@ -74,7 +74,7 @@
(is-selected (if (not (empty? cur-cal))
(= (get cal "slug") cur-cal)
false)))
(~calendar-link-nav
(~shared:navigation/calendar-link-nav
:href href
:name (get cal "name")
:nav-class nav-class

View File

@@ -16,7 +16,7 @@
:container-type "page"
:container-id (get post "id")))
(cal-names (join ", " (map (fn (c) (get c "name")) calendars))))
(~link-card
(~shared:fragments/link-card
:title (get post "title")
:image (get post "feature_image")
:subtitle cal-names
@@ -28,7 +28,7 @@
:container-type "page"
:container-id (get post "id")))
(cal-names (join ", " (map (fn (c) (get c "name")) calendars))))
(~link-card
(~shared:fragments/link-card
:title (get post "title")
:image (get post "feature_image")
:subtitle cal-names