issueimport

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package issueimport implements the direct-store forge import review overlay.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMessage

func IsMessage(message tea.Msg) bool

Types

type Backend

type Backend interface {
	Sources(string) ([]store.ForgeSource, error)
	Preview(context.Context, string, forge.PreviewRequest) (forge.Preview, error)
	CreateTask(string, string, board.Task, forge.LinkInput) (board.Task, error)
}

type Model

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

func New

func New(st Store, backend Backend, user string, ctx context.Context) Model

func (Model) BrandMounted

func (m Model) BrandMounted() bool

BrandMounted reports whether this overlay's branded engine is ticking.

func (*Model) Close

func (m *Model) Close()

func (*Model) ConsumeChanged

func (m *Model) ConsumeChanged() bool

func (Model) Enabled

func (m Model) Enabled() bool

func (Model) IsOpen

func (m Model) IsOpen() bool

func (*Model) MouseHandler

func (m *Model) MouseHandler(width, height int) func(tea.MouseMsg) tea.Cmd

MouseHandler returns a release-only immutable map derived from the rendered frame. Every target comes from the row that carries it, never from matching the rendered text: a forge draft's title is untrusted and must not be able to impersonate a control.

func (*Model) Open

func (m *Model) Open() tea.Cmd

func (Model) Overlay

func (m Model) Overlay(background string, width, height int) string

Overlay composes the import panel over the board surface. Spec section 4: elevation is a shade step plus a shadow, never a frame.

func (Model) PointerSession

func (m Model) PointerSession() uint64

PointerSession identifies this open import owner across harmless renders.

func (*Model) PointerSurface

func (m *Model) PointerSurface(width, height int) pointer.Surface

PointerSurface publishes the rendered handler together with its immutable stable-control topology for root-level stale-generation admission.

func (*Model) SetDataDir

func (m *Model) SetDataDir(dir string)

SetDataDir names the directory the active project is resolved from — the one holding the board and its state.json. Empty falls back to $KB_DATA and the default data directory, the same as every other surface.

func (*Model) SetFrontMost

func (m *Model) SetFrontMost(front bool) tea.Cmd

SetFrontMost is the background handoff of spec section 10.2.6: a surface that is not front-most stops its engine and remounts at step 0 on return.

func (*Model) SetStyles

func (m *Model) SetStyles(styles *theme.Styles)

SetStyles hands the overlay the resolved design system. Spec section 6.2: styles are built once by the root and threaded down, never constructed here.

func (*Model) Update

func (m *Model) Update(message tea.Msg) tea.Cmd

func (Model) View

func (m Model) View(width, height int) string

View renders the panel centered on the terminal, with no board behind it.

type Store

type Store interface {
	AddTask(string, board.Task) (board.Task, error)
}

Jump to

Keyboard shortcuts

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