Skip to content

Commit e0729ce

Browse files
committed
Update rejection reasons
1 parent ac6f8ef commit e0729ce

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

app/x/review-words/[level_id]/level-verification-section.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type LevelVerificationSectionProps = {
3333
export function LevelVerificationSection(props: LevelVerificationSectionProps) {
3434
const router = useRouter();
3535
const [isPending, startTransition] = useTransition();
36-
const [rejectionReason, setRejectionReason] = useState<RejectionReason>('ambiguous');
36+
const [rejectionReason, setRejectionReason] = useState<RejectionReason>('ambiguous_topic');
3737

3838
function verifyTopic() {
3939
confirmAlert({

lib/constants.ts

+14-8
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ export const CONSTANTS = {
88
};
99

1010
export type RejectionReason =
11-
| 'inappropriate-content'
12-
| 'ambiguous'
13-
| 'duplicate'
14-
| 'insufficient-word-variety';
11+
| 'inappropriate_content'
12+
| 'ambiguous_topic'
13+
| 'duplicate_topic'
14+
| 'insufficient_word_variety'
15+
| 'inaccurate_topic_name';
1516

1617
export const REJECTIONS: Record<
1718
RejectionReason,
@@ -20,24 +21,29 @@ export const REJECTIONS: Record<
2021
message: string;
2122
}
2223
> = {
23-
'inappropriate-content': {
24+
inappropriate_content: {
2425
title: 'Inappropriate Content',
2526
message:
2627
'We strive to maintain a friendly and inclusive environment for players of all ages. Unfortunately, your topic contains content that may not align with our community standards. Please feel free to submit other topics that are suitable for a wider audience.',
2728
},
28-
ambiguous: {
29+
ambiguous_topic: {
2930
title: 'Ambiguity and Lack of Clarity',
3031
message:
3132
"Your topic's target words and associated taboo words lacked clarity, making the gameplay confusing and less enjoyable for users. To enhance the gaming experience, please consider providing more concise and clear definitions for future submissions.",
3233
},
33-
duplicate: {
34+
duplicate_topic: {
3435
title: 'Duplicate Topic',
3536
message:
3637
'We already have a similar topic in our database, and to avoid repetition, we have decided not to accept duplicate entries. We encourage you to explore other unique topics to share with the Taboo AI community.',
3738
},
38-
'insufficient-word-variety': {
39+
insufficient_word_variety: {
3940
title: 'Insufficient Word Variety',
4041
message:
4142
'Your submission contained limited word choices, which may limit the diversity of gameplay. Please consider adding more words or exploring broader themes for your next submission.',
4243
},
44+
inaccurate_topic_name: {
45+
title: 'Inaccurate Topic Name',
46+
message:
47+
'The topic name you provided does not accurately relate to the target words submitted. Please revise the topic name to better reflect the theme of the target words in your Taboo AI contribution.',
48+
},
4349
};

0 commit comments

Comments
 (0)