workarea-storefront 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 (156) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +52 -0
  3. data/app/assets/javascripts/workarea/storefront/application.js.erb +2 -12
  4. data/app/assets/javascripts/workarea/storefront/config.js.erb +0 -5
  5. data/app/assets/javascripts/workarea/storefront/modules/{analytics.js → analytics.js.erb} +17 -0
  6. data/app/assets/javascripts/workarea/storefront/modules/dialog_buttons.js +1 -1
  7. data/app/assets/javascripts/workarea/storefront/modules/workarea_analytics.js +4 -0
  8. data/app/assets/stylesheets/workarea/storefront/application.scss.erb +0 -2
  9. data/app/assets/stylesheets/workarea/storefront/email/_base.scss +9 -1
  10. data/app/assets/stylesheets/workarea/storefront/email/_components.scss +1 -1
  11. data/app/assets/stylesheets/workarea/storefront/email/_helpers.scss +16 -0
  12. data/app/assets/stylesheets/workarea/storefront/email/{_settings.scss → _settings.scss.erb} +1 -1
  13. data/app/controllers/workarea/storefront/analytics_controller.rb +36 -21
  14. data/app/controllers/workarea/storefront/application_controller.rb +2 -4
  15. data/app/controllers/workarea/storefront/cart_items_controller.rb +1 -2
  16. data/app/controllers/workarea/storefront/checkout/addresses_controller.rb +0 -2
  17. data/app/controllers/workarea/storefront/checkouts_controller.rb +6 -4
  18. data/app/controllers/workarea/storefront/content_areas_controller.rb +1 -0
  19. data/app/controllers/workarea/storefront/content_blocks_controller.rb +1 -0
  20. data/app/controllers/workarea/storefront/current_checkout.rb +20 -14
  21. data/app/controllers/workarea/storefront/downloads_controller.rb +18 -0
  22. data/app/controllers/workarea/storefront/email_signups_controller.rb +1 -0
  23. data/app/controllers/workarea/storefront/errors_controller.rb +6 -0
  24. data/app/controllers/workarea/storefront/recent_views_controller.rb +2 -35
  25. data/app/controllers/workarea/storefront/recommendations_controller.rb +2 -2
  26. data/app/controllers/workarea/storefront/searches_controller.rb +0 -11
  27. data/app/controllers/workarea/storefront/users/accounts_controller.rb +2 -7
  28. data/app/controllers/workarea/storefront/users/credit_cards_controller.rb +5 -2
  29. data/app/controllers/workarea/storefront/users/passwords_controller.rb +1 -5
  30. data/app/helpers/workarea/storefront/application_helper.rb +19 -3
  31. data/app/helpers/workarea/storefront/content_helper.rb +1 -1
  32. data/app/helpers/workarea/storefront/favicons_helper.rb +6 -7
  33. data/app/helpers/workarea/storefront/navigation_helper.rb +10 -0
  34. data/app/helpers/workarea/storefront/schema_org_helper.rb +156 -0
  35. data/app/mailers/workarea/storefront/application_mailer.rb +1 -0
  36. data/app/view_models/workarea/storefront/category_view_model.rb +2 -2
  37. data/app/view_models/workarea/storefront/content_block_view_model.rb +41 -10
  38. data/app/view_models/workarea/storefront/content_blocks/product_insights_view_model.rb +1 -1
  39. data/app/view_models/workarea/storefront/display_content.rb +3 -1
  40. data/app/view_models/workarea/storefront/inquiry_view_model.rb +1 -7
  41. data/app/view_models/workarea/storefront/inventory_status_view_model.rb +10 -6
  42. data/app/view_models/workarea/storefront/order_item_view_model.rb +14 -0
  43. data/app/view_models/workarea/storefront/product_view_model.rb +22 -4
  44. data/app/view_models/workarea/storefront/recommendations_view_model.rb +8 -4
  45. data/app/view_models/workarea/storefront/search_view_model.rb +1 -1
  46. data/app/view_models/workarea/storefront/user_activity_view_model.rb +6 -17
  47. data/app/views/layouts/workarea/storefront/application.html.haml +13 -17
  48. data/app/views/layouts/workarea/storefront/checkout.html.haml +1 -1
  49. data/app/views/layouts/workarea/storefront/content_preview.html.haml +1 -0
  50. data/app/views/layouts/workarea/storefront/email.html.haml +33 -26
  51. data/app/views/layouts/workarea/storefront/empty.html.haml +1 -0
  52. data/app/views/layouts/workarea/storefront/navigation.html.haml +1 -1
  53. data/app/views/workarea/storefront/account_mailer/creation.html.haml +2 -0
  54. data/app/views/workarea/storefront/account_mailer/password_reset.html.haml +2 -0
  55. data/app/views/workarea/storefront/cart_items/create.html.haml +1 -1
  56. data/app/views/workarea/storefront/carts/show.html.haml +1 -1
  57. data/app/views/workarea/storefront/categories/show.html.haml +3 -2
  58. data/app/views/workarea/storefront/checkouts/confirmation.html.haml +1 -1
  59. data/app/views/workarea/storefront/contacts/show.html.haml +4 -2
  60. data/app/views/workarea/storefront/content_areas/show.html.haml +1 -0
  61. data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +2 -1
  62. data/app/views/workarea/storefront/content_blocks/_product_insights.html.haml +2 -1
  63. data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +2 -1
  64. data/app/views/workarea/storefront/errors/show.html.haml +1 -0
  65. data/app/views/workarea/storefront/fulfillment_mailer/shipped.html.haml +3 -1
  66. data/app/views/workarea/storefront/order_mailer/_summary.html.haml +6 -0
  67. data/app/views/workarea/storefront/order_mailer/confirmation.html.haml +3 -0
  68. data/app/views/workarea/storefront/order_mailer/reminder.html.haml +3 -0
  69. data/app/views/workarea/storefront/orders/_summary.html.haml +3 -1
  70. data/app/views/workarea/storefront/orders/show.html.haml +3 -3
  71. data/app/views/workarea/storefront/pages/home_page.html.haml +4 -0
  72. data/app/views/workarea/storefront/pages/robots.text.erb +0 -1
  73. data/app/views/workarea/storefront/pages/show.html.haml +1 -0
  74. data/app/views/workarea/storefront/products/_price.html.haml +1 -2
  75. data/app/views/workarea/storefront/products/_pricing.html.haml +12 -6
  76. data/app/views/workarea/storefront/products/_summary.html.haml +3 -3
  77. data/app/views/workarea/storefront/products/show.html.haml +6 -4
  78. data/app/views/workarea/storefront/products/templates/_generic.html.haml +5 -5
  79. data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +5 -7
  80. data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +5 -7
  81. data/app/views/workarea/storefront/recent_views/aside.html.haml +3 -10
  82. data/app/views/workarea/storefront/recent_views/narrow.html.haml +3 -10
  83. data/app/views/workarea/storefront/recent_views/show.html.haml +3 -10
  84. data/app/views/workarea/storefront/recommendations/show.html.haml +1 -1
  85. data/app/views/workarea/storefront/searches/show.html.haml +4 -5
  86. data/app/views/workarea/storefront/users/accounts/edit.html.haml +3 -3
  87. data/app/views/workarea/storefront/users/accounts/show.html.haml +3 -3
  88. data/app/views/workarea/storefront/users/addresses/edit.html.haml +3 -3
  89. data/app/views/workarea/storefront/users/addresses/new.html.haml +3 -3
  90. data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +3 -3
  91. data/app/views/workarea/storefront/users/credit_cards/new.html.haml +3 -3
  92. data/app/views/workarea/storefront/users/orders/index.html.haml +3 -3
  93. data/app/views/workarea/storefront/users/orders/show.html.haml +4 -4
  94. data/app/views/workarea/storefront/users/passwords/new.html.haml +3 -3
  95. data/config/locales/en.yml +16 -3
  96. data/config/routes.rb +4 -2
  97. data/test/dummy/config/initializers/session_store.rb +1 -1
  98. data/test/helpers/workarea/storefront/content_helper_test.rb +1 -0
  99. data/test/helpers/workarea/storefront/navigation_helper_test.rb +4 -0
  100. data/test/helpers/workarea/storefront/schema_org_helper_test.rb +27 -0
  101. data/test/integration/workarea/storefront/analytics_integration_test.rb +44 -4
  102. data/test/integration/workarea/storefront/cart_items_integration_test.rb +0 -12
  103. data/test/integration/workarea/storefront/categories_integration_test.rb +0 -10
  104. data/test/integration/workarea/storefront/checkout_side_effects_integration_test.rb +15 -1
  105. data/test/integration/workarea/storefront/checkouts_integration_test.rb +68 -11
  106. data/test/integration/workarea/storefront/contact_form_integration_test.rb +18 -20
  107. data/test/integration/workarea/storefront/content_blocks_integration_test.rb +1 -4
  108. data/test/integration/workarea/storefront/current_checkout_integration_test.rb +53 -2
  109. data/test/integration/workarea/storefront/downloads_integration_test.rb +38 -0
  110. data/test/integration/workarea/storefront/email_signups_integration_test.rb +2 -0
  111. data/test/integration/workarea/storefront/guest_browsing_integration_test.rb +2 -2
  112. data/test/integration/workarea/storefront/impersonations_integration_test.rb +2 -2
  113. data/test/integration/workarea/storefront/login_integration_test.rb +3 -9
  114. data/test/integration/workarea/storefront/order_data_integration_test.rb +1 -9
  115. data/test/integration/workarea/storefront/place_order_integration_test.rb +5 -7
  116. data/test/integration/workarea/storefront/placing_order_integration_test.rb +1 -1
  117. data/test/integration/workarea/storefront/recent_views_integration_test.rb +29 -0
  118. data/test/integration/workarea/storefront/releases_integration_test.rb +132 -0
  119. data/test/integration/workarea/storefront/search_integration_test.rb +0 -46
  120. data/test/integration/workarea/storefront/segment_overrides_integration_test.rb +48 -0
  121. data/test/integration/workarea/storefront/segments_integration_test.rb +250 -0
  122. data/test/integration/workarea/storefront/store_credit_integration_test.rb +1 -1
  123. data/test/integration/workarea/storefront/users/credit_cards_integration_test.rb +2 -2
  124. data/test/integration/workarea/storefront/users/passwords_integration_test.rb +0 -19
  125. data/test/javascripts/traffic_referrer_spec.js +1 -1
  126. data/test/mailers/workarea/storefront/transactional_mailer_test.rb +9 -13
  127. data/test/system/workarea/storefront/analytics_system_test.rb +54 -40
  128. data/test/system/workarea/storefront/content_system_test.rb +10 -1
  129. data/test/system/workarea/storefront/digital_products_system_test.rb +2 -0
  130. data/test/system/workarea/storefront/download_system_test.rb +145 -0
  131. data/test/system/workarea/storefront/guest_checkout_system_test.rb +20 -0
  132. data/test/system/workarea/storefront/logged_in_checkout_system_test.rb +31 -32
  133. data/test/system/workarea/storefront/passwords_system_test.rb +35 -37
  134. data/test/system/workarea/storefront/pricing_overrides_system_test.rb +13 -2
  135. data/test/system/workarea/storefront/segment_overrides_system_test.rb +69 -0
  136. data/test/view_models/workarea/storefront/category_view_model_test.rb +20 -0
  137. data/test/view_models/workarea/storefront/content_block_view_model_test.rb +135 -3
  138. data/test/view_models/workarea/storefront/display_content_test.rb +4 -0
  139. data/test/view_models/workarea/storefront/product_view_model/option_set_test.rb +7 -8
  140. data/test/view_models/workarea/storefront/product_view_model_test.rb +17 -10
  141. data/test/view_models/workarea/storefront/search_view_model_test.rb +0 -6
  142. data/test/view_models/workarea/storefront/user_activity_view_model_test.rb +18 -20
  143. metadata +20 -22
  144. data/app/assets/javascripts/workarea/storefront/modules/recent_views.js +0 -25
  145. data/app/assets/javascripts/workarea/storefront/modules/search_fields.js +0 -59
  146. data/app/assets/javascripts/workarea/storefront/templates/ui_menu_heading.jst.ejs +0 -1
  147. data/app/assets/javascripts/workarea/storefront/templates/ui_menu_item.jst.ejs +0 -8
  148. data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +0 -17
  149. data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +0 -40
  150. data/app/controllers/workarea/storefront/http_caching.rb +0 -33
  151. data/app/controllers/workarea/storefront/user_activity.rb +0 -19
  152. data/app/view_models/workarea/storefront/search_suggestion_view_model.rb +0 -87
  153. data/app/views/workarea/storefront/searches/index.json.jbuilder +0 -1
  154. data/app/views/workarea/storefront/style_guides/components/_ui_autocomplete.html.haml +0 -11
  155. data/test/dummy/tmp/screenshots/.keep +0 -0
  156. data/test/view_models/workarea/storefront/search_suggestion_view_model_test.rb +0 -42
