-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(billing): Seer subscription usage card #91888
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
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
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.
This doesn't include usage data or on-demand spend for scanner
The zero state (no seer purchased) and product trial don't match the figma designs |
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.
if possible, we should move to using availableReservedBudgetTypes; the current implementation is confusing with both seer and DS
@@ -192,24 +192,53 @@ function Overview({location, subscription, promotionData}: Props) { | |||
nonPlanProductTrials?.filter(pt => pt.category === DataCategory.PROFILES).length > | |||
0 || false; | |||
|
|||
const showAllBudgetTotals = subscription.hadCustomDynamicSampling ? true : false; | |||
const showAllBudgetTotals = subscription.hadCustomDynamicSampling; |
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.
This still doesn't include usage data for scanner. We'll need to update this so showAllBudgetTotals
is true
for all subscriptions that are eligible to Seer. This allows us to combine usage stat totals in the UsageTotals
component. Similar to the code snippet below.
sentry/static/gsApp/views/subscriptionPage/usageTotals.tsx
Lines 828 to 842 in 78c53b1
{hasReservedBudget && | |
subscription.hadCustomDynamicSampling && | |
allTotalsByCategory && | |
subscription.reservedBudgets?.map(budget => | |
Object.entries(budget.categories) | |
// Filter out the current category since it's already shown from logic above | |
.filter(([categoryKey]) => categoryKey !== category) | |
.map(([categoryKey]) => ( | |
<UsageTotalsTable | |
key={categoryKey} | |
category={categoryKey as DataCategory} | |
totals={allTotalsByCategory?.[categoryKey] ?? EMPTY_STAT_TOTAL} | |
subscription={subscription} | |
/> | |
)) |
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.
worth noting that this card behavior is strange on self-serve; even if you toggle to Usage mode, it still shows all the Seer info in spend mode
tested locally just now, some places for improvement:
|
Closing. Refactored into #92450 |
Closes: https://linear.app/getsentry/issue/BIL-547/manage-seer-product-trials-from-the-subscription-page
Closes: https://linear.app/getsentry/issue/BIL-714/create-seer-availability-banner
Closes: https://linear.app/getsentry/issue/BIL-531/detailed-seer-usage
Closes: https://linear.app/getsentry/issue/BIL-536/seer-data-available-for-reserved-usage-chart
Creates a Seer-specific usage card on the subscription page. Combines Autofix and Scanner information into a single usage table.
This PR also supports the standard product trial functionality.