Repository navigation
Make Claude reset credits, Extra usage and plan dates selectable - #894
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
…rows # Conflicts: # CHANGELOG.md
|
On the "Provider Data Stays Siloed" pre-merge check: the section IDs and plan-date note are Claude-only by design, matching upstream steipete#4484/steipete#4324. The frontend already gates Claude-specific card behavior the same way ( On the UI-proof warning: CUA proof is pending because the workstation is in active use. It is tracked with the remaining UI-proof items. Rendering is covered by the |
Summary
Ports upstream steipete#4484 (selectable Claude card sections) and steipete#4324 (Claude plan renewal and expiry dates).
subscription_details(two-second budget, non-fatal). It only runs when the cookie source is on and the signed-in account is a member of the organization. The card shows "Renews: …", or "Plan expires: …" when there is no renewal date, under the quota rows. Calendar-only dates are formatted in UTC so they stay on the right day.section:subscription,section:claude-reset-creditsandsection:claude-extra-usagefor Claude (same IDs as upstream). A hidden section the provider stops reporting stays restorable as "(unavailable)". Admin API spend is never treated as Extra usage, so hiding Extra usage never hides it.Differences from upstream:
Commands run
cargo fmt --all -- --check: cleancargo test --manifest-path rust/Cargo.toml: 4661 passed, 1 ignoredcargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml: 731 passedcargo clippy -D warningson both manifests: cleanpnpm test: 135 files, 1269 tests passed;pnpm run build: okUI proof
CUA proof is pending. The workstation is in active use, so I did not launch the desktop app. Rendering is covered by
MenuCard,usageItemVisibilityandUsageItemVisibilitySectiontests.