tabs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tabs implements Bubble Tea sub-model tabs for the BubbleFish Nexus TUI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditTab

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

AuditTab displays audit log records in a scrollable log table.

func NewAuditTab

func NewAuditTab() *AuditTab

NewAuditTab creates a new Audit tab.

func (*AuditTab) FireRefresh

func (t *AuditTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh dispatches the audit log API call.

func (*AuditTab) Init

func (t *AuditTab) Init() tea.Cmd

Init returns the initial command.

func (*AuditTab) Name

func (t *AuditTab) Name() string

Name returns the tab display name.

func (*AuditTab) Update

func (t *AuditTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages and key events.

func (*AuditTab) View

func (t *AuditTab) View(width, height int) string

View renders the audit tab content.

type ConflictsTab

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

ConflictsTab shows conflict groups with navigation.

func NewConflictsTab

func NewConflictsTab() *ConflictsTab

NewConflictsTab returns an initialised ConflictsTab.

func (*ConflictsTab) FireRefresh

func (t *ConflictsTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh fetches fresh conflict data from the daemon.

func (*ConflictsTab) Init

func (t *ConflictsTab) Init() tea.Cmd

Init returns the first command (none needed).

func (*ConflictsTab) Name

func (t *ConflictsTab) Name() string

Name returns the tab display name.

func (*ConflictsTab) Update

func (t *ConflictsTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*ConflictsTab) View

func (t *ConflictsTab) View(width, height int) string

View renders the conflicts display.

type ControlTab

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

ControlTab is the landing tab showing daemon health signals.

func NewControlTab

func NewControlTab() *ControlTab

NewControlTab creates a new Control tab.

func (*ControlTab) FireRefresh

func (t *ControlTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh dispatches parallel status and health API calls.

func (*ControlTab) Init

func (t *ControlTab) Init() tea.Cmd

Init returns the initial command (none — data arrives via FireRefresh).

func (*ControlTab) Name

func (t *ControlTab) Name() string

Name returns the tab display name.

func (*ControlTab) Update

func (t *ControlTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*ControlTab) View

func (t *ControlTab) View(width, height int) string

View renders the control tab content.

type PipelineTab

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

PipelineTab shows the 6-stage retrieval cascade and throughput gauges.

func NewPipelineTab

func NewPipelineTab() *PipelineTab

NewPipelineTab returns an initialised PipelineTab.

func (*PipelineTab) FireRefresh

func (t *PipelineTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh fetches fresh status data from the daemon.

func (*PipelineTab) Init

func (t *PipelineTab) Init() tea.Cmd

Init returns the first command (none needed).

func (*PipelineTab) Name

func (t *PipelineTab) Name() string

Name returns the tab display name.

func (*PipelineTab) Update

func (t *PipelineTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*PipelineTab) View

func (t *PipelineTab) View(width, height int) string

View renders the pipeline visualisation.

type SecurityTab

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

SecurityTab displays the hardening matrix, auth summary, and lint warnings.

func NewSecurityTab

func NewSecurityTab() *SecurityTab

NewSecurityTab creates a new Security tab.

func (*SecurityTab) FireRefresh

func (t *SecurityTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh dispatches parallel summary and lint API calls.

func (*SecurityTab) Init

func (t *SecurityTab) Init() tea.Cmd

Init returns the initial command.

func (*SecurityTab) Name

func (t *SecurityTab) Name() string

Name returns the tab display name.

func (*SecurityTab) Update

func (t *SecurityTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*SecurityTab) View

func (t *SecurityTab) View(width, height int) string

View renders the security tab content.

type SettingsTab

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

SettingsTab displays read-only daemon configuration.

func NewSettingsTab

func NewSettingsTab() *SettingsTab

NewSettingsTab returns an initialised SettingsTab.

func (*SettingsTab) FireRefresh

func (t *SettingsTab) FireRefresh(client *api.Client) tea.Cmd

FireRefresh fetches fresh status and config data from the daemon.

func (*SettingsTab) Init

func (t *SettingsTab) Init() tea.Cmd

Init returns the first command (none needed).

func (*SettingsTab) Name

func (t *SettingsTab) Name() string

Name returns the tab display name.

func (*SettingsTab) Update

func (t *SettingsTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*SettingsTab) View

func (t *SettingsTab) View(width, height int) string

View renders the settings display.

type Tab

type Tab interface {
	Init() tea.Cmd
	Update(msg tea.Msg) (Tab, tea.Cmd)
	View(width, height int) string
	FireRefresh(client *api.Client) tea.Cmd
	Name() string
}

Tab is the interface each tab sub-model must implement. This mirrors the tui.Tab interface to avoid an import cycle.

type TimeTravelTab

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

TimeTravelTab provides manual time-travel queries against the memory store.

func NewTimeTravelTab

func NewTimeTravelTab() *TimeTravelTab

NewTimeTravelTab returns an initialised TimeTravelTab.

func (*TimeTravelTab) FireRefresh

func (t *TimeTravelTab) FireRefresh(_ *api.Client) tea.Cmd

FireRefresh is a no-op for time-travel: queries are manual only.

func (*TimeTravelTab) Init

func (t *TimeTravelTab) Init() tea.Cmd

Init returns the first command (text input blink).

func (*TimeTravelTab) Name

func (t *TimeTravelTab) Name() string

Name returns the tab display name.

func (*TimeTravelTab) SetClient

func (t *TimeTravelTab) SetClient(client *api.Client)

SetClient stores the API client for manual queries.

func (*TimeTravelTab) Update

func (t *TimeTravelTab) Update(msg tea.Msg) (Tab, tea.Cmd)

Update handles incoming messages.

func (*TimeTravelTab) View

func (t *TimeTravelTab) View(width, height int) string

View renders the time-travel query interface and results.

Jump to

Keyboard shortcuts

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