Documentation
¶
Index ¶
- type BeadProgress
- type TaskProgress
- type WorkProgress
- func FetchAllWorksPollData(ctx context.Context, proj *project.Project) ([]*WorkProgress, error)
- func FetchTaskPollData(ctx context.Context, proj *project.Project, taskID string) ([]*WorkProgress, error)
- func FetchWorkPollData(ctx context.Context, proj *project.Project, workID string) ([]*WorkProgress, error)
- func FetchWorkProgress(ctx context.Context, proj *project.Project, work *db.Work) (*WorkProgress, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeadProgress ¶
type BeadProgress struct {
ID string
Status string
Title string
Description string
BeadStatus string // status from beads (open/closed)
Priority int
IssueType string
}
BeadProgress holds progress info for a bead.
type TaskProgress ¶
type TaskProgress struct {
Task *db.Task
Beads []BeadProgress
}
TaskProgress holds progress info for a task.
type WorkProgress ¶
type WorkProgress struct {
Work *db.Work
Tasks []*TaskProgress
WorkBeads []BeadProgress // all beads assigned to this work
UnassignedBeads []BeadProgress // beads in work but not assigned to any task
UnassignedBeadCount int
FeedbackCount int // count of unresolved PR feedback items
FeedbackBeadIDs []string // bead IDs from unassigned PR feedback
// PR status fields (populated from work record)
CIStatus string // pending, success, failure
ApprovalStatus string // pending, approved, changes_requested
Approvers []string // list of usernames who approved
HasUnseenPRChanges bool // true if there are unseen PR changes
MergeableState string // CLEAN, DIRTY, BLOCKED, BEHIND, DRAFT, UNSTABLE, UNKNOWN
}
WorkProgress holds progress info for a work unit.
func FetchAllWorksPollData ¶
FetchAllWorksPollData fetches progress data for all works
func FetchTaskPollData ¶
func FetchTaskPollData(ctx context.Context, proj *project.Project, taskID string) ([]*WorkProgress, error)
FetchTaskPollData fetches progress data for a single task
func FetchWorkPollData ¶
func FetchWorkPollData(ctx context.Context, proj *project.Project, workID string) ([]*WorkProgress, error)
FetchWorkPollData fetches progress data for a single work
func FetchWorkProgress ¶
func FetchWorkProgress(ctx context.Context, proj *project.Project, work *db.Work) (*WorkProgress, error)
FetchWorkProgress fetches progress data for a single work
Click to show internal directories.
Click to hide internal directories.