views

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisView

type AnalysisView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

AnalysisView displays detailed migration analysis

func NewAnalysisView

func NewAnalysisView(migrationDir string) *AnalysisView

NewAnalysisView creates a new analysis view

func (*AnalysisView) Init

func (a *AnalysisView) Init() tea.Cmd

Init initializes the analysis view

func (*AnalysisView) OnEnter

func (a *AnalysisView) OnEnter() tea.Cmd

OnEnter is called when entering the view

func (*AnalysisView) Type

func (a *AnalysisView) Type() viewtypes.ViewType

Type returns the view type

func (*AnalysisView) Update

func (a *AnalysisView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*AnalysisView) View

func (a *AnalysisView) View() string

View renders the analysis view

type ConfigField

type ConfigField struct {
	Label        string
	Description  string
	CurrentValue string
	Options      []string
	Type         FieldType
	ConfigPath   []string
}

ConfigField represents a configurable field

type ConfigView

type ConfigView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

ConfigView displays and allows editing configuration

func NewConfigView

func NewConfigView(configPath string) *ConfigView

NewConfigView creates a new config view

func (*ConfigView) Init

func (c *ConfigView) Init() tea.Cmd

Init initializes the config view

func (*ConfigView) OnEnter

func (c *ConfigView) OnEnter() tea.Cmd

OnEnter is called when entering the view

func (*ConfigView) Type

func (c *ConfigView) Type() viewtypes.ViewType

Type returns the view type

func (*ConfigView) Update

func (c *ConfigView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*ConfigView) View

func (c *ConfigView) View() string

View renders the config view

type DashboardStats

type DashboardStats struct {
	TotalFiles      int
	TotalSize       int64
	ConfigExists    bool
	ConfigSafety    string
	DetectedPlugins []string
}

DashboardStats contains dashboard statistics

type DashboardView

type DashboardView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

DashboardView is the main dashboard view

func NewDashboardView

func NewDashboardView(migrationDir, configPath string) *DashboardView

NewDashboardView creates a new dashboard view

func (*DashboardView) Init

func (d *DashboardView) Init() tea.Cmd

Init initializes the dashboard

func (*DashboardView) OnEnter

func (d *DashboardView) OnEnter() tea.Cmd

OnEnter is called when entering the view

func (*DashboardView) Type

func (d *DashboardView) Type() viewtypes.ViewType

Type returns the view type

func (*DashboardView) Update

func (d *DashboardView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*DashboardView) View

func (d *DashboardView) View() string

View renders the dashboard

type DependencyData

type DependencyData struct {
	Dependencies map[string][]string
	Objects      []string
}

DependencyData message containing loaded dependencies

type DependencyGraphView

type DependencyGraphView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

DependencyGraphView displays object dependency visualization

func NewDependencyGraphView

func NewDependencyGraphView(migrationDir string) *DependencyGraphView

NewDependencyGraphView creates a new dependency graph view

func (*DependencyGraphView) Init

func (d *DependencyGraphView) Init() tea.Cmd

Init initializes the dependency graph view

func (*DependencyGraphView) OnEnter

func (d *DependencyGraphView) OnEnter() tea.Cmd

OnEnter is called when entering the view

func (*DependencyGraphView) Type

Type returns the view type

func (*DependencyGraphView) Update

func (d *DependencyGraphView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*DependencyGraphView) View

func (d *DependencyGraphView) View() string

View renders the dependency graph view

type FieldType

type FieldType int

FieldType represents the type of field

const (
	FieldTypeSelect FieldType = iota
	FieldTypeToggle
	FieldTypeText
)

type HelpView

type HelpView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

HelpView displays keyboard shortcuts and usage information

func NewHelpView

func NewHelpView() *HelpView

NewHelpView creates a new help view

func (*HelpView) Init

func (h *HelpView) Init() tea.Cmd

Init initializes the help view

func (*HelpView) Type

func (h *HelpView) Type() viewtypes.ViewType

Type returns the view type

func (*HelpView) Update

func (h *HelpView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*HelpView) View

func (h *HelpView) View() string

View renders the help view

type KeyBinding

type KeyBinding struct {
	Key         string
	Description string
	Context     string
}

KeyBinding represents a keyboard shortcut

type LogMessage

type LogMessage struct {
	Message string
}

LogMessage message for log entries

type MenuItem struct {
	Label       string
	Description string
	Action      ViewAction
}

MenuItem represents a menu item

type ProgressUpdate

type ProgressUpdate struct {
	Progress float64
	Phase    string
	Message  string
}

ProgressUpdate message for progress updates

type ProgressView

type ProgressView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

ProgressView displays real-time progress of squashing operation

func NewProgressView

func NewProgressView(migrationDir, configPath string) *ProgressView

NewProgressView creates a new progress view

func (*ProgressView) Init

func (p *ProgressView) Init() tea.Cmd

Init initializes the progress view

func (*ProgressView) OnEnter

func (p *ProgressView) OnEnter() tea.Cmd

OnEnter is called when entering the view

func (*ProgressView) Type

func (p *ProgressView) Type() viewtypes.ViewType

Type returns the view type

func (*ProgressView) Update

func (p *ProgressView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

Update handles messages

func (*ProgressView) View

func (p *ProgressView) View() string

View renders the progress view

type SquashConfig

type SquashConfig struct {
	MigrationDir string
	OutputDir    string
	ConfigPath   string
}

SquashConfig message to start squashing

type ValidationView

type ValidationView struct {
	viewtypes.BaseView
	// contains filtered or unexported fields
}

ValidationView renders validation results

func NewValidationView

func NewValidationView() *ValidationView

NewValidationView creates a new validation view

func (*ValidationView) Init

func (v *ValidationView) Init() tea.Cmd

func (*ValidationView) Type

func (v *ValidationView) Type() viewtypes.ViewType

func (*ValidationView) Update

func (v *ValidationView) Update(msg tea.Msg) (viewtypes.View, tea.Cmd)

func (*ValidationView) View

func (v *ValidationView) View() string

type ViewAction

type ViewAction int

ViewAction represents an action to perform

const (
	ActionAnalyze ViewAction = iota
	ActionConfigure
	ActionSquash
	ActionDependencyGraph
	ActionHelp
)

Jump to

Keyboard shortcuts

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