LiveAdmin - Phoenix admin UI built on LiveView

The long awaited… 0.12

  • Options validation/documentation

    Mostly responsible for holding up this release. Required a complete rewrite of how options are managed internally. Goal was to clean up the supported options, make the data structures more consistent, and to add some documentation around exactly what is supported.

  • Action/task arguments, annotations

    The most interesting addition in my opinion. It is now possible to configure actions/tasks to take an arbitrary number of extra arguments. To do this, pass an mfa with the name and the number of arguments the function expects. LiveAdmin will then launch a modal to prompt the user to enter the extra arguments before executing the function. Example from demo app: allow overriding the user’s password. Also, just adding docs to the function will also cause LiveAdmin to launch the modal with docs content instead of the default JS alert.

  • Async list fetching

    Minor change taking advantage of async assigns recently added to LV. List view will now fetch records in the background while displaying spinner so view does not appear frozen during slow queries.

I had hoped to launch 1.0 by the 2 year mark (:scream:) but I have decided to wait until I can give the UI the makeover it deserves. Speaking of which, if you have string CSS/Tailwind skills and want to volunteer to freshen up LiveAdmin’s look please DM me! I can’t offer much more than props, but expect a shoutout in the README at the very least (and if you are a LiveAdmin user with opinions about UX I would be receptive to proposed changes beyond simple styling).

6 Likes