Entities 0.1.5: Public forms save again, and the activity log names who changed what
Entities 0.1.5 fixes public entity forms, which crashed on every submission, and records more of the module’s changes in PhoenixKit’s activity log.
The public form controller read the entity’s id under an old key that no longer exists, so saving a submission failed. A second error made it crash whenever a submission raised a security flag. Both are fixed.
Activity log entries for creating, updating and deleting entities and records now name the user who did it, and bulk actions, failed changes and switching the module on or off are logged too. Public forms also got stricter: a forwarded client address that is private, loopback or otherwise not public is ignored, and stored metadata strings are capped at 255 characters. Mirror files can no longer be read or written outside the mirror folder.
The admin’s error messages now come from one shared list, and the unused PhoenixKitEntities.Web.DataView page module, which no route used, was removed.
Full release notes: Entities 0.1.5
0.1.5 · 28 April 2026
Fixed
entity_form_controller.ex: replaceentity.idwithentity.uuid(lines 243 + 342) — primary key is:uuid, the previous reference would have crashed every public-form submission withKeyErrorentity_form_controller.ex: replace runtime-boundlogger.warning(...)withLogger.warning(...)macro call — variable-bound macro dispatch raisedUndefinedFunctionErroron everysave_logsecurity flag
Added
PhoenixKitEntities.Errorsmodule — central atom→message dispatcher for the 10 user-facing error categories surfaced by the admin LVs and public form- Activity logging on every entity + entity_data CRUD path (create / update / delete / bulk operations / module toggle), with
actor_uuidthreaded from caller opts - Public-form security hardening — X-Forwarded-For RFC1918 rejection (loopback / link-local / multicast / private-network octets), metadata size cap (
@metadata_string_cap 255), browser/OS/device parsing Mirror.Storagefilesystem path containment viaPath.expand+ boundary-prefix check- Test infrastructure —
LiveCase,DataCase,Hooks, test endpoint / router / layouts; supports the full LV admin smoke test suite - 32 LiveView smoke tests across
Web.Entities,Web.EntityForm,Web.DataNavigator,Web.DataForm,Web.EntitiesSettings - Coverage push from 31.39% baseline to 75.14% across 5 quality batches (684 tests, 0 failures, 5/5 stable)
Changed
Web.EntitiesandWeb.DataNavigatornow defer DB queries frommount/3tohandle_params/3— avoids the duplicate-query-on-mount Phoenix iron-law violationActivityLogrescue shape canonicalised:Postgrex.Error -> :ok,DBConnection.OwnershipError -> :ok, fallbackerror -> Logger.warning(...),catch :exit, _ -> :okMirror.Storagerescues narrowed from barerescue _to[ArgumentError, RuntimeError, FunctionClauseError]for path operationsUrlResolverrescues narrowed to a six-class DB-scoped list (no bare_catches)FieldTypes.description_for/1literal-clause helper introduced so gettext extraction works on all 12 type descriptionshandle_infocatch-alls promoted from silent ignore toLogger.debugacross all 5 admin LVs@specbackfill onroutes.ex(3 functions) andsitemap_source.ex(5 callbacks)mix.exstest_coverage: [ignore_modules: [...]]filter so coverage tracks production code, not test-support boilerplate
Removed
PhoenixKitEntities.Web.DataView— unrouted module with no callers anywhere in the workspace; verified via grep + ast-grep acrossphoenix_kit_entities,phoenix_kitcore, andphoenix_kit_parent. Recoverable from git history if a public-display feature materialises later
Entities 0.1.5. Install or update: {:phoenix_kit_entities, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.