impact-graph icon indicating copy to clipboard operation
impact-graph copied to clipboard

Add & automate update reminders to notification center & emails for verified project owners

Open WhyldWanderer opened this issue 1 year ago • 42 comments

Some project owners either don't check their email accounts or have unsubscribed from Giveth emails. The verification team thinks that it is important to remind verified project owners that they need to add an update so that they dont lose their verified status.

Two notifications to be added to the notification center - these would be sent to verified projects

45 days without an update - friendly reminder: "Don't forget to add regular updates to your project to keep your verified status! - Learn more"

90 days without an update - "You have 14 days to add an update to avoid badge expiration - Learn more"

Something like that.

WhyldWanderer avatar Mar 28 '23 20:03 WhyldWanderer

if @CarlosQ96 is busy this week you may like to take it @mohammadranjbarz , can you take a look?

MoeNick avatar May 10 '23 10:05 MoeNick

Hey hi guys, I would love to check in here to see if there is any chance to estimate when this can be implemented, please. @MoeNick @CarlosQ96 or @mohammadranjbarz

NikolaCreatrix avatar May 22 '23 14:05 NikolaCreatrix

Hey hi guys, I would love to check in here to see if there is any chance to estimate when this can be implemented, please. @MoeNick @CarlosQ96 or @mohammadranjbarz

Hey @NikolaCreatrix @MoeNick I haven't looked over this issue, but as we need to modify something in notification-center and impact-graph I think it would last about 2-3 days( assuming copies are ready and there is no blocker) @CarlosQ96 WDYT?

mohammadranjbarz avatar May 23 '23 06:05 mohammadranjbarz

Let's plan for it next week.

MoeNick avatar Jun 13 '23 11:06 MoeNick

@MoeNick here is the template Can you add in the link for the template for this https://www.figma.com/file/hNqwpebu4JCy1XIed2c862/Giveth-Public?type=design&node-id=23-48916&mode=design&t=7GnTh1lZ7WYORXWj-4

divine-comedian avatar Aug 24 '23 14:08 divine-comedian

I talked with @mohammadranjbarz and he will take care of web and email notification of this issue. FOR THIS WEEK

MoeNick avatar Aug 28 '23 11:08 MoeNick

Some project owners either don't check their email accounts or have unsubscribed from Giveth emails. The verification team thinks that it is important to remind verified project owners that they need to add an update so that they dont lose their verified status.

Two notifications to be added to the notification center - these would be sent to verified projects

45 days without an update - friendly reminder: "Don't forget to add regular updates to your project to keep your verified status! - Learn more"

90 days without an update - "You have 14 days to add an update to avoid badge expiration - Learn more"

Something like that.

@WhyldWanderer What is the link for Learn More, after clicking on that, we should redirect to what URL?

mohammadranjbarz avatar Sep 11 '23 04:09 mohammadranjbarz

@MoeNick @WhyldWanderer I guess also we need to pu project name in notification text that when use clicks on that redirect them to project's page like other notifications, so I think we should modify the notification texts

mohammadranjbarz avatar Sep 11 '23 05:09 mohammadranjbarz

I guess also we need to pu project name in notification text that when use clicks on that redirect them to project's page like other notifications, so I think we should modify the notification texts

Maybe something like this:

  • 45 days without an update - friendly reminder: "[projectname] has not been updated in a while. Remember to add regular updates to your project to keep your verified status!"

    In this notification, they can click the project name and it should take them to "giveth.io/project/[projectslug]?tab=updates" for whichever project of theirs needs the update?

  • 90 days without an update - "You have 14 days to add an update to [projectname] to avoid badge expiration - Learn more"

    In this notification, "Learn more" should link to "youtu.be/sRhp74CcGU8?si=UWLAMVjIAiT_rO5y"

wdyt?

WhyldWanderer avatar Sep 11 '23 08:09 WhyldWanderer

@WhyldWanderer @MoeNick

I saw we already use notification center for sending reminder emails, if we want to exactly send notifications when we are sending email so might not be needed to change impact-graph, we just need to modify some notificationTypes with copies that you provided to make it work

https://github.com/Giveth/impact-graph/blob/staging/src/services/cronJobs/checkProjectVerificationStatus.ts#L107-L150

WDYT?

mohammadranjbarz avatar Sep 11 '23 14:09 mohammadranjbarz

Unfortunately no emails get sent due to Segment issues or something.. At this point we have no process for notifying the user that they need to add an update.

Does that change what you are suggesting?

WhyldWanderer avatar Sep 12 '23 08:09 WhyldWanderer

@WhyldWanderer @MoeNick

I saw we already use notification center for sending reminder emails, if we want to exactly send notifications when we are sending email so might not be needed to change impact-graph, we just need to modify some notificationTypes with copies that you provided to make it work

