v0.3.3 - Typed API Models & Test Coverage
Typed API Models & Test Coverage
Completes typed API model adoption across all 13 command handlers and significantly expands test coverage.
Typed API Model Adoption (7 handlers)
All command handlers now use typed structs from types.rs for display paths instead of raw serde_json::Value indexing:
- cycles.rs —
Cyclestruct for list and current cycle display - notifications.rs —
Notificationstruct withIssueReffor notification list - time.rs —
TimeEntrystruct (addeddurationfield) for time entry list - relations.rs —
IssueRelationandIssueRef(with newstatefield) for parent/children/relations display - favorites.rs —
Favoritestruct for remove lookup - roadmaps.rs —
Roadmapstruct for list display - initiatives.rs —
Initiativestruct (addedstatus/sort_orderfields) for list display
Previously completed (v0.3.1): teams, users, projects, labels, comments, documents
Type System Enhancements
IssueRefgainsstate: Option<WorkflowState>for relations displayInitiativegainsstatus: Option<String>andsort_order: Option<f64>TimeEntrygainsduration: Option<i64>for minutes-based time tracking
Test Coverage Expansion
- 41 new unit tests (126 → 167): 26 type deserialization tests + 11 notification type formatter tests + 4 relation type tests
- 14 new integration tests (32 → 46): help text and alias tests for time, relations, favorites, roadmaps, initiatives, documents, context
- Total: 213 tests, all passing, 0 warnings
Stats
- 9 files changed, +846 lines