Skip to content

Commit

Permalink
WEB-6568: Updating slack images in robles
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyd committed Jan 15, 2024
1 parent 4c9fdd6 commit ada6551
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/lib/util/slack_notifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ module Util
module SlackNotifiable # rubocop:disable Metrics/ModuleLength
extend ActiveSupport::Concern

BOOK_SUCCESS_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/object_textkit-book.png'
VIDEO_COURSE_SUCCESS_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/device-device_ui-flow-chart.png'
BOOK_SUCCESS_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-article-multi-platform.png'
VIDEO_COURSE_SUCCESS_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-course-multi-platform.png'
CONTENT_MODULE_SUCCESS_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-multi-multi-platform.png'
FAILURE_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/object_errors.png'
BOOK_ROBLES_CONTEXT_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/object_box-of-books.png'
VIDEO_COURSE_ROBLES_CONTEXT_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/object-box-videos.png'
CONTENT_MODULE_ROBLES_CONTEXT_IMAGE_URL = 'https://wolverine.raywenderlich.com/v3-resources/razebot/images/object-box-content-module.png'
BOOK_ROBLES_CONTEXT_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-path-multi-platform.png'
VIDEO_COURSE_ROBLES_CONTEXT_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-path-multi-platform.png'
CONTENT_MODULE_ROBLES_CONTEXT_IMAGE_URL = 'https://cdn.kodeco.com/v3-resources/razebot/images/media-path-multi-platform.png'

def notify_book_success(book:)
return unless notifiable?
Expand Down Expand Up @@ -126,7 +127,7 @@ def content_module_success_blocks(content_module:)
[
intro_section(fields: standard_content_module_fields(content_module:),
message: ':white_check_mark: Content module upload successful!',
image_url: CONTENT_MODULE_ROBLES_CONTEXT_IMAGE_URL,
image_url: CONTENT_MODULE_SUCCESS_IMAGE_URL,
alt_text: 'Upload successful'),
{
type: 'divider'
Expand Down

0 comments on commit ada6551

Please sign in to comment.