-
Notifications
You must be signed in to change notification settings - Fork 89
feat(hub): add actors billing preview #2466
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. # 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. |
Graphite Automations"Test" took an action on this PR • (05/21/25)1 assignee was added to this PR based on Kacper Wojciechowski's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Introduces actor-based billing preview functionality with a new ActorsBillingUsage
component and refactored billing calculations.
- Added
ActorsBillingUsage
component in/frontend/apps/hub/src/domains/project/components/billing/actors-billing-usage.tsx
to display billing usage for actors - Refactored billing context in
billing-context.tsx
to use server-side aggregate billing queries instead of local calculations - Added new
calculateUsedActorCredits
function inbilling-calculate-usage.ts
with a 1.1x overhead factor - Changed actor query pagination to
Number.POSITIVE_INFINITY
in multiple files which may impact performance - Missing required
projectId
prop inbilling-view.tsx
when renderingActorsBillingUsage
alongsideMissingPaymentMethod
16 file(s) reviewed, 10 comment(s)
Edit PR Review Bot Settings | Greptile
frontend/apps/hub/src/domains/project/components/billing/actors-billing-usage.tsx
Outdated
Show resolved
Hide resolved
frontend/apps/hub/src/domains/project/components/billing/actors-billing-usage.tsx
Outdated
Show resolved
Hide resolved
frontend/apps/hub/src/domains/project/components/billing/billing-context.tsx
Show resolved
Hide resolved
frontend/apps/hub/src/domains/project/components/billing/billing.tsx
Outdated
Show resolved
Hide resolved
projectId={projectId} | ||
groupId={developerGroupId} | ||
/> | ||
<ActorsBillingUsage /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Missing required projectId
prop for ActorsBillingUsage component. This will cause runtime errors since the component uses this prop internally.
<ActorsBillingUsage /> | |
<ActorsBillingUsage projectId={projectId} /> |
...henticated/_layout/projects/$projectNameId/environments/$environmentNameId._v2/functions.tsx
Show resolved
Hide resolved
ac1b42f
to
edb251e
Compare
9aea382
to
c027938
Compare
c027938
to
20a4f29
Compare
20a4f29
to
76ea7d9
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes