A status directory is a plain directory, so anything can land in it. `collect_ticket_items` read every entry it could, so a stray `notes.txt` was listed as `(notes) _No title_` and counted in the per-status summary beside the real tickets. The extension check is the one every other scan of a status directory already makes: `resolve_ticket`, `RelationIndex::load`, `find_ticket_file` and the tui's `digest` all skip a non-md path. This was the only reader without it, so the fix is to join them rather than to invent a rule. Subdirectories were already excluded, but by accident: `read_to_string` fails on a directory and `filter_map` dropped it. The filter now refuses them on the extension, and the test keeps a subdirectory in place so a later change to how the file is read cannot bring them back. The count needed nothing. It comes from `collect_ticket_items().len()` since the priority filter was added, so filtering the source fixed both the rows and the number in one place. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
22 lines
616 B
TOML
22 lines
616 B
TOML
[package]
|
|
name = "worklane"
|
|
version = "0.11.1"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
anyhow = "1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
libc = "0.2"
|
|
# unstable-rendered-line-info for Paragraph::line_count, which is how the detail view
|
|
# knows where its text ends. Counting the wrapping by hand would only agree with the
|
|
# widget until one of us changed.
|
|
ratatui = { version = "0.29", features = ["unstable-rendered-line-info"] }
|
|
crossterm = "0.28"
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2"
|
|
assert_fs = "1"
|
|
tempfile = "3"
|