This commit is contained in:
2025-05-24 09:24:19 +04:00
parent e60b9f62f1
commit 8bc1759dcb
14 changed files with 1380 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
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
}