-
Notifications
You must be signed in to change notification settings - Fork 536
Remove unused account usage API and interface #7117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes remove interfaces related to usage data structures, delete a function for fetching account usage from an API, and refactor components to eliminate reliance on the removed usage data. The affected React component now directly accesses rate limit data from team capabilities, and related imports, props, and logic are updated accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PageComponent
participant TeamCapabilities
participant UsageComponent
User->>PageComponent: Request usage overview page
PageComponent->>TeamCapabilities: Fetch team capabilities, subscriptions, projects, RPC usage
PageComponent->>UsageComponent: Render Usage (with team.capabilities)
UsageComponent->>TeamCapabilities: Access rate limit data directly
UsageComponent-->>PageComponent: Rendered output
PageComponent-->>User: Return rendered page
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (8)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7117 +/- ##
=======================================
Coverage 55.60% 55.60%
=======================================
Files 901 901
Lines 58121 58121
Branches 4067 4067
=======================================
Hits 32320 32320
Misses 25696 25696
Partials 105 105
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Blocks: thirdweb-dev/api-server#1669
Remove Unused
UsageBillableByService
Interface and Refactor Usage ComponentThis PR removes the deprecated
UsageBillableByService
interface and thegetAccountUsage
function, which are no longer needed. The Usage component has been updated to use data directly from the team object instead of the previously fetched account usage data.Key changes:
UsageBillableByService
interface fromuseApi.ts
getAccountUsage.ts
file which is no longer neededteam.capabilities
for rate limit informationThese changes streamline the codebase by removing redundant code and using data that's already available through the team object.
Summary by CodeRabbit
Refactor
Chores
No visible changes to the user interface or features are introduced.