@@ -3,28 +3,24 @@ import {
33 UserFeedbackSentiment ,
44} from '@dailydotdev/schema' ;
55
6- const USER_FEEDBACK_CATEGORY_UX_ISSUE = 5 ;
7- const USER_FEEDBACK_CATEGORY_PERFORMANCE = 6 ;
8- const USER_FEEDBACK_CATEGORY_CONTENT_QUALITY = 7 ;
9-
106const categoryDisplayNames : Record < number , string > = {
117 [ UserFeedbackCategory . BUG ] : 'Bug Report' ,
128 [ UserFeedbackCategory . FEATURE_REQUEST ] : 'Feature Request' ,
139 [ UserFeedbackCategory . GENERAL ] : 'General Feedback' ,
1410 [ UserFeedbackCategory . OTHER ] : 'Other' ,
15- [ USER_FEEDBACK_CATEGORY_UX_ISSUE ] : 'UX Issue' ,
16- [ USER_FEEDBACK_CATEGORY_PERFORMANCE ] : 'Performance' ,
17- [ USER_FEEDBACK_CATEGORY_CONTENT_QUALITY ] : 'Content Quality' ,
11+ [ UserFeedbackCategory . UX_ISSUE ] : 'UX Issue' ,
12+ [ UserFeedbackCategory . PERFORMANCE ] : 'Performance' ,
13+ [ UserFeedbackCategory . CONTENT_QUALITY ] : 'Content Quality' ,
1814} ;
1915
2016const categoryLabelNames : Record < number , string > = {
2117 [ UserFeedbackCategory . BUG ] : 'bug' ,
2218 [ UserFeedbackCategory . FEATURE_REQUEST ] : 'feature-request' ,
2319 [ UserFeedbackCategory . GENERAL ] : 'general' ,
2420 [ UserFeedbackCategory . OTHER ] : 'other' ,
25- [ USER_FEEDBACK_CATEGORY_UX_ISSUE ] : 'ux-issue' ,
26- [ USER_FEEDBACK_CATEGORY_PERFORMANCE ] : 'performance' ,
27- [ USER_FEEDBACK_CATEGORY_CONTENT_QUALITY ] : 'content-quality' ,
21+ [ UserFeedbackCategory . UX_ISSUE ] : 'ux-issue' ,
22+ [ UserFeedbackCategory . PERFORMANCE ] : 'performance' ,
23+ [ UserFeedbackCategory . CONTENT_QUALITY ] : 'content-quality' ,
2824} ;
2925
3026export const getCategoryDisplayName = ( category : number ) : string => {
0 commit comments