Changelog
Every release, and what changed.
Generated from the framework's changelog at build time, so this page is the record of the code the handbook documents.
0.12.3
Added
help_above,css_classandcontainer_attributeson a form field.after_saveon a form sends Save somewhere other than the list after a create or an update, offers “Save and close” beside it, and words the saved message (AfterSave).read_only,disabledandpermissionon a form field (FormField::read_only,disabled,require): a locked field is never written from a submission, and a field behind a permission is neither shown to nor taken from a user without it.
0.12.2
Added
panelson a form shows module-drawn panels under an existing record’s form, as a preview’s panels are (FormConfig::panels).- A
selectlist filter takes its choices from an option source (options: acme.states,ListFilter::select_from), anddepends_onasks for them again when another filter changes.
Fixed
- Clear on a list that remembers its query now clears it: the link was sent straight back to the remembered filters.
0.12.1
Added
- Option sources:
options: acme.stateson a select, radio or checklist takes its choices from a registeredOptionSource(add_option_source), anddepends_ondraws the field again when another changes.laterite.timezonesandlaterite.localesare built in. - A select or radio option takes
disabled, a select optiongroup, a radio optionnote. in_settingsanddescriptionon a resource’s or screen’smenulist it in Settings (Placement::in_settings,description).defaultanddefault_fromon a form field set what a new record’s form opens with (FormField::default_value,default_from).- Form tabs:
tabsandsecondary_tabson a form withdefault_tab,active_tab,icons,linkable,stretch,css_class,pane_css_classandidentifiers, andtabon a field (FormTabs,FormField::tab,FormArea).
0.12.0
Breaking
RowClickis no longerCopyand gainsPreviewandUrl: match it with a_arm, and clone it where it was copied.
Added
context:on a form field (orname@updateon its key) keeps it to the create, update or preview page;FormField::context,FormContext,FormConfig::for_context.- A preview takes its own
fieldsand shows the record’s related lists to read (relations: falseleaves them out). row_clicktakes an address pattern as well asopen,previewandnone:row_click: "acme/orders/{id}/summary", with{id}and{column}filled in from the row (RowClick::Url).preview:on a resource gives each record a read-only page at{path}/{id}/previewwith panels a module draws (Resource::preview,PreviewConfig); the list links to it from each row, androw_click: previewopens it on a click.- A
partiallist column draws each cell through a MiniJinja template a module registers withPartialReg, givenvalue,recordandcolumn. ColumnType::checklets a column type refuse its keys when the list is read.- A
taglistfield type (FormField::taglist): short texts typed one at a time and stored as a JSON array, on a form, a settings page or in a repeater row. - Abilities: a module declares an act by name with
add_ability(a typed input, a permission, an effect), andRouteCtx::abilitieslists, previews and runs them as the signed-in person. - Every module resource is reachable through abilities (
backend.records.kinds,find,read,create,update,delete);abilities:on a resource describes it, hides fields or turns parts off. A delete stays off for a channel until the policy allows it. - Palette modes:
add_palette_modeadds a tab to the command palette that posts what is typed to a module’s route. The built-in Do mode (>) runs an ability by name through its input, preview and result. - An ability policy:
Abilities::offeredandconfirmsay how far a channel may go (Confirm::Auto,Ask,Off). An administrator sets rules under Settings, Abilities, and each person tightens them under Preferences. RouteCtx::identityandAuthService::identityanswer an active operator by id with their permissions, for a route that authenticates with a token of its own. A public route’sRouteCtx::abilitiesnow offers the record and screen abilities as a screen’s does.- A list filter compares another
column, arelatedrecord’s column, and a numberat_leastorat_most(match). backend.records.kindslists a kind’s filters and sorts,backend.records.findtakes them, andbackend.records.openanswers the list’s address with them set.Outcome::gotakes the person to a page, and the palette follows it.- Surfaces: a screen describes its controls, parts and acts through
surface::Surfaceandadd_surface, andbackend.screens.list,describeandactread and drive any of them. Every list is one. - A board is a surface (
Board::surface, added withRouteCtx::add_surface): its widgets are parts and their settings controls. A widget kind answers its figures to a caller throughKind::readsandKind::data. - Every settings page with fields is a surface: its fields are read with their stored values, secrets left out.
Actor::through(channel)marks a write made for a person by something else; the Audit Log shows it under Through (AuditEntry::channel,AuditRecord::channel).board: a dashboard any screen hosts.BoardlaysKinds of widget on a twenty-column grid, each fetched after the page, with an edit mode (move, resize, add, remove, configure) saved per person or for everyone.Kind::properties_for,reload_onandcheckfor settings that depend on one another and are checked before they are kept;Board::view_permissionguards a board’s routes.- Boards are edited on a phone and from the keyboard: Move earlier and Move later on each widget, and the edit bar at every width. A chart drops every other date when it is narrow.
- The home dashboard is a board: Edit dashboard replaces Manage widgets, and each person’s saved dashboard carries over.
ValueForm::assetslists the asset keys a value form’s field types declare, forPageHead::assets.linked_recordon a form: a record that belongs to one of any resource (the columns{morph}_typeand{morph}_id) links its owner above the form.- A failed save shows the database’s own message under Show details, to a superuser and while
app.debugis on. delete: trueon a relation deletes its rows with their parent, and the list’s Delete names what goes;section: falsekeeps a relation for its delete rules alone.- A
deleterelation’s rows take their owndeleterelations with them (DeleteCascade::nested), and Delete names those too. - A record’s edit page offers Delete when its list is
deletable. ModelListener::deletedruns in the delete’s transaction once the row is gone.- A list column reads a related record’s column:
relatedon the list and on the column, as on a form. It sorts, searches and exports. optional: trueon a form’s belongs-torelatedrecord makes none from empty fields,timestamps: truestamps it;name_onlyon a field format stores the name alone.public: trueon amediafield: the picker does not take a private file, a save refuses one, and Media keeps a file the field holds from being made private. Admin Branding’s images are public fields.- A settings screen’s
mediafields link their files to the setting, and the file page names the screen and field that use a file. - The Settings landing page shows the brand logo, in colour, in its empty area, and Admin Branding takes a separate navigation logo for the top bar.
laterite_admin::chart: line, bar and stacked-bar charts over aPeriodread from the query, with a period bar, a legend that hides series and a row of figures. See the Charts guide page.
Fixed
- A
sensitivefield is masked by its style, so a browser’s password manager no longer treats a form holding one as a sign-in. - A masked
sensitivefield draws its dots in the system font, as a masked password box does: Safari drew boxes in the admin’s font. - A
sensitivefield’s Reveal is an eye icon, works on a settings screen (audited assettings.reveal), and typing into a stored value replaces it whole. - A settings screen loads the scripts and styles its field types declare.
- A switch sits beside its label, and keeps its shape on a phone.
- A masked box shows dots in Safari, which drew boxes for a character the admin’s font lacks.
- A validation rule a module registers (
registry.add(ValidationRuleReg::new(..))) reaches its forms:Bootstrappassed none on. - A field with a
formaton arelatedrecord is stored in the format’s shape: it was stored as typed. - An image picked on Admin Branding is shown: its stored id was misread, which dropped the whole brand setting. A private image is named on save.
- The sidebar runs the full height of a page longer than the window in Safari, where it stopped a window down.
- A colour field left unset saves empty, where it saved
#000000; the sign-in panel switch opens on until it is saved off. - A save the database refuses (a duplicate in a unique column with no
uniquerule) re-renders the form alone with its message: the whole page was drawn inside the form.
Changed
- A sorted list puts empty values last in both directions.
- The settings sidebar keeps one width,
--sidebar-w(240px), open or closed: a longer title ends in an ellipsis and a description after two lines.--sidebar-minis gone. - The Settings page with nothing chosen shows the brick alone and faint, in place of the full mark on its dark tile.
0.11.0
Breaking
JobCx::queue()returns the queue, to push from a job; the queue’s name isqueue_name().Queue::push_namedtakes a unique key, andJobErrorgainedRelease.CellCxis non-exhaustive and is built withCellCx::new; it now carries the column’soptions, the row (field), the icon set (icon) and the admin mount (base).IconRegis non-exhaustive andIcongainssolid.
Added
PublicRouteReg::skip_origin_checkandbackend.origin_check_exceptlet an endpoint that authenticates its own requests (an API token, a webhook) take a POST from another site.- A
linkcolumn type: an address from the value or aurltemplate, withtext,icon,new_taband{column|handle}/{column|host}placeholders; a value it cannot link shows as text, and a+stays as typed (tel:{value}). - A field
format(base,prefix,pattern,lowercase): the form stores one address from any shape typed and refuses others; alinkcolumn shows it as@name. - Fifteen brand icons (
instagram,whatsapp,x-twitter, …) drawn solid, andIconReg::solidfor a plugin’s own. - A
mediafield’s tile opens its file in a new tab. settings::categorynames the standard settings headings (WEBSITE,USERS,MAIL,LOGS,SYSTEM), so a plugin’s item joins one.- A repeater of one field is compact: a line a row, each with add and remove, always one line;
promptnames Add andexpandedopens list rows. - A repeater’s Add and Remove switch off at
max_itemsandmin_items, andmin_itemsrows show from the start. JobError::release(wait, reason)puts a job back without spending the attempt, andJobCx::crypt()opens sealed values.- Groups: named sets of accounts (
backend_groups,laterite_auth::store::{create_group, user_group_ids, group_member_ids, ...}), a Groups screen under Settings behindbackend.manage_groups, and a checklist on each account. A group grants no permissions. - A
sensitivefield takesfile: true(withaccept,max_size): an uploaded key sealed in the column, read back withlaterite_core::SealedFile.FieldType::to_control_forgives a type the field’s name.
Fixed
- The database queue takes queues in the order given, a scheduled job keeps its unique key, and two pushes at once no longer both store a unique job.
- A repeater field with no
labelshows its name, as at the top level. - Applying the list setup returns to the list; it led to a missing page under a doubled admin path.
- Saving an existing record no longer fails when its form has a
sectionfield. - A
sectionfield’striggernow shows and hides the heading. - Leaving an untouched form that uses
triggerno longer warns of unsaved changes. - A record picker’s search box is editable text, so password managers no longer offer sign-ins on it.
- The admin top bar scrolls sideways when its sections overflow, with a chevron at each edge, rather than pushing the page wider.
Changed
- Settings are grouped under Website, Users, Mail, Logs and System, with labels in title case (Mail Configuration, Admin Branding, Maintenance Mode).
- List filters are compact
Label: valuepills set close together, so more of them fit on one row. - The admin sidebar fits its titles between
--sidebar-min(new, 200px) and--sidebar-w(now 280px); a longer title ends in an ellipsis.
Security
- A private file opens inside the admin at
/admin/media-files/<id>/<name>, for a signed-in account that may browse the library or see a record the file is attached to. The admin no longer hands out signed links, which opened without a session for an hour.
0.10.1
Added
laterite_corere-exportssqlx,sea_query,serde_jsonandminijinja, andlateritecmfre-exports them withaxumat its root, so plugins share the framework’s versions.lat plugin sync,lat plugin checkandlat doctorname the plugin behind a crate built in two versions across the plugin boundary, a native library linked twice, or a re-exported crate listed itself.
0.10.0
Breaking
laterite_media::KindgainsFont(Kind::ALLnow holds six) and the media field’sMediaModegainsFont: an exhaustivematchon either needs the new arm.
Added
- A library file can be private: ticked on upload, or Make private and Make public on its page;
it serves only at signed URLs.
medialib::private_driverreads them from a plugin. - The media library files TTF, OTF, TTC, WOFF and WOFF2 files as Fonts, listed once one exists;
mode: fonton a media field picks fonts alone. data-lat-tooltipon any admin element shows a styled tooltip on hover and keyboard focus, with a side and shortcut keys; the colour-mode button names the current mode.preview: sideon a markdown field shows the preview beside the text, live as the form changes, andpreview_urlpoints it at a module’s renderer, which may answer a PDF.- The media picker uploads in place: files land in the folder shown, ready to choose. The editors’ Insert button shows only once a command or snippet exists.
actionson a form puts a module’s buttons beside Save on an existing record, and a markdown preview endpoint now receives the form’s other fields besidetext.NavItem::in_settingsplaces a module’s entry or section in Settings, a section as one item with tabs;[backend.menu]moves a section into Settings or back to the top bar.permissions: { create, update, delete }on a resource asks each write for its own grant; withoutupdatethe form opens read-only. Form actions andShell::allowstake grants too.- A module registers a command with
CommandReg; the application runs it as<app> <name>, andlat <name>forwards to it (lat help-applists them). laterite_admin::AuthenticatedUseris re-exported for a module’s handlers andRouteCtx::audit, so a plugin needs nolaterite-authdependency of its own.
Fixed
- A switch field sits level with the inputs beside it instead of at the top of the row.
- The markdown field’s preview renders again: it sent multipart data the endpoint refused with a 415, broken since 0.9.18.
- A refused form on the site shows its errors again: the 422 swap ships inside
/laterite/htmx.js, since the site’s policy refuses the inline script.
0.9.31
Added
footprints,slugsandencrypton a form: who created and changed a row, a unique slug filled server-side, and columns sealed on every save.soft_deleteon a resource moves deleted records to a trash with Restore and Delete permanently; a has-many relation withsoft_deletefollows its parent.QueryHookandContributions::query_hooks: conditions on every admin read of an entity;TableSource::scopeapplies one to a picker’s search.ValidationRuleandContributions::validation_rules: a module’s own rule, named in a descriptor asvendor.rule; an unknown name fails boot.- Polymorphic relations:
morphon a has-many relation andparent_typeon a pivot match rows on a type column holding the parent’s entity. relatedon a form edits one-to-one records beside its own, saved in its transaction with its media links, which a failed save now rolls back too.#[derive(Model)]andlaterite_core::model: typed find, insert, update and one-query relation loads;lat make:modelscaffolds the struct.Seeder,SeederSetandModule::seeders, run bylat seed [module]or the binary’sseed;seed::insert_missingkeeps a seeder idempotent.
0.9.30
Added
- A static build writes the media library’s files and variants under
dist/storage/media/;[media] folderkeeps the library in a folder of the project, committed on every stored or removed file when the theme’s source isgit(media.storedandmedia.removedevents). - A page posts to a component’s handler:
Component::handlersandhandle,Handledoutcomes (data, invalid, redirect, JSON), the origin gate and the visitor’slaterite_token; an HTMX post re-renders the alias or a named partial, a plain form the page. framework(),request()andtoken()in templates: the site serves HTMX at/laterite/htmx.js(written by a static build too), with the attributes and fields that post a form to a handler..flash(level, text)on a handler’s outcome,colour_mode()in templates with the boot script at/laterite/theme-boot.js, and a static build that warns about a page whose component has handlers.lat routesand the application’sroutescommand: every URL with its method, kind, owner and permission, filtered by--path,--method,--kind,--owner,--permissionor--public, or as--json.- A Developer section in the admin while
app.debugis on, for a superuser: Routes, Field types with a live sample of each, Mail previews, Registries.
Changed
- The admin shell reads a user’s menu preferences in one query and a list its column and page-size choices in one: four fewer statements on every screen.
Fixed
- A static build that writes no pages fails and says so; before, a theme the binary’s framework could not read deployed as an empty site.
0.9.29
Added
- A resource’s
sourcekeeps its records outside the database:files(yaml, json or markdown in a folder),git(the same, committed), or aRecordSourcea module registers; read at boot, pushed on every save. A deleted record’s snapshot now carries the form’s columns, not only the list’s. lat make:resource --source <DIR>(--format,--git) scaffolds a resource whose records are files.- An application’s
admincommand serves it and opens the admin in the browser, for an editor running the built binary on their own machine. lat newwithfolderorgitcontent scaffolds a first plugin with apostcollection incontent/posts;lat make:plugin --staticdeclares static support, and a plugin scaffold pins the running framework version.lat newruns unattended with--url,--timezone,--listenand--admin(password fromLAT_NEW_ADMIN_PASSWORD); a development scaffold patcheslaterite-webtoo. A JSON code editor field is structured data in a record’s file.- A static build renders a page with parameters once per set a
PathsReganswers for its pattern (TableKeysfor a table’s keys);lat make:resource --sourcescaffolds the collection’s component and paths, andlat newits/postspages.lat serveserves thetheme.copyfolders. lat new --content gitstarts the site as a repository with the scaffold committed, and every shape prints its own next steps: sign-in, adding a collection, publishing, and the editor’sadmincommand.- Maintenance mode tells an exempt operator it is on: a bar at the foot of every
page with the visitor’s view (
?maintenance=visitor) and a link to the setting. RouteCtx::settings_path(code): where a settings screen is served.- Theme files (pages, layouts, partials) as YAML front matter between
---lines and the markup; export writes that form and import reads both. - Mail files as YAML front matter and one body: the text part is made from
the body with the partials’ text forms, or from a
.txtregistered beside it (add_mail_template_with_textand the layout and partial forms). laterite_core::markdown::to_text: Markdown as plain text.- A
sectionfield type: a heading with a line beneath that groups the fields after it, stored nowhere. - A settings screen as a file:
laterite_admin::settings!("admin/settings.yaml")andsettings::from_yaml, taking the form descriptor’s field entries. transient: trueon a form field (FormField::transient()): shown and submitted with no column behind it, for a persister to read (a password field).
Deprecated
- The
==section form of a mail or theme file; it still reads, logged as deprecated, and goes in the next minor.
Fixed
- A pull keeps a switch the file leaves out at off, so a NOT NULL column
survives a re-read; a static site’s git source runs in the project root
when the binary is started with a relative
configdirectory. - A file-backed theme is the site’s active theme once its folder is read,
so
serverenders afolderorgitsite’s pages, asbuilddid. - A scaffolded boolean column defaults to
0, notfalse: Postgres refused the boolean default on the integer columnbool_colmakes. - A settings sidebar group an operator folds stays folded on the next page, kept as their own preference and cleared by the menu’s Reset.
- An upload larger than two megabytes is stored whole: the request body limit on the media and import routes now follows the upload limit, and a body cut short is refused instead of stored truncated.
- The direct-upload routes read the multipart body the uploader sends, so an upload no longer logs a refused request token before falling back.
- Uploading a binary file no longer fails with “could not be stored”: the SVG sniffer sliced lossily decoded text on a byte index.
- A resource form shows a field’s
helptext; only settings forms did. - A section’s sidebar lists its entries without a group heading when it has one group, so a plugin section no longer repeats its own name.
0.9.28
The Static from a database slice: a theme lives in the database, in its folder, or in git, behind one seam the admin writes through.
Added
-
Theme sources (
laterite_web::theme::source):[theme] sourcechooses where the theme lives,databaseorfolderbuilt in,gitbehindtheme-git; the admin writes every save through it. -
Bootstraptakesbuildfor any project andpublish(the source’s publish, thentheme.publish.hook);lat theme publish. -
A static build refuses a plugin whose module does not support it, by name;
Bootstrap::buildrenders a static website from code.
Changed
- A static build’s binary logs warnings only by default (
RUST_LOGoverrides) and skips theapp.keywarning. lat plugin add <git url>vendors the clone without its.git, so the plugin’s files are committed with the application instead of an empty embedded-repository pointer.
0.9.27
The Static plugins slice: a static website takes plugins, compiled into a binary of its own that builds and previews it.
Added
- Static websites take plugins: the first
lat plugin addgives the site a Cargo project whose binary builds and previews it;Bootstrapruns in static mode when[theme] folderis set. Module::supports_static,static_seedandsite_files(additive defaults); the site file envelope inlaterite_core::site; astatic = trueplugin marker the installer checks.
0.9.26
The Static website slice: lat new scaffolds a site with no database, built
and previewed from its theme folder by lat theme.
Added
lat new --staticscaffolds a static website: a theme folder named by[theme] folderin its config, whichlat servepreviews andlat theme buildrenders with no database;--from,--copy.theme::folder::loadandarchive::import_dirread a theme folder into an in-memory database.
Changed
- Markdown headings without a
{#id}get an id from their text, so any heading can be linked. lat theme buildwrites a page whose URL names a file (/robots.txt) as that file, and gives a clean page the trailing-slash URL a static host serves it at in its canonical link.
0.9.25
The Auth tidy slice: a session that runs out is handled in place, sign-outs reach the access log, and the framework’s own roles cannot be deleted.
Added
- Admin: a session that runs out is handled in place: a warning two minutes before the stored deadline with Stay signed in, a re-login dialog that keeps the page, htmx requests retried.
- Auth: a sign-out is on the access log with its address (
AuthService::logout_with);[auth] access_log_retention_days(default 365) bounds the log through the hourly purge.
Fixed
- Lists:
protectednames a boolean column whose rows get no checkbox; the roles list marks the framework’s own roles with it.
0.9.24
The Mail slice closes the Services theme: templates a module ships and an admin edits, drivers, queued sending, the mail screens, and the invitation and reset flows. Imports now run as jobs.
Added
laterite_core::mail: messages from sectioned template files a module registers, rendered through layouts and partials with the brand stylesheet inlined, queued by default;smtp,logandstubdrivers plusadd_mail_driver;[mail];RouteCtx::mail;lat mail test.- The Mail settings screen under Settings → System (
backend.manage_mail) with a sealed SMTP password and Send a test message;SettingsItem::actionfor a button beside Save. - The Mail Templates screen (
backend.manage_mail_templates: edit, preview, test, reset, delete, new), Mail Branding with a preview, and the Mail Log of what thelogdriver kept. - Creating an operator mails
laterite.auth::invitewith a set-password link; the sign-in page’s Forgot your password mailslaterite.auth::reset;/admin/set-password/<token>sets it.
Changed
- An import runs as a job on the queue: on the request in
inlinemode, on the workers otherwise; the run report shows Queued until a worker takes it, and a lost run is failed by the queue.
0.9.23
The Jobs and schedule slice of the Services theme: a queue with workers in the application, a cron scheduler, and the screens and commands to watch both.
Added
laterite_core::queue: aJobis a serde struct behindregistry.add_job::<T>(), pushed withctx.queue(), run by in-process workers with tries, backoff, timeout and a failed list;[queue].Bootstrap::run(serve, orqueue workalone; the scaffold calls it),lat queue work | list | failed | retry | forget | flush, thequeue.job_failedevent.laterite_core::schedule: cron entries registered withregistry.add_schedule, evaluated each minute in their timezone on one process,[schedule],lat schedule run | list; the hourly session purge is one.- The Jobs and Scheduled Tasks screens under Settings → System, behind
backend.manage_jobsandbackend.manage_schedule. queue.store = "redis"behind theredisfeature: jobs claimed by one script, shared by every process.
0.9.22
The Cache slice of the Services theme: values kept under the namespaces they were built from and dropped by every framework write, in every process.
Added
laterite_core::cache: values kept for a lifetime under the namespaces they were built from, bumped by every framework write;memory,nullandredisstores;[cache];RouteCtx::cache.- Write handles that bump:
RouteCtx::settings,laterite_web::theme::Themes; the parameters handle now writes through the cache.lat cache clear | list.
Fixed
- A click anywhere in the admin no longer cycles the colour mode: the mode button has its own hook, so the root’s default-mode attribute is not mistaken for it.
0.9.21
The Crypt slice, first of the Services theme: an application key everything seals and signs under, a sensitive field type, key rotation, and the handbook restructured by task.
Added
laterite_core::crypt: the application key (app.key,lat key generate) seals values, signs links and mints expiring tokens per purpose;RouteCtx::crypt. Signed media URLs use it.- The
sensitivefield type: a secret sealed at rest, shown as a mask, revealed on request with an audit entry.lat crypt rotatere-seals every such column afterlat key generate --rotate.
Fixed
- An edit writes only the attributes the record carries, so a value a field type leaves out (a blank password) keeps what is stored; it was written as NULL.
- The context side panel folds at phone and tablet widths as documented, and a colour input is a swatch, not a full-width bar.
0.9.20
The Admin polish slice: dashboard widgets each operator arranges, brand marks and colours with a customised sign-in, skins, a parameters store, a context side panel, checked uploads with a cleaned SVG, and snippets backed by components.
Fixed
- The colour-mode boot script is served as a file and loaded blocking, so the admin’s content security policy admits no inline script at all.
Added
- Brand settings: logo and browser icon from the library, an accent colour applied through the
palette variables, a default colour mode, the sign-in prompt, tagline, background and panel, and
a custom stylesheet cleaned on display. A
colorinput for text fields. - Dashboard widgets:
laterite_admin::widget::WidgetwithAdminRegistry::add_widget, permission per widget, sizes, timed refresh; each operator arranges their own under Manage widgets. Four built in. - Skins:
backend.skinselectsstandard,compactor a module’s own, registered withAdminRegistry::add_skin;add_assetserves a module’s file under the admin’s assets. - Parameters store:
laterite_core::parameterskeeps a module’s own state undernamespace::group.itemkeys, cached per process throughRouteCtx::parameters. PageHead::aside: a context side panel beside a page’s body that folds under its label at phone and tablet widths. The theme pages list their templates in it.- Uploads are checked against
backend.upload_extensions(a default list of media, document, font and archive types) and an SVG is cleaned to a drawing (laterite_media::sanitize). - Component-backed snippets:
ComponentReg::snippetlists a component in the Insert menu and a page runs it where its figure stood. A partial declares its snippet through fields.
0.9.19
The admin verified at phone and tablet widths and from the keyboard, with a visual pass over every component: toasts on the dark surface, outline danger buttons, banded list footers, quiet editable cells, contrast tokens, labels, a skip link, a focus-trapped drawer, roving toolbars, and browser hardening headers on every response.
Added
- Security headers on every admin response (a content security policy with no inline script,
nosniff, frame, referrer, permissions and opener policies; HSTS withsecure_cookie). - A skip link, a focus-trapped drawer, and single-tab-stop toolbars with arrow-key movement.
- Labels on editable cells, value-form fields and the palette input; arrow keys in the Insert menus.
Fixed
- Text tokens under the 4.5 contrast ratio raised (hint text, accent, attention) and dark mode given readable success, danger and info tones.
- Flash toasts, danger buttons, list footers, editable cells and the error page restyled to the palette; settings list inline, larger tap targets and split panes kept to the screen on phones; media filters after the content.
0.9.18
The editors: rich text over TipTap and ProseMirror, markdown and code over CodeMirror 6, built once from a lockfile into bundles the admin ships, with schema-clean HTML on save, a server-rendered markdown preview, and an Insert menu that modules and themes extend with commands and snippets.
Added
richeditorfield type (TipTap over ProseMirror;rows,placeholder,toolbar): HTML kept to the editor’s schema on save, library images linked to the record,lat.mediaPickershared.- Editor contributions:
AdminRegistry::add_editor_commandandadd_snippet_sourcefeed both editors’ Insert menu; a theme partial’ssnippetsetting makes it a block, expanded by|content. markdownfield type (CodeMirror 6 with a server-rendered Preview tab),laterite_core::markdown::renderas the one renderer, and amarkdownfilter for themes.codeeditorfield type (CodeMirror 6;language,rows,line_numbers,wrap) andPageHead::assetswithCODE_EDITOR_ASSETS; the theme template editor uses it.
0.9.17
Ordered hierarchies: one arrangement engine for every list modules insert into, with named slots that say where a thing goes, deployment overrides and moves in configuration, and each operator’s own order and placement on top; Themes under Settings.
Added
laterite_core::arrange: one engine for every list entries insert themselves into, with named slots, anchors, a per-hierarchy policy and[backend.order]overrides.slotonmenu:placements and settings items; the top bar and the settings index arrange by it, so a plugin’s resource lands after Media by default.[backend.menu]: an entry moved between the top bar, a section and the settings index, keeping its label, icon, permission and target; the boot log prints every arrangement.- An operator’s own menu: the settings list drags like the tabs, and Preferences lets them show any entry in the navigation or in settings; Reset puts it all back.
Changed
- Themes sits in the settings index under Website; the top bar carries Dashboard, Media, the application and Settings.
0.9.16
The media library: folders, links and the browser, private-disk serving behind a
signed URL with lat media gc and verify, named-preset variants, the media
field with its picker, an S3-compatible disk behind a feature, cropping, and
direct uploads through a quarantine prefix; the Themes and Media screens laid out
on dialogs, panes and attached toolbars, with the uploader widget.
Added
- The media library: the Media tab with virtual folders, upload, search, a kind filter
and sorting, a file page with who links to it, and
media.*permissions. laterite_media::{folder, link, library}: folders as rows with materialized paths, links by owner and field, and listings;DiskReg::private.- Every file serves at
/storage/media/<hash>/<name>with an ETag,immutablecaching andnosniff; a private disk’s file only at a signed, timed URL (medialib::signed_file_url, keybackend.secretor one generated once). lat media gcandlat media verify(laterite_media::{gc, verify}), andStorageDriver::signed_urlfor a store that presigns.PageHeadwithShell::page_with(a back link and actions beside the title),dialog.lat-dialogopened bydata-lat-dialog, and thelat-split/lat-panelayout.- Direct uploads:
/admin/media/directpresigns a PUT under a quarantine prefix on a disk that can, the uploader puts the bytes there, and/direct/completehashes, promotes and records them;StorageDriver::{presigned_put, copy}with defaults. - Cropping on the file page: a drawn area saved as
<stem>-crop.<ext>beside the original or written in its place (image::crop,record::replace_blob). S3Diskbehind the media crate’ss3feature (lateritecmf/s3): any S3-compatible store through an endpoint override, multipart past 16 MiB, presigned GET and PUT.- The
mediafield type (mode,max): a picker over the library, ids stored, the record’s links written on save;media()and|variantin templates. - Variants:
Presetregistered on the registry, rendered on first request at/storage/media/<hash>/<preset>/<name>, withthumbandpreviewbuilt in. - Uploads lose their EXIF before hashing;
width,heightandmeta.orientationare recorded. - The uploader (
_upload.html, widgetupload): a drop zone that sends each file itself with progress, or stands as the file field of a form; the media upload answers it in JSON.
Changed
- Every list is one card under its heading: the toolbar band on top with Import and
Export behind a
⋯menu, the filter band below it, then the table; a page’s actions render in a band under the heading. - A theme’s name, author, homepage, description and the new
previewURL are edited in a properties dialog; theme.yaml itself travels in the zip and is no longer a textarea. - The Themes and Media screens: a theme selector with a Manage menu, a template navigator beside the editor, and a media browser with a filter pane; forms open in dialogs.
Fixed
- A blank optional non-text field (a cleared reference or media id) saved on Postgres; the persister bound a text-typed null that a bigint column refused.
0.9.15
Components: a module’s compiled units attached to a page or layout by data, run before the render and read under their alias, with their own markup a theme may override; markup a module adds to every engine; maintenance mode; and the session cookie covering the site so an operator is known to it.
Added
-
theme::markup::MarkupReg: a module’s functions, filters and globals installed into every theme engine;build::build_withtakes them for a static build. -
Maintenance mode (Settings › Website,
web.manage_site): visitors get the theme’s/maintenancepage or a notice with 503; an operator who may manage themes sees the site. -
theme::component: aComponenttrait with declared properties, registered as aComponentReg; attached in a page’s or layout’scomponentssettings, run before the render and read under the alias, with{{ :name }}taking a URL parameter. -
site::render_page_withandsite::run_components;build::build_withtakes the registered components too. -
Component::markupandcomponent("alias"): a component’s own markup, overridden by the theme’spartials/<alias>/default.htm; the page editor’s Components box.
Changed
- With a site registered, the session and remember cookies are scoped to
/rather than the admin mount, so the site recognises a signed-in operator.
0.9.14
Pages and layouts: the public site served from the active theme. A page’s URL
is a pattern, its layout a setting, its settings typed fields in the editor;
the site renders with this and head, the theme’s own 404 and error pages,
assets with an ETag, and preview for an operator; lat theme build writes the
same pages as a static site.
Added
- Pages route: a page’s
urlpattern (:param,?,?default,|regex,*), itslayoutwrapping it on save,page()for links, andEngine::resolve. - The public site: the active theme’s pages served at every URL the admin leaves,
with
thisandhead, a/404and/errorpage, text assets with an ETag, and preview of an operator’s edit theme and hidden pages. PublicRouteReg::site, the route that takes the panel’s 404 for the site;RouteCtx::operatorandRouteCtx::record_unservedfor a public route.- The template editor shows a page’s settings as typed fields with a layout picker, and the theme page lists each page’s URL.
partial()carries the request’sthisandhead;content()takes variables for{name}in the block;asset()andurl()build theme and site links.lat theme buildandtheme::build: a theme’s fixed pages and assets rendered to a directory for a static host, through the render path the site serves.
0.9.13
Themes: the public site’s templates as rows edited from the admin. A theme is a
YAML config and templates by kind, resolved through a parent chain and rendered
by a runtime engine; every save keeps a revision; settings declared in the
config; export and import as a zip. Plus the umbrella crate on crates.io and
lat new generating on it.
Added
laterite_web::theme: themes as rows with a YAML config, templates by kind and path resolved through a parent chain, a revision per save, and the active and edit theme.laterite_web::theme::Engine: a theme’s templates rendered with layouts, partials and content blocks, a parse check for the editor, and a cache rebuilt on change.- The Themes tab (
web.manage_themes): themes created, duplicated, extended, locked, activated and deleted, and their templates edited with a parse check and revisions. RouteCtx::audit, so a module’s own screen writes the audit log like the admin’s.- Theme settings: fields declared under
formin a theme’s config, edited on its page and read in templates astheme.<field>; a child theme uses its parent’s form. ValueFormandRouteCtx::value_form: a form over a JSON object through the registered field types, for a module’s own screen; the settings screens use it too.lat theme export,lat theme importandlat theme list, and Export and Import on the Themes screen: a theme as a zip oftheme.yamland one file per template.
Changed
lateritecmfis on crates.io, andlat newgenerates an application on it:use lateritecmf::prelude::*;with the driver feature set on the umbrella.
Fixed
lat make:migrationlisted the new migration inside the module impl that follows the set in a generated application; it goes into the set.
0.9.12
Navigation and system screens complete, closing the admin panel: a menu registry with sections, anchors and the operator’s own order, breadcrumbs, a command palette, a request log, resource hooks, a module boot hook, typed UI elements and per-operator settings.
Added
- A menu registry:
menu: { under, icon, order }(orfalse) on a resource,ScreenReg::menu, andNavItemsections and entries contributed by a module. Every entry carries its target’s permission, so an operator sees only what they may open; a section’s entries show in the context sidebar. afterandbeforeon a menu placement or item: sits beside that sibling whatever the orders say, so two modules never fight over a number.- An operator drags the top bar’s tabs into their own order, kept with their preferences; “Reset the menu order” on Preferences restores the default.
- Breadcrumbs on a section’s pages and on settings pages, derived from the menu.
- A command palette (the search button, Ctrl+K): menu entries, settings and,
for a resource with
palette: <picker source>, its records, opened at their edit page. - A request log: every URL the admin could not serve, counted, under Settings
› System for
backend.view_request_log; it keeps its most recent two thousand rows. ResourceHook: a module changes another module’s resource before it mounts, adding a column, a field, a relation or a placement to a screen it does not own.Module::boot: runs once after every module has migrated and registered, with the database and the registry; the auth module’s first sweep of expired sessions is one.laterite_admin::ui: typed buttons, toolbars, badges and cards for a screen that composes a page by hand, rendered through the shell.PreferencesModelandSettingsItem::per_operator: a settings model stored once per operator and edited from their Preferences page, withload_forandsave_for.
Changed
- The backend users screen is titled “Administrators”, as its settings entry always was.
Fixed
- On a narrow screen the section sidebar sat above the content and pushed it down; its entries now nest under the active tab in the menu drawer.
- Deleting rows from a list returned to a doubled path (
/admin/admin/...), a 404; it returns to the list. - The setup screen’s first sign-in now records the client’s address and agent like every other sign-in.
- The list page’s filter triggers were unparsable for htmx (a syntax error on every list); a filter change now swaps the table in place as intended.
0.9.11
Relations on Postgres: a foreign key and a picker’s choice are stored as numbers.
Added
id, a field type for a record id held as a number: a hidden foreign key or a plain key column with no picker.
Fixed
- A relation’s foreign key and a
referencefield’s choice were written as text, which Postgres refuses for a bigint column; both are stored as numbers now. - The main pane keeps its width when its content grows past the fold: the scrollbar’s space is reserved. Row actions are one group of matching buttons.
0.9.10
Relations and structure complete: related records on the edit page, lists kept
in their own order, tree lists, and cells edited in the row. Plus lateritecmf.
Added
relationson a resource: has-many (New, Edit, Delete) and many-to-many through a pivot table (Attach from the picker, pivot fields, Remove), as edit-page sections.- “Save and continue editing” beside Save on a resource with relations.
reorderon a list: rows kept in an order of their own, dragged by a grip or moved by arrows, with sparse keys so a move rewrites one row.treeon a list: rows shown as a tree on their parent column, children loading in place, and “Move to” throughPersister::move_to(default writes the column).editable: trueon a list column: the cell is the form field’s control, saved on change through the form’s rules, persister and listeners.lateritecmf, the one crate an application depends on: it re-exports the family aslateritecmf::{core, auth, admin, media, web}, forwards the driver features and carries a prelude.
Changed
- Import is part of
laterite-admin:import: trueon a resource needs no other crate, module or disk; uploads go underbackend.storage. Thelaterite-importcrate, never published, is gone. laterite-media’s table migrates with the admin; registering its module is no longer needed.
0.9.9
Bulk import complete: a CSV through a resource’s form, checked first, with a report and the refused rows back as a file.
Added
- New crate
laterite-import: runs a CSV through a resource’s form, detached, with a polled report of the rows created, updated, skipped and refused. FormHandle::load(id)returns a record’s values as its edit form shows them.RouteCtx::form(path)hands a screen a resource’s form to write records through from code, with the submit’s rules, listeners, persister and audit.- A resource declaring
import: truegets import pages under its path and an Import button beside its export menu: a CSV in, columns matched (remembered from the last file with the same titles), a check that writes nothing, then the run, its live report, and the refused rows back as a file to fix. laterite_admin::Shellis public: a contributed screen renders its own templates inside the admin chrome withShell::page. A module mounts routes under a resource throughResourceFeatureReg.laterite_media::DiskRegdeclares a named disk for modules that store files.- A CSV export starts with a byte-order mark, so a spreadsheet reads it as UTF-8.
Fixed
laterite-media’s table migrates on Postgres and MySQL: itsin_librarydefault and binding were booleans on the integer column.
0.9.8
Fixed
- A repeater on a descriptor form shows its stored rows on edit (saving the form had emptied them) and keeps typed rows when a save is refused.
0.9.7
The repeater: rows move, copy and collapse to a list by themselves, and every control reads in the operator’s language.
Added
- A repeater row moves up and down and copies into a new row (
reorder,duplicate), and past three fields a row the rows collapse to a list (display: auto).
Fixed
- A repeater’s Add, Remove and Untitled read in the operator’s language, and a widget inside an added row now starts.
0.9.6
Lists that keep their place: a row opens its record, a range of rows ticks with Shift, the query an operator used comes back, and stored codes read as words.
Added
- A list row opens its record, Shift and a click ticks a range of rows, the
query an operator used comes back (
remember), and a column’slabelsname its stored codes;row_click: nonekeeps rows plain.
0.9.5
Pickers: a long dropdown is searched, and the record picker takes the keyboard.
Added
- A dropdown past ten choices is searched (
search), and the record picker takes the keyboard: Down and Up, Enter, Escape, an emptied box clears it.
0.9.4
Field dependencies: a slug follows its title, and a field shows, hides or fills itself as another field changes, all from the descriptor.
Added
presetfills a field from another as it is typed (a slug from a title), andtriggershows, hides, enables, empties or fills a field as another changes.
0.9.3
Everyday form behaviours: a form asks before losing work, opens with the cursor where typing starts, counts against a length limit, grows its textareas and shows a password on request.
Added
- Forms ask before leaving with changes unsaved and place the cursor where
typing starts:
confirm_leave,focus. - A
max_lengthrule setsmaxlengthand shows a count:counter. A textarea grows with its text:grow. A password field shows what was typed:reveal. lat.confirm(text, labels, done)asks in the admin’s dialog from script.
0.9.2
The checklist: one component for every list of boxes, which offers select all, search and closed groups by itself as the list grows.
Added
- A
checklistfield type andlaterite_admin::checklist: boxes in groups, with select all, search and settled groups closed once the list is long. FieldType::submittedgathers a field of several controls into one value.
Changed
- The Roles permission editor and role assignment are checklists.
0.9.1
Events: every admin island announces what it does and can be driven from script, and modules hear each other’s facts on an application event bus.
Added
- Every admin island announces what it does as a
lat:<component>:<event>DOM event and hands back a controller:lat.on,lat.emit,lat.get. - An event bus:
registry.listen::<E>(..)hears a typed event,events.emit(..)announces one. Auth announces sign-ins, sign-outs and password changes.
Fixed
- An island that is itself the swapped-in element now starts, and a success
message raised with
lat.flashleaves after five seconds.
0.9.0
Accounts and forms: operators are created, reset and unlocked from the panel under a password policy; forms fill the width, lay fields out on a grid and rule what Enter does; a type’s keys are written on the entry itself.
Changed
- Breaking:
AuthConfigis non-exhaustive and gainspassword_policy; build it fromDefaultand set fields. - Breaking:
AccessEventis non-exhaustive and gainsPasswordChanged, recorded when an operator changes their own password. - Breaking:
AuditEntryandAuditRecordare non-exhaustive and carry atarget_label; build an entry withAuditEntry::new(actor, action).target(..). - Breaking:
FormFieldis non-exhaustive and gainsenter,spanandbreak; build one withFormField::ofor from YAML. - Breaking: a type’s keys are written on the entry itself,
rows: 8on a textarea oroptions: [..]on a select; the nestedoptions: { .. }is refused. - Breaking:
ListColumnandListFilterare non-exhaustive, and a column carries its type’s keys inoptions. - Pages and form cards fill the width beside the sidebar, or the whole window without one. The 1200px page and 720px form caps are gone.
- A sign-in lockout counts failures per username and address, so a stranger
cannot lock an operator out from elsewhere; one address is also limited
across usernames (
max_failures_per_address, default 20).
Added
[auth.password_policy] min_length(default 8) is enforced wherever a password is set: Preferences, first-run setup andlat admin create.AuthService::recent_accessreads an account’s access log.- An Access Log screen under Settings → System, gated by the new
backend.view_access_log: sign-ins, failures, lockouts and sign-outs. - Expired sessions and stay-signed-in credentials are purged at boot and
hourly, and by
lat admin purge;AuthService::purge_expired. - The audit log names its target: a username or a role name beside the id.
- Operators are created from the Users screen: name, email and roles, with a
generated temporary password shown once.
AuthService::create_operator. textareatakesrowsandplaceholder,texttakesplaceholder. A key a type does not read is refused by name;FieldType::option_keysdeclares them.spanon a form field (1/2,1/3,2/3,1/4,3/4,full, or 1 to 12 columns) andbreaklay fields out on a twelve-column grid that wraps.- Keyboard rules for every form: Enter submits, Cmd/Ctrl+Enter submits from a
textarea, a picker or a repeater row acts within itself.
enter: offon a form andenter: nexton a field opt out. - An administrator resets another operator’s password from their edit screen
(temporary, shown once, every device signed out) and unlocks a locked-out
account.
AuthService::reset_operator_password,is_locked_out,unlock. - A temporary password must be changed at first sign-in: every screen redirects
to Preferences until it is.
--generateonlat admin createandreset-passwordmarks it;AuthService::require_password_changedoes too.
Fixed
- Enter in a record picker’s search box submitted the whole form around it.
lat i18n extractreadsself.tfcalls in the pre-auth templates.
0.8.2
Password hardening: every sign-out says why, a change is one transaction and is dated from creation, a refusal redirects back, and creating an operator is on the audit trail.
Added
SessionHandle::push_flash_stickykeeps a message until dismissed; a password change confirms with one.- Creating an operator from first-run setup or
lat admin createis audited asbackend.user.create, credited to the process.
Fixed
- Signing one device out from Preferences tells that device why, the same as signing out every other device does.
- A password change and a deactivation each run as one transaction, and the time a password was set is recorded at account creation.
- A refused password change redirects back with its reason, and the login screen’s forgot-password link, which went nowhere, is now a note.
0.8.1
Password changes that hold, and resources as files: a change signs the account out everywhere else and says why, is audited and dated, and can be made from Preferences; a resource can be written as one YAML descriptor file.
Security
lat admin reset-passwordnow signs the account out of every session and stay-signed-in device. Before, a reset left whoever else held it signed in.
Added
AuthService::change_passwordrevokes every other session with a reason, is audited, and refuses a password underMIN_PASSWORD_LENGTH(8).- Operators change their own password under Preferences, confirming the current one; this browser stays signed in.
- When a password last changed shows on the Users form and in Preferences.
- A signed-out session or stay-signed-in device is told why on the login screen: a changed password, deactivation, sign-out elsewhere, or inactivity.
- A resource can be written as a YAML file and read with
laterite_admin::descriptor::from_yaml. One file per resource, columns and fields as named maps, an unknown key refused with its line. resource!("descriptors/posts.yaml")embeds a descriptor file at compile time.lat i18n extractreads the labels a descriptor file carries, andlat doctorparses everydescriptors/**/*.yamlwithout a compile.- The built-in audit log is itself a descriptor file.
Permission::renamed_fromrewrites a renamed code in every role and per-user override at boot, so an operator’s own choices are repaired.
Fixed
- An htmx request from a signed-out session navigates to login through
HX-Redirect, instead of rendering the login page inside the swap target.
0.8.0
Roles you can actually use, and lists you can shape: two built-in roles written from the permission registry, a screen to assign them, and the knobs a resource needs to say how its list behaves.
Changed
- Breaking:
Permissionis built withPermission::new(code, label, group)and is non-exhaustive;.roles([..])names the built-in roles that hold it. - Breaking: a
ListFiltercarries atypestring and an options bag, like aFormField;FilterKindis gone.booleanandselectare unchanged.
Added
- Two built-in roles, Administrator and Editor, written from the permission registry at every boot. The first operator holds Administrator.
- Roles are assigned from the Users screen. A role granting more than the editor holds, and their own roles, are locked.
- A built-in role is read-only in the editor, with Duplicate to make your own, and cannot be deleted: the assignments that cascade with it would not return.
- A list sets its empty-state message with
no_records_message, and its search box withSearchConfig: a prompt, ask on Enter only, or off. per_page_optionsoffers the operator a choice of page size in the list setup, remembered with their column choice.- Column knobs:
sortable,invisible,width,alignandrequire. A column the operator may not see is not queried, sorted, searched or exported. - Filter knobs:
default_valueopens a list already narrowed,requiregates a filter, and the typestext,numberanddateeach refuse what they cannot match.
Fixed
- The New button on a resource list pointed under the admin mount twice and answered 404.
- A list column naming an unregistered type stops the application at boot, naming the column, instead of rendering an empty cell.
0.7.0
The admin’s list screens rebuilt into one action row, a curated icon set that fails loudly on a wrong name, export made opt-in, colour mode moved to core for the public site, third-party notices accounted for, and the guide rewritten as a reference: every page code first, options in tables, no rationale.
Changed
- Breaking: an unknown icon name now stops the application at boot, naming the item and suggesting near matches, instead of rendering a generic glyph.
- Breaking: list screens put New, Delete and search in one row above the
table, and filters sit on the table as its top strip. Custom CSS on
.lat-bulkbar,.lat-listbar__formor--surface-filterbarneeds updating. - Breaking: a list exports only when it calls
.exportable(), and the route is not registered otherwise. Of the built-ins only the audit log keeps it.
Added
- An icon set of 197 glyphs in
laterite_core::icons, served as one cached sprite. Modules register their own, namespaced. See the icon reference. - Colour mode (light, dark, follow-the-system) moved to
laterite_core::theme, so a public site can use the same mechanism the admin does. - Bundled fonts, icons and scripts are recorded in each crate’s
NOTICE, whichcargo aboutfinds when you generate your own.
Fixed
- Dropdown menus close on choosing a link, on a click elsewhere, and on Escape.
data-lat-keep-openopts a menu out of it. - Saving a settings screen or a user’s permissions returns to that screen rather than the index or the user list.
0.6.2
Fixed
- Auto colour mode did not follow the system. It resolved the system preference once, at page load, and then froze: an admin left open through dusk stayed light until someone reloaded it, which is exactly when an operator expects it to have followed along. Auto now listens for the preference changing and re-applies. An explicit light or dark is the operator overriding the system and still stays put. The boot script also moved into one shared partial, so the pre-auth screens get the same behaviour instead of their own copy of the old one.
Added
-
Colour mode is a framework mechanism, not admin chrome. Light, dark or follow-the-system now lives in
laterite_core::theme, so a public site can use the same machinery the panel does:boot_markup()inlines a blocking script that resolves the mode before first paint and keepsautoin step with the system, and the contract it establishes (<html data-theme>, thelat-modestorage key,latMode/latSetMode/latApplyMode) is public API pinned by a test. What is offered is the mechanism, never an appearance: no icons, no toggle markup, no colour tokens, since a site brings its own. The admin is now one consumer of it and keeps only its own button and glyph. -
A way out to the site from the admin. The top bar carries a link to the site’s own root, beside the colour-mode button, opening in a new tab so an operator does not lose the screen they were working on. The target is the configured
app.urlwhere set, else the bind address, so it follows a deployment rather than assuming localhost. -
An operator account can be deactivated and reactivated. The users list has always shown and filtered on an Active column, and the framework refused a sign-in from an inactive account, but nothing could set the flag: the stated reason operators are not deletable (“deactivating is the reversible equivalent”) had no implementation behind it. Deactivating now ends the account’s sessions and drops its stay-signed-in credentials in the same call, because an account that may not sign in must not stay signed in somewhere. Two deactivations are refused with a reason the operator reads: your own account, and the last active superuser, both of which leave a panel that has to be repaired from the command line. The change is audited.
0.6.1
Changed
- A settings description is a label, not a lecture. It renders in a sidebar
211 pixels wide, so it is capped at 72 characters (two lines) by a debug
assertion on the builder. The reference system’s own run 27 to 90 characters,
median 53; the discovery plugin’s ran 80 to 130, every one longer than that
maximum and three to four lines deep in a narrow column.
SettingsItem::hintis the new home for anything longer: a note at the top of the screen itself, uncapped, since the reader has chosen to open it. It supersedes the description there, so the two never print together.
0.6.0
Changed
-
Breaking: a settings screen mounts in its module’s namespace (
/admin/rainmill/discovery/robots) rather than at its storage key (/admin/settings/rainmill.discovery.robots).SettingsItem.codeis a storage key and was being used as a URL, which put a dotted identifier in the path and left these the only contributed screens a deployment could not move with[backend.paths]. They now resolve through the same module namespace as resources, screens and public routes, and claim their path in the same collision check, so a settings screen shadowing a resource aborts the boot instead of silently winning.SettingsItemis#[non_exhaustive]with anew+ builder; construct it withSettingsItem::new(code, label, fields)and the builder methods rather than a struct literal. The panel’s own settings belong to no vendor, so they pin a plain path under/settings(/settings/branding) rather than carryinglateritethrough a URL. -
Breaking: the session functions on
laterite_auth::store(insert_session,find_valid_session,renew_session,delete_session,set_session_data) are crate-visible. Reading a session row is what pushes its idle clock forward, so a caller reaching the row directly would authenticate a request while leaving the session ageing as though it never happened.AuthServiceis now the only way in, which makes skipping the renewal unrepresentable rather than merely discouraged. The rest ofstore(users, roles, preferences, audit) is unchanged. Callers outside the crate were already usingAuthService; the identically named methods on it are the replacement.
Fixed
-
A form using a reference field could not boot. Assembling the field-type registry built it twice: once with the reference field inserted (it needs the picker registry, so it cannot come from the arg-free built-ins) and again from the built-ins alone, and the second discarded the first. Any form declaring a reference field then aborted boot with “uses unregistered type
reference”. Module-contributed types now join the existing registry instead of replacing it. -
“Stay signed in” did nothing. The login form offered the box and no code read it: the session cookie carried no lifetime at all, so it expired with the browser while the session behind it stayed valid for its full twelve hours, unused. Ticking the box now gives the cookie that same lifetime, and leaving it unticked keeps the browser-session cookie that suits a shared machine.
-
Admin forms were pinned to a hardcoded width in five templates, and to two different widths between them. They share one token now, and a form holding a repeater uses the page’s full width rather than cramming a row of columns into a column’s worth of space. Repeater labels align at the top of a row, so a short input and a tall textarea read as one row instead of two.
Added
-
A repeater can lay its rows out as a list. A row of several fields rendered inline is a row of columns, and four of them is already a table nobody can read.
FormField::repeater_listcollapses each row to the line that names it and opens one at a time, so Add reads as adding to a list rather than growing the form. The naming field is nominated by the descriptor or defaults to the first, the title tracks what is typed, and the collapse is adetailselement so it works before any script runs. The inline layout stays the default, since a single narrow column is better left expanded. -
A dotted segment in an admin path aborts the boot, naming the contribution. A module identity is dotted and a URL is not, so an identifier reaching the router unresolved is now caught for every contribution type rather than found by eye months later. Public routes are exempt, since one may legitimately name a file.
-
A repeater’s sub-fields render their help text, which the descriptor has always accepted and the template silently dropped.
-
Responses say how long they may be reused, and prove it cheaply. Built-in assets are now addressed by a digest of their bytes (
laterite.d10210ad.css), and the cache policy follows the URL rather than being declared per asset: a URL that names its content may be kept forever, one that does not must revalidate and carries anETagso revalidation is a bodyless304. A framework upgrade therefore reaches a browser that cached the previous build without anyone remembering to say so. Admin screens areprivate, no-store, being per-operator and carrying a request token, and every admin response carriesVary: HX-Request, since an htmx fragment and a full page share a URL.laterite_admin::http_cacheexposes the conditional-response helper to plugin routes. None of this is disabled in development: a validator that only appears in production is one nobody has tested. -
Sign-ins record where they came from.
backend_access_loghas carriedip_addressanduser_agentcolumns since it was added and wrote null to both:RequestContextwas built with::default()at every call site outside tests, so the trail recorded who and when but never from where. One layer now resolves both per request, and sessions carry them too, so the sessions list names a device (“Chrome on macOS”) and the address beside it.X-Forwarded-Foris believed only from peers inside the newbackend.trusted_proxiesCIDR ranges, taking the rightmost address that is not itself a trusted proxy; empty (the default) trusts nothing and records the peer. User agents are stored capped at 512 bytes, since the header is caller-controlled and unbounded. Deployments behind a load balancer should settrusted_proxies, or every row records the balancer. -
An account can see and end its own sessions. Preferences now lists every browser signed in to the account, newest activity first, marking the one asking and showing when each signed in, was last active, and expires. Any other session can be ended individually, or all of them at once, which also drops every stay-signed-in credential so a signed-out device cannot mint itself a new session on its next request. Rows are named by an id derived from the stored key rather than the key itself, so a leaked page grants nothing, and a revoke is scoped to the asking account. No device or location column yet: those values are not captured anywhere yet.
-
“Stay signed in” is a real credential. Ticking the box previously stretched the session cookie’s lifetime, which meant the only way to stay signed in for a fortnight was a session that lived a fortnight. It now issues a separate credential, one row per device, that outlives the session and mints a new one when the old expires, so the session itself stays short. The cookie holds a public selector and a secret, only the secret’s hash is stored, and each use rotates the secret. A copy of the cookie therefore works only until the real browser next uses it; presented afterwards, the stale secret is taken as proof the cookie is in two places and every credential for that account is dropped. Signing out revokes the credential rather than leaving it to sign the next request straight back in.
remember_duration_secssets the window (14 days). -
Sessions slide. A session ran on one clock, fixed at login, so an operator mid-task was signed out on the same schedule as an abandoned tab. There are two clocks now:
session_idle_timeout_secs(2h) runs from the last request and moves forward as work happens, andsession_absolute_timeout_secs(12h, the formersession_ttl_secs, still read) runs from login and does not move, so a stolen token cannot be kept alive indefinitely. Whichever falls first ends the session. Renewal happens once past the halfway mark of the idle window rather than on every request, which turns a write per request into roughly one an hour. Deployments that set no idle timeout gain one: a session left quiet for two hours now ends where it previously ran the full twelve. -
A module can contribute a field type. The registry held the framework’s own types only, so a custom form input meant changing
laterite-adminitself, while the sibling column-type registry had been open to modules since lists shipped.FieldTypeRegandadd_field_typeclose that asymmetry; the key is the type’s ownview_key, and a collision aborts boot rather than silently replacing a built-in. -
VerifiedUpload: a file upload whose request token is checked while the form is parsed, rather than before. The token travels as the form’s first field, as it does for any other form, so a scriptless upload needs nothing special. A handler that takes the upload with a bare parser instead has its response refused: the guard marks the check outstanding and enforces it afterwards, so skipping it is a broken route rather than an unguarded one. -
laterite-media, the storage layer: aStorageDrivertrait, a local-filesystem disk, and a streaming ingest that hashes a file with BLAKE3 as it arrives. A file is never held in memory, the size limit stops the read rather than judging it afterwards, and identical bytes on one disk are stored once. The content type is sniffed from the leading bytes and never taken from the sender. A blob is written to a temporary file and renamed into place, so a crashed upload leaves a stray temp file rather than a truncated blob at a name that claims to be its own hash. Opt-in: an application that stores no files does not compile it. -
The media record: a file’s stable identity pointing at a blob, so replacing a file writes new bytes under a new hash while the record’s id and every reference to it stay put. One blob can back several records (the same bytes uploaded twice are one blob and two files), and only the last record holding a hash releases the blob for collection. Dedup is scoped to a disk, since identical bytes on a local disk and in a bucket are separate copies.
-
laterite_media::module(): media registers onBootstrapthe way a plugin does, contributing its migrations through the registry, solaterite-adminnever depends on it and gains no feature flag for it.
Fixed
- A file upload to an admin route could never succeed. The authenticated guard
buffered every state-changing body to the 1 MiB form limit to read the CSRF
token from it, so anything larger was truncated to nothing and rejected as a
CSRF failure, naming the wrong problem. A
multipart/form-databody now passes through unbuffered, and its token comes from the request header or, with scripting off, the form action’s query string. The origin check runs first on every state-changing request either way.
Changed
- Breaking:
Resource,ListConfigandFormConfigare#[non_exhaustive]and are built with::newplus builder methods. A struct literal outside the crate no longer compiles,..Default::default()included, because a non-exhaustive struct admits no struct expression at all. Without this their field sets would freeze at 1.0 and no descriptor could ever gain a field; the next one is the bulk-import descriptor.ListConfig::creatable()is opt-in, matching the documented read-only default.
Fixed
- A repeater’s sub-field labels rendered untranslated. They are declared inside
the field type and never pass through the caller that localizes an ordinary
label, so they could only render from their source string: English on every
screen, whatever the operator’s locale.
FieldCxnow carries the request’s translator, which is what a composite field type needs to localize strings of its own.
0.5.1
A security fix for list export, plus the plugin install flow: a plugin is installed by pointing at it, and one built for another Laterite is refused before it is fetched.
Security
- List export wrote spreadsheet formulas verbatim. A record whose text began
=,+,@, a tab or a carriage return was written to CSV unchanged, so a value a visitor supplied could execute when an operator opened the export in Excel, Sheets or LibreOffice. Such cells now carry the leading apostrophe those applications read as “this is text”. A leading-is escaped only when the cell is not a number, so negative numbers still export as numbers.
Added
lat plugin add <path|git-url>andlat plugin remove <name>: a plugin is installed by pointing at it, from a local checkout or a repository, rather than by placing a folder in a layout by hand. A local plugin outside the project is linked intoplugins/so it stays where it is and edits apply in place.plugins/plugins.toml: the declarative list of the plugins an application compiles in, maintained by those two commands. Folder names no longer carry meaning, so nothing has to be renamed to be installed: the list says where a plugin is and its ownCargo.tomlsays what it is called, which also means the two can no longer disagree. An application using the previousplugins/<author>/<plugin>/layout adopts it into a list on first use.lat newscaffolds the plugin layout: the workspace, an empty list, the generated manifest, the dependency on it, and the.modules(...)call.[package.metadata.laterite]in a plugin’s manifest, declaring the module it registers. Its presence marks the crate as a plugin, andlat plugin addnow refuses one without it instead of letting the build fail on a missingmodule(). Readable without building, so a marketplace can list and filter on it. It carries no version field: which Laterite a plugin supports is already stated by its dependency requirement.lat plugin addchecks that requirement against this application’s own version before fetching or building, and refuses a plugin built for another Laterite by name. Boot stays the backstop, as it does for database capabilities.- Guide: Installing Plugins.
Fixed
lat plugin syncreported success while writing a manifest nothing compiled. Alat newapplication was never wired for plugins at all, so a plugin added to one silently did nothing; sync now warns when the application does not depend on the generated manifest, and a new application no longer needs the wiring done by hand.- Installing one plugin twice produced a manifest with a duplicate dependency key that cargo refused to parse. It is now refused when added, naming where the plugin already is, and nothing is left behind by the refusal.
0.5.0
Interactive admin and Lists complete: the admin engine’s list screens feature complete, and its forms and lists answering in place rather than reloading.
Added
laterite_admin::axum: the axum a contributed route builds against, re-exported so a plugin never declares axum itself. Two axum majors linked side by side makeRoutera different type fromRouter; taking it from here means the framework’s manifest is the only place the version is chosen.RouteCtx::builder(db): a route context built by hand, so a plugin can mount and exercise its ownScreenorPublicRouteas an ordinary tower service instead of booting the framework to test a route. It is also how the context grows after 1.0.- Descriptor forms submit through HTMX. A failed save re-renders the form in
place with its per-field errors instead of reloading the page, and a
successful one redirects through the
HX-Redirectheader. A browser with scripting off still gets the whole page and an ordinary redirect. - The generic form flashes on success, which only the roles form did before.
- The role editor submits through HTMX on the same contract, so a rejected code or name re-renders the permission editor in place with the ticks intact.
- Request feedback across the admin: a top progress bar while a request is in flight, a disabled submit button for the round trip, and a toast when a request fails, which htmx would otherwise discard in silence.
window.lat.flash(text, level)raises a toast from a screen’s own script.- Sortable list columns. Every header sorts, a second click on the sorted column reverses it, and only a column the descriptor declares can be ordered by.
- Lists sort and page through HTMX, swapping the table region and pushing the URL, so back, refresh and a copied link all land on the same view. Without scripting they stay ordinary links.
laterite_core::search: aSearchProfilecomposing text folds (Normalizer), query expanders, and aMatcherthat builds the SQL condition. Folding runs in Rust so it behaves identically on all three databases. Guide atdocs/src/extend/search.md.TableSource::with_searchsets a picker source’s search behaviour.- Settings screens render and save through the field-type registry, so every registered type works there and a module’s own type works on both surfaces.
FormFieldgained constructors for the types that had none:select,radio,switch,date,passwordandrepeater. A descriptor previously reached them throughofplus a raw options blob.- A
repeaterfield type: a list of rows stored as a JSON array of objects. Row controls are namedfield[index][subfield], and the indices are read back out of the submitted keys and sorted, so a row removed in the browser leaves no hole. A row’s sub-fields are ordinary field types, so a switch inside a row stores a bool and a date is a date.min_itemsandmax_itemsbound the list. - A module can read another module’s contributions. It defines a type, others
contribute it from
register, and its routes read them withRouteCtx::contributions. The framework never learns the type, and everything is collected before any route mounts, so registration order does not matter. This is whatModule::registeralready promised by “plugin-defined extension items”. RouteCtx::base_urlreports the site’s own origin, for the absolute URLs a route emits rather than links (a sitemap<loc>, a canonical URL, a feed).- The column-type registry is open to modules. A module contributes a
ColumnTypeRegand its type renders those cells; the key is the type’s ownview_key, and a duplicate aborts the boot naming it. StaticSite::filewrites a file verbatim at the output root, for the files a site decides for itself (robots.txt,sitemap.xml,humans.txt,llms.txt, aCNAME, a verification token). It creates parent directories and refuses a path that climbs out of the output directory.StaticSite::pathsandStaticSite::base_urlreport every page written and the prefix to form absolute URLs from, which is what a sitemap is built from.- List export. Every list offers CSV and JSON from the toolbar, carrying the current columns, search, filters and sort, so the file matches the screen. An export beyond 20,000 rows is refused rather than truncated.
- Toolbar buttons are descriptor data. A resource declares its own with
ToolbarButton, optionally gated by a permission and carrying an icon, and the framework contributes New and the export menu the same way. ListConfigimplementsDefault, so a descriptor sets what it means and ends with..Default::default(). Fields added to it after this are additive.- Per-operator column configuration. A list offers a Columns disclosure, and the choice is stored against the account and applied on every visit. It narrows the descriptor once per request, so the visible columns are what gets queried, sorted and searched. A stale choice falls back to every column rather than leaving an empty table.
backend_user_preferences, a per-operator key/value store, withstore::user_preference,set_user_preferenceandclear_user_preference. The settled preferences every account has (locale, timezone) stay as columns onbackend_users; this is for per-screen choices that arrive one screen at a time.- Deleting joins the record layer.
ModelListener::before_deletesees the row inside the transaction and can refuse the delete with a message the operator reads;after_deleteruns once it has committed.Persister::deleteperforms it, and refuses by default so a persister that has not implemented deletion says so rather than appearing to succeed. Deletes are audited by the same listener that records every other write. - Bulk delete on a list. A list marked
deletablecarries a checkbox per row and a select-all header, and the Delete button asks for confirmation first. Each record goes through the delete pipeline in its own transaction, so one refusal reports its reason and leaves the rest of the selection deleted. The roles list is deletable; the users list and the audit log are not. - A confirm dialog for any control carrying
data-lat-confirm: the click is held in the capture phase until the operator agrees, and Escape or Cancel drops it. - Empty list states read correctly: a table with nothing in it offers a New link, while a search or filter that matches nothing says so instead of reporting the table as empty.
- List filters. A descriptor declares a filter per column (
ListFilter::boolean, orselectwith a fixed option set) and the framework renders the controls, applies them to the rows and the count, and keeps them across a sort or a page. Only a declared filter, and for a select only a declared option, reaches the query. The backend users list filters on Active and Superuser. - List search. A box in the toolbar filters as you type, across the columns the
descriptor marks searchable (text columns by default;
ListColumn::searchableoverrides). It sits outside the swapped region so it keeps the caret, the term survives a sort or a page, and a blank term is no filter. With scripting off it is a GET form and Enter searches.
Removed
- Breaking:
laterite-webno longer writes arobots.txtor asitemap.xml, andStaticSite::finishis gone with them. How a site wants to be crawled, and which URLs it advertises at what priority, are the application’s decisions.StaticSite::pathsandbase_urlgive the material andfilepublishes the result, so a site keeps both files by writing them.
Changed
- Breaking:
ScreenRegandPublicRouteRegare#[non_exhaustive]. Both are built with::newplus builder methods already, so nothing in tree changes; a struct literal in an out-of-tree plugin no longer compiles. Without this their field set would be frozen at 1.0 and the framework could never learn anything new about a contributed route. - A refused save answers 422 rather than 200, on both the descriptor form and the role editor.
- Breaking:
SettingsWidgetandSettingsFieldare gone. A settings model declaresFormFields, the same descriptors a form screen uses, and its widget is its field type. There is no settings-specific field vocabulary. - Breaking:
FieldType::to_attrtakes aSubmittedFieldrather than one value, so a field made of several controls can read its own keys. A scalar type callsfield.value()for what it had before. This is what kept multi-value fields (a repeater, a checkbox list) out of the field system. - Breaking:
FieldType::resolve_optionstakes the field registry, so a composite field can resolve the types of the fields it holds while the registry is in hand. - Breaking: a registry contribution must be
Send + Sync, since the ones the framework does not consume stay readable from request handlers. Every existing contribution type already was. - Breaking:
routertakes oneContributionsvalue rather than nine positional vectors, including the new column types. Build it with the fields you mean and end with..Default::default(); a later kind of contribution is then a new field rather than a new argument. Applications boot throughBootstrapand are unaffected. - Breaking:
ListConfiggainedfilters,deletableandtoolbarfields. A descriptor now ends with..Default::default()and sets only what it means, which is also why this is the last such break. - The picker matches through a
SearchProfilerather than its ownLIKE. Behaviour is unchanged: case folding, literal wildcards, and an empty query still lists the first rows.
0.4.0
Three steps: the record layer (writes run through one transaction with lifecycle listeners and a named actor), plugin screens and routing (a module mounts its own admin screens and public routes, and every contributed path is resolved and checked for collisions), and the typed form contract (a field type decides what it stores and shows). Plus the CLI and licensing work that had been waiting.
Added
latcommands find the application from any subdirectory (the nearestconfig/default.toml), andlat adminreads the database URL from its configuration when neither--database-urlnorDATABASE_URLis set.app.env_prefixdeclares the environment-override prefix once, for the application and everylatcommand.- The MIT and Apache-2.0 license texts ship in the repository.
laterite_core::record: aRecordattribute bag with typed values (AttrValue), typed accessors and adeserializestruct view, plus theModelListenerlifecycle trait and its registration.- Admin form writes run through a listener pipeline: a module contributes a
ModelListenerRegand its listener can change the record before the write or refuse it with per-field messages, and react after it. SaveErrorimplementsDebug.
Changed
- Breaking: a form write runs in one transaction the framework owns.
Persister::createandupdatetake aSaveCx(that transaction) and aRecordinstead of a database handle and a text map, and a persister no longer opens its own transaction.rec.to_text_map()gives the previous value shape. - Breaking:
ModelListener::before_savetakes the sameSaveCx, so a listener reads the in-flight state.after_savestill takes the database and still runs after the commit. - On an update a persister may supply the pre-write row (
Persister::load), and listeners read it throughRecord::original,has_originalandchanged. - Breaking: every save states its
Actor, either a signed-inUseror theSystemprocess performing it, reaching listeners and the persister. A write with no person behind it names its process rather than borrowing a user. - Breaking:
ModelListener::after_savetakes aSavedCx(the pool and the actor) rather than a database handle, so it can gain context after 1.0. - The framework audits descriptor-form writes through a listener rather than a call in each handler, so a new descriptor screen is audited by existing. Screens that write through their own store functions keep their explicit calls.
- Breaking: a module’s admin screens mount under its identity by default, so
rainmill.locationcontributing/nodesserves/rainmill/location/nodesand two plugins cannot collide.Module::admin_basedeclares a shorter base, and[backend.paths]lets a deployment move a module or one of its screens without forking it. Two claims on one path abort the boot naming both. - A module can mount its own admin screens: contribute a
ScreenRegand the framework nests its routes under the module’s resolved path, wrapped in the session, the permission guard it declares, CSRF and the styled error pages. The screen reads a narrowRouteCtxand builds self-links throughctx.url, so a moved screen moves its links with it. - A module can mount public routes at literal paths, outside the admin, for robots files, sitemaps, feeds and webhook receivers. A public route that reaches inside the admin mount aborts the boot.
RouteCtx::admin_pathreports where the panel actually mounted, so a module links into it or excludes it without assuming/admin.- A screen that declares
in_menuappears in the main menu; one that does not mounts silently, reached from a link elsewhere. - The Screens and Routes guide.
- A field type decides what its value stores and how it comes back:
FieldType::to_attrturns a submission into a typed attribute (or omits it, so a blank password on an edit leaves the stored one alone), andFieldType::to_controlturns a stored value back into what the control shows. - A
switchfield type over a boolean column. An unchecked box submits nothing, so it storesfalserather than leaving the previous value. - A
datefield type. It stores the date a control sends and trims a stored timestamp back to its date when presenting, since a date input rejects a full instant. Carries aDatevalidation rule. - A
passwordfield type: hashed with Argon2 on save, never rendered back into the page, and a blank submission on an edit leaves the stored password alone. - A
radiofield type over the same options asselect, so a descriptor swaps between them by changing the type alone. Rule::Date, andRuleis now non-exhaustive so later rules are additive.- A
timestampsflag on a form stampscreated_atandupdated_at, leaving a suppliedcreated_atalone so an import keeps its history. - The Model Listeners guide.
- Breaking:
routertakes the model-listener contributions. Applications boot throughBootstrapand are unaffected. - The built-in persister binds typed values (integers, booleans as integers, timestamps and JSON as text) and writes attributes a listener added, not only the descriptor’s own columns.
Fixed
- A request below a public route (
/robots.txt/anything) escaped into axum’s bodyless 404 instead of the styled error page, because a nested service does not inherit the outer fallback. lat doctorandlat serveused a fixed environment prefix, so their overrides missed an application with its own.
0.3.0
Breaking
- Applications boot through
laterite_admin::Bootstrapwith aModuleRegistryofModuleimplementations;routertakes the module contributions, anAdminConfig, and the catalog store. AdminConfig,AppMeta, andBackendConfigare#[non_exhaustive]: build one withDefaultand set fields. Struct literals no longer compile outside the framework, and a field added in a later release is additive.- Descriptor labels (lists, forms, resources, settings items, permissions) are
Textvalues built with thet!macro; a bareStringno longer compiles.
Added
- Module system: the
Moduletrait with bundled migrations run in dependency order, a registrationRegistryfor descriptors and hooks, and database capability declarations checked at boot. - Plugin platform:
plugins/<author>/<plugin>discovery with a generated manifest (lat plugin sync), enable and disable from config and the admin, and boot isolation with quarantine and a crash-loop journal. - Localization: the deferred
Textvalue witht!,tn!, andtp!; a per-request translator resolving the operator preference,Accept-Language, andapp.locale; a language picker; PO catalogs contributed by modules; thexxpseudo-locale; localized dates; andlat i18n extract,check,update, andstatus. - Audit log: an append-only record of every privilege and data mutation, with a
read-only view under System behind
backend.view_audit_log. - Admin sessions with layered CSRF protection and dismissible flash toasts.
- A validation engine with typed rules (required, length, email, url, unique) and per-field errors re-rendered with a 422.
- Typed admin errors with styled pages, logged through
tracing;app.debugshows the cause. - Field types as an open registry with a view-model render seam: text input types
(email, tel, number, url with a copy button), select, and a reference picker
with a searchable combobox; form writes delegated to registered persisters; a
ColumnTyperegistry for list cells. - Admin assets: htmx, a
laterite.jswidget lifecycle, and an open asset registry with per-page widget assets. - CLI:
lat serve,lat domainfor local wildcard domains, andlat make:migration. - Config:
server.listen,app.url,app.locale,app.debug, andbackend.pathto relocate the admin panel. - Core helpers:
insert_returning_id_onfor transactional inserts andAnyRowExt::get_int.
Fixed
- Absent form values persist correctly, and the migration scaffold declares its primary key.
- Form field options resolve once at router build.
- Locale names and date formatting assume no particular language; the admin’s locale set is the loaded catalogs.
Security
- A resource with a create or edit form must declare a permission; boot aborts otherwise.
- The reference-picker search escapes LIKE wildcards.
0.2.0
Breaking
- The settings crate was folded into
laterite-admin;laterite-settingsis no longer published.
Added
lat new, an interactive installer that produces a working application, with a--framework-pathdev mode;lat doctorhealth checks.laterite-web, the public web layer with static-site generation.- An application name that drives the admin brand.
- Per-crate READMEs generated from the crate doc comments.
0.1.0
Added
laterite-core: config, errors, the portable multi-database data layer (Postgres, MySQL, SQLite), and the migration engine.laterite-auth: users with Argon2id passwords, sessions, roles, permissions with per-user overrides, and a first-run setup flow.laterite-admin: descriptor-driven lists, forms, and settings screens in the Laterite design system, with per-user display timezones.laterite-cli: thelatcommand.
Releases follow semantic versioning as Cargo reads it: before 1.0 a minor version may break the public API, a patch never does. Source and tags are on GitHub.