workarea-nvy_theme 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b0cfc51aa68943a262519076c0bec65dae7d24c3e97090bbfbb5cd017ec980d
4
- data.tar.gz: fa525363ac9f7f676735b3f950973f9d6ea93bed97fa85318c5a9a24bab54a50
3
+ metadata.gz: e25b8b9fdd3d69e263b41dcf08acb06cd570b5262e5b2d0745ce3a42387c8858
4
+ data.tar.gz: ab1f76d5b6b294c0a5646830e34bb18bdee8167b3644ae20e4184632803fbf36
5
5
  SHA512:
6
- metadata.gz: 20a63228d992f17fe47d166609d82c10ef60534910774938d0a9c4412eda2267024c2c35cd455fabaefd1e9f5912dbec18dedd72cc7dc76cc433895ae57dff37
7
- data.tar.gz: d06b8872df9d4bf4ea947990f1fa610b5fe4ffd7d0384a8902106faa3c29aeea0465d186d0797d7bc33543a5b7dd7bc09944d5f60b133ccbf475e8d9259fa2f9
6
+ metadata.gz: 6d37859481790fb476aa7157bd1b44cbe4b83bcd4aa4c016fe74dfdb27b05fd38966f414ed37ee6270dc3824555748750c670343ac414b6c57e4c59a57abe93e
7
+ data.tar.gz: 07013ce3e8c2c1ef9a98f79fef05e20aa8b5441c6a73aa7871671b5a72d617b9da8bfa75a0c72c7d48db80741690dbaecb22a529b94ffd476435129792c3c1d9
@@ -58,3 +58,8 @@ jobs:
58
58
  - uses: workarea-commerce/ci/test@v1
59
59
  with:
60
60
  command: bin/rails app:workarea:test:plugins
61
+ - uses: actions/upload-artifact@v2
62
+ if: ${{ failure() }}
63
+ with:
64
+ name: screenshots
65
+ path: test/dummy/tmp/screenshots/
@@ -1,3 +1,46 @@
1
+ Workarea Nvy Theme 1.2.1 (2020-10-22)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Add missing styles causing bundle templates to display oddly
5
+
6
+ NVY-6
7
+
8
+ Matt Duffy
9
+
10
+ * Fix System Tests for Product Bundles
11
+
12
+ When installing the NVY theme with the `workarea-product_bundles`
13
+ plugin, the system tests for bundles fail because the UI in NVY is
14
+ slightly different.
15
+
16
+ NVY-6
17
+
18
+ Tom Scott
19
+
20
+ * Add Search Autocomplete
21
+
22
+ Depend on the the search autocomplete plugin and ensure that the
23
+ autocomplete popup looks cohesive with the rest of the theme.
24
+
25
+ NVY-4
26
+
27
+ Tom Scott
28
+
29
+ * Upgrade theme to be compatible with Workarea v3.5.0 and friends
30
+
31
+ Workarea v3.5.0 just came out. Holla at ya boi.
32
+
33
+ NVY-3
34
+
35
+ Curt Howard
36
+
37
+ * Update README
38
+
39
+
40
+ Matt Duffy
41
+
42
+
43
+
1
44
  Workarea Nvy Theme 1.1.4 (2019-08-22)
2
45
  --------------------------------------------------------------------------------
3
46
 
data/Gemfile CHANGED
@@ -15,3 +15,5 @@ gemspec
15
15
  # gem 'byebug', group: [:development, :test]
16
16
 
17
17
  gem 'workarea'
18
+ gem 'workarea-product_bundles',
19
+ github: 'workarea-commerce/workarea-product-bundles'
data/Rakefile CHANGED
@@ -34,13 +34,12 @@ desc "Release version #{Workarea::NvyTheme::VERSION} of the gem"
34
34
  task :release do
35
35
  host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
36
36
 
37
- #Rake::Task['workarea:changelog'].execute
38
- #system 'git add CHANGELOG.md'
39
- #system 'git commit -m "Update CHANGELOG"'
40
- #system 'git push origin HEAD'
37
+ Rake::Task['workarea:changelog'].execute
38
+ system 'git add CHANGELOG.md'
39
+ system 'git commit -m "Update CHANGELOG"'
41
40
 
42
41
  system "git tag -a v#{Workarea::NvyTheme::VERSION} -m 'Tagging #{Workarea::NvyTheme::VERSION}'"
43
- system 'git push --tags'
42
+ system 'git push origin HEAD --follow-tags'
44
43
 
45
44
  system "gem build workarea-nvy_theme.gemspec"
46
45
  system "gem push workarea-nvy_theme-#{Workarea::NvyTheme::VERSION}.gem"
