31 lines
637 B
Go
31 lines
637 B
Go
package controllers
|
|
|
|
import (
|
|
"git.ourworld.tf/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
|
|
}
|