INNER CODE UNIT · Python
__init__
VisionForge-OU/foreman · src/foreman/tui/app.py:79
def __init__(self, slug: str):
super().__init__()
self.slug = slug
self.kind = "plan"
def compose(self) -> ComposeResult:
yield Header()
yield Static(id="title")
yield Static(id="digest") # WS5.2: "decisions made on your behalf"
yield Static(id="oq") # open questions first
with VerticalScroll(id="doc"):
yield Markdown(id="md")
yield Label("Comments (used as answers to open questions):")
yield TextArea(id="comments")
yield Footer()
def on_mount(self) -> None:
# Default to the first doc that is awaiting review.