Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

As a user / future participant after the event, I will automatically get emails notifying me of subsequent events. #107

Closed

Description

@QuincyLarson
No description provided.

Activity

  1. added
    Help Wanted
    on Oct 24, 2019
  2. changed the title [-]As a future participant after the event, I will automatically get emails notifying me of subsequent events.[/-] [+]API: As a future participant after the event, I will automatically get emails notifying me of subsequent events.[/+] on Nov 30, 2019
  3. removed
    Help Wanted
    on Nov 30, 2019
  4. allella commented on Dec 6, 2019

    @allella
    Contributor

    Below are preliminary suggestions and questions regarding this #107 and #274.

    The direction set forth here will also inform the text and email "mail merge" templates needed for #275 and #276.

    Assumptions / Suggestions

    Questions

  5. allella commented on Dec 6, 2019

    @allella
    Contributor

    Also, I noticed after the fact that this comment may have been better on #274. However, since the RSVP, subscribe / unsubscribe, and email notices are all intertwined I'm not sure it matters much as long as it doesn't confuse this API issue.

  6. ceciliaconsta3 commented on Dec 6, 2019

    @ceciliaconsta3
    Contributor

    @allella A label is definitely the surest bet. If, and it sounds like, we will use the Subscribe component in a form alongside other elements to complete an event sign-up, (if MVP won't have a User Account Settings page) we should treat the Subscribe switch as a checkbox using checkbox role instead. It'll get sent at form submission with the other fields.

    I think "Active" color as Subscribe/unchecked status and grey/disabled for Unsubscribe/checked status would do.

  7. ceciliaconsta3 commented on Dec 6, 2019

    @ceciliaconsta3
    Contributor

    Let me know if I covered this logic flow correctly:

    1. User is automatically subscribed to chapter notifications on joining (assuming user email address a required field)

    • user must join a chapter in order to attend the respective event

    2. User subscription at event RSVP level:

    • user never subscribes using Subscribe switch > never gets event specific confirmation email (?)
    • user does subscribe > unable to unsubscribe from eventspecific notifications until they un-RSVP or the event date passes

    3. User subscription at chapter level through event specific email:

    • user is able to unsubscribe from respective chapter notifications solely via email link in MVP
      • unsubscribe confirmation email should be sent and user_chapters.subscribed flag updated
    • user is auto-subscribed to chapter notifications upon joining next chapter event (?).
    • user still granularly controls whether they receive event specific email notifications.

    (?) something to evaluate/discuss, perhaps after MVP ships

    As for the user + chapter subscription relationship, autogenerate unique event keys based on userID + chapterID + eventID in new Subscription table?

  8. allella commented on Dec 6, 2019

    @allella
    Contributor

    Thanks, replaying the logic highlighted some potential areas of confusion with only having subscriptions toggle on / off via rsvp or unsubscribe link.

    This user story suggested getting upcoming event notifications AFTER you've attended, but with Meetup.com I believe it's possible to subscribe and get notices without ever having attended. That's a reasonable expectation too, though not explicitly an MVP story.

    I guess we could also have a button on a chapter landing page to subscribe to all chapter email notifications whether they be reminders of upcoming events or general chapter notifications sent by an organizer (not an MVP that I've seen).

    The question now is if subscribing and unsubscribe is connected to an rsvp (#108 & #276). Or, are subscriptions intended for upcoming events and more general announcements?

    I could see a use case for both and we already have an MVP story for both cases. If we do both then I suspect we'd need to add an rsvp.subscribed to the schema to allow for subscribing or unsubscribing from a specific event's notifications vs non-event notifications.

  9. allella commented on Dec 6, 2019

    @allella
    Contributor

    To summarize, would the following be a reasonable MVP flow?

    Applicable to #107 & #275 & #274
    user_chapters.subscribed would be added to the schema as a boolean to be toggled on or off by an authenticated user via the chapter landing page, like a "Follow / Unfollow" UI button or toggle. This would turn on notifications which are not related to a rsvp.

    Such email notifications would have a URL to allow the user to "Unfollow {chapters.name} Notifications".

    If we needed to trim the scope, then these emails could simply have a link going directly to the chapter landing page where the Follow / Unfollow button would need to be toggled. The downside here is the user would need to be logged in to stop receiving these notices.

    Applicable to #108 & #276
    rsvp.subscribed would be added to the schema as a boolean and this field would be for notifications which are directly related to a specific rsvp.

    The user would be able to click a "Stop Receiving Notifications for {events.name}" unsubscribe link. If we narrowed the scope here as well, then the email could direct the user to the event landing page. Again, this more simple approach would have the downside of requiring a user to be logged in and then toggle a button on the event landing page to disable.

  10. Madalena-15 commented on Dec 13, 2019

    @Madalena-15

    @allella @ceciliaconsta3 I have been reading your comments in both this issue and #274 and already got some questions! But I will start off with one or two...

    Not sure if the user will have a general account setting page or not, but for assumption's sake, let's say there is. There could be a page for managing subscriptions (via both notifications or emails) and for a user to find this page in one of these two ways, which is either:

    • the user goes to the chapter page that they are part of and click on the subscription setting button
    • the user goes to their general account setting page which has tabs of different types of settings and the subscription tab could be one of them.

    So, once the user starts receiving emails (after going to the event) and they want to unsubscribe, they can click on the 'unsubscribe' link, which takes them to the managing subscription page.

    I hope my point is relevant to this issue. If so, what is your thought on this?

  11. allella commented on Dec 13, 2019

    @allella
    Contributor

    @madaleneaza-design I think we've been operating on the assumption that a profile / subscription page is not a MVP feature. It's definitely a reasonable expectation to add one to the Roadmap.

    So far there's been no explicit MVP user story for a profile page to do anything since authentication will be using Google. Therefore, we don't have an immediate need for users to manage their email, password, profile picture, and such.

    Would you agree we can start by allowing subscribing or unsubscribing to an event or a chapter using the MVP interfaces we know are already required?

    If we didn't have a profile / manage your subscriptions page, for MVP, then we can still allow users to subscribe and unsubscribe using links or UI elements on these MVP interfaces.

    @ceciliaconsta3 posted suggestions on checkbox vs switch vs buttons for the UI on #274

  12. Madalena-15 commented on Dec 13, 2019

    @Madalena-15

    @allella Yeah I can agree and I cannot see why not (to allow subscribing and unsubscribing using the known MVP features), as long in terms of user experience, the links/ UI elements are easier to navigate and use in the layout (which I am sure it will be).

    I will hop onto #274 to post my response :)

  13. changed the title [-]API: As a future participant after the event, I will automatically get emails notifying me of subsequent events.[/-] [+]API: As a user / future participant after the event, I will automatically get emails notifying me of subsequent events.[/+] on Dec 15, 2019
  14. changed the title [-]API: As a user / future participant after the event, I will automatically get emails notifying me of subsequent events.[/-] [+]As a user / future participant after the event, I will automatically get emails notifying me of subsequent events.[/+] on Feb 11, 2020
  15. 11 remaining items

  16. added
    Help Wanted
    on Aug 18, 2021
  17. added
    Good First Issue
    on Aug 19, 2021
  18. Ravichandra-C commented on Sep 27, 2021

    @Ravichandra-C
    Contributor

    So the "RSVP" buttons could be "Going" and "Not Going", depending on if the user already has an rsvp.
    Then, an "Interested" UI slider to toggle on/off interest regardless of the rsvp status.

    @allella @ojeytonwilliams Could you please let me know what work is remaining in this issue apart from the above UI changes?

  19. allella commented on Sep 27, 2021

    @allella
    Contributor

    @Ravichandra-C

    When a new event is created by an organizer for a specific chapter, we will want to query the user_chapter_roles table_ where _user_chapter_roles.chapter_id = events.id (this will be the event id of the newly created event) AND user_chapter_roles.interested = true.

    There's a basic example of the email to send to notify users about new events. We'd want to merge in values from the event and chapter tables, as indicated by the { } placeholders in the example in that link.

    We have a separate issue to handle the unsubscribe links in the email footer. That issue may require more conversation and it could be somewhat complicated if we are trying to allow opt-out without being logged in. So, for now, we can keep a placeholder where the unsubscribe links will go.

    Does that help?

  20. Ravichandra-C commented on Sep 28, 2021

    @Ravichandra-C
    Contributor

    @allella Thanks a lot for your help. I've a few questions on your comment.

    When a new event is created by an organizer for a specific chapter, we will want to query the user_chapter_roles table_ where >_user_chapter_roles.chapter_id = events.id (this will be the event id of the newly created event) AND >user_chapter_roles.interested >= true.

    Currently we have the below functionality.

    When a new event is created by organizer in a specific chapter, We query user_chapter_roles table where user_chapter_roles.chapter_id=chapter.id( id of the chapter in which the event is created ) and user_chapter_roles.interested = true and send an email with below text.

    image

    _user_chapter_roles.chapter_id = events.id

    Shouldn't this be assigned with chapter.id instead of event.id?

    There's a basic example of the email to send to notify users about new events. We'd want to merge in values from the event >and chapter tables, as indicated by the { } placeholders in the example in that link.

    the basic example hyperlink is liked to schema spy. Could you please provide the text that should be used in the email ?

    PFB the template of the email that we are currently Sending when a new event is created(Code is already in the repo).

    const subject = `Invitation to ${event.name}.`;
    const body =
       `When: ${event.start_at} to ${event.ends_at}<br>` +
       (event.venue ? `Where: ${event.venue?.name}<br>` : '') +
       `Event Details: <a href="${eventURL}">${eventURL}</a><br>
    <br>
    - Cancel your RSVP: <a href="${eventURL}">${eventURL}</a><br>
    - More about ${event.chapter.name} or to unfollow this chapter: <a href="${chapterURL}">${chapterURL}</a><br>
    <br>
    ----------------------------<br>
    You received this email because you follow this chapter.<br>
    <br>
    See the options above to change your notifications.`;
    

    for now, we can keep a placeholder where the unsubscribe links will go.

    Sure, I'll add the place holder for unsubscribe link.

  21. ojeytonwilliams commented on Sep 28, 2021

    @ojeytonwilliams
    Contributor

    @allella @Ravichandra-C I think this is largely done - we are automatically sending the notification emails already. If someone has user_chapter_roles.interested they will be emailed whenever a new event is created on that chapter. However we still need to

    • set user_chapter_roles.interested to be true when they RSVP to an event for a chapter
    • add the unsubscribe placeholder

    We should only set interested to be true if the user doesn't yet have a user_chapter_role for that chapter.

    I think that's all we need for now.

  22. Ravichandra-C commented on Sep 28, 2021

    @Ravichandra-C
    Contributor

    @ojeytonwilliams ,In addition to the above changes ,Should I also include these UI changes as part of this issue or will they be worked on as separate issue?

    So the "RSVP" buttons could be "Going" and "Not Going", depending on if the user already has an rsvp.
    Then, an "Interested" UI slider to toggle on/off interest regardless of the rsvp status.

  23. ojeytonwilliams commented on Sep 28, 2021

    @ojeytonwilliams
    Contributor

    @Ravichandra-C I'll handle that in a separate PR :)

  24. allella commented on Sep 28, 2021

    @allella
    Contributor

    @Ravichandra-C I probably had an error above in the logic. I trust you understand what needs to be done on the technical side, so we should be good to proceed with what you have.

    Thanks

  25. Ravichandra-C commented on Sep 28, 2021

    @Ravichandra-C
    Contributor

    @allella @ojeytonwilliams Thank you for explaining. I understood what needs to be done. I'll be working on it.

  26. Ravichandra-C commented on Oct 1, 2021

    @Ravichandra-C
    Contributor

    @ojeytonwilliams , For setting the user_chapter_role.interested=true when an user rsvp to an event, I'm creating a new mutation with name SetUserInterestForChapter which takes the event_id as the parameter. Could you please let me know if we already have this mutation? I searched in the repo and also the generated/graphql.tsx but I did not find it, I just wanted to make sure that I'm not adding duplicate code.

  27. allella commented on Oct 1, 2021

    @allella
    Contributor

    It makes sense that most users will be happy to get notified of future events for a chapter, but what if a user had previously toggled user_chapter_role.interested=false?

    It sounds like this user story would set user_chapter_role.interested=true without asking, but a user may not want to get future notifications.

    Would we want to show a toggle field on the RSVP form, set that toggle's default value to match the user's current value for user_chapter_role.interested, but still allow them to toggle / change it when they RSVP?

    There are events in my town that I might only attend once a year, or for a special occasion, but that doesn't mean I necessarily want to be forced to receive future notifications.

    Thoughts?

  28. Ravichandra-C commented on Oct 1, 2021

    @Ravichandra-C
    Contributor

    @allella , This mutation will check if user already has a preference set in the database, if it is already set, then we are not doing anything.If it is not set then we are by default setting the user_chapter_role.interested = true. So if a user has already set his preference to false then, as we are not updating it, he will not get any future notifications.

  29. ojeytonwilliams commented on Oct 1, 2021

    @ojeytonwilliams
    Contributor

    It sounds like this user story would set user_chapter_role.interested=true without asking, but a user may not want to get future notifications.

    We definitely don't want to do that and Ravi's proposed logic should work as intended.

    Would we want to show a toggle field on the RSVP form, set that toggle's default value to match the user's current value for user_chapter_role.interested, but still allow them to toggle / change it when they RSVP?

    Seems reasonable, yeah. We could have it default to true when user_chapter_role.interested is not set and just mirror their settings once interested has a value.

    I'm creating a new mutation with name SetUserInterestForChapter which takes the event_id as the parameter. Could you please let me know if we already have this mutation?

    We don't have any mutations that change user_chapter_role.interested, so please go ahead.

    I searched in the repo and also the generated/graphql.tsx but I did not find it, I just wanted to make sure that I'm not adding duplicate code.

    Cool. Just to aid any future searches: all mutations must be defined in either a queries.ts or a mutations.ts file (ideally the latter!), so if they're not in a file with those names they effectively don't exist.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    EmailGood First IssueHelp WantedMVP

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions