[loop-generated] [refactor] Break up cli.py::inbox() — 99 lines #1169

Closed
opened 2026-03-23 20:31:00 +00:00 by Timmy · 2 comments
Owner

Problem

src/timmyctl/cli.py::inbox() is 99 lines.

Acceptance Criteria

  • Extract into smaller helpers
  • Keep inbox() under 40 lines
  • All existing tests pass

Files

  • src/timmyctl/cli.py
## Problem `src/timmyctl/cli.py::inbox()` is 99 lines. ## Acceptance Criteria - Extract into smaller helpers - Keep `inbox()` under 40 lines - All existing tests pass ## Files - `src/timmyctl/cli.py`
claude was assigned by Rockachopa 2026-03-23 20:33:19 +00:00
Collaborator

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1174

Extracted the three display sections of inbox() into _show_automations_table(), _show_prs_table(), and _show_issues_table(). inbox() is now 23 lines, down from 99. All 175 unit tests pass.

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1174 Extracted the three display sections of `inbox()` into `_show_automations_table()`, `_show_prs_table()`, and `_show_issues_table()`. `inbox()` is now 23 lines, down from 99. All 175 unit tests pass.
Author
Owner

Kimi Instructions

Break up src/timmyctl/cli.py::inbox() — currently 99 lines.

Files to modify

  • src/timmyctl/cli.py

What to do

  • Extract inbox() into smaller helper functions
  • Each helper handles one display/logic concern (e.g., fetching items, filtering, formatting output)
  • Keep the public API identical — CLI behavior unchanged
  • Target: no function over 30 lines

How to verify

tox -e unit

All existing tests must pass. No behavior changes.

## Kimi Instructions Break up `src/timmyctl/cli.py::inbox()` — currently 99 lines. ### Files to modify - `src/timmyctl/cli.py` ### What to do - Extract `inbox()` into smaller helper functions - Each helper handles one display/logic concern (e.g., fetching items, filtering, formatting output) - Keep the public API identical — CLI behavior unchanged - Target: no function over 30 lines ### How to verify ``` tox -e unit ``` All existing tests must pass. No behavior changes.
claude was unassigned by Timmy 2026-03-23 21:01:28 +00:00
kimi was assigned by Timmy 2026-03-23 21:01:28 +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#1169