MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / Configure

Method Configure

internal/tui/completion.go:63–86  ·  view source on GitHub ↗

Configure sets up the completion screen with PRD completion data.

(prdName string, completed, total int, branch string, commitCount int, hasAutoActions bool, totalDuration time.Duration, storyTimings []StoryTiming)

Source from the content-addressed store, hash-verified

61
62// Configure sets up the completion screen with PRD completion data.
63func (c *CompletionScreen) Configure(prdName string, completed, total int, branch string, commitCount int, hasAutoActions bool, totalDuration time.Duration, storyTimings []StoryTiming) {
64 c.prdName = prdName
65 c.completed = completed
66 c.total = total
67 c.branch = branch
68 c.commitCount = commitCount
69 c.hasAutoActions = hasAutoActions
70 c.totalDuration = totalDuration
71 c.storyTimings = storyTimings
72 // Reset auto-action state
73 c.pushState = AutoActionIdle
74 c.pushError = ""
75 c.prState = AutoActionIdle
76 c.prError = ""
77 c.prURL = ""
78 c.prTitle = ""
79 c.spinnerFrame = 0
80 // Initialize confetti (deferred until SetSize if dimensions aren't known yet)
81 if c.width > 0 && c.height > 0 {
82 c.confetti = NewConfetti(c.width, c.height)
83 } else {
84 c.confetti = nil
85 }
86}
87
88// SetSize sets the screen dimensions.
89func (c *CompletionScreen) SetSize(width, height int) {

Calls 1

NewConfettiFunction · 0.85