codeburn/windows/src-tauri/src
Resham Joshi fe901efc02
feat(windows): quota run-out forecast and crossing alerts in the tray (#1880)
* feat(windows): quota run-out forecast and crossing notices

Pace math and crossing state ported from the menubar. Readings stay in
memory per window for six hours; the forecast uses only the current
cycle, drops readings before the last fall, looks back 60 minutes on
short windows and six hours on long ones, and speaks only after two
readings ten minutes apart with a rise of two points. Notices fire at
the chosen threshold, at 100%, and once when the pace runs the window
out before it resets, deduped per cycle with the reset bucketed to the
minute.

* feat(windows): show the quota forecast and post crossing toasts

Every fresh quota answer records the readings, writes the forecast into
the windows it watches and posts a toast through the notification
plugin. The hover card shows "out 15:40" in place of the reset
countdown while a forecast exists, the plan rows caption it ("hits 100%
in 3h" or "lasts until reset") instead of the whole-window ETA, and
Settings gets the alert switch, default on, with a 70/80/90 threshold.
2026-11-05 18:02:04 +01:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs Windows tray: fall back past a broken managed CLI to Volta and PATH installs (#1753) 2026-10-13 10:10:38 +02:00
config.rs feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
dock.rs feat(windows): localize the Windows tray into Simplified Chinese (#1608) 2026-10-07 20:10:56 +02:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
glance.rs feat(windows): cache the Capacity Dock's glance data in Rust 2026-09-02 08:16:48 -07:00
i18n.rs feat(windows): localize the Windows tray into Simplified Chinese (#1608) 2026-10-07 20:10:56 +02:00
lib.rs feat(windows): quota run-out forecast and crossing alerts in the tray (#1880) 2026-11-05 18:02:04 +01:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs fix(quota): label the Claude 20x tier as Ultra (#1869) 2026-11-05 02:48:07 +01:00
quota_crossing.rs feat(windows): quota run-out forecast and crossing alerts in the tray (#1880) 2026-11-05 18:02:04 +01:00
quota_pace.rs feat(windows): quota run-out forecast and crossing alerts in the tray (#1880) 2026-11-05 18:02:04 +01:00
refresh.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
session.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
settings.rs feat(cursor): show the Cursor sync status and an on/off switch in the apps (#1638) 2026-10-05 17:11:41 +02:00
telemetry.rs chore(telemetry): default on in every region (#1874) 2026-11-05 07:31:19 +01:00
tray_badge.rs feat(windows): the tray says when a paired device did not report 2026-09-02 01:39:10 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs feat(windows): quota run-out forecast and crossing alerts in the tray (#1880) 2026-11-05 18:02:04 +01:00
update.rs feat(update): Windows tray updates the CLI through the engine (#1743) 2026-10-11 04:36:20 +02:00
usage_guard.rs feat(providers): add Command Code (#1658) 2026-10-07 00:18:50 +02:00