Centralized path helpers for the Manufacturing module.
All paths go through PhoenixKit.Utils.Routes.path/1 for prefix/locale
handling. Never hardcode "/admin/manufacturing" in a LiveView or template
— use these helpers instead so URL prefix changes only need updating here.
types/0, operations/0, and defect_reasons/0 are the exception to the
@base-prefixed rule above: as of the entities migration
(dev_docs/ENTITIES_MIGRATION_SPEC.md), machine_type/operation/
defect_reason CRUD lives on the generic phoenix_kit_entities admin UI,
not on a route owned by this module — so those three helpers point at
/admin/entities/:slug/data instead of /admin/manufacturing/....
Summary
Functions
Defect reasons list — the entities admin UI for the defect_reason entity.
Manufacturing dashboard (module landing).
Machine card, Comments tab (hidden CRUD route, edit form only).
Edit machine form.
Machine card, Files tab (hidden CRUD route, edit form only).
New machine form.
Machine card, Operations tab (hidden CRUD route, edit form only).
Field-template editor for a single machine type (hidden CRUD route,
visible: false — see Web.MachineTypeTemplateLive). uuid is the
machine_type entity-data record's own uuid, not a machine's.
Machines list.
Operations list — the entities admin UI for the operation entity.
Machine types list — the entities admin UI for the machine_type entity.
Functions
@spec defect_reasons() :: String.t()
Defect reasons list — the entities admin UI for the defect_reason entity.
@spec index() :: String.t()
Manufacturing dashboard (module landing).
Machine card, Comments tab (hidden CRUD route, edit form only).
Edit machine form.
Machine card, Files tab (hidden CRUD route, edit form only).
@spec machine_new() :: String.t()
New machine form.
Machine card, Operations tab (hidden CRUD route, edit form only).
Field-template editor for a single machine type (hidden CRUD route,
visible: false — see Web.MachineTypeTemplateLive). uuid is the
machine_type entity-data record's own uuid, not a machine's.
@spec machines() :: String.t()
Machines list.
@spec operations() :: String.t()
Operations list — the entities admin UI for the operation entity.
@spec types() :: String.t()
Machine types list — the entities admin UI for the machine_type entity.