Skip to content

Feature request: per-project daily drill-down + custom date range selector #93

@jc370

Description

@jc370

Hi team — love what you've built with CodeBurn. Really great visibility into AI coding costs. A few things that would make it even more useful:

Feature Requests

1. Per-project daily cost breakdown

When you have multiple active projects, it's hard to understand day-by-day spend for a single project. A way to filter/drill into one project and see its daily trend would be really valuable — especially for projects used daily over weeks.

2. Custom date range selector

The current period tabs (Today / 7 Days / 30 Days / Month / All) are great but sometimes you want to look at a specific sprint, billing period, or date range. A custom start/end date picker would close that gap.

Bug Report: Yesterday's data missing from menubar (UTC+ timezones)

Found a timezone bug in toDateString in src/cli.ts. It uses .toISOString() which returns UTC — so for anyone in a UTC+ timezone (UK, Europe, Asia), midnight local time resolves to the previous day in UTC. This shifts yesterdayStr back one day, silently dropping the most recent day from the menubar history payload.

Fix:

// Before
function toDateString(date: Date): string {
  return date.toISOString().slice(0, 10)
}

// After
function toDateString(date: Date): string {
  const y = date.getFullYear()
  const m = String(date.getMonth() + 1).padStart(2, '0')
  const d = String(date.getDate()).padStart(2, '0')
  return `${y}-${m}-${d}`
}

Happy to raise a PR for the bug fix if useful. Thanks for building this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions