refactor: extract who result types to core::who_types for TUI reuse
Move the 14 result structs and enums (WhoResult, ExpertResult, Expert, ScoreComponents, ExpertMrDetail, WorkloadResult, WorkloadIssue, WorkloadMr, WorkloadDiscussion, ReviewsResult, ReviewCategory, ActiveResult, ActiveDiscussion, OverlapResult, OverlapUser) from cli::commands::who into a new core::who_types module. The TUI Who screen needs these types to render results, but importing from the CLI layer would create a circular dependency (TUI -> CLI -> core). By placing them in core, both the CLI and TUI can depend on them cleanly. The CLI module re-exports all types via `pub use crate::core::who_types::*` so existing consumers are unaffected.
This commit is contained in:
@@ -36,7 +36,7 @@ pub use list::{
|
||||
ListFilters, MrListFilters, NoteListFilters, open_issue_in_browser, open_mr_in_browser,
|
||||
print_list_issues, print_list_issues_json, print_list_mrs, print_list_mrs_json,
|
||||
print_list_notes, print_list_notes_csv, print_list_notes_json, print_list_notes_jsonl,
|
||||
query_notes, run_list_issues, run_list_mrs,
|
||||
query_issues, query_mrs, query_notes, run_list_issues, run_list_mrs,
|
||||
};
|
||||
pub use search::{
|
||||
SearchCliFilters, SearchResponse, print_search_results, print_search_results_json, run_search,
|
||||
@@ -50,4 +50,7 @@ pub use sync::{SyncOptions, SyncResult, print_sync, print_sync_json, run_sync};
|
||||
pub use sync_status::{print_sync_status, print_sync_status_json, run_sync_status};
|
||||
pub use timeline::{TimelineParams, print_timeline, print_timeline_json_with_meta, run_timeline};
|
||||
pub use trace::{parse_trace_path, print_trace, print_trace_json};
|
||||
pub use who::{WhoRun, print_who_human, print_who_json, run_who};
|
||||
pub use who::{
|
||||
WhoRun, half_life_decay, print_who_human, print_who_json, query_active, query_expert,
|
||||
query_overlap, query_reviews, query_workload, run_who,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user