[newcomers-form] fix: accept Google Drive links in profile picture validation
Description
This PR fixes #6986
Fixed the profile picture validation to accept Google Drive links. Previously, when users tried to paste Google Drive links as profile pictures, the form showed the error "URL must point to an image file (jpg, jpeg, png, svg, webp or gif)".
Notes for Reviewers
- This follows the expected behavior of accepting Google Drive links that point to image files
- No breaking changes to existing functionality
- Maintains file extension validation for non-Google Drive URLs
- [x] Yes, I signed my commits.
π Preview for commit 0bc92e9d1d3acfd37b7e55757765f6b767c9e5fc at: https://68f13121a6457b84033b3eb4--layer5.netlify.app
This is a very important to work on as I faced this issue through while filling the form. Between, the DCO checks is failing.
Thankyou for the feedback. I'll simplify the validation and also fix the DCO check issue.
@hudazaan thanks for your contribution , you can check https://github.com/layer5io/layer5/pull/7041/checks?check_run_id=53083532468 to fix the DCO error
π Preview for commit a4dcc1859a85cb56a124cf26864f38f1ede5e444 at: https://68f3b03153e83cd59ef816d1--layer5.netlify.app
DCO Failed β οΈ and @Fireentity Thanks for the review
Thank you for your contribution! Let's discuss this during the website call today at 5:30 PM IST | 7 AM CT Add it as an agenda item to the meeting minutes, if you would π
Thank you for your contribution! Letβs discuss this during the website call tomorrow (November 3) at 5:30 PM IST | 7:00 AM CT. Please add it as an agenda item to the meeting minutes π
π Preview for commit 6a3ff67cb4ae895c6b40df996ba9ec5ead0029ab at: https://6910b1998306858f758ebaee--layer5.netlify.app
@hudazaan, you will need to add your sign off on your commit.
@hudazaan To add your Signed-off-by line to every commit in this branch:
- Ensure you have a local copy of your branch by checking out the pull request locally via command line.
- In your local branch, run:
git rebase HEAD~3 --signoff - Force push your changes to overwrite the branch:
git push --force-with-lease origin fix/profile-picture-validation
π Preview for commit 61cd707f15c7891182002538294a70430e7ec58f at: https://692d3f50fe3a2e97233a6df2--layer5.netlify.app
π Preview for commit aba1488e118c5e57de9c7dccd59ab9ea7097f947 at: https://692d46de73dabd993bafbeba--layer5.netlify.app
π Preview for commit c25cc46a31c138f56feb6340d7e42b0f0d127fa1 at: https://692d8639d8a8d80213e2035c--layer5.netlify.app
@hudazaan Thank you for your contribution! Let's discuss this during the website call tomorrow at 6:30 PM IST | 8 AM CT Add it as an agenda item to the meeting minutes, if you would π