solidus_admin 0.3.1 → 0.4.0
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/.prettierrc +4 -0
- data/app/assets/builds/solidus_admin/tailwind.css +164 -132
- data/app/components/solidus_admin/adjustment_reasons/edit/component.html.erb +2 -3
- data/app/components/solidus_admin/adjustment_reasons/edit/component.rb +1 -9
- data/app/components/solidus_admin/adjustment_reasons/index/component.rb +22 -8
- data/app/components/solidus_admin/adjustment_reasons/new/component.html.erb +2 -4
- data/app/components/solidus_admin/adjustment_reasons/new/component.rb +1 -9
- data/app/components/solidus_admin/base_component.rb +7 -9
- data/app/components/solidus_admin/layout/navigation/account/component.rb +2 -2
- data/app/components/solidus_admin/layout/navigation/component.js +1 -1
- data/app/components/solidus_admin/layout/navigation/component.rb +1 -1
- data/app/components/solidus_admin/layout/navigation/item/component.html.erb +2 -2
- data/app/components/solidus_admin/layout/navigation/item/component.rb +3 -6
- data/app/components/solidus_admin/orders/index/component.rb +3 -3
- data/app/components/solidus_admin/orders/show/address/component.js +2 -2
- data/app/components/solidus_admin/orders/show/adjustments/index/adjustable/component.rb +1 -1
- data/app/components/solidus_admin/orders/show/adjustments/index/source/component.rb +1 -1
- data/app/components/solidus_admin/orders/show/component.js +2 -2
- data/app/components/solidus_admin/orders/show/customer_search/component.js +5 -4
- data/app/components/solidus_admin/orders/show/summary/component.html.erb +6 -6
- data/app/components/solidus_admin/products/show/component.html.erb +7 -1
- data/app/components/solidus_admin/products/show/component.rb +6 -0
- data/app/components/solidus_admin/products/status/component.rb +1 -1
- data/app/components/solidus_admin/properties/edit/component.html.erb +16 -0
- data/app/components/solidus_admin/properties/edit/component.rb +4 -0
- data/app/components/solidus_admin/properties/edit/component.yml +4 -0
- data/app/components/solidus_admin/properties/index/component.rb +19 -6
- data/app/components/solidus_admin/properties/new/component.html.erb +16 -0
- data/app/components/solidus_admin/properties/new/component.rb +4 -0
- data/app/components/solidus_admin/properties/new/component.yml +4 -0
- data/app/components/solidus_admin/refund_reasons/edit/component.html.erb +2 -3
- data/app/components/solidus_admin/refund_reasons/edit/component.rb +1 -9
- data/app/components/solidus_admin/refund_reasons/index/component.rb +22 -8
- data/app/components/solidus_admin/refund_reasons/new/component.html.erb +2 -4
- data/app/components/solidus_admin/refund_reasons/new/component.rb +1 -9
- data/app/components/solidus_admin/resources/base_component.rb +20 -0
- data/app/components/solidus_admin/resources/edit/component.rb +11 -0
- data/app/components/solidus_admin/resources/new/component.rb +11 -0
- data/app/components/solidus_admin/return_reasons/edit/component.html.erb +2 -3
- data/app/components/solidus_admin/return_reasons/edit/component.rb +1 -9
- data/app/components/solidus_admin/return_reasons/index/component.rb +13 -7
- data/app/components/solidus_admin/return_reasons/new/component.html.erb +2 -4
- data/app/components/solidus_admin/return_reasons/new/component.rb +1 -9
- data/app/components/solidus_admin/roles/edit/component.html.erb +2 -4
- data/app/components/solidus_admin/roles/edit/component.rb +1 -10
- data/app/components/solidus_admin/roles/index/component.rb +16 -8
- data/app/components/solidus_admin/roles/new/component.html.erb +2 -4
- data/app/components/solidus_admin/roles/new/component.rb +1 -10
- data/app/components/solidus_admin/shipping_categories/edit/component.html.erb +2 -3
- data/app/components/solidus_admin/shipping_categories/edit/component.rb +1 -9
- data/app/components/solidus_admin/shipping_categories/index/component.rb +14 -17
- data/app/components/solidus_admin/shipping_categories/new/component.html.erb +2 -4
- data/app/components/solidus_admin/shipping_categories/new/component.rb +1 -9
- data/app/components/solidus_admin/stock_items/edit/component.html.erb +74 -73
- data/app/components/solidus_admin/stock_items/edit/component.js +4 -3
- data/app/components/solidus_admin/stock_items/edit/component.rb +1 -10
- data/app/components/solidus_admin/stock_items/index/component.rb +10 -6
- data/app/components/solidus_admin/stock_locations/index/component.rb +2 -2
- data/app/components/solidus_admin/store_credit_reasons/edit/component.html.erb +2 -3
- data/app/components/solidus_admin/store_credit_reasons/edit/component.rb +1 -9
- data/app/components/solidus_admin/store_credit_reasons/index/component.rb +14 -7
- data/app/components/solidus_admin/store_credit_reasons/new/component.html.erb +2 -4
- data/app/components/solidus_admin/store_credit_reasons/new/component.rb +1 -9
- data/app/components/solidus_admin/tax_categories/edit/component.html.erb +2 -4
- data/app/components/solidus_admin/tax_categories/edit/component.rb +1 -9
- data/app/components/solidus_admin/tax_categories/index/component.rb +30 -9
- data/app/components/solidus_admin/tax_categories/new/component.html.erb +2 -4
- data/app/components/solidus_admin/tax_categories/new/component.rb +1 -9
- data/app/components/solidus_admin/ui/dropdown/component.js +3 -3
- data/app/components/solidus_admin/ui/forms/address/component.js +5 -6
- data/app/components/solidus_admin/ui/forms/field/component.rb +18 -18
- data/app/components/solidus_admin/ui/forms/input/component.js +3 -4
- data/app/components/solidus_admin/ui/forms/input/component.rb +15 -4
- data/app/components/solidus_admin/ui/icon/component.rb +3 -1
- data/app/components/solidus_admin/ui/modal/component.js +2 -2
- data/app/components/solidus_admin/ui/pages/index/component.html.erb +3 -3
- data/app/components/solidus_admin/ui/pages/index/component.rb +11 -6
- data/app/components/solidus_admin/ui/table/component.html.erb +4 -3
- data/app/components/solidus_admin/ui/table/component.js +13 -17
- data/app/components/solidus_admin/ui/table/component.rb +1 -1
- data/app/components/solidus_admin/ui/table/ransack_filter/component.js +18 -16
- data/app/components/solidus_admin/ui/thumbnail_with_caption/component.rb +1 -1
- data/app/components/solidus_admin/ui/toast/component.html.erb +1 -1
- data/app/components/solidus_admin/ui/toast/component.js +3 -3
- data/app/components/solidus_admin/ui/toggletip/component.js +14 -12
- data/app/components/solidus_admin/users/index/component.rb +1 -1
- data/app/components/solidus_admin/users/orders/component.rb +1 -1
- data/app/components/solidus_admin/users/store_credits/edit_amount/component.html.erb +22 -0
- data/app/components/solidus_admin/users/store_credits/edit_amount/component.rb +22 -0
- data/app/components/solidus_admin/users/store_credits/edit_amount/component.yml +5 -0
- data/app/components/solidus_admin/users/store_credits/edit_memo/component.html.erb +15 -0
- data/app/components/solidus_admin/users/store_credits/edit_memo/component.rb +16 -0
- data/app/components/solidus_admin/users/store_credits/edit_memo/component.yml +4 -0
- data/app/components/solidus_admin/users/store_credits/edit_validity/component.html.erb +21 -0
- data/app/components/solidus_admin/users/store_credits/edit_validity/component.rb +22 -0
- data/app/components/solidus_admin/users/store_credits/edit_validity/component.yml +5 -0
- data/app/components/solidus_admin/users/store_credits/index/component.html.erb +65 -0
- data/app/components/solidus_admin/users/store_credits/index/component.rb +114 -0
- data/app/components/solidus_admin/users/store_credits/index/component.yml +12 -0
- data/app/components/solidus_admin/users/store_credits/new/component.html.erb +30 -0
- data/app/components/solidus_admin/users/store_credits/new/component.rb +22 -0
- data/app/components/solidus_admin/users/store_credits/new/component.yml +5 -0
- data/app/components/solidus_admin/users/store_credits/show/component.html.erb +83 -0
- data/app/components/solidus_admin/users/store_credits/show/component.rb +120 -0
- data/app/components/solidus_admin/users/store_credits/show/component.yml +18 -0
- data/app/controllers/solidus_admin/adjustment_reasons_controller.rb +3 -105
- data/app/controllers/solidus_admin/authentication_adapters/backend.rb +1 -1
- data/app/controllers/solidus_admin/base_controller.rb +12 -1
- data/app/controllers/solidus_admin/controller_helpers/search.rb +4 -4
- data/app/controllers/solidus_admin/properties_controller.rb +6 -24
- data/app/controllers/solidus_admin/refund_reasons_controller.rb +5 -105
- data/app/controllers/solidus_admin/resources_controller.rb +152 -0
- data/app/controllers/solidus_admin/return_reasons_controller.rb +4 -104
- data/app/controllers/solidus_admin/roles_controller.rb +3 -105
- data/app/controllers/solidus_admin/shipping_categories_controller.rb +3 -107
- data/app/controllers/solidus_admin/stock_items_controller.rb +12 -29
- data/app/controllers/solidus_admin/store_credit_reasons_controller.rb +5 -105
- data/app/controllers/solidus_admin/store_credits_controller.rb +231 -0
- data/app/controllers/solidus_admin/tax_categories_controller.rb +3 -109
- data/app/helpers/solidus_admin/void_elements_helper.rb +13 -0
- data/app/views/layouts/solidus_admin/application.html.erb +3 -0
- data/config/locales/menu_item.en.yml +0 -1
- data/config/locales/properties.en.yml +4 -0
- data/config/locales/store_credits.en.yml +16 -0
- data/config/routes.rb +12 -1
- data/lib/generators/solidus_admin/install/install_generator.rb +2 -0
- data/lib/solidus_admin/component_registry.rb +1 -1
- data/lib/solidus_admin/configuration.rb +3 -8
- data/lib/solidus_admin/engine.rb +6 -0
- data/lib/solidus_admin/install_tailwindcss.rb +1 -1
- data/lib/solidus_admin/testing_support/component_helpers.rb +3 -9
- data/lib/solidus_admin/testing_support/feature_helpers.rb +1 -1
- data/lib/solidus_admin/testing_support/shared_examples/bulk_delete_resources.rb +20 -0
- data/lib/solidus_admin/testing_support/shared_examples/crud_resource_requests.rb +138 -0
- data/lib/solidus_admin/testing_support/shared_examples/promotion_categories_features.rb +72 -0
- data/lib/solidus_admin/version.rb +1 -1
- data/solidus_admin.gemspec +2 -2
- metadata +39 -8
- data/bin/rails +0 -13
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.shared_examples_for 'CRUD resource requests' do |resource_name|
|
|
4
|
+
let(:admin_user) { create(:admin_user) }
|
|
5
|
+
let(:resource) { create(factory) }
|
|
6
|
+
|
|
7
|
+
# Overridables
|
|
8
|
+
let(:factory) { resource_name.to_sym }
|
|
9
|
+
let(:url_helpers) { solidus_admin }
|
|
10
|
+
|
|
11
|
+
before do
|
|
12
|
+
allow_any_instance_of(SolidusAdmin::BaseController).to receive(:spree_current_user).and_return(admin_user)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
describe "GET /index" do
|
|
16
|
+
it "renders the index template with a 200 OK status" do
|
|
17
|
+
get url_helpers.public_send("#{resource_name.pluralize}_path")
|
|
18
|
+
expect(response).to have_http_status(:ok)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
describe "GET /new" do
|
|
23
|
+
it "renders the new template with a 200 OK status" do
|
|
24
|
+
get url_helpers.public_send("new_#{resource_name}_path")
|
|
25
|
+
expect(response).to have_http_status(:ok)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "POST /create" do
|
|
30
|
+
context "with valid parameters" do
|
|
31
|
+
it "creates a new #{resource_name.humanize}" do
|
|
32
|
+
expect {
|
|
33
|
+
post url_helpers.public_send("#{resource_name.pluralize}_path"), params: { resource_name => valid_attributes }
|
|
34
|
+
}.to change(resource_class, :count).by(1)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it "redirects to the index page with a 303 See Other status" do
|
|
38
|
+
post url_helpers.public_send("#{resource_name.pluralize}_path"), params: { resource_name => valid_attributes }
|
|
39
|
+
expect(response).to redirect_to(url_helpers.public_send("#{resource_name.pluralize}_path"))
|
|
40
|
+
expect(response).to have_http_status(:see_other)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it "displays a success flash message" do
|
|
44
|
+
post url_helpers.public_send("#{resource_name.pluralize}_path"), params: { resource_name => valid_attributes }
|
|
45
|
+
follow_redirect!
|
|
46
|
+
expect(response.body).to include("#{resource_name.humanize} was successfully created.")
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
context "with invalid parameters" do
|
|
51
|
+
let(:invalid_attributes) { { name: "", code: "", active: true } }
|
|
52
|
+
|
|
53
|
+
it "does not create a new #{resource_name.humanize}" do
|
|
54
|
+
expect {
|
|
55
|
+
post url_helpers.public_send("#{resource_name.pluralize}_path"), params: { resource_name => invalid_attributes }
|
|
56
|
+
}.not_to change(resource_class, :count)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it "renders the new template with unprocessable_entity status" do
|
|
60
|
+
post url_helpers.public_send("#{resource_name.pluralize}_path"), params: { resource_name => invalid_attributes }
|
|
61
|
+
expect(response).to have_http_status(:unprocessable_entity)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe "GET /edit" do
|
|
67
|
+
it "renders the edit template with a 200 OK status" do
|
|
68
|
+
get url_helpers.public_send("edit_#{resource_name}_path", resource)
|
|
69
|
+
expect(response).to have_http_status(:ok)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
describe "PATCH /update" do
|
|
74
|
+
context "with valid parameters" do
|
|
75
|
+
it "updates the #{resource_name.humanize}" do
|
|
76
|
+
patch url_helpers.public_send("#{resource_name}_path", resource), params: { resource_name => valid_attributes }
|
|
77
|
+
resource.reload
|
|
78
|
+
valid_attributes.each do |attr, value|
|
|
79
|
+
expect(resource.public_send(attr)).to eq(value)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
it "redirects to the index page with a 303 See Other status" do
|
|
84
|
+
patch url_helpers.public_send("#{resource_name}_path", resource), params: { resource_name => valid_attributes }
|
|
85
|
+
expect(response).to redirect_to(url_helpers.public_send("#{resource_name.pluralize}_path"))
|
|
86
|
+
expect(response).to have_http_status(:see_other)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
it "displays a success flash message" do
|
|
90
|
+
patch url_helpers.public_send("#{resource_name}_path", resource), params: { resource_name => valid_attributes }
|
|
91
|
+
follow_redirect!
|
|
92
|
+
expect(response.body).to include("#{resource_name.humanize} was successfully updated.")
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
context "with invalid parameters" do
|
|
97
|
+
it "does not update the #{resource_name.humanize}" do
|
|
98
|
+
expect {
|
|
99
|
+
patch url_helpers.public_send("#{resource_name}_path", resource), params: { resource_name => invalid_attributes }
|
|
100
|
+
}.not_to change { resource.reload }
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
it "renders the edit template with unprocessable_entity status" do
|
|
104
|
+
patch url_helpers.public_send("#{resource_name}_path", resource), params: { resource_name => invalid_attributes }
|
|
105
|
+
expect(response).to have_http_status(:unprocessable_entity)
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
describe "DELETE /destroy" do
|
|
111
|
+
it "deletes the #{resource_name.humanize} and redirects to the index page with a 303 See Other status" do
|
|
112
|
+
# This ensures resource exists prior to deletion.
|
|
113
|
+
resource
|
|
114
|
+
expect {
|
|
115
|
+
delete url_helpers.public_send("#{resource_name}_path", resource)
|
|
116
|
+
}.to change(resource_class, :count).by(-1)
|
|
117
|
+
|
|
118
|
+
expect(response).to redirect_to(url_helpers.public_send("#{resource_name.pluralize}_path"))
|
|
119
|
+
expect(response).to have_http_status(:see_other)
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
it "displays a success flash message after deletion" do
|
|
123
|
+
delete url_helpers.public_send("#{resource_name}_path", resource)
|
|
124
|
+
follow_redirect!
|
|
125
|
+
expect(response.body).to include("#{resource_name.humanize.pluralize} were successfully removed.")
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
it 'allows to bulk delete resources' do
|
|
129
|
+
ids = [create(factory), create(factory)].map(&:id)
|
|
130
|
+
expect {
|
|
131
|
+
delete url_helpers.public_send("#{resource_name.pluralize}_path", id: ids)
|
|
132
|
+
}.to change { resource_class.count }.by(-ids.size)
|
|
133
|
+
|
|
134
|
+
expect(response).to redirect_to(url_helpers.public_send("#{resource_name.pluralize}_path"))
|
|
135
|
+
expect(response).to have_http_status(:see_other)
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'solidus_admin/testing_support/shared_examples/bulk_delete_resources'
|
|
4
|
+
|
|
5
|
+
RSpec.shared_examples_for 'promotion categories features' do
|
|
6
|
+
before { sign_in create(:admin_user, email: "admin@example.com") }
|
|
7
|
+
|
|
8
|
+
it "lists promotion categories" do
|
|
9
|
+
create(factory_name, name: "test1", code: "code1")
|
|
10
|
+
create(factory_name, name: "test2", code: "code2")
|
|
11
|
+
|
|
12
|
+
visit index_path
|
|
13
|
+
expect(page).to have_content("test1")
|
|
14
|
+
expect(page).to have_content("test2")
|
|
15
|
+
|
|
16
|
+
expect(page).to be_axe_clean
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it 'allows to create new promo category' do
|
|
20
|
+
visit index_path
|
|
21
|
+
|
|
22
|
+
click_on "Add new"
|
|
23
|
+
expect(turbo_frame_modal).to have_content("New Promotion Category")
|
|
24
|
+
|
|
25
|
+
fill_in "Code", with: "ste.1"
|
|
26
|
+
click_on "Add Promotion Category"
|
|
27
|
+
|
|
28
|
+
expect(turbo_frame_modal).to have_content("can't be blank")
|
|
29
|
+
|
|
30
|
+
fill_in "Name", with: "Soon to expire"
|
|
31
|
+
click_on "Add Promotion Category"
|
|
32
|
+
|
|
33
|
+
expect(page).to have_content("Promotion category was successfully created.")
|
|
34
|
+
expect(page).to have_content("Soon to expire")
|
|
35
|
+
expect(page).to have_content("ste.1")
|
|
36
|
+
expect(model_class.count).to eq(1)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it 'allows to update promo category' do
|
|
40
|
+
create(factory_name, name: "Soon to expire", code: "ste.1")
|
|
41
|
+
|
|
42
|
+
visit index_path
|
|
43
|
+
|
|
44
|
+
click_on "Soon to expire"
|
|
45
|
+
expect(turbo_frame_modal).to have_content("Edit Promotion Category")
|
|
46
|
+
|
|
47
|
+
fill_in "Name", with: "Expired"
|
|
48
|
+
fill_in "Code", with: "exp.2"
|
|
49
|
+
click_on "Update Promotion Category"
|
|
50
|
+
|
|
51
|
+
expect(page).to have_content("Promotion category was successfully updated.")
|
|
52
|
+
expect(page).to have_content("Expired")
|
|
53
|
+
expect(page).to have_content("exp.2")
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
it 'allows to delete promo category' do
|
|
57
|
+
create(factory_name, name: "Soon to expire", code: "ste.1")
|
|
58
|
+
create(factory_name, name: "Expired", code: "exp.2")
|
|
59
|
+
|
|
60
|
+
visit index_path
|
|
61
|
+
|
|
62
|
+
select_row("Expired")
|
|
63
|
+
click_on "Delete"
|
|
64
|
+
expect(page).to have_content("Promotion categories were successfully removed.")
|
|
65
|
+
expect(page).not_to have_content("Expired")
|
|
66
|
+
expect(model_class.count).to eq(1)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
include_examples 'feature: bulk delete resources' do
|
|
70
|
+
let(:resource_factory) { factory_name }
|
|
71
|
+
end
|
|
72
|
+
end
|
data/solidus_admin.gemspec
CHANGED
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
|
|
|
22
22
|
s.metadata["changelog_uri"] = "https://github.com/solidusio/solidus/releases?q=%22solidus_admin%2Fv0%22&expanded=true"
|
|
23
23
|
|
|
24
24
|
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
25
|
-
f.match(%r{^(spec|
|
|
25
|
+
f.match(%r{^(spec|bin)/})
|
|
26
26
|
end + ["app/assets/builds/solidus_admin/tailwind.css"]
|
|
27
27
|
|
|
28
|
-
s.required_ruby_version = '>= 3.
|
|
28
|
+
s.required_ruby_version = '>= 3.1.0'
|
|
29
29
|
s.required_rubygems_version = '>= 1.8.23'
|
|
30
30
|
|
|
31
31
|
s.add_dependency 'geared_pagination', '~> 1.1'
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Solidus Team
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-02-21 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: geared_pagination
|
|
@@ -121,6 +120,7 @@ extensions: []
|
|
|
121
120
|
extra_rdoc_files: []
|
|
122
121
|
files:
|
|
123
122
|
- ".eslintrc.json"
|
|
123
|
+
- ".prettierrc"
|
|
124
124
|
- LICENSE
|
|
125
125
|
- README.md
|
|
126
126
|
- Rakefile
|
|
@@ -211,7 +211,13 @@ files:
|
|
|
211
211
|
- app/components/solidus_admin/products/status/component.yml
|
|
212
212
|
- app/components/solidus_admin/products/stock/component.rb
|
|
213
213
|
- app/components/solidus_admin/products/stock/component.yml
|
|
214
|
+
- app/components/solidus_admin/properties/edit/component.html.erb
|
|
215
|
+
- app/components/solidus_admin/properties/edit/component.rb
|
|
216
|
+
- app/components/solidus_admin/properties/edit/component.yml
|
|
214
217
|
- app/components/solidus_admin/properties/index/component.rb
|
|
218
|
+
- app/components/solidus_admin/properties/new/component.html.erb
|
|
219
|
+
- app/components/solidus_admin/properties/new/component.rb
|
|
220
|
+
- app/components/solidus_admin/properties/new/component.yml
|
|
215
221
|
- app/components/solidus_admin/refund_reasons/edit/component.html.erb
|
|
216
222
|
- app/components/solidus_admin/refund_reasons/edit/component.rb
|
|
217
223
|
- app/components/solidus_admin/refund_reasons/edit/component.yml
|
|
@@ -222,6 +228,9 @@ files:
|
|
|
222
228
|
- app/components/solidus_admin/refunds_and_returns/component.rb
|
|
223
229
|
- app/components/solidus_admin/refunds_and_returns/component.yml
|
|
224
230
|
- app/components/solidus_admin/reimbursement_types/index/component.rb
|
|
231
|
+
- app/components/solidus_admin/resources/base_component.rb
|
|
232
|
+
- app/components/solidus_admin/resources/edit/component.rb
|
|
233
|
+
- app/components/solidus_admin/resources/new/component.rb
|
|
225
234
|
- app/components/solidus_admin/return_reasons/edit/component.html.erb
|
|
226
235
|
- app/components/solidus_admin/return_reasons/edit/component.rb
|
|
227
236
|
- app/components/solidus_admin/return_reasons/edit/component.yml
|
|
@@ -364,6 +373,24 @@ files:
|
|
|
364
373
|
- app/components/solidus_admin/users/stats/component.html.erb
|
|
365
374
|
- app/components/solidus_admin/users/stats/component.rb
|
|
366
375
|
- app/components/solidus_admin/users/stats/component.yml
|
|
376
|
+
- app/components/solidus_admin/users/store_credits/edit_amount/component.html.erb
|
|
377
|
+
- app/components/solidus_admin/users/store_credits/edit_amount/component.rb
|
|
378
|
+
- app/components/solidus_admin/users/store_credits/edit_amount/component.yml
|
|
379
|
+
- app/components/solidus_admin/users/store_credits/edit_memo/component.html.erb
|
|
380
|
+
- app/components/solidus_admin/users/store_credits/edit_memo/component.rb
|
|
381
|
+
- app/components/solidus_admin/users/store_credits/edit_memo/component.yml
|
|
382
|
+
- app/components/solidus_admin/users/store_credits/edit_validity/component.html.erb
|
|
383
|
+
- app/components/solidus_admin/users/store_credits/edit_validity/component.rb
|
|
384
|
+
- app/components/solidus_admin/users/store_credits/edit_validity/component.yml
|
|
385
|
+
- app/components/solidus_admin/users/store_credits/index/component.html.erb
|
|
386
|
+
- app/components/solidus_admin/users/store_credits/index/component.rb
|
|
387
|
+
- app/components/solidus_admin/users/store_credits/index/component.yml
|
|
388
|
+
- app/components/solidus_admin/users/store_credits/new/component.html.erb
|
|
389
|
+
- app/components/solidus_admin/users/store_credits/new/component.rb
|
|
390
|
+
- app/components/solidus_admin/users/store_credits/new/component.yml
|
|
391
|
+
- app/components/solidus_admin/users/store_credits/show/component.html.erb
|
|
392
|
+
- app/components/solidus_admin/users/store_credits/show/component.rb
|
|
393
|
+
- app/components/solidus_admin/users/store_credits/show/component.yml
|
|
367
394
|
- app/components/solidus_admin/users_and_roles/component.rb
|
|
368
395
|
- app/components/solidus_admin/users_and_roles/component.yml
|
|
369
396
|
- app/components/solidus_admin/zones/index/component.rb
|
|
@@ -388,6 +415,7 @@ files:
|
|
|
388
415
|
- app/controllers/solidus_admin/properties_controller.rb
|
|
389
416
|
- app/controllers/solidus_admin/refund_reasons_controller.rb
|
|
390
417
|
- app/controllers/solidus_admin/reimbursement_types_controller.rb
|
|
418
|
+
- app/controllers/solidus_admin/resources_controller.rb
|
|
391
419
|
- app/controllers/solidus_admin/return_reasons_controller.rb
|
|
392
420
|
- app/controllers/solidus_admin/roles_controller.rb
|
|
393
421
|
- app/controllers/solidus_admin/shipping_categories_controller.rb
|
|
@@ -395,6 +423,7 @@ files:
|
|
|
395
423
|
- app/controllers/solidus_admin/stock_items_controller.rb
|
|
396
424
|
- app/controllers/solidus_admin/stock_locations_controller.rb
|
|
397
425
|
- app/controllers/solidus_admin/store_credit_reasons_controller.rb
|
|
426
|
+
- app/controllers/solidus_admin/store_credits_controller.rb
|
|
398
427
|
- app/controllers/solidus_admin/stores_controller.rb
|
|
399
428
|
- app/controllers/solidus_admin/tax_categories_controller.rb
|
|
400
429
|
- app/controllers/solidus_admin/tax_rates_controller.rb
|
|
@@ -405,6 +434,7 @@ files:
|
|
|
405
434
|
- app/helpers/solidus_admin/last_login_helper.rb
|
|
406
435
|
- app/helpers/solidus_admin/layout_helper.rb
|
|
407
436
|
- app/helpers/solidus_admin/permission_sets_helper.rb
|
|
437
|
+
- app/helpers/solidus_admin/void_elements_helper.rb
|
|
408
438
|
- app/javascript/solidus_admin/application.js
|
|
409
439
|
- app/javascript/solidus_admin/controllers/application.js
|
|
410
440
|
- app/javascript/solidus_admin/controllers/components.js
|
|
@@ -418,7 +448,6 @@ files:
|
|
|
418
448
|
- app/views/layouts/solidus_admin/preview.html.erb
|
|
419
449
|
- app/views/solidus_admin/.keep
|
|
420
450
|
- app/views/solidus_admin/base/unauthorized.html.erb
|
|
421
|
-
- bin/rails
|
|
422
451
|
- config/importmap.rb
|
|
423
452
|
- config/initializers/view_component.rb
|
|
424
453
|
- config/locales/adjustment_reasons.en.yml
|
|
@@ -441,6 +470,7 @@ files:
|
|
|
441
470
|
- config/locales/stock_items.en.yml
|
|
442
471
|
- config/locales/stock_locations.en.yml
|
|
443
472
|
- config/locales/store_credit_reasons.en.yml
|
|
473
|
+
- config/locales/store_credits.en.yml
|
|
444
474
|
- config/locales/stores.en.yml
|
|
445
475
|
- config/locales/tax_categories.en.yml
|
|
446
476
|
- config/locales/tax_rates.en.yml
|
|
@@ -479,6 +509,9 @@ files:
|
|
|
479
509
|
- lib/solidus_admin/testing_support/component_helpers.rb
|
|
480
510
|
- lib/solidus_admin/testing_support/dummy_app/rake_tasks.rb
|
|
481
511
|
- lib/solidus_admin/testing_support/feature_helpers.rb
|
|
512
|
+
- lib/solidus_admin/testing_support/shared_examples/bulk_delete_resources.rb
|
|
513
|
+
- lib/solidus_admin/testing_support/shared_examples/crud_resource_requests.rb
|
|
514
|
+
- lib/solidus_admin/testing_support/shared_examples/promotion_categories_features.rb
|
|
482
515
|
- lib/solidus_admin/version.rb
|
|
483
516
|
- lib/tasks/importmap.rake
|
|
484
517
|
- lib/tasks/tailwind.rake
|
|
@@ -491,7 +524,6 @@ metadata:
|
|
|
491
524
|
homepage_uri: https://github.com/solidusio/solidus/blob/main/admin/README.md
|
|
492
525
|
source_code_uri: https://github.com/solidusio/solidus/tree/main/api
|
|
493
526
|
changelog_uri: https://github.com/solidusio/solidus/releases?q=%22solidus_admin%2Fv0%22&expanded=true
|
|
494
|
-
post_install_message:
|
|
495
527
|
rdoc_options: []
|
|
496
528
|
require_paths:
|
|
497
529
|
- lib
|
|
@@ -499,15 +531,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
499
531
|
requirements:
|
|
500
532
|
- - ">="
|
|
501
533
|
- !ruby/object:Gem::Version
|
|
502
|
-
version: 3.
|
|
534
|
+
version: 3.1.0
|
|
503
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
504
536
|
requirements:
|
|
505
537
|
- - ">="
|
|
506
538
|
- !ruby/object:Gem::Version
|
|
507
539
|
version: 1.8.23
|
|
508
540
|
requirements: []
|
|
509
|
-
rubygems_version: 3.
|
|
510
|
-
signing_key:
|
|
541
|
+
rubygems_version: 3.6.3
|
|
511
542
|
specification_version: 4
|
|
512
543
|
summary: Admin interface for the Solidus e-commerce framework.
|
|
513
544
|
test_files: []
|
data/bin/rails
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# This command will automatically be run when you run "rails" with Rails gems
|
|
3
|
-
# installed from the root of your application.
|
|
4
|
-
|
|
5
|
-
ENGINE_ROOT = File.expand_path('..', __dir__)
|
|
6
|
-
ENGINE_PATH = File.expand_path('../lib/solidus_admin/engine', __dir__)
|
|
7
|
-
|
|
8
|
-
# Set up gems listed in the Gemfile.
|
|
9
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __dir__)
|
|
10
|
-
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
|
11
|
-
|
|
12
|
-
require "rails/all"
|
|
13
|
-
require "rails/engine/commands"
|