@@ -94,6 +94,10 @@ module Workarea
94
94
  og_asset = view_model.open_graph_asset
95
95
  assert(og_asset.open_graph_placeholder?)
96
96
 
97
+ default_asset = create_asset(tag_list: 'og-default')
98
+ view_model = ContentViewModel.wrap(content)
99
+ assert_equal(default_asset, view_model.open_graph_asset)
100
+
97
101
  content.update_attributes(open_graph_asset_id: create_asset.id)
98
102
  view_model = ContentViewModel.wrap(content)
99
103
  og_asset = view_model.open_graph_asset
@@ -315,14 +315,13 @@ module Workarea
315
315
  ]
316
316
  )
317
317
 
318
- Workarea.with_config do |config|
319
- config.option_selections_sort = ->(p, o) { o.sort_by(&:name) }
320
- set = OptionSet.new(product)
321
- assert_equal(
322
- %w(color material size),
323
- set.options_for_selection.map(&:slug)
324
- )
325
- end
318
+ Workarea.config.option_selections_sort = ->(p, o) { o.sort_by(&:name) }
319
+
320
+ set = OptionSet.new(product)
321
+ assert_equal(
322
+ %w(color material size),
323
+ set.options_for_selection.map(&:slug)
324
+ )
326
325
  end
327
326
 
328
327
  def test_not_losing_formatting_with_titleize
@@ -15,18 +15,10 @@ module Workarea
15
15
  view_model = ProductViewModel.wrap(@product, one: '1')
16
16
  assert_instance_of(ProductTemplates::OptionSelectsViewModel, view_model)
17
17
  assert_equal('1', view_model.options[:one])
18
-
19
- Workarea.with_config do |config|
20
- config.product_templates << :no_view_model
21
- @product.template = 'no_view_model'
22
- view_model = ProductViewModel.wrap(@product, one: '1')
23
-
24
- assert_kind_of(ProductViewModel, view_model)
25
- end
26
18
  end
27
19
 
28
20
  def test_cache_key
29
- cached_product = Catalog::Product.new(@product.as_document)
21
+ cached_product = Catalog::Product.instantiate(@product.as_document)
30
22
 
31
23
  view_model = ProductViewModel.new(cached_product)
32
24
  assert_match(/#{@product.id}/, view_model.cache_key)
@@ -45,7 +37,7 @@ module Workarea
45
37
 
46
38
  def test_cache_key_with_options
47
39
  variant = @product.variants.build(sku: 'SKU', details: { 'Color' => 'blue' })
48
- cached_product = Catalog::Product.new(@product.as_document)
40
+ cached_product = Catalog::Product.instantiate(@product.as_document)
49
41
  options = { action: 'show', sku: variant.sku }.merge(variant.details)
50
42
  view_model = ProductViewModel.new(cached_product, options)
51
43
 
@@ -238,6 +230,21 @@ module Workarea
238
230
  refute(view_model.inventory_purchasable?)
239
231
  refute(view_model.purchasable?)
240
232
  end
233
+
234
+ def test_requires_shipping?
235
+ product = create_product(variants: [{ sku: 'SKU1' }, { sku: 'SKU2' }])
236
+ sku_1 = create_fulfillment_sku(id: 'SKU1', policy: 'ignore')
237
+ sku_2 = create_fulfillment_sku(id: 'SKU2', policy: 'ship')
238
+
239
+ view_model = ProductViewModel.wrap(product)
240
+ assert(view_model.requires_shipping?)
241
+
242
+ view_model = ProductViewModel.wrap(product, sku: 'SKU1')
243
+ refute(view_model.requires_shipping?)
244
+
245
+ view_model = ProductViewModel.wrap(product, sku: 'SKU2')
246
+ assert(view_model.requires_shipping?)
247
+ end
241
248
  end
242
249
  end
243
250
  end
@@ -51,12 +51,6 @@ module Workarea
51
51
 
52
52
  view_model = SearchViewModel.new(response)
53
53
  assert_equal(%w(one two), view_model.query_suggestions)
54
-
55
- Recommendation::Searches.expects(:find).returns(%w(one))
56
- response.query.expects(:query_suggestions).returns(%w(one))
57
-
58
- view_model = SearchViewModel.new(response)
59
- assert_equal(%w(one), view_model.query_suggestions)
60
54
  end
61
55
  end
62
56
  end
@@ -3,7 +3,6 @@ require 'test_helper'
3
3
  module Workarea
4
4
  module Storefront
5
5
  class UserActivityViewModelTest < TestCase
6
-
7
6
  setup :set_display_count
8
7
  teardown :reset_display_count
9
8
 
@@ -19,47 +18,46 @@ module Workarea
19
18
  def test_products
20
19
  product_one = create_product
21
20
  product_two = create_product
22
- product_three = create_product
21
+ product_three = create_product(
22
+ details: { 'Material' => 'Wool', 'Style' => '12345' },
23
+ filters: { 'Material' => 'Wool', 'Style' => '12345' }
24
+ )
25
+ [product_three, product_two, product_one, product_one].each do |product|
26
+ Metrics::User.save_affinity(id: 'foo', action: 'viewed', product_ids: product.id)
27
+ end
23
28
 
24
- product_ids = [product_one.id, product_one.id, product_two.id, product_three.id]
25
- user_activity = Recommendation::UserActivity.new(product_ids: product_ids)
26
- view_model = UserActivityViewModel.new(user_activity)
29
+ metrics = Metrics::User.find('foo')
30
+ view_model = UserActivityViewModel.new(metrics)
27
31
 
28
32
  assert_equal(2, view_model.products.length)
29
33
  assert_equal(product_one, view_model.products.first.model)
30
34
  assert_equal(product_two, view_model.products.second.model)
31
35
 
32
36
  product_two.update_attributes!(active: false)
33
-
34
- product_ids = [product_one.id, product_two.id]
35
- user_activity = Recommendation::UserActivity.new(product_ids: product_ids)
36
- view_model = UserActivityViewModel.new(user_activity)
37
+ view_model = UserActivityViewModel.new(metrics)
37
38
 
38
39
  assert_equal(1, view_model.products.length)
39
40
  assert_equal(product_one, view_model.products.first.model)
41
+
42
+ view_model = UserActivityViewModel.new(metrics, 'Material' => 'Wool')
43
+ assert_equal 'Wool', view_model.products.first.options['Material']
40
44
  end
41
45
 
42
46
  def test_categories
43
47
  one = create_category
44
48
  two = create_category
45
49
  three = create_category
46
- user_activity =
47
- Recommendation::UserActivity.new(category_ids: [one.id, one.id, two.id, three.id])
50
+ [three, two, one, one].each do |category|
51
+ Metrics::User.save_affinity(id: 'foo', action: 'viewed', category_ids: category.id)
52
+ end
48
53
 
49
- view_model = UserActivityViewModel.new(user_activity)
54
+ metrics = Metrics::User.find('foo')
55
+ view_model = UserActivityViewModel.new(metrics)
50
56
 
51
57
  assert_equal(2, view_model.categories.length)
52
58
  assert_equal(one.id, view_model.categories.first.id)
53
59
  assert_equal(two.id, view_model.categories.second.id)
54
60
  end
55
-
56
- def test_searches
57
- searches = %w(one one two three)
58
- user_activity = Recommendation::UserActivity.new(searches: searches)
59
- view_model = UserActivityViewModel.new(user_activity)
60
-
61
- assert_equal(%w(one two), view_model.searches)
62
- end
63
61
  end
64
62
  end
65
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-storefront
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,14 +16,14 @@ 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
  description: Provides user-facing ecommerce storefront functionality for the Workarea
28
28
  Commerce Platform.
29
29
  email:
@@ -33,6 +33,7 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - LICENSE
36
+ - LICENSE.txt
36
37
  - README.md
37
38
  - Rakefile
38
39
  - app/assets/fonts/.keep
@@ -66,7 +67,7 @@ files:
66
67
  - app/assets/javascripts/workarea/storefront/modules/address_region_fields.js
67
68
  - app/assets/javascripts/workarea/storefront/modules/admin_toolbar.js
68
69
  - app/assets/javascripts/workarea/storefront/modules/alternate_image_buttons.js
69
- - app/assets/javascripts/workarea/storefront/modules/analytics.js
70
+ - app/assets/javascripts/workarea/storefront/modules/analytics.js.erb
70
71
  - app/assets/javascripts/workarea/storefront/modules/authenticity_token.js
71
72
  - app/assets/javascripts/workarea/storefront/modules/back_to_top_button.js
72
73
  - app/assets/javascripts/workarea/storefront/modules/break_points.js
@@ -91,10 +92,8 @@ files:
91
92
  - app/assets/javascripts/workarea/storefront/modules/popup_buttons.js
92
93
  - app/assets/javascripts/workarea/storefront/modules/primary_nav_content.js
93
94
  - app/assets/javascripts/workarea/storefront/modules/product_details_sku_selects.js
94
- - app/assets/javascripts/workarea/storefront/modules/recent_views.js
95
95
  - app/assets/javascripts/workarea/storefront/modules/recommendations_placeholders.js
96
96
  - app/assets/javascripts/workarea/storefront/modules/scroll_to_buttons.js
97
- - app/assets/javascripts/workarea/storefront/modules/search_fields.js
98
97
  - app/assets/javascripts/workarea/storefront/modules/single_submit_forms.js
99
98
  - app/assets/javascripts/workarea/storefront/modules/traffic_referrer.js
100
99
  - app/assets/javascripts/workarea/storefront/modules/workarea_analytics.js
@@ -114,12 +113,8 @@ files:
114
113
  - app/assets/javascripts/workarea/storefront/templates/pagination_button.jst.ejs
115
114
  - app/assets/javascripts/workarea/storefront/templates/same_as_shipping_button_property.jst.ejs
116
115
  - app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs
117
- - app/assets/javascripts/workarea/storefront/templates/ui_menu_heading.jst.ejs
118
- - app/assets/javascripts/workarea/storefront/templates/ui_menu_item.jst.ejs
119
- - app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss
120
116
  - app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss
121
117
  - app/assets/stylesheets/jquery_ui/storefront/_ui_helper_hidden_accessible.scss
122
- - app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss
123
118
  - app/assets/stylesheets/jquery_ui/storefront/_ui_state_focus.scss
124
119
  - app/assets/stylesheets/jquery_ui/storefront/_ui_widget_overlay.scss
125
120
  - app/assets/stylesheets/workarea/storefront/application.scss.erb
@@ -202,7 +197,7 @@ files:
202
197
  - app/assets/stylesheets/workarea/storefront/email/_base.scss
203
198
  - app/assets/stylesheets/workarea/storefront/email/_components.scss
204
199
  - app/assets/stylesheets/workarea/storefront/email/_helpers.scss
205
- - app/assets/stylesheets/workarea/storefront/email/_settings.scss
200
+ - app/assets/stylesheets/workarea/storefront/email/_settings.scss.erb
206
201
  - app/assets/stylesheets/workarea/storefront/generic/_box_sizing.scss
207
202
  - app/assets/stylesheets/workarea/storefront/generic/_fonts.scss
208
203
  - app/assets/stylesheets/workarea/storefront/generic/_reset.scss
@@ -250,9 +245,9 @@ files:
250
245
  - app/controllers/workarea/storefront/content_areas_controller.rb
251
246
  - app/controllers/workarea/storefront/content_blocks_controller.rb
252
247
  - app/controllers/workarea/storefront/current_checkout.rb
248
+ - app/controllers/workarea/storefront/downloads_controller.rb
253
249
  - app/controllers/workarea/storefront/email_signups_controller.rb
254
250
  - app/controllers/workarea/storefront/errors_controller.rb
255
- - app/controllers/workarea/storefront/http_caching.rb
256
251
  - app/controllers/workarea/storefront/menus_controller.rb
257
252
  - app/controllers/workarea/storefront/order_lookup.rb
258
253
  - app/controllers/workarea/storefront/orders_controller.rb
@@ -263,7 +258,6 @@ files:
263
258
  - app/controllers/workarea/storefront/searches_controller.rb
264
259
  - app/controllers/workarea/storefront/sitemaps_controller.rb
265
260
  - app/controllers/workarea/storefront/style_guides_controller.rb
266
- - app/controllers/workarea/storefront/user_activity.rb
267
261
  - app/controllers/workarea/storefront/users/accounts_controller.rb
268
262
  - app/controllers/workarea/storefront/users/addresses_controller.rb
269
263
  - app/controllers/workarea/storefront/users/credit_cards_controller.rb
@@ -281,6 +275,7 @@ files:
281
275
  - app/helpers/workarea/storefront/pagination_helper.rb
282
276
  - app/helpers/workarea/storefront/products_helper.rb
283
277
  - app/helpers/workarea/storefront/recent_views_helper.rb
278
+ - app/helpers/workarea/storefront/schema_org_helper.rb
284
279
  - app/helpers/workarea/storefront/users_helper.rb
285
280
  - app/mailers/workarea/storefront/account_mailer.rb
286
281
  - app/mailers/workarea/storefront/application_mailer.rb
@@ -340,7 +335,6 @@ files:
340
335
  - app/view_models/workarea/storefront/search_content.rb
341
336
  - app/view_models/workarea/storefront/search_customization_content.rb
342
337
  - app/view_models/workarea/storefront/search_customization_view_model.rb
343
- - app/view_models/workarea/storefront/search_suggestion_view_model.rb
344
338
  - app/view_models/workarea/storefront/search_view_model.rb
345
339
  - app/view_models/workarea/storefront/shipping_view_model.rb
346
340
  - app/view_models/workarea/storefront/taxon_lookup.rb
@@ -430,7 +424,6 @@ files:
430
424
  - app/views/workarea/storefront/recent_views/narrow.html.haml
431
425
  - app/views/workarea/storefront/recent_views/show.html.haml
432
426
  - app/views/workarea/storefront/recommendations/show.html.haml
433
- - app/views/workarea/storefront/searches/index.json.jbuilder
434
427
  - app/views/workarea/storefront/searches/no_results.html.haml
435
428
  - app/views/workarea/storefront/searches/show.html.haml
436
429
  - app/views/workarea/storefront/shared/_address_fields.html.haml
@@ -476,7 +469,6 @@ files:
476
469
  - app/views/workarea/storefront/style_guides/components/_text_box.html.haml
477
470
  - app/views/workarea/storefront/style_guides/components/_text_button.html.haml
478
471
  - app/views/workarea/storefront/style_guides/components/_text_content_block.html.haml
479
- - app/views/workarea/storefront/style_guides/components/_ui_autocomplete.html.haml
480
472
  - app/views/workarea/storefront/style_guides/components/_ui_dialog.html.haml
481
473
  - app/views/workarea/storefront/style_guides/components/_ui_dialog_image.html.haml
482
474
  - app/views/workarea/storefront/style_guides/components/_ui_helper_hidden_accessible.html.haml
@@ -575,13 +567,13 @@ files:
575
567
  - test/dummy/public/422.html
576
568
  - test/dummy/public/500.html
577
569
  - test/dummy/public/favicon.ico
578
- - test/dummy/tmp/screenshots/.keep
579
570
  - test/helpers/workarea/storefront/application_helper_test.rb
580
571
  - test/helpers/workarea/storefront/content_helper_test.rb
581
572
  - test/helpers/workarea/storefront/credit_cards_helper_test.rb
582
573
  - test/helpers/workarea/storefront/navigation_helper_test.rb
583
574
  - test/helpers/workarea/storefront/pagination_helper_test.rb
584
575
  - test/helpers/workarea/storefront/products_helper_test.rb
576
+ - test/helpers/workarea/storefront/schema_org_helper_test.rb
585
577
  - test/integration/workarea/storefront/accounts_integration_test.rb
586
578
  - test/integration/workarea/storefront/analytics_integration_test.rb
587
579
  - test/integration/workarea/storefront/browse_images_integration_test.rb
@@ -595,6 +587,7 @@ files:
595
587
  - test/integration/workarea/storefront/content_blocks_integration_test.rb
596
588
  - test/integration/workarea/storefront/current_checkout_integration_test.rb
597
589
  - test/integration/workarea/storefront/current_user_integration_test.rb
590
+ - test/integration/workarea/storefront/downloads_integration_test.rb
598
591
  - test/integration/workarea/storefront/email_signups_integration_test.rb
599
592
  - test/integration/workarea/storefront/errors_integration_test.rb
600
593
  - test/integration/workarea/storefront/favicons_integration_test.rb
@@ -611,7 +604,11 @@ files:
611
604
  - test/integration/workarea/storefront/place_order_integration_test.rb
612
605
  - test/integration/workarea/storefront/placing_order_integration_test.rb
613
606
  - test/integration/workarea/storefront/products_integration_test.rb
607
+ - test/integration/workarea/storefront/recent_views_integration_test.rb
608
+ - test/integration/workarea/storefront/releases_integration_test.rb
614
609
  - test/integration/workarea/storefront/search_integration_test.rb
610
+ - test/integration/workarea/storefront/segment_overrides_integration_test.rb
611
+ - test/integration/workarea/storefront/segments_integration_test.rb
615
612
  - test/integration/workarea/storefront/store_credit_integration_test.rb
616
613
  - test/integration/workarea/storefront/users/addresses_integration_test.rb
617
614
  - test/integration/workarea/storefront/users/credit_cards_integration_test.rb
@@ -663,6 +660,7 @@ files:
663
660
  - test/system/workarea/storefront/digital_products_system_test.rb
664
661
  - test/system/workarea/storefront/discounting_multiple_system_test.rb
665
662
  - test/system/workarea/storefront/discounting_system_test.rb
663
+ - test/system/workarea/storefront/download_system_test.rb
666
664
  - test/system/workarea/storefront/email_signup_system_test.rb
667
665
  - test/system/workarea/storefront/fulfillment_system_test.rb
668
666
  - test/system/workarea/storefront/guest_checkout_system_test.rb
@@ -679,6 +677,7 @@ files:
679
677
  - test/system/workarea/storefront/recommendations_system_test.rb
680
678
  - test/system/workarea/storefront/release_browsing_system_test.rb
681
679
  - test/system/workarea/storefront/search_system_test.rb
680
+ - test/system/workarea/storefront/segment_overrides_system_test.rb
682
681
  - test/system/workarea/storefront/sitemap_system_test.rb
683
682
  - test/system/workarea/storefront/store_credit_system_test.rb
684
683
  - test/system/workarea/storefront/style_guides_system_test.rb
@@ -711,7 +710,6 @@ files:
711
710
  - test/view_models/workarea/storefront/product_view_model_test.rb
712
711
  - test/view_models/workarea/storefront/recommendations_view_model_test.rb
713
712
  - test/view_models/workarea/storefront/refund_view_model_test.rb
714
- - test/view_models/workarea/storefront/search_suggestion_view_model_test.rb
715
713
  - test/view_models/workarea/storefront/search_view_model_test.rb
716
714
  - test/view_models/workarea/storefront/shipping_view_model_test.rb
717
715
  - test/view_models/workarea/storefront/user_activity_view_model_test.rb
@@ -732,11 +730,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
732
730
  version: '0'
733
731
  required_rubygems_version: !ruby/object:Gem::Requirement
734
732
  requirements:
735
- - - ">="
733
+ - - ">"
736
734
  - !ruby/object:Gem::Version
737
- version: '0'
735
+ version: 1.3.1
738
736
  requirements: []
739
- rubygems_version: 3.2.3
737
+ rubygems_version: 3.0.6
740
738
  signing_key:
741
739
  specification_version: 4
742
740
  summary: Storefront for the Workarea Commerce Platform
@@ -1,25 +0,0 @@
1
- /**
2
- * @namespace WORKAREA.recentViews
3
- */
4
- WORKAREA.registerModule('recentViews', (function () {
5
- 'use strict';
6
-
7
- var updateRecentViews = function (index, element) {
8
- var data = JSON.parse($(element).attr('content'));
9
-
10
- $.post(WORKAREA.routes.storefront.recentViewsPath(), data);
11
- },
12
-
13
- /**
14
- * @method
15
- * @name init
16
- * @memberof WORKAREA.recentViews
17
- */
18
- init = function ($scope) {
19
- $('meta[property="recent-view"]', $scope).each(updateRecentViews);
20
- };
21
-
22
- return {
23
- init: init
24
- };
25
- }()));
@@ -1,59 +0,0 @@
1
- /**
2
- * @namespace WORKAREA.searchFields
3
- */
4
- WORKAREA.registerModule('searchFields', (function () {
5
- 'use strict';
6
-
7
- var getSource = function (request, response) {
8
- var endpoint = WORKAREA.routes.storefront.searchesPath();
9
-
10
- $.getJSON(endpoint, { q: request.term }, function (data) {
11
- response(data.results);
12
- });
13
- },
14
-
15
- openSelected = function (event, ui) {
16
- if (ui.item.type === "Products") {
17
- WORKAREA.analytics.fireCallback(
18
- 'productClick',
19
- ui.item.analytics
20
- );
21
- }
22
-
23
- if (WORKAREA.analytics.domEventsDisabled()) { return; }
24
- window.location = ui.item.url;
25
- },
26
-
27
- /**
28
- * iOS touch devices treat touch events as mouseenter unless there is no
29
- * change in the UI, like a menu-selected state. By unbinding the
30
- * mouseenter event we force those devices to treat the touch event as a
31
- * click. This prevents the user having to tap twice to open a search
32
- * autocomplete result.
33
- */
34
- openOnTouchDevices = function () {
35
- $('.ui-autocomplete').off('mouseenter');
36
- },
37
-
38
- getConfig = function () {
39
- return _.assign({}, WORKAREA.config.searchFieldsAutocomplete, {
40
- source: getSource,
41
- select: openSelected,
42
- open: openOnTouchDevices
43
- });
44
- },
45
-
46
- /**
47
- * @method
48
- * @name init
49
- * @memberof WORKAREA.searchFields
50
- */
51
- init = function ($scope) {
52
- $('[data-search-field]', $scope)
53
- .categorizedAutocomplete(getConfig());
54
- };
55
-
56
- return {
57
- init: init
58
- };
59
- }()));