Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android banner and modal for unconfirmed users #1335

Open
loarie opened this issue Mar 4, 2024 · 7 comments
Open

Android banner and modal for unconfirmed users #1335

loarie opened this issue Mar 4, 2024 · 7 comments

Comments

@loarie
Copy link
Member

loarie commented Mar 4, 2024

For any unconfirmed user on any iNaturalist app, add a green banner at the top of the site styled like this:
Screenshot 2024-03-04 at 1 55 08 PM

The banner should say:
"Please confirm that [email address] is the best way to contact you. Click here to resend a confirmation email"

When the user clicks on the underlined potion reveal a modal that says:
"Please click the link sent to [email address] to confirm your email address."

@budowski
Copy link
Contributor

budowski commented Mar 5, 2024

@loarie - which part is underlined? The email address?
Also, how do we detect if a user is unconfirmed? One of the fields in the /users/me API response?

@kueda
Copy link
Member

kueda commented Mar 6, 2024

A user is unconfirmed if the users/me response has a user where confirmed_at exists and is not null.

If @loarie wants the user to be able to resend the confirmation email, you're going to have to use the undocumented /users/resend_confirmation endpoint, which requires auth and resends the email to the authenticated user.

FWIW, I think it's very confusing that the banner doesn't match the screenshot, and that the banner text implies that an email will be sent but tapping the banner just opens a modal that does nothing.

@loarie
Copy link
Member Author

loarie commented Mar 6, 2024

@abhasinat do we need the underlined link in the banner to open a modal (analogous to what happens in the existing modal on profile) or can the underlined link in the banner just send the email directly?

@abhasinat
Copy link

Yep, here's the text we can use:

Yep, the intent was to make it more pervasive and annoying to encourage a user to confirm their email. We also decided to change the text to indicate that a confirmation email would be resent (see below). Clicking the banner should open a modal with the text: "Would you like to resend a confirmation email to [email address]?" with the buttons "Resend Email" and "Cancel"

After an email is sent, there should be a modal with the text "Email sent! Please click the link in the email." with a single CTA "Ok"

Mobile Announcement - Confirmation

We can also do an underline of the last line if that's better, though the entire banner should be clickable:
Android Announcement - Confirmation

@loarie
Copy link
Member Author

loarie commented Mar 20, 2024

thanks for adding this @budowski budowski - is this issue now closed?

@budowski
Copy link
Contributor

Assuming it's looking good for you? @tiwane ? @abhasinat ?

@loarie
Copy link
Member Author

loarie commented Mar 20, 2024

I tested this on the old Huawei and it works great. I had to close/reopen the app for the banner to go away after confirming but I don't think thats a big deal. I approve closing this if you're comfortable doing so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants