PhoenixKitPosts.Web.Posts (PhoenixKitPosts v0.1.3)

Copy Markdown View Source

LiveView for displaying and managing posts in PhoenixKit admin panel.

Provides comprehensive post management interface with filtering, searching, and quick actions for social posts system.

Features

  • Real-time Post List: Live updates of posts
  • Advanced Filtering: By type, status, group, tag, date range
  • Search Functionality: Search across titles and content
  • Pagination: Handle large volumes of posts
  • Bulk Actions: Publish, delete multiple posts
  • Quick Actions: Edit, delete, change status
  • Statistics Summary: Key metrics (total, drafts, scheduled, public)

Route

This LiveView is mounted at {prefix}/admin/posts and requires appropriate admin permissions.

Note: {prefix} is your configured PhoenixKit URL prefix (default: /phoenix_kit).

The route is auto-generated by PhoenixKit from admin_tabs/0 at compile time and injected into live_session :phoenix_kit_admin. Do not declare this route in your parent app's router.ex — doing so puts it in a different live_session, loses the admin layout, and crashes cross-session navigation. See phoenix_kit/guides/custom-admin-pages.md.

Permissions

Access is restricted to users with admin or owner roles in PhoenixKit.

Summary

Functions

Callback implementation for Phoenix.LiveView.render/1.

Functions

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.