API Reference PhoenixKitManufacturing v#0.3.2

Copy Markdown View Source

Modules

PhoenixKit module: manufacturing.

Folder-scoped file attachments + featured image for Manufacturing's Machine resource. Designed for multi-resource LVs: many Files cards can live on the same page, each keyed by an opaque string "scope" — typically the resource's id or a draft id.

Shared column-registry engine for Manufacturing's admin list LiveViews.

Column registry for the Machines index list LiveView (PhoenixKitManufacturing.Web.MachinesLive, :index).

Thin isolation layer over the optional PhoenixKitComments module for Manufacturing resources.

ETS-backed cache of the machine_type / operation / defect_reason phoenix_kit_entities records, keyed by kind + uuid, with per-locale title resolution. Subscribes to PhoenixKitEntities.Events and reloads on any entity/entity-data change. Concurrent readers always see a consistent snapshot.

Central mapping from error atoms (returned by the Manufacturing module's public API and used across its LiveViews) to translated human-readable strings.

Gettext backend for phoenix_kit_manufacturing.

Context module for managing machines, plus thin read wrappers over the machine_type / operation phoenix_kit_entities records used to tag and describe them.

Centralized path helpers for the Manufacturing module.

Schema for manufacturing machines (the machines reference book).

Join table for the many-to-many between machines and operations.

Join table for the many-to-many between machines and machine types.

Minimal per-user, per-scope view-preference store for Manufacturing's admin list pages — currently the Machines index's saved columns and active filters (see PhoenixKitManufacturing.ColumnConfig / Web.ColumnManagement).

use-macro that injects column-management handle_event/3 callbacks into a LiveView. Generic across scopes — pass the column-config module and scope via options

Function component for the "Customize columns" modal used by Manufacturing's admin list LiveViews.

Presentation helper for Manufacturing resource comment threads. panel/1 embeds the ready-made PhoenixKitComments.Web.CommentsComponent.

Reusable Files + Featured Image card body. Renders the same UI for any scoped resource on this module — each instance scoped by the scope attr, which is forwarded as phx-value-scope on every event button. The single shared upload config is owned by the parent LiveView; each dropzone here also sets :active_upload_scope on click so the upload routes to the right folder.

Admin dashboard for the Manufacturing module.

Create/edit form for machines.

Hidden-route mini-editor for a single machine_type entity's field_template — the list of dynamic metadata fields rendered on the machine form for machines linked to that type (see Machines.merged_field_template/1).

Landing page for the Machines reference book.