Adjusted Sign Up Flow to allow for more than one blog URL to be selected #3766
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.
Issue This PR Addresses
Fixes #3607
Type of Change
Description
This PR adjusts the Sign-Up Form validation schema in
FormSchema.tsx
to allow for more than one blog/RSS feed to be selected.Currently, you can only add one URL to be validated which contradicts the sign-up instructions. However, as I stated in this comment, the Channel Selection part of the sign-up form does not have the same issue even though they use the same
<RSSFeeds>
component.The cause of this issue is due to the Blog URL and Channel URL having different validation schemas in
FormSchema.tsx
.Validating
blogUrl.name
with.url()
ensures that you can't enter more than one URL because any space in the input field would automatically cause an error. There is no error when validatingchannelUrl.name
because it's only validated withstring()
.With this PR, I changed the
blogURL.name
validation to matchChannelUrl.name
which allows you to select more than one blog/RSS feed. A URL that can't be fetched will still show up as an error for the user.The only downside to this fix is that the URL is not validated as the user types anymore. However, I believe this can be another issue as there should be a way to implement validation as the user types while allowing multiple URL selection.
Steps to test the PR
I tested this running the frontend and backend locally on my machine.
Checklist