dashboardrender

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleDashboardActiveExecution

type SimpleDashboardActiveExecution struct {
	DispatchID      string
	TransitionID    string
	WorkstationName string
	StartedAt       time.Time
	WorkTypeIDs     []string
	WorkItems       []interfaces.FactoryWorldWorkItemRef
}

SimpleDashboardActiveExecution carries the active execution fields rendered in the dashboard's active workstation section.

type SimpleDashboardRenderData

type SimpleDashboardRenderData struct {
	InFlightDispatchCount            int
	ActiveExecutionsByDispatchID     map[string]SimpleDashboardActiveExecution
	ActiveThrottlePauses             []interfaces.FactoryWorldThrottlePause
	PlaceTokenCounts                 map[string]int
	CurrentWorkItemsByPlaceID        map[string][]interfaces.FactoryWorldWorkItemRef
	PlaceOccupancyWorkItemsByPlaceID map[string][]interfaces.FactoryWorldWorkItemRef
	WorkstationActivityByNodeID      map[string]SimpleDashboardWorkstationActivity
	PlaceCategoriesByID              map[string]string
	Session                          SimpleDashboardSessionData
}

SimpleDashboardRenderData carries only the event-first data the simple dashboard formatter needs across the service-to-CLI seam.

func SimpleDashboardRenderDataFromWorldState

func SimpleDashboardRenderDataFromWorldState(worldState interfaces.FactoryWorldState) SimpleDashboardRenderData

SimpleDashboardRenderDataFromWorldState builds the dedicated render DTO directly from canonical selected-tick state plus authored topology.

type SimpleDashboardSessionData

type SimpleDashboardSessionData struct {
	HasData              bool
	DispatchedCount      int
	CompletedCount       int
	FailedCount          int
	DispatchedByWorkType map[string]int
	CompletedByWorkType  map[string]int
	FailedByWorkType     map[string]int
	DispatchHistory      []interfaces.FactoryWorldDispatchCompletion
	ProviderSessions     []interfaces.FactoryWorldProviderSessionRecord
}

SimpleDashboardSessionData carries session metrics together with the history and provider-session records needed for dashboard-local summaries.

type SimpleDashboardWorkstationActivity

type SimpleDashboardWorkstationActivity struct {
	NodeID            string
	WorkstationName   string
	ActiveDispatchIDs []string
	ActiveWorkItems   []interfaces.FactoryWorldWorkItemRef
	TraceIDs          []string
}

SimpleDashboardWorkstationActivity carries workstation activity rows plus the explicit workstation name lookup needed by the formatter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL