workarea-save_for_later 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc.json +35 -0
  3. data/.github/workflows/ci.yml +60 -0
  4. data/.gitignore +1 -2
  5. data/.rubocop.yml +3 -0
  6. data/.stylelintrc.json +8 -0
  7. data/CHANGELOG.md +23 -4
  8. data/Gemfile +2 -9
  9. data/README.md +47 -1
  10. data/app/assets/javscripts/workarea/storefront/save_for_later/modules/saved_list_analytics.js +31 -0
  11. data/app/controllers/workarea/admin/reports_controller.decorator +10 -0
  12. data/app/controllers/workarea/storefront/analytics_controller.decorator +17 -0
  13. data/app/controllers/workarea/storefront/current_saved_list.rb +1 -1
  14. data/app/helpers/workarea/storefront/saved_lists_helper.rb +11 -3
  15. data/app/models/workarea/insights/most_saved_products.rb +32 -0
  16. data/app/models/workarea/metrics/product_by_day.decorator +10 -0
  17. data/app/models/workarea/saved_list.rb +12 -2
  18. data/app/queries/workarea/order_metrics.decorator +26 -0
  19. data/app/queries/workarea/reports/save_for_later_products.rb +51 -0
  20. data/app/view_models/workarea/admin/dashboards/reports_view_model.decorator +11 -0
  21. data/app/view_models/workarea/admin/reports/save_for_later_products_view_model.rb +20 -0
  22. data/app/view_models/workarea/storefront/saved_list_view_model.rb +0 -1
  23. data/app/views/workarea/admin/dashboards/_save_for_later_products_card.html.haml +17 -0
  24. data/app/views/workarea/admin/insights/_most_saved_products.html.haml +22 -0
  25. data/app/views/workarea/admin/reports/save_for_later_products.html.haml +38 -0
  26. data/app/views/workarea/storefront/carts/_save_for_later_button.html.haml +1 -1
  27. data/app/views/workarea/storefront/carts/_saved_for_later.html.haml +4 -1
  28. data/app/workers/workarea/save_order_metrics.decorator +21 -0
  29. data/config/initializers/appends.rb +10 -0
  30. data/config/initializers/config.rb +5 -1
  31. data/config/locales/en.yml +21 -0
  32. data/config/routes.rb +11 -0
  33. data/lib/workarea/save_for_later/version.rb +1 -1
  34. data/package.json +9 -0
  35. data/test/integration/workarea/storefront/current_saved_list_integration_test.rb +1 -1
  36. data/test/models/workarea/insights/most_saved_products_test.rb +63 -0
  37. data/test/queries/workarea/reports/save_for_later_products_test.rb +122 -0
  38. data/test/queries/workarea/save_for_later_order_metrics_test.rb +48 -0
  39. data/test/system/workarea/admin/save_for_later_products_report_system_test.rb +44 -0
  40. data/test/system/workarea/storefront/save_for_later_system_test.rb +1 -1
  41. data/test/system/workarea/storefront/saved_list_analytics_system_test.rb +76 -0
  42. data/workarea-save_for_later.gemspec +1 -3
  43. data/yarn.lock +3265 -0
  44. metadata +33 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-save_for_later
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Duffy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.x
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.4.x
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: 3.x
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.4.x
27
33
  description: Workarea Commerce plugin for saving items from cart for later
28
34
  email:
29
35
  - mduffy@weblinc.com
@@ -32,10 +38,14 @@ extensions: []
32
38
  extra_rdoc_files: []
33
39
  files:
34
40
  - ".editorconfig"
41
+ - ".eslintrc.json"
35
42
  - ".github/ISSUE_TEMPLATE/bug_report.md"
36
43
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
37
44
  - ".github/ISSUE_TEMPLATE/feature_request.md"
45
+ - ".github/workflows/ci.yml"
38
46
  - ".gitignore"
47
+ - ".rubocop.yml"
48
+ - ".stylelintrc.json"
39
49
  - CHANGELOG.md
40
50
  - CODE_OF_CONDUCT.md
41
51
  - CONTRIBUTING.md
@@ -43,18 +53,31 @@ files:
43
53
  - LICENSE
44
54
  - README.md
45
55
  - Rakefile
56
+ - app/assets/javscripts/workarea/storefront/save_for_later/modules/saved_list_analytics.js
46
57
  - app/assets/stylesheets/workarea/storefront/save_for_later/components/_product_prices.scss
58
+ - app/controllers/workarea/admin/reports_controller.decorator
59
+ - app/controllers/workarea/storefront/analytics_controller.decorator
47
60
  - app/controllers/workarea/storefront/cart_items_controller.decorator
48
61
  - app/controllers/workarea/storefront/current_saved_list.rb
49
62
  - app/controllers/workarea/storefront/saved_list_items_controller.rb
50
63
  - app/helpers/.keep
51
64
  - app/helpers/workarea/storefront/saved_lists_helper.rb
65
+ - app/models/workarea/insights/most_saved_products.rb
66
+ - app/models/workarea/metrics/product_by_day.decorator
52
67
  - app/models/workarea/saved_list.rb
53
68
  - app/models/workarea/saved_list/item.rb
69
+ - app/queries/workarea/order_metrics.decorator
70
+ - app/queries/workarea/reports/save_for_later_products.rb
71
+ - app/view_models/workarea/admin/dashboards/reports_view_model.decorator
72
+ - app/view_models/workarea/admin/reports/save_for_later_products_view_model.rb
54
73
  - app/view_models/workarea/storefront/saved_list_item_view_model.rb
55
74
  - app/view_models/workarea/storefront/saved_list_view_model.rb
75
+ - app/views/workarea/admin/dashboards/_save_for_later_products_card.html.haml
76
+ - app/views/workarea/admin/insights/_most_saved_products.html.haml
77
+ - app/views/workarea/admin/reports/save_for_later_products.html.haml
56
78
  - app/views/workarea/storefront/carts/_save_for_later_button.html.haml
57
79
  - app/views/workarea/storefront/carts/_saved_for_later.html.haml
80
+ - app/workers/workarea/save_order_metrics.decorator
58
81
  - bin/rails
59
82
  - config/initializers/appends.rb
60
83
  - config/initializers/config.rb
@@ -63,6 +86,7 @@ files:
63
86
  - lib/workarea/save_for_later.rb
64
87
  - lib/workarea/save_for_later/engine.rb
65
88
  - lib/workarea/save_for_later/version.rb
89
+ - package.json
66
90
  - test/dummy/.ruby-version
67
91
  - test/dummy/Rakefile
68
92
  - test/dummy/app/assets/config/manifest.js
@@ -115,11 +139,17 @@ files:
115
139
  - test/integration/workarea/storefront/cart_items_save_for_later_integration_test.rb
116
140
  - test/integration/workarea/storefront/current_saved_list_integration_test.rb
117
141
  - test/integration/workarea/storefront/saved_list_items_integration_test.rb
142
+ - test/models/workarea/insights/most_saved_products_test.rb
118
143
  - test/models/workarea/saved_list_test.rb
144
+ - test/queries/workarea/reports/save_for_later_products_test.rb
145
+ - test/queries/workarea/save_for_later_order_metrics_test.rb
146
+ - test/system/workarea/admin/save_for_later_products_report_system_test.rb
119
147
  - test/system/workarea/storefront/save_for_later_system_test.rb
148
+ - test/system/workarea/storefront/saved_list_analytics_system_test.rb
120
149
  - test/teaspoon_env.rb
121
150
  - test/test_helper.rb
122
151
  - workarea-save_for_later.gemspec
152
+ - yarn.lock
123
153
  homepage: https://github.com/workarea-commerce/workarea-save-for-later
124
154
  licenses:
125
155
  - Business Software License
@@ -139,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
169
  - !ruby/object:Gem::Version
140
170
  version: '0'
141
171
  requirements: []
142
- rubygems_version: 3.0.4
172
+ rubygems_version: 3.0.6
143
173
  signing_key:
144
174
  specification_version: 4
145
175
  summary: Workarea Commerce plugin for saving items from cart for later