INNER CODE UNIT · Python

action_approve

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

    def action_approve(self) -> None:
        try:
            self.app.controller.approve(self.slug, self.kind)
            self.notify(f"{self.kind} approved")
        except Exception as e:
            self.notify(str(e), severity="error")
        self.refresh_doc()

    def action_request_changes(self) -> None:
        comments = self.query_one("#comments", TextArea).text.strip()
        if not comments:
            self.notify("Add a comment first", severity="warning")
            return
        created = self.app.controller.request_changes(self.slug, self.kind, comments)
        self.query_one("#comments", TextArea).text = ""
        if created:  # H6: an amendment rejection spun off concrete fix issues
            self.notify(f"amendment rejected — created {len(created)} fix issue(s) "
                        f"({', '.join(created)}); press b to build")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…