package controllers

import (
	"git.threefold.info/herocode/heroagent/pkg/servers/ui/models"
)

// JobPageData represents the data needed for the jobs page
type JobPageData struct {
	Title         string
	Jobs          []*models.JobInfo
	JobTree       map[string]*CircleNode
	CircleOptions []OptionData
	TopicOptions  []OptionData
	StatusOptions []OptionData
	FilterCircle  string
	FilterTopic   string
	FilterStatus  string
	TotalJobs     int
	ActiveJobs    int
	CompletedJobs int
	ErrorJobs     int
	NewJobs       int
}

// OptionData represents a select option
type OptionData struct {
	Value    string
	Text     string
	Selected bool
}
