class

Phosphor::DetailScreen

Inherits Phosphor::Screen < Reference < Object

Shows the detail of the currently selected todo item.

Validates that the Screen abstraction generalises beyond DashboardScreen. Msg::Back returns Cmd::Pop to signal intent to navigate back; the navigation stack itself ships in Phase 19.

Constructors

new(app : App(S, M))
Source

Instance methods

handle(msg : Msg, state : AppState) : Tuple(AppState, Cmd | Nil)

Handles Msg::Back by returning Cmd::Pop. Msg::SelectNext advances state.selected without leaving the detail view — the same wrap-around behaviour as DashboardScreen. Ignores all other messages.

Source
on_mount(state : AppState) : AppState

Mounts the paragraph widget and sets focus.

Source
render(state : AppState, frame : Frame, buf : Buffer) : Void

Renders the selected todo's text into the full frame.

Source