codeburn/windows/src/components
iamtoruk aacc42b13b feat(windows): usage refresh, terminal and daily budget settings
The last three sections of the mac's General pane, and the pieces of the
app that read them.

Usage Refresh replaces the two hard-coded intervals. Manual never spawns
on a timer, so usage refreshes only when the popover opens or Refresh is
pressed; a chosen cadence applies open or closed, since the reader asked
for that number specifically; Auto keeps what the app already did. The
label says "1m open, 2m closed" rather than the mac's "less on battery",
which is the adaptive refresh that comes with the data-layer work and
would be a promise this build does not keep.

Terminal picks which console Full Report and Optimize open in. It exists
for the same reason as the mac's PreferredTerminal: a user preference must
never become a free-form string in a command line. The stored value parses
back through a closed set, every executable is a compile-time literal
resolved from %SystemRoot% or %LOCALAPPDATA%, and the one case that is
re-parsed by a shell rather than passed as argv, the PowerShell line,
is only built when every token has already passed the argument allowlist.
Anything not installed falls back to the Command Prompt, which always is.

Alerts arm the daily budget the tray flame is judged against. It follows
the display metric: dollars for Cost, millions of tokens for the two token
metrics, with the mac's presets plus Custom. Both thresholds live beside
the currency in the CLI config, because the tray reads them before any
webview exists, and a change reaches the popover and the flame at once
rather than at the next refresh.

The hero follows the metric too, so the popover and the tray can never
disagree about what the day cost: the token metrics put the total in the
headline, and Tokens replaces calls and sessions with the up and down
split, as the mac's hero does.

Also here because the dark theme made it obvious: a native select popup is
painted by the OS in its own colours, so options that only inherited the
select's colour were white on white. Both are stated now.
2026-09-01 20:39:05 -07:00
..
ActivitySection.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
AgentTabStrip.tsx fix(windows): drop the brand dot from the agent tab chips 2026-09-01 18:02:26 -07:00
CalendarInsight.tsx feat(windows): the Calendar and Optimize insights 2026-09-01 18:41:10 -07:00
CollapsibleSection.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
DropMenu.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
EmptyProviderState.tsx feat(windows): build the tab strip from the payload's provider list 2026-09-01 16:59:30 -07:00
ErrorToast.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
FetchErrorOverlay.tsx feat(windows): a fetch-error overlay with Retry, and stuck-load recovery 2026-09-01 19:03:07 -07:00
FindingsSection.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
FooterBar.tsx feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
ForecastInsight.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
Header.tsx feat(windows): the mac header, with a flame wordmark and an accent picker 2026-09-01 17:57:08 -07:00
HeroSection.tsx feat(windows): usage refresh, terminal and daily budget settings 2026-09-01 20:39:05 -07:00
Icons.tsx feat(windows): Local and Combined scope, and the Claude config picker 2026-09-01 18:55:32 -07:00
InsightPills.tsx feat(windows): the Calendar and Optimize insights 2026-09-01 18:41:10 -07:00
LoadingOverlay.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
ModelsSection.tsx feat(windows): a Saved column in Models, and the hero's two notes 2026-09-01 18:35:44 -07:00
NoDataState.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
OptimizeInsight.tsx feat(windows): the Calendar and Optimize insights 2026-09-01 18:41:10 -07:00
PeriodTabs.tsx feat(windows): 6M and Life periods, and the calendar day picker 2026-09-01 18:26:56 -07:00
PlanInsight.tsx fix(windows): hide the Plan pill under All, as the mac does 2026-09-01 17:45:21 -07:00
PullRequestsSection.tsx feat(windows): top projects, the costliest session, Pull requests and Tooling 2026-09-01 18:49:21 -07:00
PulseInsight.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
QuotaPopover.tsx feat(windows): live quota in the tab strip, from one shared store 2026-09-01 17:06:42 -07:00
QuotaWarningRow.tsx feat(windows): warn in the header when a provider is running out of quota 2026-09-01 17:10:15 -07:00
ScopeControl.tsx feat(windows): Local and Combined scope, and the Claude config picker 2026-09-01 18:55:32 -07:00
SetupState.tsx windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
StarBanner.tsx windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
StatsInsight.tsx feat(windows): top projects, the costliest session, Pull requests and Tooling 2026-09-01 18:49:21 -07:00
ToolingSection.tsx feat(windows): top projects, the costliest session, Pull requests and Tooling 2026-09-01 18:49:21 -07:00
TrendInsight.tsx feat(windows): the trend window follows the period 2026-09-01 18:30:11 -07:00