downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Show better feedback when a user uploads an invalid .puz file #163

Closed JohnHKoh closed 3 years ago

JohnHKoh commented 3 years ago

Currently, upon uploading an invalid .puz file, the upload silently fails with the unhandled exception or error showing up in the console as seen below.

The modals from these changes should add better feedback for the following 2 cases.

1. When the file is not in valid .puz format, this modal is shown. image

2. When the file is in valid .puz format, but the parsed puzzle is not a valid puzzle, this modal is shown. image

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/downforacross/downforacross.com/79bCevhYrhBhUckrkkg6gdWXU7sJ
✅ Preview: https://downforacrossc-git-fork-johnhkoh-johnhkoh-puz-error-moda-960a2c.vercel.app

stevenhao commented 3 years ago

Looks great, thanks!