codeburn/app/renderer/lib
Resham Joshi bc62059744
feat: group projects by git repository (#1691)
* feat(app): transient project selector in the desktop top bar

Scopes every report to one project path for the current session through
the same narrowing the VS Code workspace scope uses. The saved project
filter is never written; a restart is back on all projects.

* fix(app): let the name pickers ellipsize before the top bar overflows

* fix: key the daily project split per real path, not per label

A project label can span several paths: every Claude session started from the
home folder shares -Users-<name>, while its cwd puts it in a different project.
The day rollup keyed by label kept the first path it saw, so a rooted
--project headline took the whole label bucket on some days and missed it on
others. Key per (label, path), read old label-keyed days unchanged, bump the
daily cache to v68.

* fix(app): list only selectable, non-zero projects in the top bar picker

Rows with no session cwd (the Cursor and Grok Bot imports, provider label
fallbacks) report their label as the path, so the picker offered names the
bridge refuses and dash-to-slash guesses like eywa/lab. Keep only absolute
paths, and drop rows whose lifetime cost rounds to $0.00. The old test that
rooted a slashless Codex path is replaced: Codex now records the absolute cwd,
and a slashless path is always the label fallback.

* fix(app): show a toast when a project pick is refused

The pick was dropped silently. Also pin that an encoded -Users-... label
never reaches the picker list.

* feat: group projects by git repository

Clones and worktrees that share an origin remote are one project in every
project list (report JSON, By Project, the top bar picker, the terminal
dashboard), with the checkouts listed under the row. A --project path inside
a checkout scopes to the whole repository; --exact-project keeps the old
single-folder match. The origin is learned while the folder exists, kept in
git-origins.json and on each day's project entry (daily cache v69), so a
deleted scratch clone stays in its repository. The report JSON project list
now comes from the durable day set, so a row costs what selecting it reports.

* fix: a picked project row selects that row exactly

The top bar pick sends =<path>: a checkout in a repository still selects the
whole repository, and a plain folder selects itself without the folders under
it, which are rows of their own. So the picker row and the headline it opens
are the same set. Typed --project paths keep their prefix match. Days adopted
from an older cache learn the origin of every checkout that still exists, and
lookups outside a parse are saved on exit.

* fix: key the status snapshot on --exact-project

* feat: one Temporary folders row for scratch folders outside a repository

Every project path under a temp root (os.tmpdir(), /tmp, /var/folders and
their /private spellings) that is not a checkout of a known repository folds
into one row, in the report JSON, By Project, the terminal dashboard, the top
bar picker and the Settings Projects pane. Its pattern @temp selects or hides
all of them. The Projects pane leaves out rows that round to $0.00 unless a
saved pattern names them, and a saved pattern naming any checkout of a
repository row now names the whole row in the renderer too.

* fix(claude): attribute each call to the project of its own cwd

* test: fold the temp roots the tests set, compare checkout ids as identities (Windows)

* fix(claude): keep subfolder cwds in their project, count and show a split session once

* fix: an exclude path hides that checkout only, repository rows count a session once

* fix(claude): a deleted subfolder stays its own project
2026-10-08 06:45:26 +02:00
..
budget.ts feat(app): daily budget alert (USD or token cap) 2026-07-16 03:16:07 -07:00
build.ts fix: hydration completeness markers, cold-only splash, honest switching, prefetch 2026-07-16 14:05:11 -07:00
chartAxis.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
chartAxis.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
cohortStats.test.ts Wire cohort samples to the real drill-through, scope and serve the new flags 2026-09-12 14:02:01 -07:00
cohortStats.ts Add Compare cohorts mode with population disclosure, samples, and volume band 2026-09-12 14:01:29 -07:00
format.test.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
format.ts feat: CodeBurn for VS Code (#1670) 2026-10-07 16:46:23 +02:00
generation.test.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
generation.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
investigation.test.ts feat(sessions): fold subagent sessions into their parent row (#1690) 2026-10-08 06:27:58 +02:00
investigation.ts feat: group projects by git repository (#1691) 2026-10-08 06:45:26 +02:00
ipc.ts fix(app): no-output watchdog replaces fixed timeouts; graceful kills; cold floor everywhere; orphan serve reaping 2026-08-22 09:22:38 -07:00
menubarProviders.test.ts desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
menubarProviders.ts feat(quota): Command Code quota and ClinePass from the Cline sign-in (#1682) 2026-10-07 23:34:31 +02:00
modelSeries.test.ts Classify GLM-5.3 and Flash spend tiers (#1598) 2026-10-02 10:47:05 +02:00
modelSeries.ts Classify GLM-5.3 and Flash spend tiers (#1598) 2026-10-02 10:47:05 +02:00
motion.test.tsx Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
motion.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
navHistory.test.ts Add the drill-through investigation state, selection math, and session drawer 2026-09-12 12:22:19 -07:00
navHistory.ts Add the drill-through investigation state, selection math, and session drawer 2026-09-12 12:22:19 -07:00
overviewSnapshot.test.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
overviewSnapshot.ts 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
pageVisibility.test.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
pageVisibility.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
period.test.ts app,dash: render pre-history days as no data, not a currency zero (#765) 2026-07-20 08:03:24 -07:00
period.ts desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
platform.ts feat: CodeBurn for VS Code (#1670) 2026-10-07 16:46:23 +02:00
projectGroups.test.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
projectGroups.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
projectMatch.ts feat: group projects by git repository (#1691) 2026-10-08 06:45:26 +02:00
providers.test.ts 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
providers.ts feat: mark estimated dollars the same way in every view (#1657) 2026-10-06 22:27:13 +02:00
refreshCadence.test.ts fix(app): zero background work when hidden; currency applies instantly 2026-07-16 18:41:28 -07:00
refreshCadence.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
reportMemoKey.test.ts perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
reportMemoKey.ts perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
session-count-label.ts desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
spark.test.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
spark.ts Desktop: measured polish pass, new frame, card system, motion, onboarding (#1459) 2026-09-16 19:48:33 +02:00
streak.ts Consistent period totals and incremental refresh (#1467) 2026-09-17 12:35:05 +02:00
testMatchMedia.ts polish(app): consistency review nits 2026-07-16 05:11:10 -07:00
toast.ts feat(app): motion layer (gsap) — count-ups, chart grow-in, section fade, skeletons, toasts 2026-07-16 04:39:09 -07:00
track.ts feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
types.ts feat: group projects by git repository (#1691) 2026-10-08 06:45:26 +02:00