Repository navigation
CFP form: ask for the topic, stop asking for tags - #4873
Merged
Merged
Conversation
Show a required topic select when the conference has topics configured, and send the topic on both submit and edit. The edit page was omitting topic, and update_submission assigns it unconditionally, so every edit cleared the submission's topic.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
This PR removes tags from the CFP flow (the backend no longer requires them, and the frontend tag select is deleted). It replaces them with a topic select in the form. Issues
|
Remove the tags field from the CFP form and drop the backend rule that required at least one tag. UpdateSubmissionInput.tags is now nullable and only applied when sent, so editing a submission from the form keeps the tags it already has instead of clearing them.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4873 +/- ##
==========================================
- Coverage 92.61% 92.61% -0.01%
==========================================
Files 360 360
Lines 10960 10959 -1
Branches 953 953
==========================================
- Hits 10151 10150 -1
Misses 684 684
Partials 125 125 🚀 New features to boost your workflow:
|
1 task
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Topic. The CFP form asks for the proposal's topic again.
CfpFormquery fetches the conference'stopics.ProposalSectionshows a required "Topic" select before Audience Level.Conference.topicsis optional, and a required select with no options would block every submission.submission.topic?.id.SendSubmissionreturns thetopicvalidation error.topic, andupdate_submissionassigns it unconditionally, so every edit cleared the submission's topic.Tags. The CFP form no longer asks for tags.
TagsSelect(its only consumer), theTagsquery prefetch on/cfpand the edit page, and thecfp.tags*locale keys.validate()no longer requires at least one tag. The max-3 check stays.UpdateSubmissionInput.tagsis now nullable with defaultnull, and is applied only when sent. Editing a submission from the form therefore keeps its existing tags. Without this, every edit would clear them.Deploy order. The backend must ship before or with the frontend. The new form against the old API fails every submission with "You need to add at least one tag", an error the form no longer displays.
ToDo
topicwhen the conference has topics.react-selectis now unused in the frontend. Drop it in a follow-up with a lockfile update.