# Changelog ## 1.5.1 — 2026-10-18 First release of the compact fork, based on `@astervolans/dsh-opencode-go-usage` 1.5.0. ### Added - Collapsible sidebar-footer widget with a persisted open/closed state. - Arrow-only divider handle: the separator has a 24px gap and the chevron sits directly in it, with no pill, border or background. - Compact labels are localized (`zh`: 五小时 / 周 / 月, `en`: 5h / Wk / Mo). - Expanded rows keep the 5-hour / weekly / monthly quota bars, time-progress bars and reset countdowns. ### Changed - The title row is a mouse convenience only; the arrow button is the single keyboard/ARIA control. Removes duplicate tab stops and duplicated `role="button"` announcements. - The 30-second clock tick runs only when the widget is wide and expanded. - localStorage persistence moved from the `setOpen` updater to an effect. - The refresh button uses a functional `setStamp` update. - Compact mode shows `—` when data loaded but no quota windows are present. - The stylesheet is replaced when the module is re-evaluated, so CSS edits apply on client HMR as well as on a full reload. - The handle/divider moved inside the widget box; no negative-top overflow. - Removed the npm update check. This fork is distributed via GitHub. - Removed the unused `.ocg-compact`, `.ocg-compact-pct`, `.ocg-head:focus-visible` rules, the `data-open` attribute, and `onHeadKeyDown`. ### Fixed - Host: `matchesBase()` stringified a `Request` as `[object Request]`, so `x-opencode-session` was never injected for Request inputs. - Host: when `init` had no headers, the `Request`'s existing headers were replaced instead of preserved. - `5h` was hardcoded Latin text while 周 / 月 came from the locale, which made the digit look smaller than the CJK labels. - The compact-mode loading text was shown even after data had loaded. - Addresses and styles: native button appearance reset; chevron size aligned with its 12px SVG. ### Attribution Forked from `@astervolans/dsh-opencode-go-usage` 1.5.0 (MIT), which is a fork of `yumusb/dsh-opencode-go-usage` (MIT). See `LICENSE` and `THIRD_PARTY_NOTICES.md`.