Skip to content

Commit

Permalink
Merge pull request #12327 from woocommerce/issue/12326-support-new-bl…
Browse files Browse the repository at this point in the history
…aze-status

Add new suspended status to Blaze campaigns
  • Loading branch information
irfano authored Aug 15, 2024
2 parents b3fc936 + 6c3aedf commit 82f8500
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ enum class CampaignStatusUi(
statusDisplayText = R.string.blaze_campaign_status_canceled,
textColor = R.color.blaze_campaign_status_rejected_text,
backgroundColor = R.color.blaze_campaign_status_rejected_background
),
Suspended(
statusDisplayText = R.string.blaze_campaign_status_suspended,
textColor = R.color.blaze_campaign_status_suspended_text,
backgroundColor = R.color.blaze_campaign_status_suspended_background
);

companion object {
Expand All @@ -63,6 +68,7 @@ enum class CampaignStatusUi(
"scheduled" -> Scheduled
"active" -> Active
"rejected" -> Rejected
"suspended" -> Suspended
"canceled" -> Canceled
"finished" -> Completed
else -> null
Expand Down
2 changes: 2 additions & 0 deletions WooCommerce/src/main/res/values/colors_base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@
<color name="blaze_campaign_status_completed_text">@color/blaze_blue_60</color>
<color name="blaze_campaign_status_rejected_background">@color/blaze_red_5</color>
<color name="blaze_campaign_status_rejected_text">@color/blaze_red_6</color>
<color name="blaze_campaign_status_suspended_background">@color/blaze_red_6</color>
<color name="blaze_campaign_status_suspended_text">@color/white</color>
<color name="blaze_campaign_bottom_sheet_highlight_background">@color/woo_gray_6</color>
<color name="blaze_campaign_preview_header_background">@color/woo_gray_0</color>
<color name="blaze_campaign_preview_shop_now_button">@color/woo_gray_0</color>
Expand Down
1 change: 1 addition & 0 deletions WooCommerce/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3875,6 +3875,7 @@
<string name="blaze_campaign_status_scheduled">Scheduled</string>
<string name="blaze_campaign_status_rejected">Rejected</string>
<string name="blaze_campaign_status_canceled">Canceled</string>
<string name="blaze_campaign_status_suspended">Suspended</string>
<string name="blaze_campaign_status_impressions">Impressions</string>
<string name="blaze_campaign_status_clicks">Clicks</string>
<string name="blaze_campaign_status_budget">Budget</string>
Expand Down

0 comments on commit 82f8500

Please sign in to comment.