From 152c3b66ef29a12970c741287a6535671afa6486 Mon Sep 17 00:00:00 2001 From: kimi Date: Sun, 22 Mar 2026 18:11:27 -0400 Subject: [PATCH] docs: add docstrings to system.py route handlers Add proper function-level docstrings to the following endpoints: - mission_control: swarm mission control dashboard - bugs_page: bug tracking page - self_coding: self-coding automation status page - hands_page: hands (automation executions) page - creative_ui: creative UI playground page Fixes #940 --- src/dashboard/routes/system.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dashboard/routes/system.py b/src/dashboard/routes/system.py index 8102ee97..7b98a7fb 100644 --- a/src/dashboard/routes/system.py +++ b/src/dashboard/routes/system.py @@ -56,11 +56,13 @@ async def self_modify_queue(request: Request): @router.get("/swarm/mission-control", response_class=HTMLResponse) async def mission_control(request: Request): + """Render the swarm mission control dashboard page.""" return templates.TemplateResponse(request, "mission_control.html", {}) @router.get("/bugs", response_class=HTMLResponse) async def bugs_page(request: Request): + """Render the bug tracking page.""" return templates.TemplateResponse( request, "bugs.html", @@ -75,16 +77,19 @@ async def bugs_page(request: Request): @router.get("/self-coding", response_class=HTMLResponse) async def self_coding(request: Request): + """Render the self-coding automation status page.""" return templates.TemplateResponse(request, "self_coding.html", {"stats": {}}) @router.get("/hands", response_class=HTMLResponse) async def hands_page(request: Request): + """Render the hands (automation executions) page.""" return templates.TemplateResponse(request, "hands.html", {"executions": []}) @router.get("/creative/ui", response_class=HTMLResponse) async def creative_ui(request: Request): + """Render the creative UI playground page.""" return templates.TemplateResponse(request, "creative.html", {}) -- 2.43.0