Admin home + entity list handlers.
Renders the dashboard, the entity list page, and the HTMX table fragment.
Admin home + entity list handlers. Renders the dashboard, the entity list page, and the HTMX table fragment.
(admin-home-handler admin-service schema-provider config)(admin-home-handler admin-service schema-provider config user-service)The dashboard: the sidebar's sections, an entity tile with its count and
summary for each entity the user may read, and with user-service the
recent audit entries for a user who may open the audit trail. For every
signed-in user, except under :enforce, where it needs read on one entity
in a scope that entity can check (ADR-041 §6).
The dashboard: the sidebar's sections, an entity tile with its count and summary for each entity the user may read, and with `user-service` the recent audit entries for a user who may open the audit trail. For every signed-in user, except under :enforce, where it needs read on one entity in a scope that entity can check (ADR-041 §6).
(entity-list-handler admin-service schema-provider config)The entity list page: table, search, sorting, paging, filters. Its own
controls request this URL and push it, so the address bar holds the list's
state; they get the table fragment back. An entity with :list-url has its
module's list instead, which this redirects an administrator to, the query
kept (BOU-1003); one reaching the admin through a permission keeps this list,
as the module's page may admit administrators only.
The entity list page: table, search, sorting, paging, filters. Its own controls request this URL and push it, so the address bar holds the list's state; they get the table fragment back. An entity with `:list-url` has its module's list instead, which this redirects an administrator to, the query kept (BOU-1003); one reaching the admin through a permission keeps this list, as the module's page may admit administrators only.
(entity-table-fragment-handler admin-service schema-provider config)GET /:entity/table — the table fragment, for callers that ask for it directly. A browser navigating here is sent to the list page.
GET /:entity/table — the table fragment, for callers that ask for it directly. A browser navigating here is sent to the list page.
(filter-drawer-handler admin-service schema-provider config)GET /:entity/filters — the filter drawer for the filters in the query string, blank ones kept: re-rendered when an operator changes, it keeps the operator chosen for a field that has no value yet.
GET /:entity/filters — the filter drawer for the filters in the query string, blank ones kept: re-rendered when an operator changes, it keeps the operator chosen for a field that has no value yet.
(list-redirect entity-config user query-string)Where the admin's list of an entity sends user instead, with
query-string: the entity's :list-url for an administrator; nil for
anyone else, who may reach the admin through a permission and not the
module's page (BOU-1003).
Where the admin's list of an entity sends `user` instead, with `query-string`: the entity's `:list-url` for an administrator; nil for anyone else, who may reach the admin through a permission and not the module's page (BOU-1003).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |