INNER CODE UNIT · Python

MetricsScreen

VisionForge-OU/foreman · src/foreman/tui/app.py:371

class MetricsScreen(Screen):
    """WS6.1: success rate, mean retries/issue, cost/issue, escalation histogram, trends."""
    BINDINGS = [Binding("escape", "app.pop_screen", "Back")]

    def __init__(self, slug: Optional[str]):
        super().__init__()
        self.slug = slug

    def compose(self) -> ComposeResult:
        yield Header()
        with VerticalScroll():
            yield Static(id="metrics")
        yield Footer()

    def on_mount(self) -> None:
        c = self.app.controller
        parts = []
        if self.slug:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…