codeburn/windows/src/lib
iamtoruk 91706484d6 feat(windows): consent-gated telemetry from the tray app and the Capacity Dock
The tray had no telemetry. It now sends the same envelope as the desktop
app to the same endpoint, with app name codeburn-menubar. Consent comes
from the desktop app's telemetry state file when that app is installed,
so one decision covers both apps and events share one anonymous id;
otherwise the tray asks once, defaulting off for EU, EEA, UK and Swiss
locales and for an unknown locale, and keeps its own toggle under
Settings, General, Privacy. Switching off rotates the id.

Events, all name-only or bucketed: app_open, app_close with session
minutes, popover_open, settings_open with the pane, update_click with
the action, glance_open, dock_enabled and dock_disabled with the edge
and a scale bucket, dock_provider_switch, dock_drag_end with the edge,
and the CLI's usage_snapshot once a day, skipped when the desktop app is
the consent source so nothing is counted twice. The queue persists under
the app's local data directory, capped at two hundred events, and flushes
every five minutes and on quit; a 4xx drops the batch, anything else
keeps it. Debug builds never send.
2026-09-03 01:18:23 -07:00
..
accent.ts feat(windows): the mac header, with a flame wordmark and an accent picker 2026-09-01 17:57:08 -07:00
appSettings.ts fix(windows): the tray shows the logo alone unless the number icon is asked for 2026-09-02 03:27:43 -07:00
cache.ts feat(windows): a fetch-error overlay with Retry, and stuck-load recovery 2026-09-01 19:03:07 -07:00
currency.ts feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dates.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
dockPrefs.ts fix(windows): the rail keeps its edge while the size changes 2026-09-02 01:29:53 -07:00
glance.ts feat(windows): the Capacity Dock hover panel becomes a glance 2026-09-02 08:44:43 -07:00
history.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
payload.ts feat(windows): Pulse says what an edit costs on each model 2026-09-02 01:33:27 -07:00
plan.ts feat(windows): show Plan for every provider with a live quota source 2026-09-01 17:15:08 -07:00
platform.ts fix(windows): one answer to what CodeBurn watches 2026-09-02 00:11:17 -07:00
quota.ts feat(windows): the Capacity Dock hover panel becomes a glance 2026-09-02 08:44:43 -07:00
refresh.ts feat(windows): no background refresh while nobody can see the tray 2026-09-01 23:00:09 -07:00
settings.ts chore(windows): remove what nothing reads 2026-09-02 00:23:16 -07:00
telemetry.ts feat(windows): consent-gated telemetry from the tray app and the Capacity Dock 2026-09-03 01:18:23 -07:00
tips.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
update.ts feat(windows): report updates and point at GitHub instead of installing them 2026-09-02 23:09:36 -07:00
watched.ts fix(windows): one answer to what CodeBurn watches 2026-09-02 00:11:17 -07:00