The blog posts list: a Gervaz table drawn as MishkaBlogWeb.Templates.PostCard, its create/edit
form, and the version history of one post.
The page itself is thin — it decodes the URL state, forwards PubSub broadcasts into the table
component, opens the form modal for a language chip, and closes it over the gervaz:exec-js
bridge. The only feature it owns is the version history, which is read a page at a time off the
render and shown in a modal beside the form's, the same way
MishkaBlogWeb.Live.Admin.Dashboard.Collection.Index shows a collection's.
Restoring goes through the generic :restore_version_api / :master_restore_version_api actions
rather than the update twins of the same name: Ash.ActionInput.for_action/3 only accepts an
action of type :action, and handed an update it raises rather than returning {:error, _}.
See MishkaBlog.BlogPost for the table, filter and row-action definitions.
Summary
Functions
Callback implementation for Phoenix.LiveView.render/1.
Functions
Callback implementation for Phoenix.LiveView.render/1.