@@ -0,0 +1,36 @@
1
+ /*------------------------------------*\
2
+ #SEARCH AUTOCOMPLETE FOR NVY
3
+ \*------------------------------------*/
4
+
5
+ $search-autocomplete-product-name-font-size: $heading-6-font-size !default;
6
+ $search-autocomplete-heading-font-face: $secondary-font-family !default;
7
+ $search-autocomplete-heading-font-size: $heading-4-font-size !default;
8
+ $search-autocomplete-heading-font-weight: bold !default;
9
+ $search-autocomplete-popular-searches-font-size: $heading-5-font-size !default;
10
+
11
+ /**
12
+ * 1. Reduce font size of product summaries in the autocomplete.
13
+ */
14
+ .search-autocomplete {
15
+ .product-summary__name {
16
+ font-size: $search-autocomplete-product-name-font-size;
17
+ }
18
+ }
19
+
20
+ /**
21
+ * 2. Increase font size of autocomplete headings and ensure they use
22
+ * a more appropriate font for the theme.
23
+ */
24
+
25
+ .search-autocomplete__heading {
26
+ font-family: $search-autocomplete-heading-font-face;
27
+ font-size: $search-autocomplete-heading-font-size;
28
+ font-weight: $search-autocomplete-heading-font-weight;
29
+ }
30
+
31
+ /**
32
+ * 3. Increase visibility of search results on the left.
33
+ */
34
+ .search-autocomplete__searches {
35
+ font-size: $search-autocomplete-popular-searches-font-size;
36
+ }
@@ -2,6 +2,11 @@
2
2
  #PRODUCT-DETAILS
3
3
  \*------------------------------------*/
4
4
 
5
+ $product-details-primary-image-max-width: 472px !default;
6
+ $product-details-primary-image-ratio: $product-image-ratio !default;
7
+
8
+ $product-details-alt-image-selected-outline-color: $highlight-color !default;
9
+
5
10
  $product-details-info-max-width: 480px !default;
6
11
  $product-details-id-color: $product-id-color !default;
7
12
 
@@ -80,3 +85,34 @@ $product-details-add-to-cart-margin-medium: ($spacing-unit * 7) !default;
80
85
  display: block;
81
86
  }
82
87
  }
88
+
89
+ /**
90
+ * 1. provides positioning context for loading indicator
91
+ */
92
+ .product-details__primary-image {
93
+ position: relative; /* [1] */
94
+ max-width: $product-details-primary-image-max-width;
95
+ }
96
+
97
+ .product-details__primary-image-link {
98
+ display: block;
99
+ padding: 0 0 ((1 / $product-details-primary-image-ratio) * 100%);
100
+ height: 0;
101
+ vertical-align: top;
102
+ }
103
+
104
+ .product-details__primary-image-link-image {}
105
+
106
+
107
+ .product-details__alt-images {}
108
+
109
+ .product-details__alt-image {}
110
+
111
+ .product-details__alt-image-link {
112
+ display: inline-block;
113
+ }
114
+
115
+ .product-details__alt-image-link--selected {
116
+ cursor: default;
117
+ outline: 1px solid $product-details-alt-image-selected-outline-color;
118
+ }
@@ -19,7 +19,8 @@ module Workarea
19
19
  "workarea/storefront/components/overlay",
20
20
  "workarea/storefront/components/recommendations",
21
21
  "workarea/storefront/components/product_media",
22
- "workarea/storefront/components/validation_icon"
22
+ "workarea/storefront/components/validation_icon",
23
+ "workarea/storefront/components/nvy_search_autocomplete"
23
24
  )
24
25
 
