Skip to content

Refactor TUI to separate business logic from UI logic #6

@andrewthecodertx

Description

@andrewthecodertx

The TUI file is doing too much. tui.go is 898 lines handling UI state, training orchestration, evaluation logic, and prediction logic. The training command (runTraining, lines 37-163) and prediction command (runPrediction, lines 785-838) contain business logic (data loading, evaluation, denormalization) that should live outside the TUI layer. This would also make it possible to add a CLI/non-interactive mode without duplicating logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorCode refactoring opportunitiestuiTerminal user interface issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions