progress

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func FetchAllWorksPollData(ctx context.Context, proj *project.Project) ([]*WorkProgress, error)

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

Jump to

Keyboard shortcuts

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