codeburn/windows/src
iamtoruk ad2f2c73ae feat(windows): drag the Capacity Dock to any edge, and a fixed window that never glitches on hover
Hovering used to move and resize the dock window, and WebView2 presents one
stale frame at every window change, which read as the rail drifting and
glitching. One transparent window is now sized once per placement for the
fully expanded rail plus the bubble's reach and never moves on hover. A 60 Hz
cursor poll, the counterpart of the mac's global event monitor, makes the
window click-through everywhere but the painted shapes, synthesizes hover for
the page, and drives dragging.

Drag follows CapacityDockController: the page owns the 3 px threshold and
passes the press point, Rust keeps the rail under the pointer, morphs the
flare away as it leaves an edge, and on release snaps to any edge within
44 px or leaves the rail floating, then hands the page the old rail rect so
it glides into place with the mac's attach and detach curves. Placement
(docked edge, orientation, normalized offsets) persists in windows-dock.json.
Top and bottom give a horizontal rail with the bubble below or above; a
floating rail keeps its orientation and puts the bubble where there is room.
The context menu gains Dock to Edge with all four edges.

The layout stays a pure function with unit tests, and every window metric
stays a whole pixel. windows-sys gains one feature flag for the cursor and
button reads; no versions change.
2026-09-01 16:06:03 -07:00
..
components windows: cfg-gate the tray badge so the Linux build has no dead code 2026-08-18 04:37:27 -07:00
lib feat(menubar): keep token-only and flat-rate providers visible in agent tabs 2026-08-31 22:43:13 -03:00
App.tsx windows: cfg-gate the tray badge so the Linux build has no dead code 2026-08-18 04:37:27 -07:00
dock.css feat(windows): drag the Capacity Dock to any edge, and a fixed window that never glitches on hover 2026-09-01 16:06:03 -07:00
Dock.tsx feat(windows): drag the Capacity Dock to any edge, and a fixed window that never glitches on hover 2026-09-01 16:06:03 -07:00
dockGeometry.ts feat(windows): drag the Capacity Dock to any edge, and a fixed window that never glitches on hover 2026-09-01 16:06:03 -07:00
main.tsx feat(windows): Capacity Dock, an edge-docked quota rail 2026-09-01 13:50:56 -07:00
providerIcons.tsx feat(windows): port the Capacity Dock to the macOS design 2026-09-01 15:30:12 -07:00
styles.css windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00