wg-html-add

wg html: add --since / --max-age time filter

Metadata

Statusdone
Assignedagent-1005
Agent identityf51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e
Modelclaude:sonnet
Created2026-04-28T22:50:37.740802695+00:00
Started2026-04-28T22:58:57.795655374+00:00
Completed2026-04-28T23:22:50.048845854+00:00
Tagsfix,html,viz, eval-scheduled
Eval score0.94
└ blocking impact0.95
└ completeness0.95
└ coordination overhead0.95
└ correctness0.95
└ downstream usability0.90
└ efficiency0.90
└ intent fidelity0.92
└ style adherence0.95

Description

Description

wg html --all on a mature project (593 tasks today) renders a wall of nodes that's hard to navigate. Add a time-window filter so users can scope output to recent activity.

Spec

  • New flag: --since <duration> accepting human-readable values: 1h, 24h, 7d, 30d, etc. Use the same parser other wg commands use if there is one (check via wg --help for similar flags); otherwise add a thin parser that handles h/d/w/m suffixes.
  • Filter logic: include a task if created_at OR updated_at falls within the window. Both work — created_at catches new work, updated_at catches recently-touched older work.
  • Compose with existing flags: --since works alongside --all and the default public-only filter. wg html --all --since 24h = all tasks touched in last 24h. wg html --since 7d = public tasks touched in last 7d.
  • Footer note on the rendered page: when --since is in effect, mention it. e.g. 'Showing 47 of 593 tasks: public-only, last 7d.'
  • Empty-result handling: if 0 tasks remain after filtering, show a useful hint inline (also addresses the gap user hit with --all on a fresh project — but scope this task only to the filter, not the empty-state UX).

Validation

  • Failing test written first: wg html --since 1h --out /tmp/X --all produces fewer tasks than wg html --all --out /tmp/Y on a graph with mixed-age tasks
  • Test: --since parser accepts 1h, 24h, 7d, 30d; rejects garbage with a clear error
  • Live smoke: run on this project with --since 24h and confirm the rendered page shows recently-active tasks and excludes the multi-day-old ones
  • Footer/header on rendered page mentions the active time window when --since is set
  • cargo build + cargo test pass
  • Permanent smoke scenario added with this task id in owners
  • cargo install --path . was run before claiming done

Depends on

Required by

Log