feat(list): hide resolved by default, group by project, row counter #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/list-exclude-resolved"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Three UX changes to
yt listfrom the same investigation. Reported against an org with 192 assigned issues where most were closed; the default view drowned the live work in archaeology and gave no signal of the total count.Hide resolved by default
The default structured query now prepends
#Unresolved. YouTrack's tag-style filter matches any state that is not marked resolved in the project config, soyt listshows "what's on my plate" rather than "every issue ever assigned to me."--include-resolvedopts back in. Raw--queryis untouched: when the caller supplies their own query, the CLI hands it through verbatim with no auto-prepend.Group by project
--group-by projectis the new default. Rows are sorted by issue id prefix, then by issue number within the prefix, so every project's issues sit together and within each project run in ascending id order.--group-by nonepreserves the server response order. The flag is intentionally narrow for now (project/none); state, assignee, and type can land later without changing the flag shape.Row counter and total
The table gains a leading
#column with 1-indexed row numbers, and aN issue(s)summary prints below the table so the count is visible without| wc -lor Nushell's| length. Display-only;--jsonis unchanged so scripted callers keep their existing shape.Test plan
cargo fmt --allcargo clippy --all-targets --all-features -- --deny warningscargo test --all-targets(209 passed; was 204)--include-resolvedopt-out, project-prefix sort with multi-segment ids,--group-by nonepreserves server orderyt listagainst the 192-issue org returns only the unresolved subset, grouped by project, with a row count visible at the bottomyt list --include-resolved | from json(after JSON conversion) still shows the resolved tail