Skip to main content

Factory Panel

The Factory Panel is a core component of the OPC Desktop React frontend. It provides real-time visualization and control over the Orchestrator's execution of the Factory Pipeline.

Key Components

  • PipelineDAG: A visual representation of the Directed Acyclic Graph. It shows the dependencies between steps (e.g., s0 through s5, and the fan-out in s6) and their current execution status (pending, running, verified, failed).
  • ArtifactInspector: Allows the developer to view the intermediate artifacts generated by each step before they are finalized.
  • BuildSpec View: A structured view of the frozen Build Spec generated at the end of Phase 1.
  • GateDialog: The human-in-the-loop interface. When the orchestrator reaches a Checkpoint or Approval gate, this dialog presents the relevant artifacts and risk summaries, requiring the developer to explicitly approve or reject the continuation of the pipeline.
  • ScaffoldMonitor: Tracks the dynamic fan-out steps during Phase 2 scaffolding, showing the progress of code generation, compilation, and testing for each entity and page.

Server-Sent Events (SSE)

The Factory Panel stays in sync with the backend Orchestrator via Server-Sent Events. As the orchestrator progresses through the manifest, it streams state changes, log output, and gate requests to the frontend, ensuring a responsive and transparent user experience.