https://github.com/Giveth/impact-graph/blob/staging/src/services/cronJobs/checkProjectVerificationStatus.ts#L107-L150

WDYT?

Yeah I think they are the exact events, but they have email templates and we need some copies with markup, so pls don't replace them, just duplicate them.

MoeNick avatar Sep 12 '23 09:09 MoeNick

Unfortunately no emails get sent due to Segment issues or something.. At this point we have no process for notifying the user that they need to add an update.

Does that change what you are suggesting?

Woow I thought the email is working, let me investigate it I will keep you posted about it

mohammadranjbarz avatar Sep 12 '23 12:09 mohammadranjbarz

@mohammadranjbarz

Maybe we want to try out using the autopilot API directly to trigger the journey?

https://autopilot.docs.apiary.io/#reference/api-methods/trigger-journey

divine-comedian avatar Sep 12 '23 13:09 divine-comedian

@mohammadranjbarz

Maybe we want to try out using the autopilot API directly to trigger the journey?

https://autopilot.docs.apiary.io/#reference/api-methods/trigger-journey

Yeah it can be a good idea, if we was Segment makes too much trouble and email loss ( and it's not because of our code) we can try it out

mohammadranjbarz avatar Sep 12 '23 19:09 mohammadranjbarz

@WhyldWanderer @MoeNick @divine-comedian The job that was supposed to check project updates and send emails for reminding project owners was disabled so it was the reason that we weren't send emails.

@CarlosQ96 Now I enabled that service with PROJECT_REVOKE_SERVICE_ACTIVE=true in Production ENV so we should wait to see what happens after that, I would appreciate if you can check what happens, we should create notifications and send emails ( send Segment events), if it wasn't it can be the bug in our code logic or related notification_type config in DB , ...

mohammadranjbarz avatar Sep 14 '23 13:09 mohammadranjbarz

Do we have an autopilot template set for each event? @divine-comedian @WhyldWanderer

MoeNick avatar Sep 14 '23 13:09 MoeNick

yep! image

WhyldWanderer avatar Sep 14 '23 13:09 WhyldWanderer

Can we make sure we arent actually revoking badges at this point though?

WhyldWanderer avatar Sep 14 '23 13:09 WhyldWanderer

Can we make sure we arent actually revoking badges at this point though?

Until now the job was deactivate, but from now on it should work

mohammadranjbarz avatar Sep 14 '23 13:09 mohammadranjbarz

Until now the job was deactivate, but from now on it should work

But just for emails right? It wont actually change the status in the db?

Im scared to revoke too many badges right away... it would be nice for people to start receiving the emails so that they know they need to add an update..

And then activate the badge revoking later after the users have had a chance to get caught up on updates

WhyldWanderer avatar Sep 14 '23 13:09 WhyldWanderer

Until now the job was deactivate, but from now on it should work

But just for emails right? It wont actually change the status in the db?

Im scared to revoke too many badges right away... it would be nice for people to start receiving the emails so that they know they need to add an update..

And then activate the badge revoking later after the users have had a chance to get caught up on updates

If we want not revoke badges we can change PROJECT_UPDATES_VERIFIED_REVOKE_DAYS to a big number for instance make it 1000 days, to make sure not revoke badges ( because whole checking are one package so we can't enable some of them)

mohammadranjbarz avatar Sep 14 '23 13:09 mohammadranjbarz

Okay.. that sounds good. Lets do that at first and then we can adjust later after people have had a chance to get reminded

Thanks Mohammad

WhyldWanderer avatar Sep 14 '23 13:09 WhyldWanderer

Okay.. that sounds good. Lets do that at first and then we can adjust later after people have had a chance to get reminded

Thanks Mohammad

Done.

mohammadranjbarz avatar Sep 14 '23 14:09 mohammadranjbarz

what about DApp notification (web) @mohammadranjbarz did they get implemented?

MoeNick avatar Sep 17 '23 16:09 MoeNick

@MoeNick The first problem is that the job doesn't work properly, so I should put more logs to can investigate now I'm kind od blid on understanding what should I do

mohammadranjbarz avatar Sep 25 '23 13:09 mohammadranjbarz

ok keep the great job going @mohammadranjbarz

MoeNick avatar Sep 25 '23 13:09 MoeNick

OMG look at how many sprints we planned for it and we could not make it since Aug

Can we prioritize it @divine-comedian ?

MoeNick avatar Jan 18 '24 08:01 MoeNick

A gentle reminder for this.

MoeNick avatar Jan 29 '24 15:01 MoeNick

I don't think we can prioritize it right now among the other BE projects being worked on

divine-comedian avatar Jan 29 '24 16:01 divine-comedian