INNER CODE UNIT · Python
NewFeatureScreen
VisionForge-OU/foreman · src/foreman/tui/app.py:39
class NewFeatureScreen(ModalScreen[Optional[tuple]]):
CSS = """
NewFeatureScreen { align: center middle; }
#box { width: 80; height: auto; border: round $accent; padding: 1 2; background: $panel; }
#req { height: 10; }
"""
def compose(self) -> ComposeResult:
with Vertical(id="box"):
yield Label("New feature — title")
yield Input(placeholder="e.g. Add dark mode", id="title")
yield Label("Request (description + product requirements)")
yield TextArea(id="req")
with Horizontal():
yield Button("Create", variant="primary", id="create")
yield Button("Cancel", id="cancel")
def on_button_pressed(self, event: Button.Pressed) -> None: