feat: require brand description in create and update operations, add validation messages
Frontend CI / Frontend (push) Successful in 4m25s
Backend CI / Backend (push) Successful in 15m23s

This commit is contained in:
2026-06-09 14:09:05 +08:00
parent a6d203a300
commit 41f5623791
9 changed files with 148 additions and 25 deletions
@@ -325,6 +325,7 @@ const enUS = {
},
messages: {
nameRequired: 'Enter a brand or company name.',
descriptionRequired: 'Enter a brand description.',
questionRequired: 'Select at least one question, or skip and add them manually later.',
aiCharged: 'This generation consumed {count} AI point.',
},
@@ -1456,6 +1457,7 @@ const enUS = {
deleteCompetitor: 'Competitor deleted.',
chooseBrand: 'Please choose a brand first.',
chooseKeyword: 'Please choose a keyword first.',
brandDescriptionRequired: 'Enter a brand description.',
brandLimitReached: 'Your current plan allows up to {limit} brand companies.',
keywordLimitReached: 'This account allows up to {limit} keywords.',
questionLimitReached: 'This account allows up to {limit} search terms.',
@@ -1545,6 +1547,7 @@ const enUS = {
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.',
duplicateExisting: 'This keyword library already has this term. Add another keyword.',
noValidQuestions: 'No valid search terms can be saved. Adjust candidates and try again.',
},
page: {
@@ -311,6 +311,7 @@ const zhCN = {
},
messages: {
nameRequired: '请输入品牌或公司名',
descriptionRequired: '请输入品牌描述',
questionRequired: '请至少选择 1 个问题,或跳过后手动添加',
aiCharged: '本次生成已消耗 {count} 个 AI 点',
},
@@ -1387,6 +1388,7 @@ const zhCN = {
deleteCompetitor: '竞品已删除',
chooseBrand: '请先选择品牌',
chooseKeyword: '请先选择关键词',
brandDescriptionRequired: '请输入品牌描述',
brandLimitReached: '当前套餐最多可绑定 {limit} 个品牌公司',
keywordLimitReached: '当前账号最多可绑定 {limit} 个关键词',
questionLimitReached: '当前账号最多可维护 {limit} 个搜索词',
@@ -1473,6 +1475,7 @@ const zhCN = {
aiSeedTopicTooShortWithMore:
'{terms} 等 {count} 个搜索词太短,请输入至少 2 个字的用户搜索词,例如“床垫推荐”或“儿童床怎么选”。',
noSelection: '请至少选择 1 条候选',
duplicateExisting: '关键词库已有,请添加其他关键词',
noValidQuestions: '没有可保存的搜索词,请调整候选后重试',
},
page: {