Skip to content

Commit 51b257e

Browse files
authored
feat(feedback): enable feedback category option for org stats page (#94649)
Part of https://linear.app/getsentry/project/user-feedback-abuse-quotas-05cbd47d06cf/overview Adds the option to see feedback usage in `/settings/stats`. We're already emitting accepted, invalid, and rate limited outcomes. Example from my test project: ![Screenshot 2025-06-30 at 1 32 16 PM](https://github.com/user-attachments/assets/73e97123-6872-4574-b819-068cd9323be1) The category is named `user_report_v2` in Relay, but api name for the stats endpoint is feedback, product name User Feedback. Seems there's no backend changes needed for the query.
1 parent be4a527 commit 51b257e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

static/app/constants/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,21 @@ export const DATA_CATEGORY_INFO = {
352352
showExternalStats: true,
353353
},
354354
},
355+
[DataCategoryExact.USER_REPORT_V2]: {
356+
name: DataCategoryExact.USER_REPORT_V2,
357+
apiName: 'feedback',
358+
plural: DataCategory.USER_REPORT_V2,
359+
displayName: 'user feedback',
360+
titleName: t('User Feedback'),
361+
productName: t('User Feedback'),
362+
uid: 14,
363+
isBilledCategory: false,
364+
docsUrl: 'https://docs.sentry.io/product/user-feedback/',
365+
statsInfo: {
366+
...DEFAULT_STATS_INFO,
367+
showExternalStats: true,
368+
},
369+
},
355370
[DataCategoryExact.TRANSACTION_PROCESSED]: {
356371
name: DataCategoryExact.TRANSACTION_PROCESSED,
357372
apiName: 'transactions',

static/app/types/core.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export enum DataCategory {
9393
LOG_BYTE = 'logBytes',
9494
SEER_AUTOFIX = 'seerAutofix',
9595
SEER_SCANNER = 'seerScanner',
96+
USER_REPORT_V2 = 'feedback',
9697
}
9798

9899
/**
@@ -123,6 +124,7 @@ export enum DataCategoryExact {
123124
LOG_BYTE = 'logByte',
124125
SEER_AUTOFIX = 'seerAutofix',
125126
SEER_SCANNER = 'seerScanner',
127+
USER_REPORT_V2 = 'feedback',
126128
}
127129

128130
export interface DataCategoryInfo {

0 commit comments

Comments
 (0)