spree_admin 5.4.0.rc4 → 5.4.0.rc4.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 +4 -4
- data/app/controllers/spree/admin/products_controller.rb +2 -0
- data/app/helpers/spree/admin/json_preview_helper.rb +1 -1
- data/app/helpers/spree/admin/metafields_helper.rb +1 -1
- data/app/helpers/spree/admin/translations_helper.rb +1 -1
- data/app/views/spree/admin/metafields/edit.html.erb +1 -1
- data/app/views/spree/admin/preferences/_password_field.html.erb +1 -1
- data/app/views/spree/admin/price_lists/index.html.erb +10 -0
- data/app/views/spree/admin/translations/edit.html.erb +2 -2
- data/config/locales/en.yml +10 -13
- 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: 155efe978034445f003e603c616a55745cb7d3e465ed4e1e6fe0f2ee7066cff4
|
|
4
|
+
data.tar.gz: 78cd7484369236dbb81525b341e80fe245083c7b4e85f35a1feb3b10d3fdd30e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eefd3828d29707d5f46cf287241adbe931f29957a84e19f12d0bb74a62b262ddf381bccdb6c05cb0f3f4608a951b11ed90304ddf9fe118cbee857bf9d3983b1e
|
|
7
|
+
data.tar.gz: 3a4f00885e5a492bb1247d9655b1a50d3626afccc09d7f489866634a422139b93e10f2c212fb2dee7959033a9200afa88636f348db767111d8fba763c182641e
|
|
@@ -95,6 +95,7 @@ module Spree
|
|
|
95
95
|
|
|
96
96
|
def bulk_status_update
|
|
97
97
|
bulk_collection.update_all(status: params[:status], updated_at: Time.current)
|
|
98
|
+
bulk_collection.each(&:enqueue_search_index) # reindex products
|
|
98
99
|
invoke_callbacks(:bulk_status_update, :after)
|
|
99
100
|
|
|
100
101
|
handle_bulk_operation_response
|
|
@@ -238,6 +239,7 @@ module Spree
|
|
|
238
239
|
|
|
239
240
|
def after_bulk_tags_change
|
|
240
241
|
Spree::Product.bulk_auto_match_taxons(current_store, bulk_collection.ids)
|
|
242
|
+
bulk_collection.each(&:enqueue_search_index) # reindex products
|
|
241
243
|
end
|
|
242
244
|
|
|
243
245
|
def variant_stock_includes
|
|
@@ -12,7 +12,7 @@ module Spree
|
|
|
12
12
|
link_to_with_icon(
|
|
13
13
|
'code',
|
|
14
14
|
Spree.t('admin.show_json'),
|
|
15
|
-
spree.admin_json_preview_resource_path(record.
|
|
15
|
+
spree.admin_json_preview_resource_path(record.to_param, resource_type: record.class.to_s),
|
|
16
16
|
options
|
|
17
17
|
)
|
|
18
18
|
end
|
|
@@ -10,7 +10,7 @@ module Spree
|
|
|
10
10
|
options[:class] ||= 'dropdown-item'
|
|
11
11
|
options[:data] ||= { action: 'drawer#open', turbo_frame: :drawer }
|
|
12
12
|
|
|
13
|
-
link_to_with_icon 'edit', Spree.t(:metafields), spree.edit_admin_metafield_path(record.
|
|
13
|
+
link_to_with_icon 'edit', Spree.t(:metafields), spree.edit_admin_metafield_path(record.to_param, resource_type: record.class.name), options
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def metafield_definition_resource_types
|
|
@@ -12,7 +12,7 @@ module Spree
|
|
|
12
12
|
link_to_with_icon(
|
|
13
13
|
'language',
|
|
14
14
|
Spree.t(:translations),
|
|
15
|
-
spree.edit_admin_translation_path(resource.
|
|
15
|
+
spree.edit_admin_translation_path(resource.to_param, resource_type: resource.class.to_s),
|
|
16
16
|
options
|
|
17
17
|
)
|
|
18
18
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%= turbo_frame_tag :drawer do %>
|
|
2
2
|
<%= drawer_header(Spree.t(:metafields)) %>
|
|
3
3
|
<% if @metafields.present? %>
|
|
4
|
-
<%= form_for @object, url: spree.admin_metafield_path(@object.
|
|
4
|
+
<%= form_for @object, url: spree.admin_metafield_path(@object.to_param, resource_type: model_class.to_s), method: :put do |f| %>
|
|
5
5
|
<div class="drawer-body">
|
|
6
6
|
<%= f.fields_for :metafields, @metafields do |metafield_form| %>
|
|
7
7
|
<%= metafield_form.hidden_field :id %>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div data-replace-target="from">
|
|
4
4
|
<div readonly class="input-group bg-gray-25 border border-gray-100">
|
|
5
5
|
<span class="text-gray-600 py-2 grow pl-2">
|
|
6
|
-
<%=
|
|
6
|
+
<%= 16.times do %>• <% end %>
|
|
7
7
|
<%= form.object.send(field)&.last(4) %>
|
|
8
8
|
</span>
|
|
9
9
|
<button class="btn btn-sm btn-light mr-1" type="button" data-action="click->replace#replace">
|
|
@@ -7,6 +7,16 @@
|
|
|
7
7
|
<%= link_to_with_icon 'plus', Spree.t(:new_price_list), new_object_url, class: 'btn btn-primary' if can?(:create, Spree::PriceList) %>
|
|
8
8
|
<% end %>
|
|
9
9
|
|
|
10
|
+
<% content_for :page_alerts do %>
|
|
11
|
+
<div class="alert alert-info">
|
|
12
|
+
Price lists are a powerful tool for managing pricing strategies based on customer groups, products, or other criteria.
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
|
15
|
+
|
|
10
16
|
<%= render_admin_partials(:price_lists_header_partials) %>
|
|
11
17
|
|
|
12
18
|
<%= render_table @collection, :price_lists, sortable: true %>
|
|
19
|
+
|
|
20
|
+
<p class="documentation-link-container">
|
|
21
|
+
<%= external_link_to "Learn more about price lists", "https://spreecommerce.org/docs/user/manage-products/price-lists" %>
|
|
22
|
+
</p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%= turbo_frame_tag :drawer do %>
|
|
2
2
|
<%= drawer_header(Spree.t(:translations)) %>
|
|
3
3
|
<% if @locales.any? %>
|
|
4
|
-
<%= form_for @object, url: spree.admin_translation_path(@object.
|
|
4
|
+
<%= form_for @object, url: spree.admin_translation_path(@object.to_param, resource_type: model_class.to_s), method: :put do |f| %>
|
|
5
5
|
<div class="drawer-body">
|
|
6
6
|
<ul class="nav nav-pills mb-3">
|
|
7
7
|
<% @locales.each do |locale| %>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<p class="text-center mb-3"><%= Spree.t('admin.translations.no_translations_configured') %></p>
|
|
33
33
|
|
|
34
34
|
<% if can?(:edit, current_store) %>
|
|
35
|
-
<%= link_to_with_icon '
|
|
35
|
+
<%= link_to_with_icon 'world', Spree.t('admin.translations.manage_markets'), spree.edit_admin_store_path(section: 'general-settings'), class: 'btn btn-primary', data: { 'turbo-frame': '_top' } %>
|
|
36
36
|
<% end %>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
data/config/locales/en.yml
CHANGED
|
@@ -52,19 +52,16 @@ en:
|
|
|
52
52
|
products:
|
|
53
53
|
body:
|
|
54
54
|
add_tags: 'Select tags to add to the products:'
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
remove_from_taxons: 'Select which taxons to remove the products from:'
|
|
55
|
+
add_to_taxons: 'Select which categories to add the products to:'
|
|
56
|
+
remove_from_taxons: 'Select which categories to remove the products from:'
|
|
58
57
|
remove_tags: 'Select tags to remove from the products:'
|
|
59
58
|
set_active: Setting products to active will make those products available on the storefront.
|
|
60
59
|
set_archived: Setting products to archived will hide them from storefront.
|
|
61
60
|
set_draft: Setting products to draft will hide them from storefront.
|
|
62
61
|
title:
|
|
63
62
|
add_tags: Add tags
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
remove_from_brand: Remove from brand
|
|
67
|
-
remove_from_taxons: Remove from taxons
|
|
63
|
+
add_to_taxons: Add to categories
|
|
64
|
+
remove_from_taxons: Remove from categories
|
|
68
65
|
remove_tags: Remove tags
|
|
69
66
|
set_active: Set as Active
|
|
70
67
|
set_archived: Set as Archived
|
|
@@ -149,7 +146,7 @@ en:
|
|
|
149
146
|
manage_currencies: Manage Currencies
|
|
150
147
|
manage_properties: Manage Properties
|
|
151
148
|
manage_stock_locations: Manage Stock Locations
|
|
152
|
-
manage_taxons: Manage
|
|
149
|
+
manage_taxons: Manage Categories
|
|
153
150
|
manage_zones: Manage Zones
|
|
154
151
|
markets:
|
|
155
152
|
edit: Edit Market
|
|
@@ -227,7 +224,7 @@ en:
|
|
|
227
224
|
not_set: Not set
|
|
228
225
|
separated: Separated
|
|
229
226
|
show_more_button: Show explore category button
|
|
230
|
-
show_taxon_image: Show
|
|
227
|
+
show_taxon_image: Show category image
|
|
231
228
|
text_color: Text color
|
|
232
229
|
title: Title
|
|
233
230
|
top_padding: Top padding
|
|
@@ -362,15 +359,15 @@ en:
|
|
|
362
359
|
on_sale: On sale
|
|
363
360
|
products_must_match: 'Products must match:'
|
|
364
361
|
tag: Product tag
|
|
365
|
-
taxon_type:
|
|
362
|
+
taxon_type: Category type
|
|
366
363
|
taxon_types:
|
|
367
364
|
automatic: Automatic
|
|
368
|
-
automatic_info: Automatically add products to this
|
|
365
|
+
automatic_info: Automatically add products to this category if they match the rules you set.
|
|
369
366
|
manual: Manual
|
|
370
367
|
manual_info: Curate products manually. You can add or remove them in bulk.
|
|
371
368
|
translations:
|
|
372
|
-
|
|
373
|
-
no_translations_configured: No translations configured. Please
|
|
369
|
+
manage_markets: Manage Markets
|
|
370
|
+
no_translations_configured: No translations configured. Please setup Markets to use translations.
|
|
374
371
|
upload_new_asset: Upload new asset
|
|
375
372
|
user:
|
|
376
373
|
last_order_placed: Last order placed
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.4.0.rc4
|
|
4
|
+
version: 5.4.0.rc4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vendo Connect Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 5.4.0.rc4
|
|
19
|
+
version: 5.4.0.rc4.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: 5.4.0.rc4
|
|
26
|
+
version: 5.4.0.rc4.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: active_link_to
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1170,9 +1170,9 @@ licenses:
|
|
|
1170
1170
|
- BSD-3-Clause
|
|
1171
1171
|
metadata:
|
|
1172
1172
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
1173
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.rc4
|
|
1173
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.rc4.1
|
|
1174
1174
|
documentation_uri: https://docs.spreecommerce.org/
|
|
1175
|
-
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.rc4
|
|
1175
|
+
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.rc4.1
|
|
1176
1176
|
post_install_message:
|
|
1177
1177
|
rdoc_options: []
|
|
1178
1178
|
require_paths:
|