Documentation
¶
Overview ¶
command_dispatch.go: the `:` command bar + ctrl+p palette half — word dispatch, completion options, and the palette index/keys.
Package tui is the second primary adapter: an interactive Bubble Tea front-end over the same core.Service the CLI uses. It never touches the store/fs — every read runs as a tea.Cmd against the service (commands.go), so Update and View stay I/O-free. Entities (tasks/epics/Threads/audits/research) are declared in a registry (entity.go); the lists live-reload via fsnotify (watch.go). See docs/ARCHITECTURE.md for the subsystem map.
view.go: the Model's render + layout half — View/renderBody/footer/panes/tabStrip.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run launches the TUI program over the given workspace. A filesystem watcher (live reload) is attached best-effort over the Layout's WatchPaths: if it can't start, the browser still runs and `r` refreshes manually — with a footer note so the degradation isn't silent. Layout is the narrow on-disk-layout port (the CLI injects the FS); reads still flow through the service as tea.Cmds.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root TUI model: a multi-entity browser (tasks/epics/Threads/audits/research) over the core service. A tab strip + `:` command-jump switch the active entity; each entity keeps its own list (and cursor). The right pane shows the selection's detail.
type Option ¶ added in v0.17.0
type Option func(*Model)
Option adds an optional application capability to the main TUI.
func WithAtlas ¶ added in v0.17.0
func WithAtlas(svc *core.SpaceOverviewService) Option
WithAtlas mounts the cross-space overview. The workspace opener remains a separate option because tests and future consumers may supply one capability without the other. Mounting it does NOT choose the landing screen — see WithAtlasLanding.
func WithAtlasLanding ¶ added in v0.17.0
func WithAtlasLanding() Option
WithAtlasLanding starts on the atlas instead of the workspace overview. `ui` passes it only when it was launched outside any planning repo: standing in a repo is an unambiguous statement of which space you meant, so the atlas must not interpose itself there — it stays one keystroke away. With no repo there is no such statement, and the registry is the only sensible first screen.
func WithAtlasTheme ¶ added in v0.17.0
WithAtlasTheme supplies the home-scoped visual identity for the cross-space shell. A repository theme still styles that repository's own screens; it must not leak into the atlas merely because that checkout happened to launch the process.
func WithConfiguration ¶ added in v0.17.0
func WithConfiguration(svc *core.ConfigurationService, start string, overrides core.ConfigurationOverrides) Option
WithConfiguration mounts the shared Config/About editor over the configuration service. Filesystem details remain behind that service's store port.
func WithWorkspaceOpening ¶ added in v0.17.0
func WithWorkspaceOpening(svc *core.WorkspaceService) Option
WithWorkspaceOpening supplies the reusable local workspace capability needed by atlas navigation. New(svc) remains valid for embedded and focused single-space consumers.
Source Files
¶
- action.go
- atlas.go
- clipboard.go
- column.go
- command.go
- command_dispatch.go
- commands.go
- dashboard.go
- detail.go
- detail_direction.go
- edit.go
- entity.go
- find.go
- glamour.go
- help.go
- item.go
- keys.go
- messages.go
- model.go
- nav.go
- overlay.go
- palette.go
- read_retry.go
- session.go
- sort.go
- statusview.go
- style.go
- thread_projection.go
- thread_spatial.go
- tui.go
- view.go
- watch.go