Repository navigation
Description
Summary
The Lifetime period needs to behave consistently across CodeBurn surfaces.
Right now, Lifetime support touches multiple layers:
- CLI / dashboard period wiring
- menubar JSON payload generation
- macOS menubar rendering and status-period settings
- GNOME menubar rendering and prefs/settings
This should be treated as one consistency issue: Lifetime must mean true all-time history everywhere, not a recent capped window, and long spans must render with an adaptive cadence that stays readable.
Problem
Without explicit cross-surface handling, Lifetime can drift in a few ways:
- period selectors/settings may expose different options on different surfaces
- menubar payload history may be trimmed too aggressively for desktop renderers
- long history can be rendered with the wrong cadence
- older years can disappear from desktop trend views
- stats semantics can diverge from trend semantics
- new menubar-specific settings can accidentally omit
Lifetimeeven when the main popover supports it
Expected behavior
Lifetime should work the same way everywhere:
- CLI and dashboard expose
Lifetimeas a first-class period - macOS menubar popover supports
Lifetime - macOS menubar status-period setting also supports
Lifetime - GNOME menubar supports
Lifetime Lifetimeuses full available history, not a fixed recent capLifetimetrend cadence adapts by span:- monthly for
<= 24 months - quarterly for
<= 60 months - yearly for
> 60 months
- monthly for
Lifetimestats remain all-time and match the full-history semantics
Why this matters
Lifetime is the only period users expect to be truly uncapped. If any surface trims it, labels it differently, or renders it with the wrong aggregation, the result is misleading rather than just inconvenient.
This is especially visible in desktop menubars, where dense daily bars across multi-year history are not readable and can hide older spend entirely.
Reproduction
- Use a dataset that spans multiple years.
- Open CodeBurn in:
- CLI/dashboard
- macOS menubar
- GNOME menubar
- Compare
Lifetimebehavior across those surfaces. - Check whether:
Lifetimeis selectable everywhere it should be- older years are present in history
- trend labels/cadence change appropriately
- stats remain all-time
- menubar-specific settings also allow
Lifetime
Acceptance criteria
Lifetimeis available across CLI, dashboard, macOS menubar, macOS menubar status settings, and GNOME menubar- menubar payload generation retains full daily history when needed for
Lifetime - desktop renderers do adaptive aggregation:
- monthly
<= 24 months - quarterly
<= 60 months - yearly
> 60 months
- monthly
Todaycan still use intraday buckets and6 Monthscan still use weekly aggregationLifetimestats remain all-time- payload decoding remains backward-compatible where practical
- automated regression coverage exists for:
- CLI lifetime history retention
- macOS lifetime cadence
- macOS menubar status-period persistence including
Lifetime - GNOME lifetime cadence
Suggested labels
bugdesktopmenubarenhancement
Activity
feat(macos): add lifetime period with settings-driven strip swap
feat(gnome): add lifetime period with settings-driven tab swap
feat(cli): add lifetime period for CLI and dashboard
feat(macos): add lifetime period with settings-driven strip swap
feat(gnome): add lifetime period with settings-driven tab swap
feat(macos): add lifetime period with settings-driven strip swap
feat(cli): rebase lifetime period onto current main
feat(cli): add lifetime period for CLI and dashboard
feat(cli): add lifetime period for CLI and dashboard (#753)
ozymandiashh commentedon Aug 3, 2026
Status check three months on: the Lifetime half of this issue has landed. #753 exposed Lifetime in the CLI dashboard and #759 aligned the period windows and made the clients display CLI values verbatim with a true Lifetime tab; both are merged. What remains from the original ask is only the "consistent adaptive cadence" leg for the GNOME extension, which none of the merged work touched. Might be worth retitling to the GNOME remainder or closing in favor of a scoped issue, so the fixed part stops looking open.
ozymandiashh commentedon Aug 3, 2026
Closing as completed: the Lifetime scope landed via #753 and #759 (details one comment up), and the one remaining leg, GNOME cadence parity, now has its own scoped issue: #892. Tracking a finished feature plus an unrelated remainder under one title kept this looking open forever; the split ends that.