docbrown/app/views
Vaidehi Joshi f71c8b16e7
Allow dynamic authoring of welcome notifications (#6045) [deploy]
* Add "Welcome" type to Broadcasts, allow dynamic "authoring" of Broadcasts

This adds a new `type_of` to the Broadcast model: "Welcome". As we begin to create a new "welcome notification" workflow, we'll categorize them by making them all of the same type.

This also adds a concept of a "welcoming user", which can be set via an ENV var. The WELCOMING_USER_ID will allow us to explicitly set (and change) which user in the database is the one that "sends" welcoming notification. In production, we plan for this to be dev.to/sloan.

* Allow WelcomeNotificationWorker to accept + send any kind of broadcast

This abstracts out the logic of deciding which broadcast to send from the woker into the calling method. This will help us send many different kinds of welcome notifications using one, resuable worker class.

* Raise if a Notification can't be created

* Add STAFF_USER_ID as an ENV var

This is in preparation for moving away from SiteConfig.staff_user_id, and replacing it with an ENV var. We will need to set this in production first, and then make a separate PR to replace all instances of staff_user_id with the newly-set ENV var.
2020-02-12 13:50:37 -08:00
..
additional_content_boxes Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
admin/application
api/v0 Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
articles Consolidate server side main article feed logic (#5953) [deploy] 2020-02-12 08:43:20 -06:00
badges Added title attribute for Badges (#5201) 2019-12-27 10:40:29 -05:00
blocks Add SRI to script tags where applicable (#2153) 2019-03-22 14:14:59 -04:00
chat_channels Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
classified_listings Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
comments Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
credits Add new font and theme config, plus new navbar config option (#4462) 2019-10-24 08:38:46 -04:00
dashboards Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
devise Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
doorkeeper add styling for oauth page (#4108) 2019-09-25 12:00:45 -07:00
downloads Add android and ios apps download page (#3736) (#3798) 2019-08-22 21:04:58 -04:00
email_subscriptions
events Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
feedback_messages Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
fields Add alternative texts to images (#2771) [ci skip] 2019-05-09 11:16:03 -04:00
history Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
homepage
html_variants Add lazy loading to iframes (#4673) 2019-11-18 18:31:56 -05:00
internal Allow dynamic authoring of welcome notifications (#6045) [deploy] 2020-02-12 13:50:37 -08:00
layouts Use page location as indicator for page load (#5735) [deploy] 2020-01-27 16:12:26 -05:00
liquid_embeds replace DEPLOYMENT_SIGNATURE with HEROKU_SLUG_COMMIT to bust caches on deploy (#4950) [deploy] 2019-12-02 12:51:04 -05:00
liquids Style: update height of speakerdeck tag to be avoid scaling (#5818) 2020-02-06 14:29:34 -05:00
mailers Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
moderations Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
notifications Remove notifiable access from articles and comments notifications (#5415) [deploy] 2020-01-09 10:19:45 -05:00
organizations Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
pages Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
partnerships Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
podcast_episodes Fix podcast NaN time issue (#5513) [deploy] 2020-01-14 15:30:11 -05:00
podcasts Creating podcasts by users (#3730) [deploy] 2020-01-08 16:14:25 -05:00
pro_memberships replace DEPLOYMENT_SIGNATURE with HEROKU_SLUG_COMMIT to bust caches on deploy (#4950) [deploy] 2019-12-02 12:51:04 -05:00
reading_list_items History and reading list refactoring (#3338) 2019-07-02 09:22:21 -04:00
service_worker Add /embed to list of disallowed path matches (#6019) [deploy] 2020-02-11 10:24:33 -05:00
shared Add SRI Support (#4658) [deploy] 2019-12-06 08:35:37 -05:00
shell Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
social_previews Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
stories Consolidate server side main article feed logic (#5953) [deploy] 2020-02-12 08:43:20 -06:00
stripe_subscriptions
tags Modify styling for tag-edit.scss (#4137) 2019-10-02 15:07:43 -04:00
twitch_live_streams Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
users Fix API documentation link (#6036) 2020-02-12 15:08:46 -05:00
videos Improve video controllers caching and retrieving (#5709) [deploy] 2020-01-27 15:51:12 -05:00