workarea-admin 3.4.45 → 3.5.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (388) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +52 -0
  3. data/app/assets/images/workarea/admin/email_logo.png +0 -0
  4. data/app/assets/javascripts/workarea/admin/application.js.erb +11 -1
  5. data/app/assets/javascripts/workarea/admin/config.js.erb +96 -0
  6. data/app/assets/javascripts/workarea/admin/modules/active_by_segment_tooltips.js +108 -0
  7. data/app/assets/javascripts/workarea/admin/modules/calendars.js +1 -1
  8. data/app/assets/javascripts/workarea/admin/modules/categorized_autocomplete_fields.js +1 -1
  9. data/app/assets/javascripts/workarea/admin/modules/impersonation_notification.js +44 -0
  10. data/app/assets/javascripts/workarea/admin/modules/jump_to_menus.js +74 -0
  11. data/app/assets/javascripts/workarea/admin/modules/new_navigation_taxons.js +1 -2
  12. data/app/assets/javascripts/workarea/admin/modules/release_reminder.js +1 -0
  13. data/app/assets/javascripts/workarea/admin/modules/selects.js +33 -0
  14. data/app/assets/javascripts/workarea/admin/modules/style_guide_autocomplete_fields.js +42 -0
  15. data/app/assets/javascripts/workarea/admin/modules/timeline_report_chart.js +105 -0
  16. data/app/assets/javascripts/workarea/admin/modules/toggle_elements.js +27 -0
  17. data/app/assets/javascripts/workarea/admin/modules/tribute_areas.js +91 -0
  18. data/app/assets/javascripts/workarea/admin/templates/chart_legend.jst.ejs +17 -9
  19. data/app/assets/javascripts/workarea/admin/templates/jump_to_menu.jst.ejs +13 -0
  20. data/app/assets/stylesheets/workarea/admin/application.scss.erb +3 -0
  21. data/app/assets/stylesheets/workarea/admin/base/_forms.scss +2 -2
  22. data/app/assets/stylesheets/workarea/admin/components/_activity.scss +24 -16
  23. data/app/assets/stylesheets/workarea/admin/components/_activity_group.scss +3 -19
  24. data/app/assets/stylesheets/workarea/admin/components/_box.scss +21 -5
  25. data/app/assets/stylesheets/workarea/admin/components/_calendar.scss +102 -140
  26. data/app/assets/stylesheets/workarea/admin/components/_chart_legend.scss +10 -13
  27. data/app/assets/stylesheets/workarea/admin/components/_checkbox.scss +49 -23
  28. data/app/assets/stylesheets/workarea/admin/components/_content_block_list.scss +5 -3
  29. data/app/assets/stylesheets/workarea/admin/components/_date_marker.scss +24 -3
  30. data/app/assets/stylesheets/workarea/admin/components/_index_table.scss +5 -0
  31. data/app/assets/stylesheets/workarea/admin/components/_jump_to_menu.scss +57 -0
  32. data/app/assets/stylesheets/workarea/admin/components/_product_summary.scss +46 -0
  33. data/app/assets/stylesheets/workarea/admin/components/_toggle_button.scss +1 -4
  34. data/app/assets/stylesheets/workarea/admin/email/_base.scss +30 -2
  35. data/app/assets/stylesheets/workarea/admin/email/_components.scss +66 -5
  36. data/app/assets/stylesheets/workarea/admin/email/_helpers.scss +16 -5
  37. data/app/assets/stylesheets/workarea/admin/email/{_settings.scss → _settings.scss.erb} +4 -4
  38. data/app/controllers/workarea/admin/application_controller.rb +2 -4
  39. data/app/controllers/workarea/admin/bulk_action_sequential_product_edits_controller.rb +4 -6
  40. data/app/controllers/workarea/admin/bulk_variant_saving.rb +1 -2
  41. data/app/controllers/workarea/admin/catalog_products_controller.rb +4 -6
  42. data/app/controllers/workarea/admin/catalog_variants_controller.rb +2 -3
  43. data/app/controllers/workarea/admin/comments_controller.rb +9 -0
  44. data/app/controllers/workarea/admin/configurations_controller.rb +29 -0
  45. data/app/controllers/workarea/admin/content_assets_controller.rb +3 -1
  46. data/app/controllers/workarea/admin/content_blocks_controller.rb +1 -7
  47. data/app/controllers/workarea/admin/create_catalog_products_controller.rb +2 -8
  48. data/app/controllers/workarea/admin/create_release_undos_controller.rb +43 -0
  49. data/app/controllers/workarea/admin/create_segments_controller.rb +68 -0
  50. data/app/controllers/workarea/admin/dashboards_controller.rb +2 -0
  51. data/app/controllers/workarea/admin/data_file_imports_controller.rb +7 -2
  52. data/app/controllers/workarea/admin/fulfillment_skus_controller.rb +58 -0
  53. data/app/controllers/workarea/admin/fulfillment_tokens_controller.rb +56 -0
  54. data/app/controllers/workarea/admin/guest_browsings_controller.rb +2 -2
  55. data/app/controllers/workarea/admin/impersonations_controller.rb +3 -4
  56. data/app/controllers/workarea/admin/orders_controller.rb +3 -0
  57. data/app/controllers/workarea/admin/pricing_discount_redemptions_controller.rb +13 -0
  58. data/app/controllers/workarea/admin/pricing_overrides_controller.rb +1 -1
  59. data/app/controllers/workarea/admin/product_rules_controller.rb +1 -2
  60. data/app/controllers/workarea/admin/releases_controller.rb +8 -13
  61. data/app/controllers/workarea/admin/reports_controller.rb +18 -0
  62. data/app/controllers/workarea/admin/segment_overrides_controller.rb +19 -0
  63. data/app/controllers/workarea/admin/segment_rules_controller.rb +62 -0
  64. data/app/controllers/workarea/admin/segments_controller.rb +48 -0
  65. data/app/controllers/workarea/admin/tax_rates_controller.rb +62 -1
  66. data/app/controllers/workarea/admin/unsubscribes_controller.rb +40 -0
  67. data/app/controllers/workarea/admin/users_controller.rb +19 -0
  68. data/app/helpers/workarea/admin/application_helper.rb +2 -12
  69. data/app/helpers/workarea/admin/configurations_helper.rb +9 -0
  70. data/app/helpers/workarea/admin/content_helper.rb +2 -3
  71. data/app/helpers/workarea/admin/fulfillment_helper.rb +10 -0
  72. data/app/helpers/workarea/admin/icons_helper.rb +26 -0
  73. data/app/helpers/workarea/admin/navigation_helper.rb +1 -0
  74. data/app/helpers/workarea/admin/pricing_overrides_helper.rb +1 -1
  75. data/app/helpers/workarea/admin/products_helper.rb +13 -0
  76. data/app/helpers/workarea/admin/releases_helper.rb +5 -21
  77. data/app/helpers/workarea/admin/segments_helper.rb +68 -0
  78. data/app/helpers/workarea/admin/settings_helper.rb +11 -3
  79. data/app/mailers/workarea/admin/comment_mailer.rb +3 -3
  80. data/app/mailers/workarea/admin/status_report_mailer.rb +19 -6
  81. data/app/view_models/workarea/admin/bulk_action_product_edit_view_model.rb +5 -0
  82. data/app/view_models/workarea/admin/changeset_view_model.rb +15 -3
  83. data/app/view_models/workarea/admin/code_list_view_model.rb +1 -1
  84. data/app/view_models/workarea/admin/commentable_view_model.rb +4 -0
  85. data/app/view_models/workarea/admin/content_view_model.rb +2 -0
  86. data/app/view_models/workarea/admin/dashboards/marketing_view_model.rb +5 -9
  87. data/app/view_models/workarea/admin/dashboards/reports_view_model.rb +25 -0
  88. data/app/view_models/workarea/admin/discounts/buy_some_get_some_view_model.rb +6 -0
  89. data/app/view_models/workarea/admin/discounts/category_view_model.rb +6 -0
  90. data/app/view_models/workarea/admin/discounts/free_gift_view_model.rb +6 -0
  91. data/app/view_models/workarea/admin/discounts/order_total_view_model.rb +6 -0
  92. data/app/view_models/workarea/admin/discounts/product_attribute_view_model.rb +6 -0
  93. data/app/view_models/workarea/admin/discounts/product_view_model.rb +6 -0
  94. data/app/view_models/workarea/admin/discounts/quantity_fixed_price_view_model.rb +6 -0
  95. data/app/view_models/workarea/admin/discounts/shipping_view_model.rb +6 -0
  96. data/app/view_models/workarea/admin/featured_products_view_model.rb +6 -12
  97. data/app/view_models/workarea/admin/fulfillment_sku_view_model.rb +22 -0
  98. data/app/view_models/workarea/admin/fulfillment_token_view_model.rb +15 -0
  99. data/app/view_models/workarea/admin/fulfillment_view_model.rb +14 -0
  100. data/app/view_models/workarea/admin/insight_view_model.rb +2 -2
  101. data/app/view_models/workarea/admin/insights/product_view_model.rb +2 -2
  102. data/app/view_models/workarea/admin/insights/segment_view_model.rb +25 -0
  103. data/app/view_models/workarea/admin/order_view_model.rb +4 -0
  104. data/app/view_models/workarea/admin/pricing_sku_view_model.rb +0 -51
  105. data/app/view_models/workarea/admin/product_rules_preview_view_model.rb +2 -2
  106. data/app/view_models/workarea/admin/product_view_model.rb +26 -5
  107. data/app/view_models/workarea/admin/recommendations_view_model.rb +3 -11
  108. data/app/view_models/workarea/admin/release_calendar_view_model.rb +4 -9
  109. data/app/view_models/workarea/admin/release_event_view_model.rb +8 -41
  110. data/app/view_models/workarea/admin/release_view_model.rb +10 -17
  111. data/app/view_models/workarea/admin/releases_feed_view_model.rb +5 -13
  112. data/app/view_models/workarea/admin/reports/customers_view_model.rb +4 -2
  113. data/app/view_models/workarea/admin/reports/low_inventory_view_model.rb +2 -5
  114. data/app/view_models/workarea/admin/reports/sales_by_category_view_model.rb +2 -5
  115. data/app/view_models/workarea/admin/reports/sales_by_discount_view_model.rb +2 -5
  116. data/app/view_models/workarea/admin/reports/sales_by_product_view_model.rb +2 -5
  117. data/app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb +13 -0
  118. data/app/view_models/workarea/admin/reports/timeline_view_model.rb +74 -0
  119. data/app/view_models/workarea/admin/search_customization_product_rules_view_model.rb +1 -1
  120. data/app/view_models/workarea/admin/segment_view_model.rb +19 -0
  121. data/app/view_models/workarea/admin/user_view_model.rb +6 -9
  122. data/app/view_models/workarea/admin/variant_view_model.rb +8 -0
  123. data/app/views/layouts/workarea/admin/application.html.haml +1 -1
  124. data/app/views/layouts/workarea/admin/email.html.haml +35 -41
  125. data/app/views/workarea/admin/activities/_configuration_admin_update.html.haml +10 -0
  126. data/app/views/workarea/admin/activities/_fulfillment_sku_create.html.haml +12 -0
  127. data/app/views/workarea/admin/activities/_fulfillment_sku_destroy.html.haml +10 -0
  128. data/app/views/workarea/admin/activities/_fulfillment_sku_update.html.haml +10 -0
  129. data/app/views/workarea/admin/activities/_segment_create.html.haml +12 -0
  130. data/app/views/workarea/admin/activities/_segment_destroy.html.haml +10 -0
  131. data/app/views/workarea/admin/activities/_segment_update.html.haml +10 -0
  132. data/app/views/workarea/admin/activities/show.html.haml +18 -11
  133. data/app/views/workarea/admin/bulk_action_product_edits/edit.html.haml +4 -0
  134. data/app/views/workarea/admin/bulk_action_product_edits/review.html.haml +11 -4
  135. data/app/views/workarea/admin/bulk_action_sequential_product_edits/product.html.haml +1 -1
  136. data/app/views/workarea/admin/catalog_categories/_cards.html.haml +3 -1
  137. data/app/views/workarea/admin/catalog_categories/edit.html.haml +1 -4
  138. data/app/views/workarea/admin/catalog_categories/index.html.haml +1 -0
  139. data/app/views/workarea/admin/catalog_product_images/edit.html.haml +1 -1
  140. data/app/views/workarea/admin/catalog_products/_cards.html.haml +2 -4
  141. data/app/views/workarea/admin/catalog_products/edit.html.haml +2 -1
  142. data/app/views/workarea/admin/catalog_products/index.html.haml +4 -2
  143. data/app/views/workarea/admin/catalog_products/insights.html.haml +2 -0
  144. data/app/views/workarea/admin/catalog_variants/edit.html.haml +6 -1
  145. data/app/views/workarea/admin/catalog_variants/index.html.haml +2 -0
  146. data/app/views/workarea/admin/catalog_variants/new.html.haml +5 -0
  147. data/app/views/workarea/admin/changesets/fields/_active_segment_ids.html.haml +4 -0
  148. data/app/views/workarea/admin/comment_mailer/notify.html.haml +27 -19
  149. data/app/views/workarea/admin/comments/index.html.haml +18 -12
  150. data/app/views/workarea/admin/configurations/_overridden.html.haml +2 -0
  151. data/app/views/workarea/admin/configurations/show.html.haml +49 -0
  152. data/app/views/workarea/admin/configurations/types/_array.html.haml +3 -0
  153. data/app/views/workarea/admin/configurations/types/_boolean.html.haml +1 -0
  154. data/app/views/workarea/admin/configurations/types/_duration.html.haml +2 -0
  155. data/app/views/workarea/admin/configurations/types/_encrypted.html.haml +1 -0
  156. data/app/views/workarea/admin/configurations/types/_float.html.haml +1 -0
  157. data/app/views/workarea/admin/configurations/types/_hash.html.haml +17 -0
  158. data/app/views/workarea/admin/configurations/types/_integer.html.haml +1 -0
  159. data/app/views/workarea/admin/configurations/types/_select.html.haml +1 -0
  160. data/app/views/workarea/admin/configurations/types/_string.html.haml +1 -0
  161. data/app/views/workarea/admin/configurations/types/_symbol.html.haml +1 -0
  162. data/app/views/workarea/admin/content/_edit.html.haml +8 -1
  163. data/app/views/workarea/admin/content/_form.html.haml +13 -7
  164. data/app/views/workarea/admin/content/advanced.html.haml +18 -10
  165. data/app/views/workarea/admin/content_assets/_cards.html.haml +3 -0
  166. data/app/views/workarea/admin/content_assets/_summary.html.haml +1 -1
  167. data/app/views/workarea/admin/content_assets/edit.html.haml +6 -0
  168. data/app/views/workarea/admin/content_assets/index.html.haml +7 -2
  169. data/app/views/workarea/admin/content_assets/new.html.haml +10 -3
  170. data/app/views/workarea/admin/content_blocks/_asset.html.haml +8 -1
  171. data/app/views/workarea/admin/content_pages/_cards.html.haml +1 -0
  172. data/app/views/workarea/admin/content_pages/edit.html.haml +1 -1
  173. data/app/views/workarea/admin/content_pages/index.html.haml +1 -0
  174. data/app/views/workarea/admin/create_catalog_categories/publish.html.haml +1 -0
  175. data/app/views/workarea/admin/create_catalog_products/content.html.haml +1 -1
  176. data/app/views/workarea/admin/create_catalog_products/publish.html.haml +1 -0
  177. data/app/views/workarea/admin/create_content_pages/publish.html.haml +1 -0
  178. data/app/views/workarea/admin/create_pricing_discounts/publish.html.haml +1 -0
  179. data/app/views/workarea/admin/create_release_undos/new.html.haml +45 -0
  180. data/app/views/workarea/admin/create_release_undos/review.html.haml +51 -0
  181. data/app/views/workarea/admin/create_releases/plan.html.haml +4 -3
  182. data/app/views/workarea/admin/create_releases/setup.html.haml +8 -12
  183. data/app/views/workarea/admin/create_segments/rules.html.haml +55 -0
  184. data/app/views/workarea/admin/create_segments/setup.html.haml +42 -0
  185. data/app/views/workarea/admin/create_users/admin.html.haml +0 -2
  186. data/app/views/workarea/admin/dashboards/catalog.html.haml +1 -0
  187. data/app/views/workarea/admin/dashboards/people.html.haml +1 -1
  188. data/app/views/workarea/admin/dashboards/reports.html.haml +31 -0
  189. data/app/views/workarea/admin/dashboards/settings.html.haml +23 -3
  190. data/app/views/workarea/admin/data_file_imports/new.html.haml +4 -2
  191. data/app/views/workarea/admin/data_file_mailer/export.html.haml +2 -0
  192. data/app/views/workarea/admin/data_file_mailer/import.html.haml +2 -0
  193. data/app/views/workarea/admin/data_file_mailer/import_failure.html.haml +2 -0
  194. data/app/views/workarea/admin/facets/_applied.html.haml +1 -1
  195. data/app/views/workarea/admin/featured_products/_selected.html.haml +3 -2
  196. data/app/views/workarea/admin/featured_products/_unselected.html.haml +3 -1
  197. data/app/views/workarea/admin/featured_products/edit.html.haml +3 -3
  198. data/app/views/workarea/admin/featured_products/select.html.haml +0 -1
  199. data/app/views/workarea/admin/fulfillment_skus/_aux_navigation.html.haml +3 -0
  200. data/app/views/workarea/admin/fulfillment_skus/_cards.html.haml +57 -0
  201. data/app/views/workarea/admin/fulfillment_skus/_summary.html.haml +6 -0
  202. data/app/views/workarea/admin/fulfillment_skus/edit.html.haml +53 -0
  203. data/app/views/workarea/admin/fulfillment_skus/index.html.haml +75 -0
  204. data/app/views/workarea/admin/fulfillment_skus/new.html.haml +41 -0
  205. data/app/views/workarea/admin/fulfillment_skus/show.html.haml +17 -0
  206. data/app/views/workarea/admin/fulfillment_tokens/index.html.haml +73 -0
  207. data/app/views/workarea/admin/fulfillments/show.html.haml +41 -6
  208. data/app/views/workarea/admin/insights/_most_discounted_products.html.haml +4 -4
  209. data/app/views/workarea/admin/inventory_skus/show.html.haml +1 -1
  210. data/app/views/workarea/admin/navigation_menus/_summary.html.haml +1 -1
  211. data/app/views/workarea/admin/navigation_menus/edit.html.haml +1 -1
  212. data/app/views/workarea/admin/navigation_menus/index.html.haml +3 -1
  213. data/app/views/workarea/admin/navigation_redirects/index.html.haml +0 -5
  214. data/app/views/workarea/admin/navigation_taxons/index.html.haml +20 -4
  215. data/app/views/workarea/admin/orders/_cards.html.haml +23 -5
  216. data/app/views/workarea/admin/orders/attributes.html.haml +4 -1
  217. data/app/views/workarea/admin/orders/fraud.html.haml +43 -0
  218. data/app/views/workarea/admin/orders/index.html.haml +1 -0
  219. data/app/views/workarea/admin/orders/timeline.html.haml +1 -1
  220. data/app/views/workarea/admin/pricing_discount_code_lists/_cards.html.haml +1 -1
  221. data/app/views/workarea/admin/pricing_discount_code_lists/promo_codes.html.haml +1 -1
  222. data/app/views/workarea/admin/pricing_discount_redemptions/index.html.haml +44 -0
  223. data/app/views/workarea/admin/pricing_discounts/_cards.html.haml +22 -0
  224. data/app/views/workarea/admin/pricing_discounts/conditions/_segments.html.haml +5 -0
  225. data/app/views/workarea/admin/pricing_discounts/edit.html.haml +5 -15
  226. data/app/views/workarea/admin/pricing_discounts/index.html.haml +1 -0
  227. data/app/views/workarea/admin/pricing_discounts/properties/_buy_some_get_some.html.haml +1 -0
  228. data/app/views/workarea/admin/pricing_discounts/properties/_category.html.haml +1 -0
  229. data/app/views/workarea/admin/pricing_discounts/properties/_free_gift.html.haml +1 -0
  230. data/app/views/workarea/admin/pricing_discounts/properties/_order_total.html.haml +1 -0
  231. data/app/views/workarea/admin/pricing_discounts/properties/_product.html.haml +1 -0
  232. data/app/views/workarea/admin/pricing_discounts/properties/_product_attribute.html.haml +2 -1
  233. data/app/views/workarea/admin/pricing_discounts/properties/_quantity_fixed_price.html.haml +1 -0
  234. data/app/views/workarea/admin/pricing_discounts/properties/_shipping.html.haml +1 -0
  235. data/app/views/workarea/admin/pricing_skus/_cards.html.haml +7 -7
  236. data/app/views/workarea/admin/pricing_skus/edit.html.haml +5 -5
  237. data/app/views/workarea/admin/pricing_skus/index.html.haml +4 -4
  238. data/app/views/workarea/admin/pricing_skus/new.html.haml +6 -9
  239. data/app/views/workarea/admin/product_rules/_card.html.haml +2 -2
  240. data/app/views/workarea/admin/product_rules/_form.html.haml +1 -0
  241. data/app/views/workarea/admin/product_rules/index.html.haml +2 -0
  242. data/app/views/workarea/admin/releases/_cards.html.haml +50 -12
  243. data/app/views/workarea/admin/releases/_publish.html.haml +1 -1
  244. data/app/views/workarea/admin/releases/edit.html.haml +33 -46
  245. data/app/views/workarea/admin/releases/index.html.haml +81 -90
  246. data/app/views/workarea/admin/releases/list.html.haml +107 -0
  247. data/app/views/workarea/admin/releases/original.html.haml +50 -0
  248. data/app/views/workarea/admin/releases/show.html.haml +3 -17
  249. data/app/views/workarea/admin/releases/undo.html.haml +64 -0
  250. data/app/views/workarea/admin/reports/average_order_value.html.haml +1 -1
  251. data/app/views/workarea/admin/reports/customers.html.haml +4 -0
  252. data/app/views/workarea/admin/reports/first_time_vs_returning_sales.html.haml +1 -1
  253. data/app/views/workarea/admin/reports/reference.html.haml +19 -60
  254. data/app/views/workarea/admin/reports/sales_by_country.html.haml +6 -0
  255. data/app/views/workarea/admin/reports/sales_by_product.html.haml +6 -0
  256. data/app/views/workarea/admin/reports/sales_by_sku.html.haml +6 -0
  257. data/app/views/workarea/admin/reports/sales_by_tender.html.haml +30 -0
  258. data/app/views/workarea/admin/reports/sales_over_time.html.haml +5 -1
  259. data/app/views/workarea/admin/reports/timeline.html.haml +20 -0
  260. data/app/views/workarea/admin/search_customizations/_cards.html.haml +1 -0
  261. data/app/views/workarea/admin/search_customizations/edit.html.haml +1 -1
  262. data/app/views/workarea/admin/search_customizations/index.html.haml +1 -0
  263. data/app/views/workarea/admin/searches/show.html.haml +6 -5
  264. data/app/views/workarea/admin/segment_overrides/show.html.haml +29 -0
  265. data/app/views/workarea/admin/segment_rules/_form.html.haml +13 -0
  266. data/app/views/workarea/admin/segment_rules/fields/_browser_info.html.haml +13 -0
  267. data/app/views/workarea/admin/segment_rules/fields/_geolocation.html.haml +4 -0
  268. data/app/views/workarea/admin/segment_rules/fields/_last_order.html.haml +3 -0
  269. data/app/views/workarea/admin/segment_rules/fields/_logged_in.html.haml +2 -0
  270. data/app/views/workarea/admin/segment_rules/fields/_orders.html.haml +5 -0
  271. data/app/views/workarea/admin/segment_rules/fields/_revenue.html.haml +9 -0
  272. data/app/views/workarea/admin/segment_rules/fields/_sessions.html.haml +5 -0
  273. data/app/views/workarea/admin/segment_rules/fields/_tags.html.haml +4 -0
  274. data/app/views/workarea/admin/segment_rules/fields/_traffic_referrer.html.haml +13 -0
  275. data/app/views/workarea/admin/segment_rules/geolocation_options.json.jbuilder +4 -0
  276. data/app/views/workarea/admin/segment_rules/index.html.haml +25 -0
  277. data/app/views/workarea/admin/segment_rules/summaries/_browser_info.html.haml +11 -0
  278. data/app/views/workarea/admin/segment_rules/summaries/_geolocation.html.haml +2 -0
  279. data/app/views/workarea/admin/segment_rules/summaries/_last_order.html.haml +2 -0
  280. data/app/views/workarea/admin/segment_rules/summaries/_logged_in.html.haml +5 -0
  281. data/app/views/workarea/admin/segment_rules/summaries/_orders.html.haml +6 -0
  282. data/app/views/workarea/admin/segment_rules/summaries/_revenue.html.haml +7 -0
  283. data/app/views/workarea/admin/segment_rules/summaries/_sessions.html.haml +6 -0
  284. data/app/views/workarea/admin/segment_rules/summaries/_tags.html.haml +2 -0
  285. data/app/views/workarea/admin/segment_rules/summaries/_traffic_referrer.html.haml +10 -0
  286. data/app/views/workarea/admin/segments/_cards.html.haml +81 -0
  287. data/app/views/workarea/admin/segments/_publish.html.haml +10 -0
  288. data/app/views/workarea/admin/segments/edit.html.haml +41 -0
  289. data/app/views/workarea/admin/segments/index.html.haml +64 -0
  290. data/app/views/workarea/admin/segments/insights.html.haml +52 -0
  291. data/app/views/workarea/admin/segments/show.html.haml +20 -0
  292. data/app/views/workarea/admin/shared/_active_field.html.haml +17 -0
  293. data/app/views/workarea/admin/shared/_bulk_actions.html.haml +10 -8
  294. data/app/views/workarea/admin/shared/_primary_nav.html.haml +5 -2
  295. data/app/views/workarea/admin/shared/_toggle_button.html.haml +1 -1
  296. data/app/views/workarea/admin/shipping_services/edit.html.haml +0 -4
  297. data/app/views/workarea/admin/shipping_services/new.html.haml +0 -4
  298. data/app/views/workarea/admin/status_report_mailer/report.html.haml +83 -86
  299. data/app/views/workarea/admin/style_guides/components/_activity.html.haml +3 -5
  300. data/app/views/workarea/admin/style_guides/components/_activity_group.html.haml +9 -15
  301. data/app/views/workarea/admin/style_guides/components/_box.html.haml +12 -7
  302. data/app/views/workarea/admin/style_guides/components/_checkbox.html.haml +21 -2
  303. data/app/views/workarea/admin/style_guides/components/_release_changeset.html.haml +3 -5
  304. data/app/views/workarea/admin/tax_rates/edit.html.haml +64 -0
  305. data/app/views/workarea/admin/tax_rates/index.html.haml +59 -20
  306. data/app/views/workarea/admin/tax_rates/new.html.haml +62 -0
  307. data/app/views/workarea/admin/timeline/show.html.haml +34 -41
  308. data/app/views/workarea/admin/toolbar/show.html.haml +11 -1
  309. data/app/views/workarea/admin/trash/index.html.haml +1 -1
  310. data/app/views/workarea/admin/users/edit.html.haml +60 -57
  311. data/app/views/workarea/admin/users/index.html.haml +1 -3
  312. data/app/views/workarea/admin/users/index.json.jbuilder +8 -0
  313. data/app/views/workarea/admin/users/insights.html.haml +31 -23
  314. data/app/views/workarea/admin/users/permissions.html.haml +10 -1
  315. data/app/views/workarea/admin/users/show.html.haml +7 -0
  316. data/config/locales/en.yml +569 -124
  317. data/config/routes.rb +57 -5
  318. data/lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb +3 -1
  319. data/public/workarea/import_samples/tax_rates.csv +3 -3
  320. data/test/dummy/config/initializers/session_store.rb +1 -1
  321. data/test/helpers/workarea/admin/application_helper_test.rb +0 -16
  322. data/test/helpers/workarea/admin/icons_helper_test.rb +9 -0
  323. data/test/helpers/workarea/admin/products_helper_test.rb +73 -0
  324. data/test/helpers/workarea/admin/releases_helper_test.rb +0 -49
  325. data/test/helpers/workarea/admin/settings_helper_test.rb +22 -1
  326. data/test/integration/workarea/admin/assets_integration_test.rb +2 -5
  327. data/test/integration/workarea/admin/comments_integration_test.rb +27 -7
  328. data/test/integration/workarea/admin/configurations_integration_test.rb +21 -0
  329. data/test/integration/workarea/admin/create_release_undos_integration_test.rb +29 -0
  330. data/test/integration/workarea/admin/create_segments_integration_test.rb +26 -0
  331. data/test/integration/workarea/admin/data_file_imports_integration_test.rb +34 -8
  332. data/test/integration/workarea/admin/fulfillment_skus_integration_test.rb +55 -0
  333. data/test/integration/workarea/admin/fulfillment_tokens_integration_test.rb +43 -0
  334. data/test/integration/workarea/admin/guest_browsings_integration_test.rb +8 -32
  335. data/test/integration/workarea/admin/impersonations_integration_test.rb +13 -57
  336. data/test/integration/workarea/admin/jump_to_integration_test.rb +0 -29
  337. data/test/integration/workarea/admin/pricing_overrides_integration_test.rb +11 -0
  338. data/test/integration/workarea/admin/products_integration_test.rb +0 -13
  339. data/test/integration/workarea/admin/releases_integration_test.rb +71 -87
  340. data/test/integration/workarea/admin/segment_overrides_integration_test.rb +28 -0
  341. data/test/integration/workarea/admin/segment_rules_integration_test.rb +49 -0
  342. data/test/integration/workarea/admin/segments_integration_test.rb +31 -0
  343. data/test/integration/workarea/admin/shipping_service_integration_test.rb +1 -3
  344. data/test/integration/workarea/admin/tax_categories_integration_test.rb +1 -1
  345. data/test/integration/workarea/admin/unsubscribes_integration_test.rb +32 -0
  346. data/test/integration/workarea/admin/users_integration_test.rb +32 -0
  347. data/test/javascripts/fixtures/release_reminder.html.haml +3 -3
  348. data/test/javascripts/new_navigation_taxons_spec.js +1 -12
  349. data/test/mailers/workarea/admin/comment_mailer_test.rb +35 -0
  350. data/test/mailers/workarea/admin/status_report_mailer_test.rb +30 -25
  351. data/test/system/workarea/admin/alerts_system_test.rb +2 -1
  352. data/test/system/workarea/admin/bulk_actions_system_test.rb +1 -1
  353. data/test/system/workarea/admin/comments_system_test.rb +43 -0
  354. data/test/system/workarea/admin/content_system_test.rb +6 -0
  355. data/test/system/workarea/admin/dashboard_system_test.rb +8 -9
  356. data/test/system/workarea/admin/data_files_system_test.rb +1 -1
  357. data/test/system/workarea/admin/discounts_system_test.rb +18 -0
  358. data/test/system/workarea/admin/featured_products_system_test.rb +3 -0
  359. data/test/system/workarea/admin/fulfillment_skus_system_test.rb +48 -0
  360. data/test/system/workarea/admin/impersonation_system_test.rb +5 -2
  361. data/test/system/workarea/admin/orders_system_test.rb +32 -21
  362. data/test/system/workarea/admin/payment_transactions_system_test.rb +34 -32
  363. data/test/system/workarea/admin/releases_system_test.rb +151 -37
  364. data/test/system/workarea/admin/reports_system_test.rb +29 -0
  365. data/test/system/workarea/admin/segments_system_test.rb +124 -0
  366. data/test/system/workarea/admin/tax_categories_system_test.rb +166 -16
  367. data/test/system/workarea/admin/users_system_test.rb +15 -0
  368. data/test/view_models/workarea/admin/changeset_view_model_test.rb +59 -9
  369. data/test/view_models/workarea/admin/code_list_view_model_test.rb +0 -5
  370. data/test/view_models/workarea/admin/content_view_model_test.rb +13 -11
  371. data/test/view_models/workarea/admin/insights/product_view_model_test.rb +4 -4
  372. data/test/view_models/workarea/admin/insights/segment_view_model_test.rb +73 -0
  373. data/test/view_models/workarea/admin/product_rules_preview_view_model_test.rb +37 -0
  374. data/test/view_models/workarea/admin/product_view_model_test.rb +13 -19
  375. data/test/view_models/workarea/admin/release_calendar_view_model_test.rb +16 -0
  376. data/test/view_models/workarea/admin/release_view_model_test.rb +13 -56
  377. data/test/view_models/workarea/admin/releases_feed_view_model_test.rb +8 -21
  378. data/test/view_models/workarea/admin/reports/timeline_view_model_test.rb +76 -0
  379. data/test/view_models/workarea/admin/search_analysis_view_model_test.rb +14 -16
  380. data/test/view_models/workarea/admin/timeline_view_model_test.rb +1 -1
  381. metadata +128 -17
  382. data/app/views/workarea/admin/featured_products/_release_preview_warning.html.haml +0 -4
  383. data/app/views/workarea/admin/releases/calendar.html.haml +0 -54
  384. data/test/dummy/tmp/screenshots/.keep +0 -0
  385. data/test/helpers/workarea/admin/content_helper_test.rb +0 -17
  386. data/test/integration/workarea/admin/index_tracking_integration_test.rb +0 -21
  387. data/test/javascripts/fixtures/existing_navigation_taxon.html.haml +0 -10
  388. data/test/view_models/workarea/admin/pricing_sku_view_model_test.rb +0 -84
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.45
4
+ version: 3.5.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.45
19
+ version: 3.5.0.beta.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.45
26
+ version: 3.5.0.beta.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: workarea-storefront
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.45
33
+ version: 3.5.0.beta.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.4.45
40
+ version: 3.5.0.beta.1
41
41
  description: Provides site administration functionality for the Workarea Commerce
42
42
  Platform.
43
43
  email:
@@ -47,6 +47,7 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - LICENSE
50
+ - LICENSE.txt
50
51
  - README.md
51
52
  - Rakefile
52
53
  - app/assets/fonts/workarea/admin/spark_dotline_medium.woff
@@ -74,6 +75,7 @@ files:
74
75
  - app/assets/images/workarea/admin/content_block_types/video.svg
75
76
  - app/assets/images/workarea/admin/content_block_types/video_and_text.svg
76
77
  - app/assets/images/workarea/admin/default_card.svg
78
+ - app/assets/images/workarea/admin/email_logo.png
77
79
  - app/assets/images/workarea/admin/favicon.ico
78
80
  - app/assets/images/workarea/admin/i18n.svg
79
81
  - app/assets/images/workarea/admin/icons/add.svg
@@ -177,6 +179,7 @@ files:
177
179
  - app/assets/javascripts/workarea/admin/application.js.erb
178
180
  - app/assets/javascripts/workarea/admin/config.js.erb
179
181
  - app/assets/javascripts/workarea/admin/google_analytics.js
182
+ - app/assets/javascripts/workarea/admin/modules/active_by_segment_tooltips.js
180
183
  - app/assets/javascripts/workarea/admin/modules/add_content_block_buttons.js
