fix(brand-questions): surface seed topic min length as actionable error
Reject AI seed topics shorter than 2 characters on both client and server with a dedicated invalid_seed_topic error code, and render an inline hint listing the offending terms so users know exactly what to fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1519,6 +1519,10 @@ const enUS = {
|
||||
},
|
||||
errors: {
|
||||
emptyInput: 'Enter search term content first.',
|
||||
aiSeedTopicTooShort:
|
||||
'{terms} is too short. Enter a user search term with at least 2 characters, such as "mattress recommendation" or "how to choose a kids bed".',
|
||||
aiSeedTopicTooShortWithMore:
|
||||
'{terms} and {count} more search terms are too short. Enter user search terms with at least 2 characters, such as "mattress recommendation" or "how to choose a kids bed".',
|
||||
noSelection: 'Select at least one candidate.',
|
||||
noValidQuestions: 'No valid search terms can be saved. Adjust candidates and try again.',
|
||||
},
|
||||
|
||||
@@ -1435,6 +1435,8 @@ const zhCN = {
|
||||
},
|
||||
errors: {
|
||||
emptyInput: "请先输入搜索词内容",
|
||||
aiSeedTopicTooShort: "{terms} 太短,请输入至少 2 个字的用户搜索词,例如“床垫推荐”或“儿童床怎么选”。",
|
||||
aiSeedTopicTooShortWithMore: "{terms} 等 {count} 个搜索词太短,请输入至少 2 个字的用户搜索词,例如“床垫推荐”或“儿童床怎么选”。",
|
||||
noSelection: "请至少选择 1 条候选",
|
||||
noValidQuestions: "没有可保存的搜索词,请调整候选后重试",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user