25
26
  Plugin.append_javascripts(
@@ -7,6 +7,7 @@ require "workarea/blog"
7
7
  require "workarea/gift_cards"
8
8
  require "workarea/product_quickview"
9
9
  require "workarea/reviews"
10
+ require "workarea/search_autocomplete"
10
11
  require "workarea/share"
11
12
  require "workarea/swatches"
12
13
  require "workarea/styled_selects"
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module NvyTheme
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.2.1'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,74 @@
1
+ module Workarea
2
+ module Storefront
3
+ if Plugin.installed? :product_bundles
4
+ decorate CategoriesWithPackagesSystemTest, with: :nvy do
5
+ def test_basic_category_setup
6
+ category = create_category
7
+ categorize_products(category)
8
+
9
+ visit storefront.category_path(category)
10
+
11
+ assert_text('Integration Product 1')
12
+ assert_text('Integration Product 2')
13
+ assert_text('Integration Package Product 1')
14
+ assert_text('$10.00')
15
+ assert_text('$5.00')
16
+ assert_text("Medium\n3")
17
+ assert_text("Small\n2")
18
+ end
19
+
20
+ def test_filtering_products
21
+ category = create_category
22
+ categorize_products(category)
23
+
24
+ visit storefront.category_path(category)
25
+
26
+ Capybara.match = :first
27
+ click_link '$10.00 - $19.99'
28
+
29
+ assert(page.has_content?('Integration Product 1'))
30
+ assert(page.has_no_content?('Integration Product 2'))
31
+ assert(page.has_content?('Integration Package Product 1'))
32
+
33
+ click_link '$10.00 - $19.99 (remove)'
34
+
35
+ assert(page.has_content?('Integration Product 1'))
36
+ assert(page.has_content?('Integration Product 2'))
37
+ assert(page.has_content?('Integration Package Product 1'))
38
+
39
+ click_link 'Extra Large'
40
+
41
+ assert(page.has_content?('Integration Package Product 1'))
42
+ assert(page.has_no_content?('Integration Product 1'))
43
+ assert(page.has_no_content?('Integration Product 2'))
44
+
45
+ click_link 'Extra Large (remove)'
46
+
47
+ assert(page.has_content?('Integration Product 1'))
48
+ assert(page.has_content?('Integration Product 2'))
49
+ assert(page.has_content?('Integration Package Product 1'))
50
+ end
51
+
52
+ def test_product_filtering_and_sorting
53
+ category = create_category
54
+ categorize_products(category)
55
+
56
+ visit storefront.category_path(category)
57
+
58
+ Capybara.match = :first
59
+ click_link '$10.00 - $19.99'
60
+
61
+ assert(page.has_content?('Integration Product 1'))
62
+ assert(page.has_no_content?('Integration Product 2'))
63
+ assert(page.has_content?('Integration Package Product 1'))
64
+
65
+ select('Price, Low to High', from: 'sort_top')
66
+
67
+ assert(page.has_content?('Integration Product 1'))
68
+ assert(page.has_no_content?('Integration Product 2'))
69
+ assert(page.has_content?('Integration Package Product 1'))
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_dependency 'workarea-gift_cards', '>= 4.0.0'
25
25
  s.add_dependency 'workarea-product_quickview', '>= 2.0.2'
26
26
  s.add_dependency 'workarea-reviews', '>= 3.1.0'
27
+ s.add_dependency 'workarea-search_autocomplete', '>= 1.0.0'
27
28
  s.add_dependency 'workarea-share', '>= 1.3.0'
28
29
  s.add_dependency 'workarea-swatches', '>= 1.0.5'
29
30
  s.add_dependency 'workarea-styled_selects', '>= 1.1.2'
data/yarn.lock CHANGED
@@ -184,9 +184,9 @@ acorn-jsx@^5.0.0:
184
184
  integrity sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw==
185
185
 
186
186
  acorn@^6.0.7:
187
- version "6.3.0"
188
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e"
189
- integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==
187
+ version "6.4.1"
188
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474"
189
+ integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==
190
190
 
191
191
  ajv@^6.10.2, ajv@^6.9.1:
192
192
  version "6.10.2"
@@ -1773,9 +1773,9 @@ locate-path@^2.0.0:
1773
1773
  path-exists "^3.0.0"
1774
1774
 
1775
1775
  lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
1776
- version "4.17.15"
1777
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
1778
- integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
1776
+ version "4.17.19"
1777
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
1778
+ integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
1779
1779
 
1780
1780
  log-symbols@^2.2.0:
1781
1781
  version "2.2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-nvy_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Curt Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-06 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: workarea-search_autocomplete
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: workarea-share
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -308,6 +322,7 @@ files:
308
322
  - app/assets/stylesheets/workarea/storefront/components/_login.scss
309
323
  - app/assets/stylesheets/workarea/storefront/components/_mobile_filters_nav.scss
310
324
  - app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss
325
+ - app/assets/stylesheets/workarea/storefront/components/_nvy_search_autocomplete.scss
311
326
  - app/assets/stylesheets/workarea/storefront/components/_option_button.scss
312
327
  - app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss
313
328
  - app/assets/stylesheets/workarea/storefront/components/_overlay.scss
@@ -511,10 +526,10 @@ files:
511
526
  - test/dummy/db/seeds.rb
512
527
  - test/dummy/lib/assets/.keep
513
528
  - test/dummy/log/.keep
514
- - test/helpers/workarea/storefront/reviews_helper_test.decorator
515
529
  - test/system/workarea/admin/guest_browsing_system_test.decorator
516
530
  - test/system/workarea/storefront/analytics_system_test.decorator
517
531
  - test/system/workarea/storefront/categories_system_test.decorator
532
+ - test/system/workarea/storefront/categories_with_packages_system_test.decorator
518
533
  - test/system/workarea/storefront/login_system_test.decorator
519
534
  - test/system/workarea/storefront/navigation_system_test.decorator
520
535
  - test/system/workarea/storefront/pagination_system_test.decorator
@@ -545,7 +560,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
545
560
  - !ruby/object:Gem::Version
546
561
  version: '0'
547
562
  requirements: []
548
- rubygems_version: 3.0.6
563
+ rubygems_version: 3.0.3
549
564
  signing_key:
550
565
  specification_version: 4
551
566
  summary: Nvy Theme is an apparel focused theme for the Workarea ecommerce platform
@@ -1,9 +0,0 @@
1
- module Workarea
2
- decorate Storefront::ReviewsHelperTest, with: 'nvy_theme' do
3
- def test_rating_stars_displays_correct_rating
4
- assert_match(/1 out of 5 stars/, rating_stars(1))
5
- assert_match(/2\.5 out of 5 stars/, rating_stars(2.5))
6
- assert_match(/4\.25 out of 5 stars/, rating_stars(4.251))
7
- end
8
- end
9
- end