181
184
  - app/assets/javascripts/workarea/admin/modules/add_to_calendar_buttons.js
182
185
  - app/assets/javascripts/workarea/admin/modules/asset_picker_fields.js
@@ -208,6 +211,8 @@ files:
208
211
  - app/assets/javascripts/workarea/admin/modules/filter_dropdowns.js
209
212
  - app/assets/javascripts/workarea/admin/modules/help_helper.js
210
213
  - app/assets/javascripts/workarea/admin/modules/help_lookup_buttons.js
214
+ - app/assets/javascripts/workarea/admin/modules/impersonation_notification.js
215
+ - app/assets/javascripts/workarea/admin/modules/jump_to_menus.js
211
216
  - app/assets/javascripts/workarea/admin/modules/live_search_text.js
212
217
  - app/assets/javascripts/workarea/admin/modules/menu_editor_links.js
213
218
  - app/assets/javascripts/workarea/admin/modules/menu_editor_menu_list_sortables.js
@@ -229,15 +234,20 @@ files:
229
234
  - app/assets/javascripts/workarea/admin/modules/release_reminder.js
230
235
  - app/assets/javascripts/workarea/admin/modules/relevance_sort.js
231
236
  - app/assets/javascripts/workarea/admin/modules/remote_selects.js
237
+ - app/assets/javascripts/workarea/admin/modules/selects.js
232
238
  - app/assets/javascripts/workarea/admin/modules/sort_navigation_menus.js
233
239
  - app/assets/javascripts/workarea/admin/modules/sort_variants.js
240
+ - app/assets/javascripts/workarea/admin/modules/style_guide_autocomplete_fields.js
234
241
  - app/assets/javascripts/workarea/admin/modules/tabs.js
235
242
  - app/assets/javascripts/workarea/admin/modules/takeover.js
236
243
  - app/assets/javascripts/workarea/admin/modules/taxon_insert.js
237
244
  - app/assets/javascripts/workarea/admin/modules/taxon_select.js
245
+ - app/assets/javascripts/workarea/admin/modules/timeline_report_chart.js
238
246
  - app/assets/javascripts/workarea/admin/modules/toggle_buttons.js
247
+ - app/assets/javascripts/workarea/admin/modules/toggle_elements.js
239
248
  - app/assets/javascripts/workarea/admin/modules/toggle_filters.js
240
249
  - app/assets/javascripts/workarea/admin/modules/tooltips.js
250
+ - app/assets/javascripts/workarea/admin/modules/tribute_areas.js
241
251
  - app/assets/javascripts/workarea/admin/modules/unsaved_changes.js
242
252
  - app/assets/javascripts/workarea/admin/modules/wysiwygs.js
243
253
  - app/assets/javascripts/workarea/admin/routes.js.erb
@@ -254,6 +264,7 @@ files:
254
264
  - app/assets/javascripts/workarea/admin/templates/help_helper_text.jst.ejs
255
265
  - app/assets/javascripts/workarea/admin/templates/inactive_blocks_toggle.jst.ejs
256
266
  - app/assets/javascripts/workarea/admin/templates/inline_datepicker.jst.ejs
267
+ - app/assets/javascripts/workarea/admin/templates/jump_to_menu.jst.ejs
257
268
  - app/assets/javascripts/workarea/admin/templates/loading.jst.ejs
258
269
  - app/assets/javascripts/workarea/admin/templates/message.jst.ejs
259
270
  - app/assets/javascripts/workarea/admin/templates/message_dismiss_action.jst.ejs
@@ -324,6 +335,7 @@ files:
324
335
  - app/assets/stylesheets/workarea/admin/components/_help_helper.scss
325
336
  - app/assets/stylesheets/workarea/admin/components/_index_table.scss
326
337
  - app/assets/stylesheets/workarea/admin/components/_insight.scss
338
+ - app/assets/stylesheets/workarea/admin/components/_jump_to_menu.scss
327
339
  - app/assets/stylesheets/workarea/admin/components/_live_search.scss
328
340
  - app/assets/stylesheets/workarea/admin/components/_loading.scss
329
341
  - app/assets/stylesheets/workarea/admin/components/_menu.scss
@@ -368,7 +380,7 @@ files:
368
380
  - app/assets/stylesheets/workarea/admin/email/_base.scss
369
381
  - app/assets/stylesheets/workarea/admin/email/_components.scss
370
382
  - app/assets/stylesheets/workarea/admin/email/_helpers.scss
371
- - app/assets/stylesheets/workarea/admin/email/_settings.scss
383
+ - app/assets/stylesheets/workarea/admin/email/_settings.scss.erb
372
384
  - app/assets/stylesheets/workarea/admin/generic/_box_sizing.scss
373
385
  - app/assets/stylesheets/workarea/admin/generic/_fonts.scss
374
386
  - app/assets/stylesheets/workarea/admin/generic/_reset.scss
@@ -418,6 +430,7 @@ files:
418
430
  - app/controllers/workarea/admin/categorizations_controller.rb
419
431
  - app/controllers/workarea/admin/changesets_controller.rb
420
432
  - app/controllers/workarea/admin/comments_controller.rb
433
+ - app/controllers/workarea/admin/configurations_controller.rb
421
434
  - app/controllers/workarea/admin/content_assets_controller.rb
422
435
  - app/controllers/workarea/admin/content_block_drafts_controller.rb
423
436
  - app/controllers/workarea/admin/content_blocks_controller.rb
@@ -429,7 +442,9 @@ files:
429
442
  - app/controllers/workarea/admin/create_catalog_products_controller.rb
430
443
  - app/controllers/workarea/admin/create_content_pages_controller.rb
431
444
  - app/controllers/workarea/admin/create_pricing_discounts_controller.rb
445
+ - app/controllers/workarea/admin/create_release_undos_controller.rb
432
446
  - app/controllers/workarea/admin/create_releases_controller.rb
447
+ - app/controllers/workarea/admin/create_segments_controller.rb
433
448
  - app/controllers/workarea/admin/create_users_controller.rb
434
449
  - app/controllers/workarea/admin/dashboards_controller.rb
435
450
  - app/controllers/workarea/admin/data_file_exports_controller.rb
@@ -439,6 +454,8 @@ files:
439
454
  - app/controllers/workarea/admin/direct_uploads_controller.rb
440
455
  - app/controllers/workarea/admin/email_signups_controller.rb
441
456
  - app/controllers/workarea/admin/featured_products_controller.rb
457
+ - app/controllers/workarea/admin/fulfillment_skus_controller.rb
458
+ - app/controllers/workarea/admin/fulfillment_tokens_controller.rb
442
459
  - app/controllers/workarea/admin/fulfillments_controller.rb
443
460
  - app/controllers/workarea/admin/guest_browsings_controller.rb
444
461
  - app/controllers/workarea/admin/help_assets_controller.rb
@@ -455,6 +472,7 @@ files:
455
472
  - app/controllers/workarea/admin/payments_controller.rb
456
473
  - app/controllers/workarea/admin/prices_controller.rb
457
474
  - app/controllers/workarea/admin/pricing_discount_code_lists_controller.rb
475
+ - app/controllers/workarea/admin/pricing_discount_redemptions_controller.rb
458
476
  - app/controllers/workarea/admin/pricing_discounts_controller.rb
459
477
  - app/controllers/workarea/admin/pricing_overrides_controller.rb
460
478
  - app/controllers/workarea/admin/pricing_skus_controller.rb
@@ -468,6 +486,9 @@ files:
468
486
  - app/controllers/workarea/admin/search_customizations_controller.rb
469
487
  - app/controllers/workarea/admin/search_settings_controller.rb
470
488
  - app/controllers/workarea/admin/searches_controller.rb
489
+ - app/controllers/workarea/admin/segment_overrides_controller.rb
490
+ - app/controllers/workarea/admin/segment_rules_controller.rb
491
+ - app/controllers/workarea/admin/segments_controller.rb
471
492
  - app/controllers/workarea/admin/shipping_services_controller.rb
472
493
  - app/controllers/workarea/admin/shippings_controller.rb
473
494
  - app/controllers/workarea/admin/style_guides_controller.rb
@@ -476,6 +497,7 @@ files:
476
497
  - app/controllers/workarea/admin/timeline_controller.rb
477
498
  - app/controllers/workarea/admin/toolbar_controller.rb
478
499
  - app/controllers/workarea/admin/trash_controller.rb
500
+ - app/controllers/workarea/admin/unsubscribes_controller.rb
479
501
  - app/controllers/workarea/admin/user_params.rb
480
502
  - app/controllers/workarea/admin/users_controller.rb
481
503
  - app/controllers/workarea/admin/visiting.rb
@@ -484,12 +506,14 @@ files:
484
506
  - app/helpers/workarea/admin/bookmarks_helper.rb
485
507
  - app/helpers/workarea/admin/bulk_actions_helper.rb
486
508
  - app/helpers/workarea/admin/changesets_helper.rb
509
+ - app/helpers/workarea/admin/configurations_helper.rb
487
510
  - app/helpers/workarea/admin/content_block_icon_helper.rb
488
511
  - app/helpers/workarea/admin/content_helper.rb
489
512
  - app/helpers/workarea/admin/credit_cards_helper.rb
490
513
  - app/helpers/workarea/admin/data_files_helper.rb
491
514
  - app/helpers/workarea/admin/date_selector_helper.rb
492
515
  - app/helpers/workarea/admin/facets_helper.rb
516
+ - app/helpers/workarea/admin/fulfillment_helper.rb
493
517
  - app/helpers/workarea/admin/icons_helper.rb
494
518
  - app/helpers/workarea/admin/imports_helper.rb
495
519
  - app/helpers/workarea/admin/insights_helper.rb
@@ -505,6 +529,7 @@ files:
505
529
  - app/helpers/workarea/admin/releases_helper.rb
506
530
  - app/helpers/workarea/admin/reports_helper.rb
507
531
  - app/helpers/workarea/admin/search_customizations_helper.rb
532
+ - app/helpers/workarea/admin/segments_helper.rb
508
533
  - app/helpers/workarea/admin/settings_helper.rb
509
534
  - app/helpers/workarea/admin/storefront_helper.rb
510
535
  - app/helpers/workarea/admin/taxons_helper.rb
@@ -553,6 +578,8 @@ files:
553
578
  - app/view_models/workarea/admin/discounts/shipping_view_model.rb
554
579
  - app/view_models/workarea/admin/featured_products_view_model.rb
555
580
  - app/view_models/workarea/admin/fulfillment_item_view_model.rb
581
+ - app/view_models/workarea/admin/fulfillment_sku_view_model.rb
582
+ - app/view_models/workarea/admin/fulfillment_token_view_model.rb
556
583
  - app/view_models/workarea/admin/fulfillment_view_model.rb
557
584
  - app/view_models/workarea/admin/help_search_view_model.rb
558
585
  - app/view_models/workarea/admin/insight_view_model.rb
@@ -561,6 +588,7 @@ files:
561
588
  - app/view_models/workarea/admin/insights/insights_details.rb
562
589
  - app/view_models/workarea/admin/insights/product_view_model.rb
563
590
  - app/view_models/workarea/admin/insights/search_view_model.rb
591
+ - app/view_models/workarea/admin/insights/segment_view_model.rb
564
592
  - app/view_models/workarea/admin/inventory_sku_view_model.rb
565
593
  - app/view_models/workarea/admin/order_item_view_model.rb
566
594
  - app/view_models/workarea/admin/order_search_view_model.rb
@@ -591,14 +619,17 @@ files:
591
619
  - app/view_models/workarea/admin/reports/sales_by_discount_view_model.rb
592
620
  - app/view_models/workarea/admin/reports/sales_by_product_view_model.rb
593
621
  - app/view_models/workarea/admin/reports/sales_by_sku_view_model.rb
622
+ - app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb
594
623
  - app/view_models/workarea/admin/reports/sales_by_traffic_referrer_view_model.rb
595
624
  - app/view_models/workarea/admin/reports/sales_over_time_view_model.rb
596
625
  - app/view_models/workarea/admin/reports/searches_view_model.rb
626
+ - app/view_models/workarea/admin/reports/timeline_view_model.rb
597
627
  - app/view_models/workarea/admin/revenue_view_model.rb
598
628
  - app/view_models/workarea/admin/search_analysis_view_model.rb
599
629
  - app/view_models/workarea/admin/search_customization_product_rules_view_model.rb
600
630
  - app/view_models/workarea/admin/search_customization_view_model.rb
601
631
  - app/view_models/workarea/admin/search_view_model.rb
632
+ - app/view_models/workarea/admin/segment_view_model.rb
602
633
  - app/view_models/workarea/admin/shipping_view_model.rb
603
634
  - app/view_models/workarea/admin/tax_category_view_model.rb
604
635
  - app/view_models/workarea/admin/timeline_view_model.rb
@@ -626,6 +657,7 @@ files:
626
657
  - app/views/workarea/admin/activities/_comment_create.html.haml
627
658
  - app/views/workarea/admin/activities/_comment_destroy.html.haml
628
659
  - app/views/workarea/admin/activities/_comment_update.html.haml
660
+ - app/views/workarea/admin/activities/_configuration_admin_update.html.haml
629
661
  - app/views/workarea/admin/activities/_content_asset_create.html.haml
630
662
  - app/views/workarea/admin/activities/_content_asset_destroy.html.haml
631
663
  - app/views/workarea/admin/activities/_content_asset_update.html.haml
@@ -639,6 +671,9 @@ files:
639
671
  - app/views/workarea/admin/activities/_content_update.html.haml
640
672
  - app/views/workarea/admin/activities/_create.html.haml
641
673
  - app/views/workarea/admin/activities/_destroy.html.haml
674
+ - app/views/workarea/admin/activities/_fulfillment_sku_create.html.haml
675
+ - app/views/workarea/admin/activities/_fulfillment_sku_destroy.html.haml
676
+ - app/views/workarea/admin/activities/_fulfillment_sku_update.html.haml
642
677
  - app/views/workarea/admin/activities/_help_article_create.html.haml
643
678
  - app/views/workarea/admin/activities/_help_article_destroy.html.haml
644
679
  - app/views/workarea/admin/activities/_help_article_update.html.haml
@@ -677,6 +712,9 @@ files:
677
712
  - app/views/workarea/admin/activities/_search_customization_destroy.html.haml
678
713
  - app/views/workarea/admin/activities/_search_customization_update.html.haml
679
714
  - app/views/workarea/admin/activities/_search_settings_update.html.haml
715
+ - app/views/workarea/admin/activities/_segment_create.html.haml
716
+ - app/views/workarea/admin/activities/_segment_destroy.html.haml
717
+ - app/views/workarea/admin/activities/_segment_update.html.haml
680
718
  - app/views/workarea/admin/activities/_shipping_service_create.html.haml
681
719
  - app/views/workarea/admin/activities/_shipping_service_destroy.html.haml
682
720
  - app/views/workarea/admin/activities/_shipping_service_update.html.haml
@@ -723,6 +761,7 @@ files:
723
761
  - app/views/workarea/admin/catalog_variants/new.html.haml
724
762
  - app/views/workarea/admin/categorizations/index.html.haml
725
763
  - app/views/workarea/admin/categorizations/index.json.jbuilder
764
+ - app/views/workarea/admin/changesets/fields/_active_segment_ids.html.haml
726
765
  - app/views/workarea/admin/changesets/fields/_category_id.html.haml
727
766
  - app/views/workarea/admin/changesets/fields/_category_ids.html.haml
728
767
  - app/views/workarea/admin/changesets/fields/_compatible_discount_ids.html.haml
@@ -740,6 +779,18 @@ files:
740
779
  - app/views/workarea/admin/comments/_card.html.haml
741
780
  - app/views/workarea/admin/comments/edit.html.haml
742
781
  - app/views/workarea/admin/comments/index.html.haml
782
+ - app/views/workarea/admin/configurations/_overridden.html.haml
783
+ - app/views/workarea/admin/configurations/show.html.haml
784
+ - app/views/workarea/admin/configurations/types/_array.html.haml
785
+ - app/views/workarea/admin/configurations/types/_boolean.html.haml
786
+ - app/views/workarea/admin/configurations/types/_duration.html.haml
787
+ - app/views/workarea/admin/configurations/types/_encrypted.html.haml
788
+ - app/views/workarea/admin/configurations/types/_float.html.haml
789
+ - app/views/workarea/admin/configurations/types/_hash.html.haml
790
+ - app/views/workarea/admin/configurations/types/_integer.html.haml
791
+ - app/views/workarea/admin/configurations/types/_select.html.haml
792
+ - app/views/workarea/admin/configurations/types/_string.html.haml
793
+ - app/views/workarea/admin/configurations/types/_symbol.html.haml
743
794
  - app/views/workarea/admin/content/_aux_navigation.html.haml
744
795
  - app/views/workarea/admin/content/_card.html.haml
745
796
  - app/views/workarea/admin/content/_cards.html.haml
@@ -806,8 +857,12 @@ files:
806
857
  - app/views/workarea/admin/create_pricing_discounts/publish.html.haml
807
858
  - app/views/workarea/admin/create_pricing_discounts/rules.html.haml
808
859
  - app/views/workarea/admin/create_pricing_discounts/setup.html.haml
860
+ - app/views/workarea/admin/create_release_undos/new.html.haml
861
+ - app/views/workarea/admin/create_release_undos/review.html.haml
809
862
  - app/views/workarea/admin/create_releases/plan.html.haml
810
863
  - app/views/workarea/admin/create_releases/setup.html.haml
864
+ - app/views/workarea/admin/create_segments/rules.html.haml
865
+ - app/views/workarea/admin/create_segments/setup.html.haml
811
866
  - app/views/workarea/admin/create_users/admin.html.haml
812
867
  - app/views/workarea/admin/create_users/customer.html.haml
813
868
  - app/views/workarea/admin/create_users/index.html.haml
@@ -836,11 +891,18 @@ files:
836
891
  - app/views/workarea/admin/facets/_applied.html.haml
837
892
  - app/views/workarea/admin/facets/_price_inputs.html.haml
838
893
  - app/views/workarea/admin/facets/_terms.html.haml
839
- - app/views/workarea/admin/featured_products/_release_preview_warning.html.haml
840
894
  - app/views/workarea/admin/featured_products/_selected.html.haml
841
895
  - app/views/workarea/admin/featured_products/_unselected.html.haml
842
896
  - app/views/workarea/admin/featured_products/edit.html.haml
843
897
  - app/views/workarea/admin/featured_products/select.html.haml
898
+ - app/views/workarea/admin/fulfillment_skus/_aux_navigation.html.haml
899
+ - app/views/workarea/admin/fulfillment_skus/_cards.html.haml
900
+ - app/views/workarea/admin/fulfillment_skus/_summary.html.haml
901
+ - app/views/workarea/admin/fulfillment_skus/edit.html.haml
902
+ - app/views/workarea/admin/fulfillment_skus/index.html.haml
903
+ - app/views/workarea/admin/fulfillment_skus/new.html.haml
904
+ - app/views/workarea/admin/fulfillment_skus/show.html.haml
905
+ - app/views/workarea/admin/fulfillment_tokens/index.html.haml
844
906
  - app/views/workarea/admin/fulfillments/show.html.haml
845
907
  - app/views/workarea/admin/help/edit.html.haml
846
908
  - app/views/workarea/admin/help/index.html.haml
@@ -902,6 +964,7 @@ files:
902
964
  - app/views/workarea/admin/orders/_cards.html.haml
903
965
  - app/views/workarea/admin/orders/_summary.html.haml
904
966
  - app/views/workarea/admin/orders/attributes.html.haml
967
+ - app/views/workarea/admin/orders/fraud.html.haml
905
968
  - app/views/workarea/admin/orders/index.html.haml
906
969
  - app/views/workarea/admin/orders/show.html.haml
907
970
  - app/views/workarea/admin/orders/tenders/_credit_card.html.haml
@@ -935,12 +998,14 @@ files:
935
998
  - app/views/workarea/admin/pricing_discount_code_lists/new.html.haml
936
999
  - app/views/workarea/admin/pricing_discount_code_lists/promo_codes.html.haml
937
1000
  - app/views/workarea/admin/pricing_discount_code_lists/show.html.haml
1001
+ - app/views/workarea/admin/pricing_discount_redemptions/index.html.haml
938
1002
  - app/views/workarea/admin/pricing_discounts/_aux_navigation.html.haml
939
1003
  - app/views/workarea/admin/pricing_discounts/_cards.html.haml
940
1004
  - app/views/workarea/admin/pricing_discounts/_summary.html.haml
941
1005
  - app/views/workarea/admin/pricing_discounts/conditions/_item_quantity.html.haml
942
1006
  - app/views/workarea/admin/pricing_discounts/conditions/_order_total.html.haml
943
1007
  - app/views/workarea/admin/pricing_discounts/conditions/_promo_code.html.haml
1008
+ - app/views/workarea/admin/pricing_discounts/conditions/_segments.html.haml
944
1009
  - app/views/workarea/admin/pricing_discounts/conditions/_user_tags.html.haml
945
1010
  - app/views/workarea/admin/pricing_discounts/edit.html.haml
946
1011
  - app/views/workarea/admin/pricing_discounts/index.html.haml
@@ -991,11 +1056,13 @@ files:
991
1056
  - app/views/workarea/admin/releases/_publish.html.haml
992
1057
  - app/views/workarea/admin/releases/_select.html.haml
993
1058
  - app/views/workarea/admin/releases/_summary.html.haml
994
- - app/views/workarea/admin/releases/calendar.html.haml
995
1059
  - app/views/workarea/admin/releases/edit.html.haml
996
1060
  - app/views/workarea/admin/releases/index.html.haml
1061
+ - app/views/workarea/admin/releases/list.html.haml
997
1062
  - app/views/workarea/admin/releases/new.html.haml
1063
+ - app/views/workarea/admin/releases/original.html.haml
998
1064
  - app/views/workarea/admin/releases/show.html.haml
1065
+ - app/views/workarea/admin/releases/undo.html.haml
999
1066
  - app/views/workarea/admin/reports/_export.html.haml
1000
1067
  - app/views/workarea/admin/reports/_group_by_time.html.haml
1001
1068
  - app/views/workarea/admin/reports/average_order_value.html.haml
@@ -1009,9 +1076,11 @@ files:
1009
1076
  - app/views/workarea/admin/reports/sales_by_discount.html.haml
1010
1077
  - app/views/workarea/admin/reports/sales_by_product.html.haml
1011
1078
  - app/views/workarea/admin/reports/sales_by_sku.html.haml
1079
+ - app/views/workarea/admin/reports/sales_by_tender.html.haml
1012
1080
  - app/views/workarea/admin/reports/sales_by_traffic_referrer.html.haml
1013
1081
  - app/views/workarea/admin/reports/sales_over_time.html.haml
1014
1082
  - app/views/workarea/admin/reports/searches.html.haml
1083
+ - app/views/workarea/admin/reports/timeline.html.haml
1015
1084
  - app/views/workarea/admin/reports_mailer/export.html.haml
1016
1085
  - app/views/workarea/admin/search_customizations/_aux_navigation.html.haml
1017
1086
  - app/views/workarea/admin/search_customizations/_cards.html.haml
@@ -1023,7 +1092,36 @@ files:
1023
1092
  - app/views/workarea/admin/search_customizations/show.html.haml
1024
1093
  - app/views/workarea/admin/search_settings/show.html.haml
1025
1094
  - app/views/workarea/admin/searches/show.html.haml
1095
+ - app/views/workarea/admin/segment_overrides/show.html.haml
1096
+ - app/views/workarea/admin/segment_rules/_form.html.haml
1097
+ - app/views/workarea/admin/segment_rules/fields/_browser_info.html.haml
1098
+ - app/views/workarea/admin/segment_rules/fields/_geolocation.html.haml
1099
+ - app/views/workarea/admin/segment_rules/fields/_last_order.html.haml
1100
+ - app/views/workarea/admin/segment_rules/fields/_logged_in.html.haml
1101
+ - app/views/workarea/admin/segment_rules/fields/_orders.html.haml
1102
+ - app/views/workarea/admin/segment_rules/fields/_revenue.html.haml
1103
+ - app/views/workarea/admin/segment_rules/fields/_sessions.html.haml
1104
+ - app/views/workarea/admin/segment_rules/fields/_tags.html.haml
1105
+ - app/views/workarea/admin/segment_rules/fields/_traffic_referrer.html.haml
1106
+ - app/views/workarea/admin/segment_rules/geolocation_options.json.jbuilder
1107
+ - app/views/workarea/admin/segment_rules/index.html.haml
1108
+ - app/views/workarea/admin/segment_rules/summaries/_browser_info.html.haml
1109
+ - app/views/workarea/admin/segment_rules/summaries/_geolocation.html.haml
1110
+ - app/views/workarea/admin/segment_rules/summaries/_last_order.html.haml
1111
+ - app/views/workarea/admin/segment_rules/summaries/_logged_in.html.haml
1112
+ - app/views/workarea/admin/segment_rules/summaries/_orders.html.haml
1113
+ - app/views/workarea/admin/segment_rules/summaries/_revenue.html.haml
1114
+ - app/views/workarea/admin/segment_rules/summaries/_sessions.html.haml
1115
+ - app/views/workarea/admin/segment_rules/summaries/_tags.html.haml
1116
+ - app/views/workarea/admin/segment_rules/summaries/_traffic_referrer.html.haml
1117
+ - app/views/workarea/admin/segments/_cards.html.haml
1118
+ - app/views/workarea/admin/segments/_publish.html.haml
1119
+ - app/views/workarea/admin/segments/edit.html.haml
1120
+ - app/views/workarea/admin/segments/index.html.haml
1121
+ - app/views/workarea/admin/segments/insights.html.haml
1122
+ - app/views/workarea/admin/segments/show.html.haml
1026
1123
  - app/views/workarea/admin/shared/_activate_select.html.haml
1124
+ - app/views/workarea/admin/shared/_active_field.html.haml
1027
1125
  - app/views/workarea/admin/shared/_bulk_actions.html.haml
1028
1126
  - app/views/workarea/admin/shared/_creation_date.html.haml
1029
1127
  - app/views/workarea/admin/shared/_csv_formatting_tooltip.html.haml
@@ -1111,7 +1209,9 @@ files:
1111
1209
  - app/views/workarea/admin/tax_categories/index.html.haml
1112
1210
  - app/views/workarea/admin/tax_categories/new.html.haml
1113
1211
  - app/views/workarea/admin/tax_categories/show.html.haml
1212
+ - app/views/workarea/admin/tax_rates/edit.html.haml
1114
1213
  - app/views/workarea/admin/tax_rates/index.html.haml
1214
+ - app/views/workarea/admin/tax_rates/new.html.haml
1115
1215
  - app/views/workarea/admin/timeline/_card.html.haml
1116
1216
  - app/views/workarea/admin/timeline/show.html.haml
1117
1217
  - app/views/workarea/admin/toolbar/show.html.haml
@@ -1180,12 +1280,11 @@ files:
1180
1280
  - test/dummy/public/500.html
1181
1281
  - test/dummy/public/favicon.ico
1182
1282
  - test/dummy/script/rails
1183
- - test/dummy/tmp/screenshots/.keep
1184
1283
  - test/helpers/workarea/admin/application_helper_test.rb
1185
- - test/helpers/workarea/admin/content_helper_test.rb
1186
1284
  - test/helpers/workarea/admin/icons_helper_test.rb
1187
1285
  - test/helpers/workarea/admin/imports_helper_test.rb
1188
1286
  - test/helpers/workarea/admin/insights_helper_test.rb
1287
+ - test/helpers/workarea/admin/products_helper_test.rb
1189
1288
  - test/helpers/workarea/admin/releases_helper_test.rb
1190
1289
  - test/helpers/workarea/admin/settings_helper_test.rb
1191
1290
  - test/integration/workarea/admin/assets_integration_test.rb
@@ -1200,6 +1299,7 @@ files:
1200
1299
  - test/integration/workarea/admin/categorizations_integration_test.rb
1201
1300
  - test/integration/workarea/admin/changesets_integration_test.rb
1202
1301
  - test/integration/workarea/admin/comments_integration_test.rb
1302
+ - test/integration/workarea/admin/configurations_integration_test.rb
1203
1303
  - test/integration/workarea/admin/content_blocks_integration_test.rb
1204
1304
  - test/integration/workarea/admin/content_emails_integration_test.rb
1205
1305
  - test/integration/workarea/admin/content_integration_test.rb
@@ -1208,7 +1308,9 @@ files:
1208
1308
  - test/integration/workarea/admin/create_catalog_products_integration_test.rb
1209
1309
  - test/integration/workarea/admin/create_content_pages_integration_test.rb
1210
1310
  - test/integration/workarea/admin/create_pricing_discounts_integration_test.rb
1311
+ - test/integration/workarea/admin/create_release_undos_integration_test.rb
1211
1312
  - test/integration/workarea/admin/create_releases_integration_test.rb
1313
+ - test/integration/workarea/admin/create_segments_integration_test.rb
1212
1314
  - test/integration/workarea/admin/create_users_integration_test.rb
1213
1315
  - test/integration/workarea/admin/data_file_exports_integration_test.rb
1214
1316
  - test/integration/workarea/admin/data_file_imports_integration_test.rb
@@ -1216,11 +1318,12 @@ files:
1216
1318
  - test/integration/workarea/admin/discounts_integration_test.rb
1217
1319
  - test/integration/workarea/admin/email_signups_integration_test.rb
1218
1320
  - test/integration/workarea/admin/featured_products_integration_test.rb
1321
+ - test/integration/workarea/admin/fulfillment_skus_integration_test.rb
1322
+ - test/integration/workarea/admin/fulfillment_tokens_integration_test.rb
1219
1323
  - test/integration/workarea/admin/guest_browsings_integration_test.rb
1220
1324
  - test/integration/workarea/admin/help_articles_integration_test.rb
1221
1325
  - test/integration/workarea/admin/impersonations_integration_test.rb
1222
1326
  - test/integration/workarea/admin/import_taxes_integration_test.rb
1223
- - test/integration/workarea/admin/index_tracking_integration_test.rb
1224
1327
  - test/integration/workarea/admin/inventory_skus_integration_test.rb
1225
1328
  - test/integration/workarea/admin/jump_to_integration_test.rb
1226
1329
  - test/integration/workarea/admin/menus_integration_test.rb
@@ -1241,11 +1344,15 @@ files:
1241
1344
  - test/integration/workarea/admin/reports_integration_test.rb
1242
1345
  - test/integration/workarea/admin/search_customizations_integration_test.rb
1243
1346
  - test/integration/workarea/admin/search_settings_integration_test.rb
1347
+ - test/integration/workarea/admin/segment_overrides_integration_test.rb
1348
+ - test/integration/workarea/admin/segment_rules_integration_test.rb
1349
+ - test/integration/workarea/admin/segments_integration_test.rb
1244
1350
  - test/integration/workarea/admin/shipping_service_integration_test.rb
1245
1351
  - test/integration/workarea/admin/sort_integration_test.rb
1246
1352
  - test/integration/workarea/admin/tax_categories_integration_test.rb
1247
1353
  - test/integration/workarea/admin/taxonomy_integration_test.rb
1248
1354
  - test/integration/workarea/admin/trash_integration_test.rb
1355
+ - test/integration/workarea/admin/unsubscribes_integration_test.rb
1249
1356
  - test/integration/workarea/admin/users_integration_test.rb
1250
1357
  - test/integration/workarea/admin/variants_integration_test.rb
1251
1358
  - test/integration/workarea/admin/visiting_integration_test.rb
@@ -1270,7 +1377,6 @@ files:
1270
1377
  - test/javascripts/fixtures/datepicker_fields.html.haml
1271
1378
  - test/javascripts/fixtures/datetimepicker_fields.html.haml
1272
1379
  - test/javascripts/fixtures/direct_upload.html.haml
1273
- - test/javascripts/fixtures/existing_navigation_taxon.html.haml
1274
1380
  - test/javascripts/fixtures/help_lookup_button.haml
1275
1381
  - test/javascripts/fixtures/menu_editor_menu_list_sortable.html.haml
1276
1382
  - test/javascripts/fixtures/new_navigation_taxon.html.haml
@@ -1294,6 +1400,7 @@ files:
1294
1400
  - test/javascripts/spec_helper.js
1295
1401
  - test/javascripts/takeover_spec.js
1296
1402
  - test/javascripts/tooltips_spec.js
1403
+ - test/mailers/workarea/admin/comment_mailer_test.rb
1297
1404
  - test/mailers/workarea/admin/status_report_mailer_test.rb
1298
1405
  - test/system/workarea/admin/activity_system_test.rb
1299
1406
  - test/system/workarea/admin/alerts_system_test.rb
@@ -1311,6 +1418,7 @@ files:
1311
1418
  - test/system/workarea/admin/discounts_system_test.rb
1312
1419
  - test/system/workarea/admin/exports_system_test.rb
1313
1420
  - test/system/workarea/admin/featured_products_system_test.rb
1421
+ - test/system/workarea/admin/fulfillment_skus_system_test.rb
1314
1422
  - test/system/workarea/admin/guest_browsing_system_test.rb
1315
1423
  - test/system/workarea/admin/help_system_test.rb
1316
1424
  - test/system/workarea/admin/impersonation_system_test.rb
@@ -1335,6 +1443,7 @@ files:
1335
1443
  - test/system/workarea/admin/search_customizations_system_test.rb
1336
1444
  - test/system/workarea/admin/search_settings_system_test.rb
1337
1445
  - test/system/workarea/admin/search_system_test.rb
1446
+ - test/system/workarea/admin/segments_system_test.rb
1338
1447
  - test/system/workarea/admin/sequential_product_editing_system_test.rb
1339
1448
  - test/system/workarea/admin/shipping_services_system_test.rb
1340
1449
  - test/system/workarea/admin/style_guides_system_test.rb
@@ -1363,9 +1472,10 @@ files:
1363
1472
  - test/view_models/workarea/admin/help_search_view_model_test.rb
1364
1473
  - test/view_models/workarea/admin/insights/insights_details_test.rb
1365
1474
  - test/view_models/workarea/admin/insights/product_view_model_test.rb
1475
+ - test/view_models/workarea/admin/insights/segment_view_model_test.rb
1366
1476
  - test/view_models/workarea/admin/order_timeline_view_model_test.rb
1367
- - test/view_models/workarea/admin/pricing_sku_view_model_test.rb
1368
1477
  - test/view_models/workarea/admin/product_images_view_model_test.rb
1478
+ - test/view_models/workarea/admin/product_rules_preview_view_model_test.rb
1369
1479
  - test/view_models/workarea/admin/product_view_model_test.rb
1370
1480
  - test/view_models/workarea/admin/promo_code_view_model_test.rb
1371
1481
  - test/view_models/workarea/admin/release_calendar_view_model_test.rb
@@ -1376,6 +1486,7 @@ files:
1376
1486
  - test/view_models/workarea/admin/reports/insights_view_model_test.rb
1377
1487
  - test/view_models/workarea/admin/reports/sales_by_traffic_referrer_view_model_test.rb
1378
1488
  - test/view_models/workarea/admin/reports/sales_over_time_view_model_test.rb
1489
+ - test/view_models/workarea/admin/reports/timeline_view_model_test.rb
1379
1490
  - test/view_models/workarea/admin/search_analysis_view_model_test.rb
1380
1491
  - test/view_models/workarea/admin/search_view_model_test.rb
1381
1492
  - test/view_models/workarea/admin/shipping_view_model_test.rb
@@ -1398,11 +1509,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
1398
1509
  version: '0'
1399
1510
  required_rubygems_version: !ruby/object:Gem::Requirement
1400
1511
  requirements:
1401
- - - ">="
1512
+ - - ">"
1402
1513
  - !ruby/object:Gem::Version
1403
- version: '0'
1514
+ version: 1.3.1
1404
1515
  requirements: []
1405
- rubygems_version: 3.2.3
1516
+ rubygems_version: 3.0.6
1406
1517
  signing_key:
1407
1518
  specification_version: 4
1408
1519
  summary: Admin for the Workarea Commerce Platform
@@ -1,4 +0,0 @@
1
- - if current_release.present?
2
- .grid.grid--center
3
- .grid__cell.grid__cell--60-at-medium
4
- = render_message 'warning', t('workarea.admin.featured_products.release_preview_warning')
@@ -1,54 +0,0 @@
1
- - @page_title = t('workarea.admin.releases.calendar.title')
2
-
3
- .view
4
- .view__header
5
- .grid.grid--middle.grid--center
6
- .grid__cell.grid__cell--50
7
- .view__heading
8
- = link_to "↑ #{t('workarea.admin.releases.show.index_link')}", releases_path
9
- %h1.heading--no-margin= t('workarea.admin.releases.calendar.title')
10
-
11
- .view__container
12
- .calendar
13
-
14
- = link_to inline_svg('workarea/admin/icons/arrow_up.svg', title: t('workarea.admin.releases.calendar.previous_week'), class: 'calendar__control-icon'), calendar_releases_path(start_date: @calendar.prev_week), class: 'calendar__control calendar__control--prev'
15
-
16
- .calendar__today-button
17
- = button_tag t('workarea.admin.releases.calendar.today'), type: 'button', class: 'button button--small', data: { calendar_today_button: '' }
18
-
19
- %table.calendar__table
20
- %thead
21
- %tr
22
- - @calendar.weekdays.each do |weekday|
23
- %th.calendar__weekday
24
- %span.calendar__weekday-name= weekday
25
-
26
- %tbody
27
- - @calendar.days.each_slice(7).with_index do |week, i|
28
- %tr
29
- - week.each do |day|
30
- %td.calendar__header= month_name_needed?(day.first, @calendar.days) ? month_and_year_from_date(day.first.to_date) : ' '.html_safe
31
- %tr
32
- - week.each do |day, releases|
33
- %td{ class: calendar_day_classes(day) }
34
- .calendar__day-header
35
- %span.calendar__day-number= calendar_day_number(day)
36
-
37
- - releases.each do |release|
38
- = link_to release_path(release), class: calendar_release_classes(day, release), title: release.name, data: { calendar_release_id: release.id }, style: calendar_release_styles(release) do
39
- %span.calendar__release-text
40
- %span.calendar__release-time= local_time(release.published_at || release.publish_at, '%l:%M%P')
41
- %span.calendar__release-name= release.name
42
-
43
- - if current_user.can_publish_now?
44
- - if Date.parse(day).today?
45
- = link_to create_releases_path(release: { publish_at: Time.current.end_of_day - 4.minutes }), class: 'calendar__new-release' do
46
- %span.calendar__new-release-text= t('workarea.admin.releases.calendar.add_new_release')
47
- = inline_svg('workarea/admin/icons/add.svg', title: t('workarea.admin.releases.calendar.add_new_release'), class: 'calendar__new-release-icon')
48
-
49
- - elsif Time.parse(day).future?
50
- = link_to create_releases_path(release: { publish_at: Time.parse(day) }), class: 'calendar__new-release' do
51
- %span.calendar__new-release-text= t('workarea.admin.releases.calendar.add_new_release')
52
- = inline_svg('workarea/admin/icons/add.svg', title: t('workarea.admin.releases.calendar.add_new_release'), class: 'calendar__new-release-icon')
53
-
54
- = link_to inline_svg('workarea/admin/icons/arrow_down.svg', title: t('workarea.admin.releases.calendar.next_week'), class: 'calendar__control-icon'), calendar_releases_path(start_date: @calendar.next_week), class: 'calendar__control calendar__control--next'
File without changes
@@ -1,17 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Workarea
4
- module Admin
5
- class ContentHelperTest < ViewTest
6
- def test_options_for_category
7
- category = create_category
8
- deleted_category = create_category.tap(&:destroy)
9
- options = %(<option selected="selected" value="#{category.id}">#{category.name}</option>)
10
-
11
- assert_equal('', options_for_category(nil))
12
- assert_equal('', options_for_category(deleted_category.id))
13
- assert_equal(options, options_for_category(category.id))
14
- end
15
- end
16
- end
17
- end
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Workarea
4
- module Admin
5
- class IndexTrackingIntegrationTest < Workarea::IntegrationTest
6
- include Admin::IntegrationTest
7
-
8
- def test_track_index_filters
9
- get admin.pricing_skus_path
10
-
11
- assert_equal(admin.pricing_skus_path, session[:last_index_path])
12
- assert_no_changes -> { session[:last_index_path] } do
13
- get admin.catalog_products_path(format: :json)
14
- end
15
- assert_no_changes -> { session[:last_index_path] } do
16
- get admin.catalog_products_path, xhr: true
17
- end
18
- end
19
- end
20
- end
21
- end