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

[FEATURE] New plugins and plugin improvements #19

Open
SnirShechter opened this issue Aug 22, 2021 · 0 comments
Open

[FEATURE] New plugins and plugin improvements #19

SnirShechter opened this issue Aug 22, 2021 · 0 comments
Assignees
Labels

Comments

@SnirShechter
Copy link
Contributor

Notify plugin improvements

Allow subscribing to the training via push notifications without entering the tracking URL:

  • Website: Add the user's push notifications token to the UI and allow to copy it
  • NotifyPlugin: allow passing that token as an argument and POSTing it to the training-start function
  • training-start should automatically subscribe that token to the specific training, thus subscribing the user's device without him needing to enter the tracking url.

SMS plugin

A plugin which sends an SMS on training end

  • Create a plugin which receives an array of numbers and POSTs a netlify function when done
    Code example:
plugins_manager.register_plugin(SmsPlugin(phones=["..."]))
  • Create a netlify function to send an SMS regarding a finished training
    • Args: trainingId, startedAt, endedAt
    • Returns: 200 OK
  • Website: The email section in the training page should have another tab for entering a phone number

Email plugin

A plugin which sends an Email on training end

  • Create a plugin which receives an array of emails and POSTs a netlify function when done
    Code example:
plugins_manager.register_plugin(EmailPlugin(emails=["..."]))
  • Create a netlify function to send an Email regarding a finished training
    • Args: trainingId, startedAt, endedAt
    • Returns: 200 OK
@SnirShechter SnirShechter self-assigned this Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant