p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Error message for invalid token while email verification isn't clear

Open aryanas159 opened this issue 2 years ago • 5 comments

p5.js version

1.9.0

What is your operating system?

Windows

Web browser and version

No response

Actual Behavior

If the token is invalid the error message is something went wrong. image

Expected Behavior

The error message should be more clear and state that the token is invalid or expired.

Steps to reproduce

This behavior will probably not be visible on the main p5 js website, considering it's an enhancement from my previous pull request which has been merged so it should be visible on the develop branch.

aryanas159 avatar Jan 07 '24 08:01 aryanas159

@lindapaiste How would you like to proceed with this?

image

Currently, we are displaying the message EmailVerificationView.InvalidState in case the token is invalid.

We could either change this message for every translation file to something more appropriate like you suggested Token is invalid or expired.

Or we could instead display the EmailVerificationView.InvalidTokenNull message for the invalid token as well.

aryanas159 avatar Jan 07 '24 08:01 aryanas159

Or we could instead display the EmailVerificationView.InvalidTokenNull message for the invalid token as well.

Hmm the name "InvalidTokenNull" does suggest that it was intended to be used for both null and invalid tokens, doesn't it? I'm going to see if I can dig up the issues and PR from back when this was first implemented to see what was discussed then.

lindapaiste avatar Jan 07 '24 18:01 lindapaiste

I checked the history and we have always displayed the "something went wrong" message. This is potentially related to #1587, because we get back a more descriptive message from the server but it's not translated. PR #2898 opens up the ability to translate the message from the backend. We could also change the translation on the frontend.

lindapaiste avatar Jan 16 '24 00:01 lindapaiste

@lindapaiste I think for this case, using the frontend translations is better, should we display the EmailVerificationView.InvalidTokenNull message, since we already have translations for it.

aryanas159 avatar Jan 17 '24 13:01 aryanas159

@lindapaiste I think for this case, using the frontend translations is better, should we display the EmailVerificationView.InvalidTokenNull message, since we already have translations for it.

Hi, is this issue still active? I would surely like to work on this one if this is still an open one.

poswalsameer avatar Oct 14 '24 17:10 poswalsameer

@raclim Please Review my PR & merge the PR to close the Issue.

Harshit-7373 avatar Feb 20 '25 17:02 Harshit-7373

@raclim @aryanas159 In my Pull Request , The languages for which I have updated the translations.json files are: Hindi, English (US), Korean, French, and Portuguese.

Please Review it.

Harshit-7373 avatar Feb 21 '25 10:02 Harshit-7373

@raclim There was one of my pull requests that you reviewed, but I didn’t receive any response on it. Could you let me know if there are any errors or if any modifications are required?

The issue number is Where my PR was submitted was : - #3163 The Pull Requests number was :- #3336

Harshit-7373 avatar Feb 22 '25 17:02 Harshit-7373