LHF: Add docstrings to src/dashboard/routes/tasks.py #939

Closed
opened 2026-03-22 14:29:56 +00:00 by antigravity · 1 comment
Collaborator

Add proper module-level and function-level docstrings to all public methods.

Add proper module-level and function-level docstrings to all public methods.
kimi was assigned by Rockachopa 2026-03-22 22:00:28 +00:00
Collaborator

PR created#991

Summary

Added proper docstrings to all public methods in src/dashboard/routes/tasks.py that were missing them:

HTMX Partials

  • tasks_pending – Return HTMX partial for pending approval tasks
  • tasks_active – Return HTMX partial for active (approved/running/paused) tasks
  • tasks_completed – Return HTMX partial for completed/vetoed/failed tasks (last 50)

Task Action Endpoints

  • approve_task – Approve a pending task and move it to active queue
  • veto_task – Veto a task, marking it as rejected
  • pause_task – Pause a running or approved task
  • cancel_task – Cancel a task (marks as vetoed)
  • retry_task – Retry a failed/vetoed task by moving it back to approved
  • modify_task – Update task title and description

All docstrings follow the existing codebase conventions (concise one-line style). No functional changes — documentation only.

✅ **PR created** — [#991](http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/991) ## Summary Added proper docstrings to all public methods in `src/dashboard/routes/tasks.py` that were missing them: ### HTMX Partials - `tasks_pending` – Return HTMX partial for pending approval tasks - `tasks_active` – Return HTMX partial for active (approved/running/paused) tasks - `tasks_completed` – Return HTMX partial for completed/vetoed/failed tasks (last 50) ### Task Action Endpoints - `approve_task` – Approve a pending task and move it to active queue - `veto_task` – Veto a task, marking it as rejected - `pause_task` – Pause a running or approved task - `cancel_task` – Cancel a task (marks as vetoed) - `retry_task` – Retry a failed/vetoed task by moving it back to approved - `modify_task` – Update task title and description All docstrings follow the existing codebase conventions (concise one-line style). No functional changes — documentation only.
kimi closed this issue 2026-03-22 22:08:29 +00:00
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#939