Public: anyone can read this; the crew can change it.

The terminal's Subscriptions screen shows each account's 5-hour and weekly window: used of cap, the share, and when it resets #8056

shipped production is serving it opened this has it
opened this

Intent: be ultra aware of what the crew can still spend before a window shuts. Settings › Subscriptions shows each window (windowText in src/web/pages/subscriptions.ts, from standings in src/core/standing.ts), but the terminal shows only the budget and spend.

Done looks like:

  • [ ] The window sentence ("5-hour: $3.10 used of $10.00 (31%), resets in 2 h", with ~ marking an inferred figure as the page's mark does) moves into one exported words function outside src/web/ (e.g. src/actions/standing_words.ts). The page's windowText wraps it and renders the same text as before.
  • [ ] src/tui/screens/subscriptions.ts reads standings(db, ids, now) once per render for the listed accounts and shows each account's two window sentences as its row's meta (or a second line when the terminal is wide enough). An account with no known window reads "windows not seen yet".
  • [ ] It is visible only to whoever the screen already admits (a forge admin), with no new gate and never a token.
  • [ ] test/tui-subscriptions-windows.test.ts: with a subscription_limit row noted by noteLimit and usage seeded, the row shows used, cap, percent and reset, and its text equals the page's for the same data.

Files: src/actions/standing_words.ts (new), src/web/pages/subscriptions.ts, src/tui/screens/subscriptions.ts, test/tui-subscriptions-windows.test.ts. Risks: standings must stay one read for all rows, not one per row.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs