Skip to content

Commit 4afd01b

Browse files
committed
fix: schema version
1 parent 99726df commit 4afd01b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@connectrpc/connect-fastify": "^1.6.1",
3838
"@connectrpc/connect-node": "^1.6.1",
3939
"@dailydotdev/graphql-redis-subscriptions": "^2.4.3",
40-
"@dailydotdev/schema": "0.2.73",
40+
"@dailydotdev/schema": "0.2.74",
4141
"@dailydotdev/ts-ioredis-pool": "^1.0.2",
4242
"@fastify/cookie": "^11.0.2",
4343
"@fastify/cors": "^11.2.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/feedback.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
106
const 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

2016
const 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

3026
export const getCategoryDisplayName = (category: number): string => {

0 commit comments

Comments
 (0)