fix(billing): align TeamUsage with backend PR #616#465
fix(billing): align TeamUsage with backend PR #616#465senamakel merged 1 commit intotinyhumansai:mainfrom
Conversation
Backend simplified billing model: fiveHourSpendUsd → cycleLimit5hr, bypassRateLimit → bypassCycleLimit, removed dailyUsage and token count fields. Updates all frontend consumers and mock API.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe pull request refactors the team usage billing model from tracking rolling-window 5-hour spending and daily token counts to fixed-cycle usage limits. The Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
TeamUsageinterface with backend billing simplification (tinyhumansai/backend#616)fiveHourSpendUsd→cycleLimit5hr,bypassRateLimit→bypassCycleLimitdailyUsage,totalInputTokensThisCycle,totalOutputTokensThisCycleConversations.tsx,useUsageState.ts,InferenceBudget.tsxTest plan
tsc --noEmitpasses (verified)TypeErrorcycleLimit5hr/bypassCycleLimitfieldsSummary by CodeRabbit