solidus_backend 1.3.2 → 1.4.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_backend might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +38 -0
- data/app/assets/javascripts/spree/backend/components/tooltips.js +2 -0
- data/app/assets/javascripts/spree/backend/product_picker.js +2 -2
- data/app/assets/javascripts/spree/backend/routes.js +0 -1
- data/app/assets/javascripts/spree/backend/shipments.js +147 -118
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +16 -14
- data/app/assets/javascripts/spree/backend/templates/orders/customer_details/autocomplete.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/autocomplete.hbs.erb +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +25 -27
- data/app/assets/javascripts/spree/backend/user_picker.js +14 -8
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +3 -3
- data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +4 -0
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_hint.scss +3 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_progress.scss +5 -2
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +14 -5
- data/app/assets/stylesheets/spree/backend/components/_states.scss +1 -2
- data/app/assets/stylesheets/spree/backend/globals/_mixins.css +2 -0
- data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +22 -0
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +12 -3
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +25 -7
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +0 -1
- data/app/assets/stylesheets/spree/backend/sections/_transfer_items.scss +0 -1
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +4 -6
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +5 -2
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +36 -3
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +1 -3
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -2
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
- data/app/controllers/spree/admin/cancellations_controller.rb +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +0 -6
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +7 -0
- data/app/controllers/spree/admin/orders_controller.rb +1 -1
- data/app/controllers/spree/admin/payment_methods_controller.rb +8 -3
- data/app/controllers/spree/admin/payments_controller.rb +12 -5
- data/app/controllers/spree/admin/products_controller.rb +1 -1
- data/app/controllers/spree/admin/refunds_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
- data/app/controllers/spree/admin/root_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_items_controller.rb +0 -8
- data/app/controllers/spree/admin/stock_transfers_controller.rb +6 -6
- data/app/controllers/spree/admin/users_controller.rb +7 -3
- data/app/helpers/spree/admin/base_helper.rb +11 -0
- data/app/helpers/spree/admin/navigation_helper.rb +46 -3
- data/app/helpers/spree/admin/orders_helper.rb +0 -1
- data/app/helpers/spree/admin/stock_locations_helper.rb +1 -5
- data/app/models/spree/backend_configuration.rb +100 -0
- data/app/views/spree/admin/adjustment_reasons/edit.html.erb +4 -7
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +4 -4
- data/app/views/spree/admin/adjustment_reasons/new.html.erb +4 -4
- data/app/views/spree/admin/adjustments/edit.html.erb +4 -6
- data/app/views/spree/admin/adjustments/index.html.erb +3 -6
- data/app/views/spree/admin/adjustments/new.html.erb +5 -6
- data/app/views/spree/admin/cancellations/index.html.erb +4 -3
- data/app/views/spree/admin/countries/edit.html.erb +4 -6
- data/app/views/spree/admin/countries/index.html.erb +4 -4
- data/app/views/spree/admin/countries/new.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/edit.html.erb +4 -6
- data/app/views/spree/admin/customer_returns/index.html.erb +2 -5
- data/app/views/spree/admin/customer_returns/new.html.erb +5 -6
- data/app/views/spree/admin/general_settings/edit.html.erb +4 -28
- data/app/views/spree/admin/images/edit.html.erb +6 -2
- data/app/views/spree/admin/images/index.html.erb +3 -0
- data/app/views/spree/admin/images/new.html.erb +3 -3
- data/app/views/spree/admin/log_entries/index.html.erb +4 -8
- data/app/views/spree/admin/option_types/edit.html.erb +7 -9
- data/app/views/spree/admin/option_types/index.html.erb +4 -4
- data/app/views/spree/admin/orders/_shipment.html.erb +4 -1
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +4 -1
- data/app/views/spree/admin/orders/cart.html.erb +4 -8
- data/app/views/spree/admin/orders/confirm.html.erb +3 -4
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm_advance.html.erb +3 -4
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
- data/app/views/spree/admin/orders/customer_details/show.html.erb +3 -5
- data/app/views/spree/admin/orders/edit.html.erb +1 -8
- data/app/views/spree/admin/orders/index.html.erb +11 -5
- data/app/views/spree/admin/payment_methods/edit.html.erb +5 -7
- data/app/views/spree/admin/payment_methods/index.html.erb +6 -5
- data/app/views/spree/admin/payment_methods/new.html.erb +6 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/credit.html.erb +3 -3
- data/app/views/spree/admin/payments/index.html.erb +4 -7
- data/app/views/spree/admin/payments/new.html.erb +4 -5
- data/app/views/spree/admin/payments/show.html.erb +4 -7
- data/app/views/spree/admin/prices/_form.html.erb +1 -0
- data/app/views/spree/admin/prices/index.html.erb +2 -2
- data/app/views/spree/admin/product_properties/index.html.erb +3 -1
- data/app/views/spree/admin/products/_form.html.erb +11 -18
- data/app/views/spree/admin/products/_properties_form.erb +1 -1
- data/app/views/spree/admin/products/edit.html.erb +3 -2
- data/app/views/spree/admin/products/index.html.erb +19 -28
- data/app/views/spree/admin/products/new.html.erb +4 -2
- data/app/views/spree/admin/promotion_categories/edit.html.erb +4 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +4 -4
- data/app/views/spree/admin/promotion_categories/new.html.erb +4 -3
- data/app/views/spree/admin/promotion_rules/create.js.erb +1 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +3 -3
- data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/edit.html.erb +4 -5
- data/app/views/spree/admin/promotions/index.html.erb +3 -5
- data/app/views/spree/admin/promotions/new.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +2 -2
- data/app/views/spree/admin/properties/edit.html.erb +3 -6
- data/app/views/spree/admin/properties/index.html.erb +5 -5
- data/app/views/spree/admin/prototypes/_form.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +3 -6
- data/app/views/spree/admin/prototypes/index.html.erb +4 -4
- data/app/views/spree/admin/prototypes/show.html.erb +2 -2
- data/app/views/spree/admin/refund_reasons/edit.html.erb +4 -4
- data/app/views/spree/admin/refund_reasons/index.html.erb +5 -4
- data/app/views/spree/admin/refund_reasons/new.html.erb +5 -4
- data/app/views/spree/admin/refunds/edit.html.erb +5 -6
- data/app/views/spree/admin/refunds/new.html.erb +6 -6
- data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -3
- data/app/views/spree/admin/reimbursements/edit.html.erb +5 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +2 -4
- data/app/views/spree/admin/reimbursements/show.html.erb +3 -4
- data/app/views/spree/admin/reports/index.html.erb +2 -3
- data/app/views/spree/admin/reports/sales_total.html.erb +2 -4
- data/app/views/spree/admin/return_authorizations/edit.html.erb +15 -16
- data/app/views/spree/admin/return_authorizations/index.html.erb +3 -5
- data/app/views/spree/admin/return_authorizations/new.html.erb +5 -6
- data/app/views/spree/admin/return_reasons/edit.html.erb +3 -2
- data/app/views/spree/admin/return_reasons/index.html.erb +3 -1
- data/app/views/spree/admin/return_reasons/new.html.erb +4 -2
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +1 -8
- data/app/views/spree/admin/shared/_header.html.erb +8 -12
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_no_objects_found.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_submenu.html.erb +10 -10
- data/app/views/spree/admin/shared/_order_summary.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_payments_tabs.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_product_tabs.html.erb +8 -9
- data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -4
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +5 -5
- data/app/views/spree/admin/shared/_shipping_tabs.html.erb +4 -3
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/shared/_tabs.html.erb +12 -37
- data/app/views/spree/admin/shared/_taxes_tabs.html.erb +2 -2
- data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +5 -5
- data/app/views/spree/admin/shared/named_types/_index.html.erb +5 -4
- data/app/views/spree/admin/shared/named_types/_new.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_categories/index.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/new.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/_form.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/shipping_methods/new.html.erb +5 -6
- data/app/views/spree/admin/states/edit.html.erb +5 -6
- data/app/views/spree/admin/states/index.html.erb +5 -4
- data/app/views/spree/admin/states/new.html.erb +5 -3
- data/app/views/spree/admin/stock_items/index.html.erb +4 -7
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/edit.html.erb +5 -5
- data/app/views/spree/admin/stock_locations/index.html.erb +16 -9
- data/app/views/spree/admin/stock_locations/new.html.erb +5 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +3 -4
- data/app/views/spree/admin/stock_movements/new.html.erb +2 -3
- data/app/views/spree/admin/stock_transfers/_location.html.erb +7 -0
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/edit.html.erb +5 -6
- data/app/views/spree/admin/stock_transfers/index.html.erb +5 -5
- data/app/views/spree/admin/stock_transfers/new.html.erb +6 -8
- data/app/views/spree/admin/stock_transfers/receive.html.erb +4 -12
- data/app/views/spree/admin/stock_transfers/show.html.erb +6 -12
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +5 -13
- data/app/views/spree/admin/store_credits/edit_amount.html.erb +6 -4
- data/app/views/spree/admin/store_credits/edit_validity.html.erb +8 -6
- data/app/views/spree/admin/store_credits/index.html.erb +5 -5
- data/app/views/spree/admin/store_credits/new.html.erb +5 -4
- data/app/views/spree/admin/store_credits/show.html.erb +5 -4
- data/app/views/spree/admin/style_guide/topics/typography/_icons.html.erb +2 -2
- data/app/views/spree/admin/tax_categories/edit.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/new.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/edit.html.erb +5 -6
- data/app/views/spree/admin/tax_rates/index.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/new.html.erb +5 -6
- data/app/views/spree/admin/taxonomies/edit.erb +7 -9
- data/app/views/spree/admin/taxonomies/index.html.erb +4 -4
- data/app/views/spree/admin/taxonomies/new.html.erb +5 -7
- data/app/views/spree/admin/taxons/edit.html.erb +5 -6
- data/app/views/spree/admin/taxons/index.html.erb +2 -3
- data/app/views/spree/admin/trackers/edit.html.erb +5 -6
- data/app/views/spree/admin/trackers/index.html.erb +4 -4
- data/app/views/spree/admin/trackers/new.html.erb +4 -6
- data/app/views/spree/admin/users/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_tabs.html.erb +5 -5
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -4
- data/app/views/spree/admin/users/addresses.html.erb +5 -4
- data/app/views/spree/admin/users/edit.html.erb +6 -6
- data/app/views/spree/admin/users/index.html.erb +4 -5
- data/app/views/spree/admin/users/items.html.erb +4 -3
- data/app/views/spree/admin/users/new.html.erb +2 -9
- data/app/views/spree/admin/users/orders.html.erb +4 -3
- data/app/views/spree/admin/variants/_form.html.erb +1 -0
- data/app/views/spree/admin/variants/edit.html.erb +4 -3
- data/app/views/spree/admin/variants/index.html.erb +10 -8
- data/app/views/spree/admin/variants/new.html.erb +5 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +2 -2
- data/app/views/spree/admin/zones/_state_members.html.erb +2 -2
- data/app/views/spree/admin/zones/edit.html.erb +5 -6
- data/app/views/spree/admin/zones/index.html.erb +5 -4
- data/app/views/spree/admin/zones/new.html.erb +6 -7
- data/app/views/spree/layouts/admin.html.erb +28 -15
- data/config/initializers/form_builder.rb +6 -0
- data/config/routes.rb +2 -6
- data/spec/controllers/spree/admin/cancellations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +4 -4
- data/spec/controllers/spree/admin/missing_products_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/orders_controller_spec.rb +28 -28
- data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/prices_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/product_properties_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/products_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotions_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/refunds_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/reports_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/resource_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +11 -11
- data/spec/controllers/spree/admin/return_items_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/stock_items_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/store_credits_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/users_controller_spec.rb +139 -141
- data/spec/controllers/spree/admin/variants_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/general_settings_spec.rb +7 -16
- data/spec/features/admin/configuration/payment_methods_spec.rb +7 -7
- data/spec/features/admin/configuration/stock_locations_spec.rb +1 -1
- data/spec/features/admin/configuration/tax_categories_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/homepage_spec.rb +2 -2
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +8 -8
- data/spec/features/admin/orders/customer_details_spec.rb +20 -5
- data/spec/features/admin/orders/listing_spec.rb +97 -70
- data/spec/features/admin/orders/new_order_spec.rb +35 -6
- data/spec/features/admin/orders/order_details_spec.rb +37 -58
- data/spec/features/admin/orders/payments_spec.rb +57 -4
- data/spec/features/admin/orders/return_authorizations_spec.rb +25 -0
- data/spec/features/admin/orders/shipments_spec.rb +5 -5
- data/spec/features/admin/products/edit/products_spec.rb +1 -1
- data/spec/features/admin/products/edit/taxons_spec.rb +5 -5
- data/spec/features/admin/products/edit/variants_spec.rb +1 -1
- data/spec/features/admin/products/option_types_spec.rb +2 -2
- data/spec/features/admin/products/products_spec.rb +6 -6
- data/spec/features/admin/products/properties_spec.rb +6 -6
- data/spec/features/admin/products/prototypes_spec.rb +1 -1
- data/spec/features/admin/products/stock_management_spec.rb +5 -5
- data/spec/features/admin/promotion_adjustments_spec.rb +8 -8
- data/spec/features/admin/promotions/option_value_rule_spec.rb +4 -4
- data/spec/features/admin/promotions/product_rule_spec.rb +33 -0
- data/spec/features/admin/promotions/tiered_calculator_spec.rb +2 -2
- data/spec/features/admin/promotions/user_rule_spec.rb +15 -0
- data/spec/features/admin/reports_spec.rb +1 -1
- data/spec/features/admin/users_spec.rb +27 -2
- data/spec/helpers/admin/base_helper_spec.rb +30 -0
- data/spec/helpers/admin/navigation_helper_spec.rb +40 -2
- data/spec/spec_helper.rb +10 -8
- data/spec/support/feature/order_feature_helper.rb +17 -0
- metadata +18 -11
- data/app/assets/javascripts/spree/backend/general_settings.js.coffee +0 -13
- data/spec/controllers/spree/admin/general_settings_controller_spec.rb +0 -41
data/spec/spec_helper.rb
CHANGED
@@ -43,7 +43,7 @@ require 'spree/testing_support/capybara_ext'
|
|
43
43
|
require 'paperclip/matchers'
|
44
44
|
|
45
45
|
require 'capybara-screenshot/rspec'
|
46
|
-
Capybara.
|
46
|
+
Capybara.save_path = ENV['CIRCLE_ARTIFACTS'] if ENV['CIRCLE_ARTIFACTS']
|
47
47
|
|
48
48
|
require 'capybara/poltergeist'
|
49
49
|
Capybara.javascript_driver = :poltergeist
|
@@ -71,11 +71,8 @@ RSpec.configure do |config|
|
|
71
71
|
DatabaseCleaner.clean_with :truncation
|
72
72
|
end
|
73
73
|
|
74
|
-
config.
|
75
|
-
Rails.cache.clear
|
76
|
-
reset_spree_preferences
|
74
|
+
config.prepend_before(:each) do
|
77
75
|
if RSpec.current_example.metadata[:js]
|
78
|
-
page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
|
79
76
|
DatabaseCleaner.strategy = :truncation
|
80
77
|
else
|
81
78
|
DatabaseCleaner.strategy = :transaction
|
@@ -83,10 +80,15 @@ RSpec.configure do |config|
|
|
83
80
|
DatabaseCleaner.start
|
84
81
|
end
|
85
82
|
|
86
|
-
config.
|
87
|
-
|
88
|
-
|
83
|
+
config.before do
|
84
|
+
Rails.cache.clear
|
85
|
+
reset_spree_preferences
|
86
|
+
if RSpec.current_example.metadata[:js]
|
87
|
+
page.driver.browser.url_blacklist = ['http://fonts.googleapis.com']
|
88
|
+
end
|
89
|
+
end
|
89
90
|
|
91
|
+
config.append_after(:each) do
|
90
92
|
DatabaseCleaner.clean
|
91
93
|
end
|
92
94
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module OrderFeatureHelper
|
2
|
+
def complete_split_to(destination, quantity: nil)
|
3
|
+
if destination.is_a?(Spree::Shipment)
|
4
|
+
destination = destination.number
|
5
|
+
elsif destination.is_a?(Spree::StockLocation)
|
6
|
+
destination = destination.name
|
7
|
+
end
|
8
|
+
|
9
|
+
select2_no_label(destination, from: 'Choose location')
|
10
|
+
|
11
|
+
if quantity
|
12
|
+
fill_in 'item_quantity', with: quantity
|
13
|
+
end
|
14
|
+
|
15
|
+
click_icon :ok
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.4.0.beta1
|
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: 1.
|
26
|
+
version: 1.4.0.beta1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.0.beta1
|
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: 1.
|
40
|
+
version: 1.4.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sass-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,6 +163,7 @@ extensions: []
|
|
163
163
|
extra_rdoc_files: []
|
164
164
|
files:
|
165
165
|
- Gemfile
|
166
|
+
- README.md
|
166
167
|
- Rakefile
|
167
168
|
- app/assets/images/solidus-style-guide-logo.png
|
168
169
|
- app/assets/javascripts/spree/backend.js
|
@@ -176,7 +177,6 @@ files:
|
|
176
177
|
- app/assets/javascripts/spree/backend/components/tooltips.js
|
177
178
|
- app/assets/javascripts/spree/backend/flash.coffee
|
178
179
|
- app/assets/javascripts/spree/backend/gateway.js.coffee
|
179
|
-
- app/assets/javascripts/spree/backend/general_settings.js.coffee
|
180
180
|
- app/assets/javascripts/spree/backend/handlebars_extensions.coffee
|
181
181
|
- app/assets/javascripts/spree/backend/images/index.js.coffee
|
182
182
|
- app/assets/javascripts/spree/backend/images/new.js.coffee
|
@@ -238,7 +238,9 @@ files:
|
|
238
238
|
- app/assets/stylesheets/spree/backend.css
|
239
239
|
- app/assets/stylesheets/spree/backend/_bootstrap_custom.scss
|
240
240
|
- app/assets/stylesheets/spree/backend/components/_actions.scss
|
241
|
+
- app/assets/stylesheets/spree/backend/components/_breadcrumb.scss
|
241
242
|
- app/assets/stylesheets/spree/backend/components/_date-picker.scss
|
243
|
+
- app/assets/stylesheets/spree/backend/components/_hint.scss
|
242
244
|
- app/assets/stylesheets/spree/backend/components/_list_group.scss
|
243
245
|
- app/assets/stylesheets/spree/backend/components/_messages.scss
|
244
246
|
- app/assets/stylesheets/spree/backend/components/_navigation.scss
|
@@ -250,9 +252,11 @@ files:
|
|
250
252
|
- app/assets/stylesheets/spree/backend/components/_table-filter.scss
|
251
253
|
- app/assets/stylesheets/spree/backend/components/_tabs.scss
|
252
254
|
- app/assets/stylesheets/spree/backend/globals/_functions.scss
|
255
|
+
- app/assets/stylesheets/spree/backend/globals/_mixins.css
|
253
256
|
- app/assets/stylesheets/spree/backend/globals/_variables.scss
|
254
257
|
- app/assets/stylesheets/spree/backend/globals/_variables_override.scss
|
255
258
|
- app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
|
259
|
+
- app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss
|
256
260
|
- app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
|
257
261
|
- app/assets/stylesheets/spree/backend/plugins/_select2.scss
|
258
262
|
- app/assets/stylesheets/spree/backend/sections/_adjustments_table.scss
|
@@ -598,6 +602,7 @@ files:
|
|
598
602
|
- app/views/spree/admin/stock_movements/_form.html.erb
|
599
603
|
- app/views/spree/admin/stock_movements/index.html.erb
|
600
604
|
- app/views/spree/admin/stock_movements/new.html.erb
|
605
|
+
- app/views/spree/admin/stock_transfers/_location.html.erb
|
601
606
|
- app/views/spree/admin/stock_transfers/_stock_movements.html.erb
|
602
607
|
- app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb
|
603
608
|
- app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb
|
@@ -693,7 +698,6 @@ files:
|
|
693
698
|
- spec/controllers/spree/admin/base_controller_spec.rb
|
694
699
|
- spec/controllers/spree/admin/cancellations_controller_spec.rb
|
695
700
|
- spec/controllers/spree/admin/customer_returns_controller_spec.rb
|
696
|
-
- spec/controllers/spree/admin/general_settings_controller_spec.rb
|
697
701
|
- spec/controllers/spree/admin/missing_products_controller_spec.rb
|
698
702
|
- spec/controllers/spree/admin/orders/customer_details_controller_spec.rb
|
699
703
|
- spec/controllers/spree/admin/orders_controller_spec.rb
|
@@ -745,6 +749,7 @@ files:
|
|
745
749
|
- spec/features/admin/orders/new_order_spec.rb
|
746
750
|
- spec/features/admin/orders/order_details_spec.rb
|
747
751
|
- spec/features/admin/orders/payments_spec.rb
|
752
|
+
- spec/features/admin/orders/return_authorizations_spec.rb
|
748
753
|
- spec/features/admin/orders/risk_analysis_spec.rb
|
749
754
|
- spec/features/admin/orders/shipments_spec.rb
|
750
755
|
- spec/features/admin/payments/store_credits_spec.rb
|
@@ -761,6 +766,7 @@ files:
|
|
761
766
|
- spec/features/admin/products/variant_spec.rb
|
762
767
|
- spec/features/admin/promotion_adjustments_spec.rb
|
763
768
|
- spec/features/admin/promotions/option_value_rule_spec.rb
|
769
|
+
- spec/features/admin/promotions/product_rule_spec.rb
|
764
770
|
- spec/features/admin/promotions/tiered_calculator_spec.rb
|
765
771
|
- spec/features/admin/promotions/user_rule_spec.rb
|
766
772
|
- spec/features/admin/reimbursements_spec.rb
|
@@ -779,6 +785,7 @@ files:
|
|
779
785
|
- spec/spec_helper.rb
|
780
786
|
- spec/support/appear_before_matcher.rb
|
781
787
|
- spec/support/feature/base_feature_helper.rb
|
788
|
+
- spec/support/feature/order_feature_helper.rb
|
782
789
|
- spec/support/ror_ringer.jpeg
|
783
790
|
- spec/test_views/spree/admin/widgets/edit.html.erb
|
784
791
|
- spec/test_views/spree/admin/widgets/new.html.erb
|
@@ -893,13 +900,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
893
900
|
version: 2.1.0
|
894
901
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
895
902
|
requirements:
|
896
|
-
- - "
|
903
|
+
- - ">"
|
897
904
|
- !ruby/object:Gem::Version
|
898
|
-
version:
|
905
|
+
version: 1.3.1
|
899
906
|
requirements:
|
900
907
|
- none
|
901
908
|
rubyforge_project: solidus_backend
|
902
|
-
rubygems_version: 2.
|
909
|
+
rubygems_version: 2.5.1
|
903
910
|
signing_key:
|
904
911
|
specification_version: 4
|
905
912
|
summary: Admin interface for the Solidus e-commerce framework.
|
@@ -1,13 +0,0 @@
|
|
1
|
-
$(@).ready( ->
|
2
|
-
$('[data-hook=general_settings_clear_cache] #clear_cache').click ->
|
3
|
-
$.ajax
|
4
|
-
type: 'POST'
|
5
|
-
url: Spree.routes.clear_cache
|
6
|
-
success: ->
|
7
|
-
show_flash 'success', "Cache was flushed."
|
8
|
-
error: (msg) ->
|
9
|
-
if msg.responseJSON["error"]
|
10
|
-
show_flash 'error', msg.responseJSON["error"]
|
11
|
-
else
|
12
|
-
show_flash 'error', "There was a problem while flushing cache."
|
13
|
-
)
|
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Spree::Admin::GeneralSettingsController, type: :controller do
|
4
|
-
let(:user) { create(:user) }
|
5
|
-
|
6
|
-
before do
|
7
|
-
allow(controller).to receive_messages spree_current_user: user
|
8
|
-
user.spree_roles << Spree::Role.find_or_create_by(name: 'admin')
|
9
|
-
end
|
10
|
-
|
11
|
-
describe '#clear_cache' do
|
12
|
-
subject { spree_post :clear_cache }
|
13
|
-
|
14
|
-
shared_examples 'a HTTP 204 response' do
|
15
|
-
it 'grant access to users with an admin role' do
|
16
|
-
subject
|
17
|
-
expect(response.status).to eq(204)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
context 'when no callback' do
|
22
|
-
it_behaves_like 'a HTTP 204 response'
|
23
|
-
end
|
24
|
-
|
25
|
-
context 'when callback implemented' do
|
26
|
-
Spree::Admin::GeneralSettingsController.class_eval do
|
27
|
-
custom_callback(:clear_cache).after :foo
|
28
|
-
|
29
|
-
def foo
|
30
|
-
# Make a call to Akamai, CloudFlare, etc invalidation....
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
before do
|
35
|
-
expect(controller).to receive(:foo).once
|
36
|
-
end
|
37
|
-
|
38
|
-
it_behaves_like 'a HTTP 204 response'
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|