TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
63 stars 29 forks source link

Add Gravatar Support #1807

Closed adelikat closed 3 months ago

adelikat commented 3 months ago

This PR fixes a few things on Profile/Settings: Show an "Image too big" message when image is too big (it was already making some things red and preventing save, but this helps make it more clear" Fix validation messages to be red Removed the preview button for avatars and have it automatically preview as you type/edit the avatar box

In addition, it adds a toggle for "Use Gravatar" that will automatically generate the gravatar url based on the user's email, with an option to use a different email for the gravatar compared to their tasvideos account email

When Gravatar is not used: image

When activating gravatar: image

As you type in the Gravatar email box, it will automatically update the avatar box (which will automatically update the preview)

resolves #640

YoshiRulz commented 2 months ago

When I change the value in "Email to Use for Gravatar Image", the URI field and image preview both change, but upon saving they're all reset to my account email. edit: As discussed on Discord, it does save correctly, it only appears to not work upon the settings page reloading. Hopefully adelikat can improve the UX.

Image size warning works great BTW.