workarea-admin 3.5.13 → 3.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/view_models/workarea/admin/code_list_view_model.rb +1 -1
- data/app/views/workarea/admin/create_segments/setup.html.haml +2 -0
- data/app/views/workarea/admin/facets/_applied.html.haml +1 -1
- data/app/views/workarea/admin/pricing_discount_code_lists/_cards.html.haml +1 -1
- data/app/views/workarea/admin/pricing_discount_code_lists/promo_codes.html.haml +1 -1
- data/app/views/workarea/admin/releases/show.html.haml +5 -1
- data/config/locales/en.yml +1 -0
- data/test/view_models/workarea/admin/code_list_view_model_test.rb +5 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c201b646f5e3ae657185dd5f6085a1ee0840a91409b3c000e18de951b72ddcbc
|
4
|
+
data.tar.gz: 31905444ac47e6974b7e0da312c5eaca3e998aa72d5bba2048491bb121daf2de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c75eb4586fe1a23e65098ddb89a11531ef98c75e8ded5721efc22195717cbf619f4b0d234c70ad5b5d779e808b2f2303fb14a4c9daa35dd3f11644ac5c67a42
|
7
|
+
data.tar.gz: d22da0aff0303e6302f2755d0e6c3c141da6d8498930ebd713ebf484e37fe0490548151da3fbbb65f814d903149145791c3a433156ef78149c677832092973cd
|
@@ -10,6 +10,8 @@
|
|
10
10
|
= render_message 'error', message
|
11
11
|
|
12
12
|
= form_tag create_segments_path, method: 'post' do
|
13
|
+
= hidden_field_tag :id, @segment.id unless @segment.new_record?
|
14
|
+
|
13
15
|
.section
|
14
16
|
.property.property--required
|
15
17
|
= label_tag 'segment_name', t('workarea.admin.fields.name'), class: 'property__name'
|
@@ -10,7 +10,7 @@
|
|
10
10
|
- @search.facet_selections.each do |facet, values|
|
11
11
|
- values.each do |value|
|
12
12
|
%li.browsing-controls__applied-filter
|
13
|
-
%span= value
|
13
|
+
%span= facet_value_display_name(facet, value)
|
14
14
|
= link_to facet_path(facet, value), class: 'browsing-controls__applied-remove-link' do
|
15
15
|
= inline_svg('workarea/admin/icons/close.svg', class: 'browsing-controls__applied-icon svg-icon svg-icon--small svg-icon--black', title: t('workarea.admin.facets.applied.remove_filter'))
|
16
16
|
|
@@ -45,7 +45,7 @@
|
|
45
45
|
.grid
|
46
46
|
.grid__cell.grid__cell--50
|
47
47
|
.align-center
|
48
|
-
%h2.heading.heading--no-margin= model.count
|
48
|
+
%h2.heading.heading--no-margin= model.promo_codes.count
|
49
49
|
%p #{t('workarea.admin.pricing_discount_code_lists.cards.promo_codes.total')}
|
50
50
|
.grid__cell.grid__cell--50
|
51
51
|
.align-center
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
.view__container.view__container--narrow
|
19
19
|
= render_cards_for(@code_list, :promo_codes)
|
20
|
-
%p.align-center= t('workarea.admin.pricing_discount_code_lists.promo_code', count: @code_list.count)
|
20
|
+
%p.align-center= t('workarea.admin.pricing_discount_code_lists.promo_code', count: @code_list.promo_codes.count)
|
21
21
|
|
22
22
|
%table
|
23
23
|
%thead
|
@@ -32,7 +32,11 @@
|
|
32
32
|
|
33
33
|
- else
|
34
34
|
.grid__cell
|
35
|
-
- if
|
35
|
+
- if @release.published? && !@release.scheduled?
|
36
|
+
= link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), '#cannot-preview-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update'
|
37
|
+
#cannot-preview-info.tooltip-content
|
38
|
+
%p= t('workarea.admin.releases.show.unscheduled_republish_preview_info')
|
39
|
+
- elsif current_release.try(:id) == @release.id
|
36
40
|
= link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), storefront.root_path, class: 'workflow-bar__button workflow-bar__button--update'
|
37
41
|
- else
|
38
42
|
= form_tag release_session_path, method: :post do
|
data/config/locales/en.yml
CHANGED
@@ -3189,6 +3189,7 @@ en:
|
|
3189
3189
|
start_preview_in_storefront: Start preview in storefront
|
3190
3190
|
undo: Undo
|
3191
3191
|
visit_storefront_to_preview: Preview
|
3192
|
+
unscheduled_republish_preview_info: This release is already published, you'll need to schedule it again to preview its changes.
|
3192
3193
|
no_changes_to_preview: There are no changes to preview. Click on the Plan Changes card to start!
|
3193
3194
|
no_changes_to_publish: There are no changes to publish for this release. Click on the Plan Changes card to start!
|
3194
3195
|
no_changes_to_undo: There are no changes to undo for this release. Click on the Plan Changes card to start!
|
@@ -21,6 +21,11 @@ module Workarea
|
|
21
21
|
|
22
22
|
view_model = CodeListViewModel.wrap(code_list)
|
23
23
|
assert_equal(1, view_model.used_count)
|
24
|
+
|
25
|
+
code_list.promo_codes.create!(code: "#{code_list.prefix}123")
|
26
|
+
|
27
|
+
view_model = CodeListViewModel.wrap(code_list)
|
28
|
+
assert_equal(1, view_model.used_count)
|
24
29
|
end
|
25
30
|
|
26
31
|
def test_last_used_at
|
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.5.
|
4
|
+
version: 3.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-25 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.5.
|
19
|
+
version: 3.5.14
|
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.5.
|
26
|
+
version: 3.5.14
|
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.5.
|
33
|
+
version: 3.5.14
|
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.5.
|
40
|
+
version: 3.5.14
|
41
41
|
description: Provides site administration functionality for the Workarea Commerce
|
42
42
|
Platform.
|
43
43
|
email:
|