codeburn/app/renderer/sections
Mathieu Stanowski 6cac9d929c feat(app): add a Projects pane that scopes the desktop app to chosen projects
Screen-sharing or demoing the app exposed every project on the machine,
with no way to narrow it. Settings now has a Projects pane: one switch
per detected project, plus a field for hiding a pattern that matches
nothing detected yet.

The filter lives in ~/.config/codeburn/app-filter.json rather than
renderer storage, because the main process is where the CLI argv is
assembled. No file, or empty lists, means no filter, so the default is
unchanged for everyone who never opens the pane. CODEBURN_APP_FILTER
overrides the path and an empty value disables it, which is what the app
test suite sets so a real filter file cannot reach the assertions.

Details worth knowing:

- The pane's own project list is fetched WITHOUT the filter. Scoping it
  would hide the projects the checklist exists to switch back on.
- Patterns are passed as --project=<value>, never as two argv entries. A
  Claude project directory is encoded as "-Users-me-Web-thing", and a
  leading dash in its own argv slot parses as a flag.
- Combined scope and a project filter cannot both hold. The CLI rejects
  --scope combined next to --project/--exclude because paired devices
  report their usage unfiltered, and dropping the filter instead would
  put the hidden projects back inside the combined total, which is the
  one thing the pane exists to prevent. So the filter wins: Settings
  offers Local only while something is hidden (and says why), the
  renderer derives its effective scope from the filter so even the first
  poll of a filtered session is local, and buildOverviewArgs keeps the
  same rule as a guard for a stale caller.
- A read that fails on an existing file keeps the last known filter
  instead of falling back to the empty one. Unhiding every project on a
  torn write or a typo mid-edit is the one failure mode this pane cannot
  have. Only a missing file means "show everything" again.
- The pane's matcher lives in renderer/lib/projectMatch.ts, and
  projectMatch.test.ts pins it against the CLI's matchesProjectPattern
  over every pattern shape. A switch that disagrees with the argv it
  writes would lie about what is on screen.
- Writes are serialized: every write is computed from the filter on
  screen, so a second click before the first landed would be built from
  the pre-click value and drop it.
- export carries the filter too, since it writes project names into a
  file that gets shared. getPlans stays unfiltered, like combined scope:
  a plan is billed on every project, so scoping it would misreport the
  cycle.
2026-09-12 05:38:52 -07:00
..
Compare.test.tsx feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
Compare.tsx feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
InstallFlow.tsx fix(desktop): install flow surfaces CLI errors and locks actions while pending 2026-08-28 06:59:50 -07:00
Models.test.tsx Merge pull request #1169 from ksp2000/feature/standardize-model-capability-tiers 2026-09-08 10:07:27 +05:30
Models.tsx perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
Optimize.test.tsx feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
Optimize.tsx feat(app): send the CLI's telemetry snapshot and a few interaction events 2026-09-03 01:18:23 -07:00
Overview.test.tsx fix(usage): preserve project identity and qualify incomplete session counts 2026-09-07 22:02:54 +05:30
Overview.tsx fix(usage): preserve project identity and qualify incomplete session counts 2026-09-07 22:02:54 +05:30
Plans.test.tsx feat: live quota for Gemini, Copilot, and Antigravity in the desktop app 2026-08-23 03:13:47 -07:00
Plans.tsx perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
PluginDetails.tsx feat(desktop): complete plugin-era UI with details, install flow, settings, and team registry 2026-08-28 06:59:50 -07:00
Plugins.module.css feat(app): Plugins says what it is doing on Windows 2026-09-02 07:03:23 -07:00
Plugins.test.tsx feat(app): Plugins says what it is doing on Windows 2026-09-02 07:03:23 -07:00
Plugins.tsx feat(app): Plugins says what it is doing on Windows 2026-09-02 07:03:23 -07:00
PullRequests.test.tsx fix(desktop): name a custom range on the empty PR tab 2026-08-22 23:58:50 +05:30
PullRequests.tsx copy: drop the em dash from the wider-period hint (repo copy rule) 2026-08-22 12:46:42 -07:00
Sessions.test.tsx chore: keep real people and machines out of a public repository 2026-09-03 12:38:11 -07:00
Sessions.tsx perf(desktop): keep every destination useful across restarts (#1163) 2026-08-28 14:51:18 -07:00
Settings.test.tsx feat(app): add a Projects pane that scopes the desktop app to chosen projects 2026-09-12 05:38:52 -07:00
Settings.tsx feat(app): add a Projects pane that scopes the desktop app to chosen projects 2026-09-12 05:38:52 -07:00
SettingsSharing.tsx feat(desktop): complete plugin-era UI with details, install flow, settings, and team registry 2026-08-28 06:59:50 -07:00
SettingsTray.test.tsx fix(app): the tray companion works with only the desktop app installed 2026-09-02 22:10:37 -07:00
SettingsTray.tsx fix(app): the tray companion works with only the desktop app installed 2026-09-02 22:10:37 -07:00
Spend.test.tsx Merge pull request #1271 from avs-io/codex/project-identity-session-counts 2026-09-08 09:27:57 +03:00
Spend.tsx fix(usage): preserve project identity and qualify incomplete session counts 2026-09-07 22:02:54 +05:30