Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Documents []review.AttachedDocument
Project string
Topic string
Version string
Session *review.Session
Author string
// Staged reads code-review files and diffs from the Git index.
Staged bool
Patch *gitpkg.Patch
Source *gitpkg.ReviewSource
FinishCh chan<- FinishEvent
FocusPath string
FocusLine int
}
AppConfig carries the cross-cutting dependencies of the TUI.
type AppModel ¶
type AppModel struct {
// contains filtered or unexported fields
}
func NewCodeReviewApp ¶
func NewCodeReviewApp(files []gitpkg.FileChange, ref string, cfg AppConfig) AppModel
NewCodeReviewApp creates a multi-file code review TUI.
func (*AppModel) SaveUnsubmittedDraft ¶
SaveUnsubmittedDraft preserves the editor when the program is stopped externally rather than through the modal's own controls.
type FileTab ¶
type FileTab struct {
// contains filtered or unexported fields
}
FileTab holds per-file state for a single tab in the code review TUI.
type FinishEvent ¶
type FinishEvent struct {
Approved bool
Result *review.FormResult
}
FinishEvent is emitted on the finish channel when the reviewer finishes a round. The runner turns it into a payload for blocked agent clients.
Source Files
¶
- app.go
- clipboard.go
- comment_images.go
- completion.go
- content.go
- drifted.go
- editor.go
- empty.go
- fileselect.go
- filetab.go
- filetree.go
- finish.go
- forms.go
- highlight.go
- images.go
- isearch.go
- keys.go
- killring.go
- location.go
- markdown_images.go
- messages.go
- navigation.go
- overall.go
- progress.go
- references.go
- resume.go
- styles.go
- thread.go
- whitespace.go
Click to show internal directories.
Click to hide internal directories.