diff --git a/backend/api/submissions/mutations.py b/backend/api/submissions/mutations.py index 10768b6f37..a2c9ab17ee 100644 --- a/backend/api/submissions/mutations.py +++ b/backend/api/submissions/mutations.py @@ -111,8 +111,8 @@ def validate(self, conference: Conference): if not self.tags: errors.add_error("tags", "You need to add at least one tag") - elif len(self.tags) > 5: - errors.add_error("tags", "You can only add up to 5 tags") + elif len(self.tags) > 3: + errors.add_error("tags", "You can only add up to 3 tags") if not self.speaker_level: errors.add_error( diff --git a/backend/api/submissions/tests/test_send_submission.py b/backend/api/submissions/tests/test_send_submission.py index f4d75d6369..255d0fb02b 100644 --- a/backend/api/submissions/tests/test_send_submission.py +++ b/backend/api/submissions/tests/test_send_submission.py @@ -1192,7 +1192,7 @@ def test_submit_talk_only_allows_5_tags(graphql_client, user): assert resp["data"]["sendSubmission"]["__typename"] == "SendSubmissionErrors" assert ( - "You can only add up to 5 tags" + "You can only add up to 3 tags" in resp["data"]["sendSubmission"]["errors"]["validationTags"] ) diff --git a/frontend/src/components/tags-select/index.tsx b/frontend/src/components/tags-select/index.tsx index e33a36137c..fd8a25084a 100644 --- a/frontend/src/components/tags-select/index.tsx +++ b/frontend/src/components/tags-select/index.tsx @@ -164,7 +164,7 @@ export const TagsSelect = ({ tags, onChange }: TagsSelectProps) => { value={value} onChange={(tags) => onChange?.(tags || [])} isMulti={true} - isOptionDisabled={() => value.length >= 5} + isOptionDisabled={() => value.length >= 3} name="tags" options={proposalTags} placeholder="Add tags" diff --git a/frontend/src/locale/index.ts b/frontend/src/locale/index.ts index d32edd1059..8551b9d89e 100644 --- a/frontend/src/locale/index.ts +++ b/frontend/src/locale/index.ts @@ -421,7 +421,7 @@ Failing to notify us may impact your eligibility for financial aid at future eve "cfp.viewSubmission": "Open submission", "cfp.tagsLabel": "Tags", "cfp.tagsDescription": - "Use up to 5 tags to describe what your proposal is about. Examples are 'Django, GraphQL'.", + "Use up to 3 tags to describe what your proposal is about. Examples are 'Web Frameworks, API'.", "cfp.submissionSent": "Proposal sent!", "cfp.selectDuration": "Select a duration", "cfp.selectTrack": "Select a track", @@ -1254,7 +1254,7 @@ The sooner you buy your ticket, the more you save!`, "Puoi inviare la tua proposta in più lingue se lo desideri. I votatori vedranno la lingua che si adatta alle loro preferenze. Non duplicare le tue proposte per lingua o potrebbero essere annullate.", "cfp.tagsLabel": "Tags", "cfp.tagsDescription": - "Utilizza fino a 5 tag per descrivere l'argomento della tua proposta. Esempi sono 'Django, GraphQL'.", + "Utilizza fino a 3 tag per descrivere l'argomento della tua proposta. Esempi sono 'Web Frameworks, API'.", "cfp.submissionSent": "Proposal inviata!", "cfp.submit": "Invia", "cfp.minutes": "minuti",