tui

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderConfidenceLine

func RenderConfidenceLine(confidence model.ConfidenceInfo, theme *renderer.Theme) string

RenderConfidenceLine renders classification confidence as a single line

func RenderConfidenceSection

func RenderConfidenceSection(confidence model.ConfidenceInfo, effort *model.EffortEstimates, theme *renderer.Theme) string

RenderConfidenceSection renders detailed classification confidence (for --explain mode)

func RenderDevelopmentCost

func RenderDevelopmentCost(effort *model.EffortEstimates, git *model.GitMetrics, theme *renderer.Theme) string

RenderDevelopmentCost renders the effort comparison section with delivery model estimates If git metrics are present, shows base estimate, adjustment, and adjusted estimate

func RenderEffortModels

func RenderEffortModels(effort *model.EffortEstimates, theme *renderer.Theme) string

RenderEffortModels renders the human and AI effort estimates section (scc-style)

func RenderEliteReference

func RenderEliteReference(ref *model.EliteOperatorReference, theme *renderer.Theme) string

RenderEliteReference renders the elite operator reference (tasteful, no hype)

func RenderEngineerThroughput added in v0.5.0

func RenderEngineerThroughput(metrics *model.EngineerMetrics, theme *renderer.Theme) string

RenderEngineerThroughput renders the engineer throughput analysis table

func RenderExecutiveSignals

func RenderExecutiveSignals(report *model.Report, theme *renderer.Theme) string

RenderExecutiveSignals renders the executive summary section with colors

func RenderGitDynamics added in v0.2.0

func RenderGitDynamics(gitMetrics *model.GitMetrics, theme *renderer.Theme, width int) string

RenderGitDynamics renders the complete git dynamics section in Tufte order: sparklines (evidence) → signals (interpretation) → effort adjustment (impact)

func RenderGitHint added in v0.2.0

func RenderGitHint(hint *model.GitHint, theme *renderer.Theme) string

RenderGitHint renders the marginal hint when --git is not specified

func RenderHealthRatios

func RenderHealthRatios(ratios model.Ratios, theme *renderer.Theme) string

RenderHealthRatios renders ratios with interpretive health symbols

func RenderHealthRatiosWithComments

func RenderHealthRatiosWithComments(ratios model.Ratios, lines model.LineMetrics, theme *renderer.Theme) string

RenderHealthRatiosWithComments renders ratios including comment/code ratio

func RenderHealthRatiosWithGauges

func RenderHealthRatiosWithGauges(ratios model.Ratios, lines model.LineMetrics, theme *renderer.Theme) string

RenderHealthRatiosWithGauges renders ratios with visual range indicators

func RenderLanguageLedger

func RenderLanguageLedger(languages []model.LanguageComp, theme *renderer.Theme, noEmbedded bool) string

RenderLanguageLedger renders a numeric language breakdown grouped by category Shows languages that cumulatively account for ≥95% of total LOC If noEmbedded is true, embedded code blocks (e.g., in Markdown) are not shown

func RenderLanguageMatrix

func RenderLanguageMatrix(languages []model.LanguageComp, theme *renderer.Theme) string

RenderLanguageMatrix renders a heatmap of language × responsibility density

func RenderQuickActions

func RenderQuickActions(actions []model.QuickAction, theme *renderer.Theme) string

RenderQuickActions renders actionable recommendations

func RenderResponsibilityBalance

func RenderResponsibilityBalance(responsibilities []model.Responsibility, totalLOC int, theme *renderer.Theme) string

RenderResponsibilityBalance renders role distribution as a clean inline summary

func RenderScaleAndEffort

func RenderScaleAndEffort(report *model.Report, theme *renderer.Theme) string

RenderScaleAndEffort renders the unified scale section (top of report) Note: Effort estimates moved to end of report for clarity

Types

type RatioHealth

type RatioHealth struct {
	Symbol      string
	Description string
	IsGood      bool
	IsWarning   bool
}

RatioHealth represents the health assessment of a ratio

type TUIRenderer

type TUIRenderer struct {
	// contains filtered or unexported fields
}

func NewTUIRenderer

func NewTUIRenderer(opts renderer.Options) *TUIRenderer

func (*TUIRenderer) Render

func (r *TUIRenderer) Render(report *model.Report) error

Jump to

Keyboard shortcuts

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