Documentation
¶
Overview ¶
Package reviewprogress implements the BubbleTea TUI for chunk review passes, and the row rendering that other views (the watch dashboard's session view) share with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderRow ¶ added in v0.7.196
RenderRow renders one prompt line, indented two columns. nameWidth pads the name column so rows align (see NameWidth); spinIdx picks the spinner frame of a running row.
func RenderSummary ¶ added in v0.7.196
RenderSummary renders the "2 running · 1 done" tally for rows.
Types ¶
type Model ¶
type Model struct {
RunErr error
// contains filtered or unexported fields
}
Model is the BubbleTea model for review progress.
type ProgressMsg ¶
type ProgressMsg review.ProgressEvent
ProgressMsg carries a state-change event from the review pass.
type Row ¶ added in v0.7.196
type Row struct {
Name string
SidecarID string
State review.PromptState
Duration time.Duration
Err string
}
Row is one prompt of a review pass as the row renderers show it. It is the same whether the pass runs in this process or on the watch daemon, which is what lets `chunk review` and `chunk watch` draw a review identically.