spree_admin 5.2.6 → 5.3.0.rc1
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/Rakefile +4 -1
- data/app/assets/config/spree_admin_manifest.js +0 -1
- data/app/assets/tailwind/spree/admin/base/_animations.css +151 -0
- data/app/assets/tailwind/spree/admin/base/_base.css +69 -0
- data/app/assets/tailwind/spree/admin/base/_theme.css +62 -0
- data/app/assets/tailwind/spree/admin/base/_utilities.css +26 -0
- data/app/assets/tailwind/spree/admin/components/_alerts.css +53 -0
- data/app/assets/tailwind/spree/admin/components/_badges.css +124 -0
- data/app/assets/tailwind/spree/admin/components/_breadcrumbs.css +22 -0
- data/app/assets/tailwind/spree/admin/components/_bulk-editor.css +53 -0
- data/app/assets/tailwind/spree/admin/components/_bulk-panel.css +97 -0
- data/app/assets/tailwind/spree/admin/components/_buttons.css +114 -0
- data/app/assets/tailwind/spree/admin/components/_cards.css +240 -0
- data/app/assets/tailwind/spree/admin/components/_dialogs.css +279 -0
- data/app/assets/tailwind/spree/admin/components/_dropdowns.css +128 -0
- data/app/assets/tailwind/spree/admin/components/_filters.css +83 -0
- data/app/assets/tailwind/spree/admin/components/_forms.css +258 -0
- data/app/assets/tailwind/spree/admin/components/_layout.css +580 -0
- data/app/assets/tailwind/spree/admin/components/_line-items.css +28 -0
- data/app/assets/tailwind/spree/admin/components/_list-groups.css +57 -0
- data/app/assets/tailwind/spree/admin/components/_media-form.css +69 -0
- data/app/assets/tailwind/spree/admin/components/_misc.css +35 -0
- data/app/assets/tailwind/spree/admin/components/_navigation.css +41 -0
- data/app/assets/tailwind/spree/admin/components/_progress.css +14 -0
- data/app/assets/tailwind/spree/admin/components/_search-picker.css +36 -0
- data/app/assets/tailwind/spree/admin/components/_seo-form.css +21 -0
- data/app/assets/tailwind/spree/admin/components/_sortable-tree.css +61 -0
- data/app/assets/tailwind/spree/admin/components/_tables.css +195 -0
- data/app/assets/tailwind/spree/admin/components/_tooltips.css +15 -0
- data/app/assets/tailwind/spree/admin/components/_variants-form.css +150 -0
- data/app/assets/tailwind/spree/admin/index.css +73 -0
- data/app/assets/tailwind/spree/admin/plugins/_actiontext.css +35 -0
- data/app/assets/tailwind/spree/admin/plugins/_tinymce.css +79 -0
- data/app/assets/tailwind/spree/admin/plugins/_tom-select.css +299 -0
- data/app/assets/tailwind/spree/admin/plugins/_trix.css +100 -0
- data/app/assets/tailwind/spree/admin/plugins/_uppy.css +117 -0
- data/app/assets/tailwind/spree/admin/utilities/_bootstrap.css +158 -0
- data/app/assets/tailwind/spree/admin/views/_dashboard.css +30 -0
- data/app/assets/tailwind/spree/admin/views/_page-builder.css +214 -0
- data/app/controllers/concerns/spree/admin/bulk_operations_concern.rb +7 -0
- data/app/controllers/concerns/spree/admin/order_concern.rb +14 -0
- data/app/controllers/concerns/spree/admin/table_concern.rb +82 -0
- data/app/controllers/spree/admin/admin_users_controller.rb +11 -2
- data/app/controllers/spree/admin/bulk_operations_controller.rb +34 -0
- data/app/controllers/spree/admin/checkouts_controller.rb +15 -3
- data/app/controllers/spree/admin/classifications_controller.rb +1 -2
- data/app/controllers/spree/admin/countries_controller.rb +13 -0
- data/app/controllers/spree/admin/customer_group_users_controller.rb +77 -0
- data/app/controllers/spree/admin/customer_groups_controller.rb +44 -0
- data/app/controllers/spree/admin/gift_cards_controller.rb +1 -0
- data/app/controllers/spree/admin/option_values_controller.rb +1 -1
- data/app/controllers/spree/admin/orders/adjustments_controller.rb +120 -0
- data/app/controllers/spree/admin/orders/order_promotions_controller.rb +59 -0
- data/app/controllers/spree/admin/orders_controller.rb +29 -29
- data/app/controllers/spree/admin/post_categories_controller.rb +7 -1
- data/app/controllers/spree/admin/posts_controller.rb +3 -2
- data/app/controllers/spree/admin/price_list_products_controller.rb +49 -0
- data/app/controllers/spree/admin/price_lists_controller.rb +54 -0
- data/app/controllers/spree/admin/price_rules_controller.rb +52 -0
- data/app/controllers/spree/admin/products_controller.rb +13 -72
- data/app/controllers/spree/admin/promotion_rules_controller.rb +9 -1
- data/app/controllers/spree/admin/promotions_controller.rb +11 -23
- data/app/controllers/spree/admin/resource_controller.rb +46 -5
- data/app/controllers/spree/admin/stock_items_controller.rb +2 -1
- data/app/controllers/spree/admin/stock_locations_controller.rb +9 -0
- data/app/controllers/spree/admin/table_columns_controller.rb +38 -0
- data/app/controllers/spree/admin/tags_controller.rb +32 -0
- data/app/controllers/spree/admin/users_controller.rb +57 -13
- data/app/controllers/spree/admin/variants_controller.rb +1 -1
- data/app/controllers/spree/admin/webhook_deliveries_controller.rb +20 -0
- data/app/controllers/spree/admin/webhook_endpoints_controller.rb +26 -0
- data/app/helpers/spree/admin/avatars_helper.rb +56 -0
- data/app/helpers/spree/admin/base_helper.rb +68 -47
- data/app/helpers/spree/admin/bulk_editor_helper.rb +41 -0
- data/app/helpers/spree/admin/bulk_operations_helper.rb +2 -2
- data/app/helpers/spree/admin/code_block_helper.rb +18 -0
- data/app/helpers/spree/admin/dialog_helper.rb +30 -0
- data/app/helpers/spree/admin/drawer_helper.rb +30 -0
- data/app/helpers/spree/admin/json_preview_helper.rb +18 -10
- data/app/helpers/spree/admin/modal_helper.rb +1 -1
- data/app/helpers/spree/admin/navigation_helper.rb +7 -7
- data/app/helpers/spree/admin/onboarding_helper.rb +3 -3
- data/app/helpers/spree/admin/orders_filters_helper.rb +18 -55
- data/app/helpers/spree/admin/orders_helper.rb +4 -0
- data/app/helpers/spree/admin/price_lists_helper.rb +20 -0
- data/app/helpers/spree/admin/products_helper.rb +4 -4
- data/app/helpers/spree/admin/promotions_helper.rb +1 -0
- data/app/helpers/spree/admin/stores_helper.rb +2 -2
- data/app/helpers/spree/admin/table_helper.rb +437 -0
- data/app/helpers/spree/admin/taxons_helper.rb +1 -1
- data/app/helpers/spree/admin/turbo_helper.rb +9 -3
- data/app/helpers/spree/admin/webhook_endpoints_helper.rb +95 -0
- data/app/helpers/tom_select_helper.rb +2 -2
- data/app/javascript/spree/admin/application.js +13 -1
- data/app/javascript/spree/admin/controllers/bulk_editor_controller.js +867 -0
- data/app/javascript/spree/admin/controllers/bulk_operation_controller.js +31 -5
- data/app/javascript/spree/admin/controllers/column_selector_controller.js +35 -0
- data/app/javascript/spree/admin/controllers/dropdown_controller.js +20 -2
- data/app/javascript/spree/admin/controllers/font_picker_controller.js +1 -1
- data/app/javascript/spree/admin/controllers/media_form_controller.js +3 -3
- data/app/javascript/spree/admin/controllers/money_field_controller.js +150 -0
- data/app/javascript/spree/admin/controllers/order_billing_address_controller.js +2 -2
- data/app/javascript/spree/admin/controllers/product_form_controller.js +6 -6
- data/app/javascript/spree/admin/controllers/query_builder_controller.js +618 -0
- data/app/javascript/spree/admin/controllers/replace_controller.js +4 -4
- data/app/javascript/spree/admin/controllers/search_clear_controller.js +22 -0
- data/app/javascript/spree/admin/controllers/select_controller.js +9 -3
- data/app/javascript/spree/admin/controllers/seo_form_controller.js +5 -5
- data/app/javascript/spree/admin/controllers/sidebar_controller.js +2 -2
- data/app/javascript/spree/admin/controllers/sticky_controller.js +6 -2
- data/app/javascript/spree/admin/controllers/table_controller.js +20 -0
- data/app/javascript/spree/admin/controllers/variants_form_controller.js +142 -28
- data/app/javascript/spree/admin/helpers/trix/video_embed.js +5 -5
- data/app/javascript/spree/admin/helpers/turbo_confirm.js +38 -0
- data/app/models/spree/admin/form_builder.rb +134 -38
- data/app/models/spree/admin/table/builder.rb +55 -0
- data/app/models/spree/admin/table/bulk_action.rb +95 -0
- data/app/models/spree/admin/table/column.rb +111 -0
- data/app/models/spree/admin/table/filter.rb +116 -0
- data/app/models/spree/admin/table/filter_group.rb +144 -0
- data/app/models/spree/admin/table/query_builder.rb +114 -0
- data/app/models/spree/admin/table/visibility.rb +20 -0
- data/app/models/spree/admin/table.rb +313 -0
- data/app/presenters/spree/admin/order_summary_presenter.rb +190 -0
- data/app/subscribers/spree/admin/import_row_subscriber.rb +68 -0
- data/app/subscribers/spree/admin/import_subscriber.rb +35 -0
- data/app/views/active_storage/_upload_form.html.erb +9 -7
- data/app/views/layouts/spree/admin.html.erb +5 -5
- data/app/views/layouts/spree/admin_settings.html.erb +5 -6
- data/app/views/layouts/spree/admin_wizard.html.erb +6 -6
- data/app/views/layouts/spree/minimal.html.erb +10 -10
- data/app/views/spree/admin/admin_users/_admin_user.html.erb +6 -6
- data/app/views/spree/admin/admin_users/_audit_log.html.erb +1 -1
- data/app/views/spree/admin/admin_users/edit.html.erb +1 -1
- data/app/views/spree/admin/admin_users/index.html.erb +2 -2
- data/app/views/spree/admin/admin_users/new.html.erb +3 -3
- data/app/views/spree/admin/admin_users/show.html.erb +16 -16
- data/app/views/spree/admin/bulk_operations/forms/_confirmation.html.erb +1 -0
- data/app/views/spree/admin/bulk_operations/forms/_tag_picker.html.erb +8 -0
- data/app/views/spree/admin/bulk_operations/forms/_taxon_picker.html.erb +5 -0
- data/app/views/spree/admin/bulk_operations/new.html.erb +16 -0
- data/app/views/spree/admin/checkouts/index.html.erb +9 -0
- data/app/views/spree/admin/classifications/_classification.html.erb +9 -9
- data/app/views/spree/admin/classifications/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/classifications/destroy.turbo_stream.erb +1 -1
- data/app/views/spree/admin/classifications/index.html.erb +1 -1
- data/app/views/spree/admin/coupon_codes/_filters.html.erb +3 -3
- data/app/views/spree/admin/coupon_codes/_table_row.html.erb +3 -3
- data/app/views/spree/admin/coupon_codes/index.html.erb +3 -3
- data/app/views/spree/admin/custom_domains/_custom_domains.html.erb +1 -1
- data/app/views/spree/admin/custom_domains/_form.html.erb +1 -1
- data/app/views/spree/admin/custom_domains/index.html.erb +20 -20
- data/app/views/spree/admin/customer_group_users/bulk_create.turbo_stream.erb +15 -0
- data/app/views/spree/admin/customer_group_users/bulk_destroy.turbo_stream.erb +17 -0
- data/app/views/spree/admin/customer_group_users/bulk_new.html.erb +27 -0
- data/app/views/spree/admin/customer_group_users/index.html.erb +1 -0
- data/app/views/spree/admin/customer_groups/_customers_header.html.erb +12 -0
- data/app/views/spree/admin/customer_groups/_details.html.erb +59 -0
- data/app/views/spree/admin/customer_groups/_form.html.erb +6 -0
- data/app/views/spree/admin/customer_groups/edit.html.erb +1 -0
- data/app/views/spree/admin/customer_groups/index.html.erb +9 -0
- data/app/views/spree/admin/customer_groups/show.html.erb +19 -0
- data/app/views/spree/admin/customer_groups/update.turbo_stream.erb +17 -0
- data/app/views/spree/admin/customer_returns/_table_row.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +1 -1
- data/app/views/spree/admin/dashboard/_setup_progress.html.erb +3 -3
- data/app/views/spree/admin/dashboard/_setup_tasks.html.erb +16 -10
- data/app/views/spree/admin/dashboard/_sidebar.html.erb +1 -2
- data/app/views/spree/admin/dashboard/_top_products.html.erb +10 -10
- data/app/views/spree/admin/dashboard/_updater.html.erb +1 -1
- data/app/views/spree/admin/dashboard/_visits.html.erb +22 -22
- data/app/views/spree/admin/dashboard/analytics.html.erb +28 -28
- data/app/views/spree/admin/dashboard/getting_started.html.erb +3 -3
- data/app/views/spree/admin/dashboard/setup_tasks/_add_products.html.erb +1 -1
- data/app/views/spree/admin/dashboard/setup_tasks/_set_customer_support_email.html.erb +4 -6
- data/app/views/spree/admin/dashboard/setup_tasks/_setup_payment_method.html.erb +7 -3
- data/app/views/spree/admin/dashboard/setup_tasks/_setup_taxes_collection.html.erb +4 -2
- data/app/views/spree/admin/dashboard/show.html.erb +8 -8
- data/app/views/spree/admin/digital_assets/_form.html.erb +2 -2
- data/app/views/spree/admin/digital_assets/_table.html.erb +2 -2
- data/app/views/spree/admin/errors/403.html.erb +2 -2
- data/app/views/spree/admin/errors/404.html.erb +2 -2
- data/app/views/spree/admin/errors/422.html.erb +2 -2
- data/app/views/spree/admin/errors/500.html.erb +2 -2
- data/app/views/spree/admin/errors/503.html.erb +2 -2
- data/app/views/spree/admin/exports/_export.html.erb +1 -1
- data/app/views/spree/admin/exports/new.html.erb +7 -9
- data/app/views/spree/admin/gift_card_batches/_form.html.erb +3 -3
- data/app/views/spree/admin/gift_cards/_filters.html.erb +6 -6
- data/app/views/spree/admin/gift_cards/_form.html.erb +3 -3
- data/app/views/spree/admin/gift_cards/_gift_card.html.erb +4 -4
- data/app/views/spree/admin/gift_cards/_list.html.erb +1 -1
- data/app/views/spree/admin/gift_cards/_table_filter_dropdown.html.erb +1 -1
- data/app/views/spree/admin/gift_cards/edit.html.erb +2 -2
- data/app/views/spree/admin/gift_cards/index.html.erb +21 -36
- data/app/views/spree/admin/gift_cards/show.html.erb +32 -32
- data/app/views/spree/admin/import_rows/show.html.erb +8 -8
- data/app/views/spree/admin/imports/_footer.html.erb +2 -2
- data/app/views/spree/admin/imports/_loader.html.erb +7 -7
- data/app/views/spree/admin/imports/_mapping.html.erb +3 -3
- data/app/views/spree/admin/imports/_mapping_footer.html.erb +4 -4
- data/app/views/spree/admin/imports/_mapping_icon.html.erb +1 -1
- data/app/views/spree/admin/imports/_row.html.erb +6 -6
- data/app/views/spree/admin/imports/new.html.erb +1 -1
- data/app/views/spree/admin/imports/show.html.erb +7 -7
- data/app/views/spree/admin/integrations/_integration.html.erb +6 -6
- data/app/views/spree/admin/integrations/edit.html.erb +6 -2
- data/app/views/spree/admin/integrations/index.html.erb +9 -9
- data/app/views/spree/admin/integrations/new.html.erb +2 -2
- data/app/views/spree/admin/invitations/_invitation.html.erb +3 -3
- data/app/views/spree/admin/invitations/index.html.erb +2 -2
- data/app/views/spree/admin/invitations/show.html.erb +2 -2
- data/app/views/spree/admin/json_previews/show.html.erb +8 -8
- data/app/views/spree/admin/line_items/edit.html.erb +4 -4
- data/app/views/spree/admin/line_items/new.html.erb +4 -4
- data/app/views/spree/admin/metafield_definitions/_filters.html.erb +2 -2
- data/app/views/spree/admin/metafield_definitions/_form.html.erb +6 -6
- data/app/views/spree/admin/metafield_definitions/_table_row.html.erb +2 -2
- data/app/views/spree/admin/metafield_definitions/index.html.erb +1 -1
- data/app/views/spree/admin/metafields/edit.html.erb +6 -6
- data/app/views/spree/admin/metafields/types/_boolean.html.erb +1 -1
- data/app/views/spree/admin/metafields/types/_json.html.erb +1 -1
- data/app/views/spree/admin/metafields/types/_long_text.html.erb +1 -1
- data/app/views/spree/admin/metafields/types/_number.html.erb +1 -1
- data/app/views/spree/admin/metafields/types/_short_text.html.erb +1 -1
- data/app/views/spree/admin/newsletter_subscribers/_filters.html.erb +2 -2
- data/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb +3 -3
- data/app/views/spree/admin/newsletter_subscribers/index.html.erb +1 -1
- data/app/views/spree/admin/oauth_applications/_form.html.erb +1 -1
- data/app/views/spree/admin/oauth_applications/_table_row.html.erb +3 -3
- data/app/views/spree/admin/oauth_applications/create.turbo_stream.erb +8 -8
- data/app/views/spree/admin/oauth_applications/index.html.erb +2 -2
- data/app/views/spree/admin/option_types/_form.html.erb +10 -10
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +3 -3
- data/app/views/spree/admin/option_types/_table_row.html.erb +2 -2
- data/app/views/spree/admin/option_types/edit.html.erb +1 -12
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/option_types/new.html.erb +1 -11
- data/app/views/spree/admin/orders/_adjustment.html.erb +72 -0
- data/app/views/spree/admin/orders/_adjustments.html.erb +41 -0
- data/app/views/spree/admin/orders/_customer.html.erb +13 -13
- data/app/views/spree/admin/orders/_customer_returns.html.erb +3 -3
- data/app/views/spree/admin/orders/_customer_summary.html.erb +4 -4
- data/app/views/spree/admin/orders/_filters.html.erb +9 -9
- data/app/views/spree/admin/orders/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/_header.html.erb +2 -2
- data/app/views/spree/admin/orders/_line_item.html.erb +2 -2
- data/app/views/spree/admin/orders/_line_items.html.erb +43 -36
- data/app/views/spree/admin/orders/_order.html.erb +2 -2
- data/app/views/spree/admin/orders/_order_promotion.html.erb +32 -0
- data/app/views/spree/admin/orders/_payments.html.erb +8 -8
- data/app/views/spree/admin/orders/_promotions.html.erb +37 -0
- data/app/views/spree/admin/orders/_refunds.html.erb +5 -5
- data/app/views/spree/admin/orders/_return_authorizations.html.erb +3 -3
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +3 -3
- data/app/views/spree/admin/orders/_shipment.html.erb +15 -15
- data/app/views/spree/admin/orders/_shipment_manifest_item.html.erb +5 -5
- data/app/views/spree/admin/orders/_shipments.html.erb +6 -6
- data/app/views/spree/admin/orders/_special_instructions.html.erb +1 -1
- data/app/views/spree/admin/orders/_summary.html.erb +21 -95
- data/app/views/spree/admin/orders/_table_filter_dropdown.html.erb +2 -2
- data/app/views/spree/admin/orders/_tax_lines.html.erb +2 -2
- data/app/views/spree/admin/orders/_tax_rates.html.erb +86 -0
- data/app/views/spree/admin/orders/_user_overview.html.erb +2 -2
- data/app/views/spree/admin/orders/adjustments/_form.html.erb +6 -0
- data/app/views/spree/admin/orders/adjustments/create.turbo_stream.erb +10 -0
- data/app/views/spree/admin/orders/adjustments/destroy.turbo_stream.erb +9 -0
- data/app/views/spree/admin/orders/adjustments/edit.html.erb +13 -0
- data/app/views/spree/admin/orders/adjustments/new.html.erb +15 -0
- data/app/views/spree/admin/orders/adjustments/toggle_state.turbo_stream.erb +9 -0
- data/app/views/spree/admin/orders/adjustments/update.turbo_stream.erb +10 -0
- data/app/views/spree/admin/orders/billing_address/_form.html.erb +3 -3
- data/app/views/spree/admin/orders/billing_address/create.turbo_stream.erb +7 -7
- data/app/views/spree/admin/orders/billing_address/edit.html.erb +9 -9
- data/app/views/spree/admin/orders/billing_address/new.html.erb +7 -7
- data/app/views/spree/admin/orders/billing_address/update.turbo_stream.erb +7 -7
- data/app/views/spree/admin/orders/contact_information/edit.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_returns/_customer_return.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_returns/_reimbursements_table.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_returns/_return_item_decision.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_returns/_return_item_selection.html.erb +4 -4
- data/app/views/spree/admin/orders/customer_returns/edit.html.erb +12 -12
- data/app/views/spree/admin/orders/customer_returns/new.html.erb +6 -6
- data/app/views/spree/admin/orders/index.html.erb +4 -21
- data/app/views/spree/admin/orders/new.html.erb +3 -3
- data/app/views/spree/admin/orders/order_promotions/create.turbo_stream.erb +16 -0
- data/app/views/spree/admin/orders/order_promotions/destroy.turbo_stream.erb +15 -0
- data/app/views/spree/admin/orders/order_promotions/new.html.erb +15 -0
- data/app/views/spree/admin/orders/return_authorizations/_form.html.erb +7 -7
- data/app/views/spree/admin/orders/return_authorizations/_return_authorization.html.erb +1 -1
- data/app/views/spree/admin/orders/return_authorizations/edit.html.erb +2 -2
- data/app/views/spree/admin/orders/return_authorizations/show.html.erb +8 -8
- data/app/views/spree/admin/orders/shipping_address/_form.html.erb +2 -2
- data/app/views/spree/admin/orders/shipping_address/create.turbo_stream.erb +1 -1
- data/app/views/spree/admin/orders/shipping_address/edit.html.erb +1 -1
- data/app/views/spree/admin/orders/shipping_address/new.html.erb +1 -1
- data/app/views/spree/admin/orders/shipping_address/update.turbo_stream.erb +1 -1
- data/app/views/spree/admin/orders/show.html.erb +24 -0
- data/app/views/spree/admin/orders/update.turbo_stream.erb +5 -0
- data/app/views/spree/admin/orders/user/new.html.erb +7 -7
- data/app/views/spree/admin/payment_methods/_available_payment_method.html.erb +3 -3
- data/app/views/spree/admin/payment_methods/_form.html.erb +3 -3
- data/app/views/spree/admin/payment_methods/_payment_method.html.erb +8 -8
- data/app/views/spree/admin/payment_methods/edit.html.erb +2 -2
- data/app/views/spree/admin/payment_methods/index.html.erb +3 -3
- data/app/views/spree/admin/payment_methods/new.html.erb +2 -2
- data/app/views/spree/admin/payments/_payment.html.erb +17 -17
- data/app/views/spree/admin/payments/new.html.erb +13 -23
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +10 -10
- data/app/views/spree/admin/payments/source_forms/_previous_cards.html.erb +4 -4
- data/app/views/spree/admin/payments/source_forms/_spree_stripe.html.erb +1 -1
- data/app/views/spree/admin/payments/source_forms/_store_credit.html.erb +5 -5
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +1 -1
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +1 -1
- data/app/views/spree/admin/policies/_filters.html.erb +1 -1
- data/app/views/spree/admin/policies/_form.html.erb +1 -1
- data/app/views/spree/admin/policies/_table_row.html.erb +2 -2
- data/app/views/spree/admin/policies/index.html.erb +1 -1
- data/app/views/spree/admin/post_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/post_categories/_table_row.html.erb +1 -1
- data/app/views/spree/admin/post_categories/index.html.erb +1 -1
- data/app/views/spree/admin/posts/_form.html.erb +7 -7
- data/app/views/spree/admin/posts/_table_row.html.erb +1 -1
- data/app/views/spree/admin/posts/edit.html.erb +1 -11
- data/app/views/spree/admin/posts/filters.html.erb +4 -4
- data/app/views/spree/admin/posts/index.html.erb +1 -1
- data/app/views/spree/admin/posts/new.html.erb +1 -11
- data/app/views/spree/admin/preferences/_password_field.html.erb +14 -14
- data/app/views/spree/admin/price_list_products/bulk_create.turbo_stream.erb +11 -0
- data/app/views/spree/admin/price_list_products/bulk_destroy.turbo_stream.erb +13 -0
- data/app/views/spree/admin/price_list_products/bulk_new.html.erb +29 -0
- data/app/views/spree/admin/price_list_products/index.html.erb +1 -0
- data/app/views/spree/admin/price_lists/_details.html.erb +75 -0
- data/app/views/spree/admin/price_lists/_form.html.erb +8 -0
- data/app/views/spree/admin/price_lists/_products_header.html.erb +18 -0
- data/app/views/spree/admin/price_lists/_rules.html.erb +32 -0
- data/app/views/spree/admin/price_lists/_table_header.html.erb +7 -0
- data/app/views/spree/admin/price_lists/edit.html.erb +1 -0
- data/app/views/spree/admin/price_lists/edit_prices.html.erb +138 -0
- data/app/views/spree/admin/price_lists/index.html.erb +12 -0
- data/app/views/spree/admin/price_lists/new.html.erb +1 -0
- data/app/views/spree/admin/price_lists/show.html.erb +46 -0
- data/app/views/spree/admin/price_lists/update.turbo_stream.erb +17 -0
- data/app/views/spree/admin/price_rules/_price_rule.html.erb +28 -0
- data/app/views/spree/admin/price_rules/edit.html.erb +20 -0
- data/app/views/spree/admin/price_rules/forms/_customer_group_rule.html.erb +9 -0
- data/app/views/spree/admin/price_rules/forms/_user_rule.html.erb +7 -0
- data/app/views/spree/admin/price_rules/forms/_volume_rule.html.erb +11 -0
- data/app/views/spree/admin/price_rules/forms/_zone_rule.html.erb +7 -0
- data/app/views/spree/admin/price_rules/new.html.erb +36 -0
- data/app/views/spree/admin/products/_filters.html.erb +5 -5
- data/app/views/spree/admin/products/_form.html.erb +3 -3
- data/app/views/spree/admin/products/_product.html.erb +5 -5
- data/app/views/spree/admin/products/_search_result.html.erb +2 -2
- data/app/views/spree/admin/products/_search_results.html.erb +1 -1
- data/app/views/spree/admin/products/_table_filter_dropdown.html.erb +1 -1
- data/app/views/spree/admin/products/form/_base.html.erb +2 -2
- data/app/views/spree/admin/products/form/_categorization.html.erb +3 -3
- data/app/views/spree/admin/products/form/_inventory.html.erb +17 -32
- data/app/views/spree/admin/products/form/_properties.html.erb +7 -7
- data/app/views/spree/admin/products/form/_shipping.html.erb +1 -1
- data/app/views/spree/admin/products/form/_status.html.erb +7 -7
- data/app/views/spree/admin/products/form/_stores.html.erb +2 -2
- data/app/views/spree/admin/products/form/_tax.html.erb +1 -1
- data/app/views/spree/admin/products/form/_variants.html.erb +31 -21
- data/app/views/spree/admin/products/form/variants/_option_template.html.erb +8 -8
- data/app/views/spree/admin/products/form/variants/_variant_template.html.erb +9 -9
- data/app/views/spree/admin/products/index.html.erb +1 -14
- data/app/views/spree/admin/profile/edit.html.erb +3 -3
- data/app/views/spree/admin/promotion_actions/_promotion_action.html.erb +5 -5
- data/app/views/spree/admin/promotion_actions/edit.html.erb +3 -3
- data/app/views/spree/admin/promotion_actions/forms/_create_line_items.html.erb +1 -1
- data/app/views/spree/admin/promotion_actions/forms/_create_line_items_row.html.erb +2 -2
- data/app/views/spree/admin/promotion_actions/new.html.erb +4 -5
- data/app/views/spree/admin/promotion_rules/_promotion_rule.html.erb +14 -14
- data/app/views/spree/admin/promotion_rules/edit.html.erb +6 -3
- data/app/views/spree/admin/promotion_rules/forms/_customer_group.html.erb +9 -0
- data/app/views/spree/admin/promotion_rules/forms/_item_total.html.erb +12 -12
- data/app/views/spree/admin/promotion_rules/forms/_option_value.html.erb +1 -1
- data/app/views/spree/admin/promotion_rules/new.html.erb +7 -8
- data/app/views/spree/admin/promotions/_actions.html.erb +6 -6
- data/app/views/spree/admin/promotions/_filters.html.erb +5 -5
- data/app/views/spree/admin/promotions/_form.html.erb +3 -3
- data/app/views/spree/admin/promotions/_rules.html.erb +12 -19
- data/app/views/spree/admin/promotions/_sidebar.html.erb +25 -25
- data/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb +1 -1
- data/app/views/spree/admin/promotions/_table_row.html.erb +4 -4
- data/app/views/spree/admin/promotions/edit.html.erb +6 -6
- data/app/views/spree/admin/promotions/form/_kind.html.erb +13 -13
- data/app/views/spree/admin/promotions/index.html.erb +1 -1
- data/app/views/spree/admin/promotions/show.html.erb +3 -3
- data/app/views/spree/admin/properties/_form.html.erb +1 -1
- data/app/views/spree/admin/properties/_table_row.html.erb +3 -3
- data/app/views/spree/admin/refunds/_form.html.erb +1 -1
- data/app/views/spree/admin/refunds/new.html.erb +5 -5
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +1 -1
- data/app/views/spree/admin/reimbursements/edit.html.erb +7 -7
- data/app/views/spree/admin/reimbursements/show.html.erb +3 -3
- data/app/views/spree/admin/reports/new.html.erb +5 -6
- data/app/views/spree/admin/return_authorizations/_table_row.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/filters.html.erb +2 -2
- data/app/views/spree/admin/roles/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/_alerts.html.erb +5 -5
- data/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erb +24 -28
- data/app/views/spree/admin/shared/_back_to_dashboard.html.erb +1 -1
- data/app/views/spree/admin/shared/_breadcrumbs.html.erb +2 -2
- data/app/views/spree/admin/shared/_bulk_modal.html.erb +8 -9
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +2 -2
- data/app/views/spree/admin/shared/_calendar_range_picker.html.erb +4 -4
- data/app/views/spree/admin/shared/_content_header.html.erb +6 -6
- data/app/views/spree/admin/shared/_dialog.html.erb +2 -2
- data/app/views/spree/admin/shared/_drawer.html.erb +2 -2
- data/app/views/spree/admin/shared/_edit_resource.html.erb +2 -2
- data/app/views/spree/admin/shared/_edit_resource_in_drawer.html.erb +13 -0
- data/app/views/spree/admin/shared/_error_messages.html.erb +1 -1
- data/app/views/spree/admin/shared/_export_modal.html.erb +2 -2
- data/app/views/spree/admin/shared/_filter_badge_template.erb +1 -1
- data/app/views/spree/admin/shared/_filters_button.html.erb +1 -1
- data/app/views/spree/admin/shared/_filters_search_bar.html.erb +3 -10
- data/app/views/spree/admin/shared/_footer.html.erb +1 -1
- data/app/views/spree/admin/shared/_growth_rate_badge.html.erb +4 -4
- data/app/views/spree/admin/shared/_head.html.erb +5 -13
- data/app/views/spree/admin/shared/_header.html.erb +10 -22
- data/app/views/spree/admin/shared/_index_table_options.html.erb +26 -11
- data/app/views/spree/admin/shared/_internal_note.html.erb +41 -0
- data/app/views/spree/admin/shared/_map.html.erb +1 -1
- data/app/views/spree/admin/shared/_media_asset.html.erb +3 -3
- data/app/views/spree/admin/shared/_media_form.html.erb +4 -4
- data/app/views/spree/admin/shared/_modal.html.erb +4 -8
- data/app/views/spree/admin/shared/_multi_product_picker.html.erb +3 -3
- data/app/views/spree/admin/shared/_navigation.html.erb +2 -4
- data/app/views/spree/admin/shared/_navigation_item.html.erb +6 -10
- data/app/views/spree/admin/shared/_new_item_dropdown.html.erb +1 -1
- data/app/views/spree/admin/shared/_new_resource.html.erb +2 -2
- data/app/views/spree/admin/shared/_no_image.html.erb +2 -2
- data/app/views/spree/admin/shared/_no_resource_found.html.erb +3 -3
- data/app/views/spree/admin/shared/_page_alerts.html.erb +1 -1
- data/app/views/spree/admin/shared/_page_tabs.html.erb +1 -1
- data/app/views/spree/admin/shared/_preferences.html.erb +3 -3
- data/app/views/spree/admin/shared/_product_image.html.erb +2 -2
- data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
- data/app/views/spree/admin/shared/_seo.html.erb +10 -10
- data/app/views/spree/admin/shared/_sidebar.html.erb +20 -3
- data/app/views/spree/admin/shared/_spinner.html.erb +3 -2
- data/app/views/spree/admin/shared/_turbo_confirm_dialog.html.erb +23 -0
- data/app/views/spree/admin/shared/_user.html.erb +5 -5
- data/app/views/spree/admin/shared/_user_dropdown.html.erb +5 -5
- data/app/views/spree/admin/shared/devise/_links.html.erb +3 -3
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_customers_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_enterprise_edition_notice.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_products_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_promotions_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_returns_nav.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb +7 -7
- data/app/views/spree/admin/shared/sidebar/_store_nav.html.erb +7 -7
- data/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_vendors_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb +13 -13
- data/app/views/spree/admin/shipments/edit.html.erb +12 -12
- data/app/views/spree/admin/shipments/split.html.erb +6 -6
- data/app/views/spree/admin/shipping_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/_table_row.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +3 -3
- data/app/views/spree/admin/shipping_methods/_table_row.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/form/_display.html.erb +7 -44
- data/app/views/spree/admin/shipping_methods/form/_estimated_transit_business_days.html.erb +4 -10
- data/app/views/spree/admin/shipping_methods/form/_shipping_categories.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/form/_tax_category.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/form/_tracking_url.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/form/_zones.html.erb +7 -7
- data/app/views/spree/admin/stock_items/_filters.html.erb +5 -5
- data/app/views/spree/admin/stock_items/_table_row.html.erb +5 -5
- data/app/views/spree/admin/stock_items/index.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/_table_row.html.erb +2 -2
- data/app/views/spree/admin/stock_transfers/_destination_movement_form.html.erb +7 -7
- data/app/views/spree/admin/stock_transfers/_filters.html.erb +5 -5
- data/app/views/spree/admin/stock_transfers/_new_variant_modal.html.erb +4 -4
- data/app/views/spree/admin/stock_transfers/_table_row.html.erb +2 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/new.html.erb +9 -9
- data/app/views/spree/admin/stock_transfers/show.html.erb +12 -12
- data/app/views/spree/admin/store_credit_categories/edit.html.erb +1 -1
- data/app/views/spree/admin/store_credit_categories/new.html.erb +1 -1
- data/app/views/spree/admin/store_credit_events/_store_credit_event.html.erb +1 -1
- data/app/views/spree/admin/store_credits/_form.html.erb +1 -1
- data/app/views/spree/admin/store_credits/edit.html.erb +1 -1
- data/app/views/spree/admin/store_credits/new.html.erb +3 -3
- data/app/views/spree/admin/store_credits/show.html.erb +23 -23
- data/app/views/spree/admin/stores/edit.html.erb +3 -3
- data/app/views/spree/admin/stores/edit_emails.html.erb +3 -3
- data/app/views/spree/admin/stores/form/_basic.html.erb +23 -14
- data/app/views/spree/admin/stores/form/_checkout.html.erb +16 -14
- data/app/views/spree/admin/stores/form/_checkout_links.html.erb +8 -8
- data/app/views/spree/admin/stores/form/_emails.html.erb +5 -5
- data/app/views/spree/admin/stores/form/_policies.html.erb +10 -10
- data/app/views/spree/admin/stores/new.html.erb +16 -16
- data/app/views/spree/admin/tables/_column_selector.html.erb +52 -0
- data/app/views/spree/admin/tables/_filter_group.html.erb +33 -0
- data/app/views/spree/admin/tables/_filter_row.html.erb +29 -0
- data/app/views/spree/admin/tables/_query_builder.html.erb +95 -0
- data/app/views/spree/admin/tables/_row_actions.html.erb +15 -0
- data/app/views/spree/admin/tables/_table.html.erb +69 -0
- data/app/views/spree/admin/tables/_table_body.html.erb +97 -0
- data/app/views/spree/admin/tables/_table_row.html.erb +44 -0
- data/app/views/spree/admin/tables/columns/_gift_card_status.html.erb +2 -0
- data/app/views/spree/admin/tables/columns/_metafield_definition_display_on.html.erb +4 -0
- data/app/views/spree/admin/tables/columns/_newsletter_subscriber_customer.html.erb +6 -0
- data/app/views/spree/admin/tables/columns/_order_payment_state.html.erb +2 -0
- data/app/views/spree/admin/tables/columns/_order_shipment_state.html.erb +2 -0
- data/app/views/spree/admin/tables/columns/_order_stock_locations.html.erb +4 -0
- data/app/views/spree/admin/tables/columns/_price_list_status.html.erb +1 -0
- data/app/views/spree/admin/tables/columns/_product_inventory.html.erb +3 -0
- data/app/views/spree/admin/tables/columns/_product_name.html.erb +8 -0
- data/app/views/spree/admin/tables/columns/_product_status.html.erb +4 -0
- data/app/views/spree/admin/tables/columns/_promotion_code.html.erb +8 -0
- data/app/views/spree/admin/tables/columns/_promotion_kind.html.erb +9 -0
- data/app/views/spree/admin/tables/columns/_stock_item_backorderable.html.erb +14 -0
- data/app/views/spree/admin/tables/columns/_stock_item_count_on_hand.html.erb +14 -0
- data/app/views/spree/admin/tables/columns/_stock_item_location.html.erb +6 -0
- data/app/views/spree/admin/tables/columns/_user_location.html.erb +2 -0
- data/app/views/spree/admin/tables/columns/_webhook_deliveries_stats.html.erb +3 -0
- data/app/views/spree/admin/tables/columns/_webhook_delivery_actions.html.erb +5 -0
- data/app/views/spree/admin/tables/columns/_webhook_delivery_status.html.erb +2 -0
- data/app/views/spree/admin/tax_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/_form.html.erb +2 -2
- data/app/views/spree/admin/tax_rates/_table_row.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/_form.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/_table_row.html.erb +3 -3
- data/app/views/spree/admin/taxons/_form.html.erb +24 -23
- data/app/views/spree/admin/taxons/_rule_form.html.erb +9 -9
- data/app/views/spree/admin/taxons/_rules_form.html.erb +7 -7
- data/app/views/spree/admin/taxons/rule_forms/_available_on.html.erb +3 -3
- data/app/views/spree/admin/taxons/rule_forms/_sale.html.erb +1 -1
- data/app/views/spree/admin/translations/edit.html.erb +3 -3
- data/app/views/spree/admin/translations/option_types/_form.html.erb +2 -2
- data/app/views/spree/admin/translations/products/_form.html.erb +1 -1
- data/app/views/spree/admin/user_passwords/edit.html.erb +6 -6
- data/app/views/spree/admin/user_passwords/new.html.erb +4 -4
- data/app/views/spree/admin/user_sessions/new.html.erb +6 -6
- data/app/views/spree/admin/users/_billing.html.erb +4 -4
- data/app/views/spree/admin/users/_details.html.erb +34 -25
- data/app/views/spree/admin/users/_filters.html.erb +10 -10
- data/app/views/spree/admin/users/_form.html.erb +23 -3
- data/app/views/spree/admin/users/_form_fields.html.erb +1 -1
- data/app/views/spree/admin/users/_last_order.html.erb +6 -6
- data/app/views/spree/admin/users/_last_order_line_item.html.erb +7 -7
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +31 -40
- data/app/views/spree/admin/users/_search_result.html.erb +13 -0
- data/app/views/spree/admin/users/_search_results.html.erb +9 -0
- data/app/views/spree/admin/users/_shipping.html.erb +4 -4
- data/app/views/spree/admin/users/_tabs.html.erb +15 -21
- data/app/views/spree/admin/users/_user.html.erb +5 -5
- data/app/views/spree/admin/users/edit.html.erb +1 -17
- data/app/views/spree/admin/users/index.html.erb +1 -59
- data/app/views/spree/admin/users/new.html.erb +1 -1
- data/app/views/spree/admin/users/show.html.erb +5 -4
- data/app/views/spree/admin/users/update.turbo_stream.erb +24 -0
- data/app/views/spree/admin/variants/_search_result.html.erb +4 -4
- data/app/views/spree/admin/variants/_search_results.html.erb +1 -1
- data/app/views/spree/admin/variants/_variant.html.erb +3 -3
- data/app/views/spree/admin/variants/edit.html.erb +2 -2
- data/app/views/spree/admin/variants/form/_basic.html.erb +1 -1
- data/app/views/spree/admin/variants/form/_dimensions.html.erb +8 -13
- data/app/views/spree/admin/variants/form/_inventory.html.erb +7 -10
- data/app/views/spree/admin/variants/form/_pricing.html.erb +12 -12
- data/app/views/spree/admin/webhook_deliveries/_table_header.html.erb +8 -0
- data/app/views/spree/admin/webhook_deliveries/_table_row.html.erb +22 -0
- data/app/views/spree/admin/webhook_deliveries/index.html.erb +1 -0
- data/app/views/spree/admin/webhook_deliveries/show.html.erb +61 -0
- data/app/views/spree/admin/webhook_endpoints/_details.html.erb +50 -0
- data/app/views/spree/admin/webhook_endpoints/_form.html.erb +28 -0
- data/app/views/spree/admin/webhook_endpoints/_secret_key.html.erb +23 -0
- data/app/views/spree/admin/webhook_endpoints/_summary.html.erb +26 -0
- data/app/views/spree/admin/webhook_endpoints/_table_header.html.erb +7 -0
- data/app/views/spree/admin/webhook_endpoints/_table_row.html.erb +24 -0
- data/app/views/spree/admin/webhook_endpoints/edit.html.erb +1 -0
- data/app/views/spree/admin/webhook_endpoints/index.html.erb +9 -0
- data/app/views/spree/admin/webhook_endpoints/new.html.erb +1 -0
- data/app/views/spree/admin/webhook_endpoints/show.html.erb +18 -0
- data/app/views/spree/admin/webhook_endpoints/update.turbo_stream.erb +5 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +2 -2
- data/app/views/spree/admin/zones/_form.html.erb +2 -2
- data/app/views/spree/admin/zones/_state_members.html.erb +3 -3
- data/app/views/spree/admin/zones/_table_row.html.erb +2 -2
- data/config/importmap.rb +0 -2
- data/config/initializers/spree_admin_navigation.rb +47 -60
- data/config/initializers/spree_admin_tables.rb +1622 -0
- data/config/locales/en.yml +89 -8
- data/config/routes.rb +61 -45
- data/config/tailwind.config.js +14 -0
- data/lib/generators/spree/admin/install/install_generator.rb +34 -2
- data/lib/generators/spree/admin/install/templates/app/assets/tailwind/spree_admin.css.tt +46 -0
- data/lib/generators/spree/admin/scaffold/scaffold_generator.rb +4 -3
- data/lib/generators/spree/admin/scaffold/templates/navigation_initializer.rb.tt +9 -0
- data/lib/generators/spree/admin/scaffold/templates/table_initializer.rb.tt +27 -0
- data/lib/generators/spree/admin/scaffold/templates/views/_form.html.erb.tt +1 -1
- data/lib/generators/spree/admin/scaffold/templates/views/index.html.erb.tt +1 -1
- data/lib/spree/admin/engine.rb +101 -11
- data/lib/spree/admin/runtime_configuration.rb +5 -4
- data/lib/spree/admin/tailwind_helper.rb +33 -0
- data/lib/spree/admin/testing_support/capybara_utils.rb +41 -0
- data/lib/spree/admin.rb +7 -4
- data/lib/tasks/tailwind.rake +95 -0
- metadata +225 -241
- data/app/assets/stylesheets/spree/admin/actiontext.css +0 -36
- data/app/assets/stylesheets/spree/admin/application.scss +0 -46
- data/app/assets/stylesheets/spree/admin/components/_alerts.scss +0 -69
- data/app/assets/stylesheets/spree/admin/components/_badges.scss +0 -122
- data/app/assets/stylesheets/spree/admin/components/_bulk_panel.scss +0 -81
- data/app/assets/stylesheets/spree/admin/components/_buttons.scss +0 -178
- data/app/assets/stylesheets/spree/admin/components/_cards.scss +0 -146
- data/app/assets/stylesheets/spree/admin/components/_dialogs.scss +0 -210
- data/app/assets/stylesheets/spree/admin/components/_dropdowns.scss +0 -151
- data/app/assets/stylesheets/spree/admin/components/_filters.scss +0 -97
- data/app/assets/stylesheets/spree/admin/components/_line_items_form.scss +0 -32
- data/app/assets/stylesheets/spree/admin/components/_main.scss +0 -87
- data/app/assets/stylesheets/spree/admin/components/_media_form.scss +0 -111
- data/app/assets/stylesheets/spree/admin/components/_modals.scss +0 -45
- data/app/assets/stylesheets/spree/admin/components/_navbar.scss +0 -6
- data/app/assets/stylesheets/spree/admin/components/_navigation.scss +0 -51
- data/app/assets/stylesheets/spree/admin/components/_search_picker.scss +0 -47
- data/app/assets/stylesheets/spree/admin/components/_seo_form.scss +0 -16
- data/app/assets/stylesheets/spree/admin/components/_sidebar.scss +0 -693
- data/app/assets/stylesheets/spree/admin/components/_sortable_tree.scss +0 -63
- data/app/assets/stylesheets/spree/admin/components/_tables.scss +0 -230
- data/app/assets/stylesheets/spree/admin/components/_tooltips.scss +0 -20
- data/app/assets/stylesheets/spree/admin/components/_variants_form.scss +0 -206
- data/app/assets/stylesheets/spree/admin/components/_wizard.scss +0 -27
- data/app/assets/stylesheets/spree/admin/global/_variables.scss +0 -242
- data/app/assets/stylesheets/spree/admin/plugins/_dropdown.scss +0 -102
- data/app/assets/stylesheets/spree/admin/plugins/_items.scss +0 -115
- data/app/assets/stylesheets/spree/admin/plugins/_tinymce_custom.scss +0 -74
- data/app/assets/stylesheets/spree/admin/plugins/_trix_custom.scss +0 -115
- data/app/assets/stylesheets/spree/admin/plugins/plugins/checkbox_options.scss +0 -5
- data/app/assets/stylesheets/spree/admin/plugins/plugins/clear_button.scss +0 -30
- data/app/assets/stylesheets/spree/admin/plugins/plugins/drag_drop.scss +0 -16
- data/app/assets/stylesheets/spree/admin/plugins/plugins/dropdown_header.scss +0 -23
- data/app/assets/stylesheets/spree/admin/plugins/plugins/dropdown_input.scss +0 -47
- data/app/assets/stylesheets/spree/admin/plugins/plugins/input_autogrow.scss +0 -18
- data/app/assets/stylesheets/spree/admin/plugins/plugins/optgroup_columns.scss +0 -23
- data/app/assets/stylesheets/spree/admin/plugins/plugins/remove_button.scss +0 -44
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.bootstrap4.scss +0 -220
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.bootstrap5.scss +0 -274
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.default.scss +0 -87
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.scss +0 -175
- data/app/assets/stylesheets/spree/admin/plugins/uppy_fixes.scss +0 -74
- data/app/assets/stylesheets/spree/admin/shared/_base.scss +0 -737
- data/app/assets/stylesheets/spree/admin/shared/_forms.scss +0 -194
- data/app/assets/stylesheets/spree/admin/views/_dashboard.scss +0 -48
- data/app/assets/stylesheets/spree/admin/views/_page_builder.scss +0 -246
- data/app/controllers/concerns/spree/admin/page_builder_concern.rb +0 -44
- data/app/controllers/concerns/spree/admin/storefront_breadcrumb_concern.rb +0 -12
- data/app/controllers/spree/admin/page_blocks_controller.rb +0 -58
- data/app/controllers/spree/admin/page_links_controller.rb +0 -60
- data/app/controllers/spree/admin/page_sections_controller.rb +0 -82
- data/app/controllers/spree/admin/pages_controller.rb +0 -39
- data/app/controllers/spree/admin/storefront_controller.rb +0 -41
- data/app/controllers/spree/admin/themes_controller.rb +0 -86
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +0 -59
- data/app/helpers/spree/admin/page_builder_helper.rb +0 -125
- data/app/helpers/spree/admin/themes_helper.rb +0 -9
- data/app/helpers/spree/admin/webhooks_subscribers_helper.rb +0 -31
- data/app/javascript/spree/admin/helpers/bootstrap.js +0 -51
- data/app/views/kaminari/admin-twitter-bootstrap-4/_first_page.html.erb +0 -11
- data/app/views/kaminari/admin-twitter-bootstrap-4/_gap.html.erb +0 -12
- data/app/views/kaminari/admin-twitter-bootstrap-4/_last_page.html.erb +0 -11
- data/app/views/kaminari/admin-twitter-bootstrap-4/_next_page.html.erb +0 -12
- data/app/views/kaminari/admin-twitter-bootstrap-4/_page.html.erb +0 -18
- data/app/views/kaminari/admin-twitter-bootstrap-4/_paginator.html.erb +0 -17
- data/app/views/kaminari/admin-twitter-bootstrap-4/_prev_page.html.erb +0 -12
- data/app/views/layouts/spree/page_builder.html.erb +0 -46
- data/app/views/spree/admin/dashboard/_store_preview.html.erb +0 -39
- data/app/views/spree/admin/orders/edit.html.erb +0 -22
- data/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb +0 -5
- data/app/views/spree/admin/page_blocks/create.turbo_stream.erb +0 -4
- data/app/views/spree/admin/page_blocks/destroy.turbo_stream.erb +0 -9
- data/app/views/spree/admin/page_blocks/edit.html.erb +0 -43
- data/app/views/spree/admin/page_blocks/forms/_brand.html.erb +0 -15
- data/app/views/spree/admin/page_blocks/forms/_brand_logo.html.erb +0 -4
- data/app/views/spree/admin/page_blocks/forms/_buttons.html.erb +0 -13
- data/app/views/spree/admin/page_blocks/forms/_heading.html.erb +0 -28
- data/app/views/spree/admin/page_blocks/forms/_image.html.erb +0 -10
- data/app/views/spree/admin/page_blocks/forms/_link.html.erb +0 -19
- data/app/views/spree/admin/page_blocks/forms/_mega_nav.html.erb +0 -14
- data/app/views/spree/admin/page_blocks/forms/_mega_nav_with_subcategories.html.erb +0 -9
- data/app/views/spree/admin/page_blocks/forms/_metafields.html.erb +0 -35
- data/app/views/spree/admin/page_blocks/forms/_nav.html.erb +0 -6
- data/app/views/spree/admin/page_blocks/forms/_newsletter_form.html.erb +0 -20
- data/app/views/spree/admin/page_blocks/forms/_price.html.erb +0 -15
- data/app/views/spree/admin/page_blocks/forms/_share.html.erb +0 -5
- data/app/views/spree/admin/page_blocks/forms/_subheading.html.erb +0 -26
- data/app/views/spree/admin/page_blocks/forms/_text.html.erb +0 -21
- data/app/views/spree/admin/page_blocks/forms/_title.html.erb +0 -20
- data/app/views/spree/admin/page_blocks/forms/_variant_picker.html.erb +0 -10
- data/app/views/spree/admin/page_blocks/forms/products/_buy_buttons.html.erb +0 -10
- data/app/views/spree/admin/page_blocks/forms/products/_description.html.erb +0 -0
- data/app/views/spree/admin/page_blocks/forms/products/_quantity_selector.html.erb +0 -10
- data/app/views/spree/admin/page_blocks/move_higher.turbo_stream.erb +0 -4
- data/app/views/spree/admin/page_blocks/move_lower.turbo_stream.erb +0 -4
- data/app/views/spree/admin/page_blocks/show.html.erb +0 -1
- data/app/views/spree/admin/page_blocks/update.turbo_stream.erb +0 -6
- data/app/views/spree/admin/page_builder/_add_block.html.erb +0 -22
- data/app/views/spree/admin/page_builder/_color_palette.html.erb +0 -17
- data/app/views/spree/admin/page_builder/_color_picker.html.erb +0 -26
- data/app/views/spree/admin/page_builder/_header.html.erb +0 -113
- data/app/views/spree/admin/page_builder/_labeled_range_input.html.erb +0 -10
- data/app/views/spree/admin/page_builder/_pages_dropdown.html.erb +0 -17
- data/app/views/spree/admin/page_builder/_range_input.html.erb +0 -12
- data/app/views/spree/admin/page_builder/_sidebar.html.erb +0 -14
- data/app/views/spree/admin/page_builder/_sidebar_block.html.erb +0 -30
- data/app/views/spree/admin/page_builder/_sidebar_colors.html.erb +0 -86
- data/app/views/spree/admin/page_builder/_sidebar_fonts.html.erb +0 -86
- data/app/views/spree/admin/page_builder/_sidebar_section.html.erb +0 -44
- data/app/views/spree/admin/page_builder/_sidebar_sections.html.erb +0 -43
- data/app/views/spree/admin/page_builder/_sidebar_sections_toolbar.html.erb +0 -180
- data/app/views/spree/admin/page_links/_form.html.erb +0 -10
- data/app/views/spree/admin/page_links/_linkable_type_dropdown.html.erb +0 -15
- data/app/views/spree/admin/page_links/_list.html.erb +0 -36
- data/app/views/spree/admin/page_links/_refresh_theme_preview.turbo_stream.erb +0 -5
- data/app/views/spree/admin/page_links/create.turbo_stream.erb +0 -10
- data/app/views/spree/admin/page_links/destroy.turbo_stream.erb +0 -15
- data/app/views/spree/admin/page_links/edit.html.erb +0 -29
- data/app/views/spree/admin/page_links/update.turbo_stream.erb +0 -12
- data/app/views/spree/admin/page_sections/_form_tab_buttons.html.erb +0 -8
- data/app/views/spree/admin/page_sections/create.turbo_stream.erb +0 -11
- data/app/views/spree/admin/page_sections/destroy.turbo_stream.erb +0 -16
- data/app/views/spree/admin/page_sections/edit.html.erb +0 -39
- data/app/views/spree/admin/page_sections/fields/_background_color.html.erb +0 -6
- data/app/views/spree/admin/page_sections/fields/_border_bottom_width.html.erb +0 -5
- data/app/views/spree/admin/page_sections/fields/_border_color.html.erb +0 -7
- data/app/views/spree/admin/page_sections/fields/_border_top_width.html.erb +0 -6
- data/app/views/spree/admin/page_sections/fields/_bottom_padding.html.erb +0 -5
- data/app/views/spree/admin/page_sections/fields/_button.html.erb +0 -15
- data/app/views/spree/admin/page_sections/fields/_header_layout.html.erb +0 -26
- data/app/views/spree/admin/page_sections/fields/_height.html.erb +0 -6
- data/app/views/spree/admin/page_sections/fields/_text_color.html.erb +0 -7
- data/app/views/spree/admin/page_sections/fields/_top_padding.html.erb +0 -6
- data/app/views/spree/admin/page_sections/forms/_announcement_bar.html.erb +0 -5
- data/app/views/spree/admin/page_sections/forms/_brand_story.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_breadcrumbs.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_collection_banner.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_custom_code.html.erb +0 -4
- data/app/views/spree/admin/page_sections/forms/_featured_posts.html.erb +0 -33
- data/app/views/spree/admin/page_sections/forms/_featured_product.html.erb +0 -4
- data/app/views/spree/admin/page_sections/forms/_featured_taxon.html.erb +0 -59
- data/app/views/spree/admin/page_sections/forms/_featured_taxons.html.erb +0 -13
- data/app/views/spree/admin/page_sections/forms/_footer.html.erb +0 -20
- data/app/views/spree/admin/page_sections/forms/_header.html.erb +0 -12
- data/app/views/spree/admin/page_sections/forms/_image_banner.html.erb +0 -13
- data/app/views/spree/admin/page_sections/forms/_image_with_text.html.erb +0 -28
- data/app/views/spree/admin/page_sections/forms/_main_password_footer.html.erb +0 -9
- data/app/views/spree/admin/page_sections/forms/_main_password_header.erb +0 -13
- data/app/views/spree/admin/page_sections/forms/_newsletter.html.erb +0 -15
- data/app/views/spree/admin/page_sections/forms/_page_title.html.erb +0 -4
- data/app/views/spree/admin/page_sections/forms/_post_details.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_post_grid.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_product_details.html.erb +0 -1
- data/app/views/spree/admin/page_sections/forms/_product_grid.html.erb +0 -1
- data/app/views/spree/admin/page_sections/forms/_related_products.html.erb +0 -32
- data/app/views/spree/admin/page_sections/forms/_rich_text.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_taxon_banner.html.erb +0 -0
- data/app/views/spree/admin/page_sections/forms/_taxon_grid.html.erb +0 -5
- data/app/views/spree/admin/page_sections/forms/_video.html.erb +0 -15
- data/app/views/spree/admin/page_sections/move_higher.turbo_stream.erb +0 -7
- data/app/views/spree/admin/page_sections/move_lower.turbo_stream.erb +0 -7
- data/app/views/spree/admin/page_sections/new.html.erb +0 -28
- data/app/views/spree/admin/page_sections/remove_attachment.turbo_stream.erb +0 -4
- data/app/views/spree/admin/page_sections/restore_design_settings_to_defaults.turbo_stream.erb +0 -4
- data/app/views/spree/admin/page_sections/show.html.erb +0 -1
- data/app/views/spree/admin/page_sections/update.turbo_stream.erb +0 -10
- data/app/views/spree/admin/pages/_form.html.erb +0 -20
- data/app/views/spree/admin/pages/_table_header.html.erb +0 -6
- data/app/views/spree/admin/pages/_table_row.html.erb +0 -28
- data/app/views/spree/admin/pages/edit.html.erb +0 -13
- data/app/views/spree/admin/pages/filters.html.erb +0 -7
- data/app/views/spree/admin/pages/index.html.erb +0 -11
- data/app/views/spree/admin/pages/new.html.erb +0 -1
- data/app/views/spree/admin/products/_bulk_operations.html.erb +0 -78
- data/app/views/spree/admin/products/bulk_modal.html.erb +0 -16
- data/app/views/spree/admin/storefront/edit.html.erb +0 -89
- data/app/views/spree/admin/themes/_theme.html.erb +0 -56
- data/app/views/spree/admin/themes/_theme_preview_image.html.erb +0 -17
- data/app/views/spree/admin/themes/edit.html.erb +0 -14
- data/app/views/spree/admin/themes/index.html.erb +0 -80
- data/app/views/spree/admin/themes/update.turbo_stream.erb +0 -1
- data/app/views/spree/admin/users/bulk_modal.html.erb +0 -14
- data/app/views/spree/admin/webhook_events/_webhook_event.html.erb +0 -17
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +0 -68
- data/app/views/spree/admin/webhooks_subscribers/_table_header.html.erb +0 -7
- data/app/views/spree/admin/webhooks_subscribers/_table_row.html.erb +0 -22
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +0 -1
- data/app/views/spree/admin/webhooks_subscribers/index.html.erb +0 -10
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +0 -65
- data/config/initializers/dartsass.rb +0 -3
- data/config/initializers/form_builder.rb +0 -10
- data/lib/generators/spree/admin/scaffold/templates/views/_filters.html.erb.tt +0 -13
- data/lib/generators/spree/admin/scaffold/templates/views/_table_header.html.erb.tt +0 -5
- data/lib/generators/spree/admin/scaffold/templates/views/_table_row.html.erb.tt +0 -11
- data/vendor/javascript/bootstrap--dist--js--bootstrap.bundle.min.js.js +0 -8
- data/vendor/javascript/jquery.min.js +0 -2
- /data/app/views/spree/admin/{webhooks_subscribers → customer_groups}/new.html.erb +0 -0
data/config/locales/en.yml
CHANGED
|
@@ -7,6 +7,16 @@ en:
|
|
|
7
7
|
avg_order_value: Avg. Order Value
|
|
8
8
|
back_to_dashboard: Back to dashboard
|
|
9
9
|
bulk_ops:
|
|
10
|
+
customer_group_users:
|
|
11
|
+
body:
|
|
12
|
+
remove: Are you sure you want to remove the selected customers from this group?
|
|
13
|
+
title:
|
|
14
|
+
remove: Remove from Group
|
|
15
|
+
price_list_products:
|
|
16
|
+
body:
|
|
17
|
+
remove: Are you sure you want to remove the selected products from this price list? This will also remove their prices.
|
|
18
|
+
title:
|
|
19
|
+
remove: Remove from Price List
|
|
10
20
|
products:
|
|
11
21
|
body:
|
|
12
22
|
add_tags: 'Select tags to add to the products:'
|
|
@@ -14,11 +24,9 @@ en:
|
|
|
14
24
|
add_to_taxons: 'Select which taxons to add the products to:'
|
|
15
25
|
remove_from_taxons: 'Select which taxons to remove the products from:'
|
|
16
26
|
remove_tags: 'Select tags to remove from the products:'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
archived: Setting products to archived will hide them from storefront.
|
|
21
|
-
draft: Setting products to draft will hide them from storefront.
|
|
27
|
+
set_active: Setting products to active will make those products available on the storefront.
|
|
28
|
+
set_archived: Setting products to archived will hide them from storefront.
|
|
29
|
+
set_draft: Setting products to draft will hide them from storefront.
|
|
22
30
|
status_updated: Status updated
|
|
23
31
|
title:
|
|
24
32
|
add_tags: Add tags
|
|
@@ -27,9 +35,9 @@ en:
|
|
|
27
35
|
remove_from_brand: Remove from brand
|
|
28
36
|
remove_from_taxons: Remove from taxons
|
|
29
37
|
remove_tags: Remove tags
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
set_active: Set as Active
|
|
39
|
+
set_archived: Set as Archived
|
|
40
|
+
set_draft: Set as Draft
|
|
33
41
|
users:
|
|
34
42
|
body:
|
|
35
43
|
add_tags: 'Select tags to add to the customers:'
|
|
@@ -191,6 +199,18 @@ en:
|
|
|
191
199
|
vertical_alignment: Vertical alignment
|
|
192
200
|
youtube_video_url: Youtube video URL
|
|
193
201
|
personal_details: Personal Details
|
|
202
|
+
price_lists:
|
|
203
|
+
activate: Activate
|
|
204
|
+
activated: Price list has been activated
|
|
205
|
+
confirm_activate: Are you sure you want to activate this price list? It will immediately affect pricing.
|
|
206
|
+
confirm_deactivate: Are you sure you want to deactivate this price list?
|
|
207
|
+
confirm_schedule: Are you sure you want to schedule this price list?
|
|
208
|
+
confirm_unschedule: Are you sure you want to unschedule this price list?
|
|
209
|
+
deactivate: Deactivate
|
|
210
|
+
deactivated: Price list has been deactivated
|
|
211
|
+
schedule: Schedule
|
|
212
|
+
scheduled: Price list has been scheduled
|
|
213
|
+
unschedule: Unschedule
|
|
194
214
|
products:
|
|
195
215
|
active: Active
|
|
196
216
|
all_statuses: All statuses
|
|
@@ -260,6 +280,40 @@ en:
|
|
|
260
280
|
storefront: Storefront
|
|
261
281
|
successful: Successful
|
|
262
282
|
successfully_reset_digital_links_limit: Download limits have been reset
|
|
283
|
+
tables:
|
|
284
|
+
add_filter: Add filter
|
|
285
|
+
add_or_group: Add OR group
|
|
286
|
+
apply: Apply
|
|
287
|
+
apply_filters: Apply Filters
|
|
288
|
+
ascending: Ascending
|
|
289
|
+
clear_all: Clear All
|
|
290
|
+
columns: Columns
|
|
291
|
+
descending: Descending
|
|
292
|
+
enter_value: Enter value...
|
|
293
|
+
filter_builder: Filter Builder
|
|
294
|
+
filters: Filters
|
|
295
|
+
match: Match
|
|
296
|
+
of_the_following: of the following
|
|
297
|
+
operators:
|
|
298
|
+
contains: contains
|
|
299
|
+
does_not_contain: does not contain
|
|
300
|
+
ends_with: ends with
|
|
301
|
+
equals: equals
|
|
302
|
+
greater_than: greater than
|
|
303
|
+
greater_than_or_equal: greater than or equal
|
|
304
|
+
is_any_of: is any of
|
|
305
|
+
is_empty: is empty
|
|
306
|
+
is_none_of: is none of
|
|
307
|
+
is_not_empty: is not empty
|
|
308
|
+
less_than: less than
|
|
309
|
+
less_than_or_equal: less than or equal
|
|
310
|
+
not_equals: does not equal
|
|
311
|
+
starts_with: starts with
|
|
312
|
+
order: Order
|
|
313
|
+
reset_to_default: Reset to Default
|
|
314
|
+
select_field: Select field...
|
|
315
|
+
sort_by: Sort by
|
|
316
|
+
visible_columns: Visible Columns
|
|
263
317
|
taxon_rules:
|
|
264
318
|
all_conditions: all conditions
|
|
265
319
|
any_condition: any condition
|
|
@@ -302,6 +356,33 @@ en:
|
|
|
302
356
|
total_inventory_html: 'Total inventory at %{stock_location} location: %{count} available'
|
|
303
357
|
vendors:
|
|
304
358
|
enterprise_feature: Multi-Vendor Marketplace is available in the Enterprise Edition
|
|
359
|
+
webhook_deliveries:
|
|
360
|
+
delivered_at: Delivered at
|
|
361
|
+
delivery_details: Delivery Details
|
|
362
|
+
delivery_info: Delivery Information
|
|
363
|
+
endpoint_inactive: Cannot retry - endpoint is inactive
|
|
364
|
+
error_type: Error Type
|
|
365
|
+
event: Event
|
|
366
|
+
execution_time: Execution Time
|
|
367
|
+
failed: Failed
|
|
368
|
+
pending: Pending
|
|
369
|
+
request_errors: Request Errors
|
|
370
|
+
request_payload: Request Payload
|
|
371
|
+
response_body: Response Body
|
|
372
|
+
response_code: Response Code
|
|
373
|
+
webhook_endpoints:
|
|
374
|
+
back_to_endpoint: Back to endpoint
|
|
375
|
+
deliveries: Deliveries
|
|
376
|
+
endpoint_settings: Endpoint Settings
|
|
377
|
+
event_subscriptions: Event Subscriptions
|
|
378
|
+
event_subscriptions_help: Select which events should trigger a webhook delivery to this endpoint.
|
|
379
|
+
events: events
|
|
380
|
+
failed_deliveries: Failed Deliveries
|
|
381
|
+
new: New Webhook Endpoint
|
|
382
|
+
secret_key: Secret Key
|
|
383
|
+
secret_key_help: Use this key to verify webhook signatures. Keep it secure and do not share it publicly.
|
|
384
|
+
subscriptions: Subscriptions
|
|
385
|
+
successful_deliveries: Successful Deliveries
|
|
305
386
|
webhooks_subscribers:
|
|
306
387
|
all_events: All Events
|
|
307
388
|
new_webhooks_subscriber: New Webhooks Subscriber
|
data/config/routes.rb
CHANGED
|
@@ -13,7 +13,6 @@ Spree::Core::Engine.add_routes do
|
|
|
13
13
|
collection do
|
|
14
14
|
get :select_options, defaults: { format: :json }
|
|
15
15
|
post :search
|
|
16
|
-
get :bulk_modal
|
|
17
16
|
put :bulk_status_update
|
|
18
17
|
put :bulk_add_to_taxons
|
|
19
18
|
put :bulk_remove_from_taxons
|
|
@@ -32,6 +31,22 @@ Spree::Core::Engine.add_routes do
|
|
|
32
31
|
# stock
|
|
33
32
|
resources :stock_items, only: [:index, :update, :destroy]
|
|
34
33
|
resources :stock_transfers, except: [:edit, :update]
|
|
34
|
+
# price lists
|
|
35
|
+
resources :price_lists do
|
|
36
|
+
resources :price_rules, only: [:new, :create, :edit, :update, :destroy]
|
|
37
|
+
resources :products, only: [:index], controller: 'price_list_products' do
|
|
38
|
+
collection do
|
|
39
|
+
get :bulk_new
|
|
40
|
+
post :bulk_create
|
|
41
|
+
delete :bulk_destroy
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
member do
|
|
45
|
+
get :edit_prices
|
|
46
|
+
put :activate
|
|
47
|
+
put :deactivate
|
|
48
|
+
end
|
|
49
|
+
end
|
|
35
50
|
# taxonomies and taxons
|
|
36
51
|
resources :taxonomies do
|
|
37
52
|
resources :taxons do
|
|
@@ -44,6 +59,10 @@ Spree::Core::Engine.add_routes do
|
|
|
44
59
|
resources :classifications, only: %i[index new create update destroy]
|
|
45
60
|
end
|
|
46
61
|
get '/taxons/select_options' => 'taxons#select_options', as: :taxons_select_options, defaults: { format: :json }
|
|
62
|
+
get '/tags/select_options' => 'tags#select_options', as: :tags_select_options, defaults: { format: :json }
|
|
63
|
+
get '/countries/select_options' => 'countries#select_options', as: :countries_select_options, defaults: { format: :json }
|
|
64
|
+
get '/users/select_options' => 'users#select_options', as: :users_select_options, defaults: { format: :json }
|
|
65
|
+
get '/stock_locations/select_options' => 'stock_locations#select_options', as: :stock_locations_select_options, defaults: { format: :json }
|
|
47
66
|
|
|
48
67
|
# media library
|
|
49
68
|
resources :assets, only: [:create, :edit, :update, :destroy] do
|
|
@@ -54,7 +73,7 @@ Spree::Core::Engine.add_routes do
|
|
|
54
73
|
|
|
55
74
|
# orders
|
|
56
75
|
resources :checkouts, only: %i[index]
|
|
57
|
-
resources :orders
|
|
76
|
+
resources :orders do
|
|
58
77
|
member do
|
|
59
78
|
post :resend
|
|
60
79
|
put :cancel
|
|
@@ -90,6 +109,12 @@ Spree::Core::Engine.add_routes do
|
|
|
90
109
|
post :perform
|
|
91
110
|
end
|
|
92
111
|
end
|
|
112
|
+
resources :adjustments, except: [:index, :show], controller: 'orders/adjustments' do
|
|
113
|
+
member do
|
|
114
|
+
put :toggle_state
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
resources :order_promotions, only: [:new, :create, :destroy], controller: 'orders/order_promotions'
|
|
93
118
|
end
|
|
94
119
|
|
|
95
120
|
# customers
|
|
@@ -100,16 +125,31 @@ Spree::Core::Engine.add_routes do
|
|
|
100
125
|
resources :gift_cards
|
|
101
126
|
|
|
102
127
|
collection do
|
|
103
|
-
|
|
128
|
+
post :search
|
|
104
129
|
post :bulk_add_tags
|
|
105
130
|
post :bulk_remove_tags
|
|
106
131
|
end
|
|
107
132
|
end
|
|
133
|
+
resources :customer_groups do
|
|
134
|
+
collection do
|
|
135
|
+
get :select_options, defaults: { format: :json }
|
|
136
|
+
end
|
|
137
|
+
resources :customer_group_users, only: [:index, :create, :destroy] do
|
|
138
|
+
collection do
|
|
139
|
+
get :bulk_new
|
|
140
|
+
post :bulk_create
|
|
141
|
+
delete :bulk_destroy
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
108
145
|
resources :newsletter_subscribers, only: [:index, :destroy]
|
|
109
146
|
resources :addresses, except: [:index, :show]
|
|
110
147
|
|
|
111
148
|
# promotions
|
|
112
149
|
resources :promotions do
|
|
150
|
+
collection do
|
|
151
|
+
get :select_options
|
|
152
|
+
end
|
|
113
153
|
member do
|
|
114
154
|
post :clone
|
|
115
155
|
end
|
|
@@ -195,52 +235,16 @@ Spree::Core::Engine.add_routes do
|
|
|
195
235
|
# integrations
|
|
196
236
|
resources :integrations
|
|
197
237
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
member do
|
|
202
|
-
put :update_with_page
|
|
203
|
-
put :publish
|
|
204
|
-
post :clone
|
|
205
|
-
end
|
|
206
|
-
resources :sections, controller: 'page_sections', only: %i[new create] do
|
|
207
|
-
member do
|
|
208
|
-
patch :move_higher
|
|
209
|
-
patch :move_lower
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
resources :pages, except: [:show] do
|
|
214
|
-
resources :sections, controller: 'page_sections', only: %i[new create] do
|
|
215
|
-
member do
|
|
216
|
-
patch :move_higher
|
|
217
|
-
patch :move_lower
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
resources :page_sections, only: %i[edit update destroy] do
|
|
222
|
-
member do
|
|
223
|
-
patch :restore_design_settings_to_defaults
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
resources :blocks, controller: 'page_blocks' do
|
|
227
|
-
member do
|
|
228
|
-
patch :move_higher
|
|
229
|
-
patch :move_lower
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
resources :links, controller: 'page_links', only: [:create]
|
|
238
|
+
resources :posts do
|
|
239
|
+
collection do
|
|
240
|
+
get :select_options, defaults: { format: :json }
|
|
233
241
|
end
|
|
234
|
-
resources :links, controller: 'page_links', only: [:create]
|
|
235
242
|
end
|
|
236
|
-
resources :
|
|
237
|
-
|
|
238
|
-
resources :posts do
|
|
243
|
+
resources :post_categories do
|
|
239
244
|
collection do
|
|
240
245
|
get :select_options, defaults: { format: :json }
|
|
241
246
|
end
|
|
242
247
|
end
|
|
243
|
-
resources :post_categories
|
|
244
248
|
|
|
245
249
|
# account management
|
|
246
250
|
resources :roles, except: :show
|
|
@@ -250,7 +254,11 @@ Spree::Core::Engine.add_routes do
|
|
|
250
254
|
put :resend
|
|
251
255
|
end
|
|
252
256
|
end
|
|
253
|
-
resources :admin_users
|
|
257
|
+
resources :admin_users do
|
|
258
|
+
collection do
|
|
259
|
+
get :select_options, defaults: { format: :json }
|
|
260
|
+
end
|
|
261
|
+
end
|
|
254
262
|
|
|
255
263
|
# Action Text
|
|
256
264
|
namespace :action_text do
|
|
@@ -259,7 +267,9 @@ Spree::Core::Engine.add_routes do
|
|
|
259
267
|
|
|
260
268
|
# developer tools
|
|
261
269
|
resources :oauth_applications
|
|
262
|
-
resources :
|
|
270
|
+
resources :webhook_endpoints do
|
|
271
|
+
resources :webhook_deliveries, only: [:index, :show]
|
|
272
|
+
end
|
|
263
273
|
|
|
264
274
|
# errors
|
|
265
275
|
get '/forbidden', to: 'errors#show', code: 403, as: :forbidden
|
|
@@ -268,6 +278,12 @@ Spree::Core::Engine.add_routes do
|
|
|
268
278
|
get '/errors/:path', to: 'errors#show', as: :pathed_errors
|
|
269
279
|
end
|
|
270
280
|
|
|
281
|
+
# table columns (for session-based column selection)
|
|
282
|
+
post 'table_columns', to: 'table_columns#update', as: :table_columns
|
|
283
|
+
|
|
284
|
+
# bulk operations modal
|
|
285
|
+
resources :bulk_operations, only: [:new]
|
|
286
|
+
|
|
271
287
|
# dashboard
|
|
272
288
|
resource :dashboard, controller: 'dashboard'
|
|
273
289
|
get '/dashboard/analytics', to: 'dashboard#analytics', as: :dashboard_analytics
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Tailwind CSS v4 - Minimal config for content paths only
|
|
2
|
+
// Theme configuration has been moved to app/assets/tailwind/spree/admin/application.css
|
|
3
|
+
module.exports = {
|
|
4
|
+
content: [
|
|
5
|
+
// Host app admin customizations
|
|
6
|
+
'./app/helpers/spree/admin/**/*.rb',
|
|
7
|
+
'./app/javascript/spree/admin/**/*.js',
|
|
8
|
+
'./app/views/spree/admin/**/*.erb',
|
|
9
|
+
// Spree Admin engine paths (set by engine initializer)
|
|
10
|
+
process.env.SPREE_ADMIN_PATH + '/app/helpers/**/*.rb',
|
|
11
|
+
process.env.SPREE_ADMIN_PATH + '/app/javascript/**/*.js',
|
|
12
|
+
process.env.SPREE_ADMIN_PATH + '/app/views/spree/admin/**/*.erb'
|
|
13
|
+
].filter(Boolean)
|
|
14
|
+
}
|
|
@@ -15,16 +15,33 @@ module Spree
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def install
|
|
18
|
+
install_procfile
|
|
19
|
+
install_bin_dev
|
|
20
|
+
install_assets_manifest
|
|
21
|
+
install_tailwind_css
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
private
|
|
25
|
+
|
|
26
|
+
def install_procfile
|
|
18
27
|
if Rails.root && Rails.root.join("Procfile.dev").exist?
|
|
19
|
-
|
|
28
|
+
# Remove old dartsass entry if present
|
|
29
|
+
if File.read('Procfile.dev').include?('dartsass:watch')
|
|
30
|
+
gsub_file 'Procfile.dev', /^admin_css:.*dartsass:watch.*\n?/, ''
|
|
31
|
+
end
|
|
32
|
+
append_to_file 'Procfile.dev', "\nadmin_css: bin/rails spree:admin:tailwindcss:watch" unless File.read('Procfile.dev').include?('spree:admin:tailwindcss:watch')
|
|
20
33
|
else
|
|
21
|
-
create_file 'Procfile.dev', "admin_css: bin/rails
|
|
34
|
+
create_file 'Procfile.dev', "admin_css: bin/rails spree:admin:tailwindcss:watch\n"
|
|
22
35
|
end
|
|
36
|
+
end
|
|
23
37
|
|
|
38
|
+
def install_bin_dev
|
|
24
39
|
say "Add bin/dev to start foreman"
|
|
25
40
|
copy_file "dev", "bin/dev", force: true
|
|
26
41
|
chmod "bin/dev", 0755, verbose: false
|
|
42
|
+
end
|
|
27
43
|
|
|
44
|
+
def install_assets_manifest
|
|
28
45
|
empty_directory Rails.root.join('app/assets/builds') if Rails.root
|
|
29
46
|
|
|
30
47
|
unless File.exist?('app/assets/config/manifest.js')
|
|
@@ -36,6 +53,21 @@ module Spree
|
|
|
36
53
|
append_to_file 'app/assets/config/manifest.js', "\n//= link_tree ../builds" unless File.read('app/assets/config/manifest.js').include?('//= link_tree ../builds')
|
|
37
54
|
end
|
|
38
55
|
end
|
|
56
|
+
|
|
57
|
+
def install_tailwind_css
|
|
58
|
+
template(
|
|
59
|
+
'app/assets/tailwind/spree_admin.css',
|
|
60
|
+
'app/assets/tailwind/spree_admin.css',
|
|
61
|
+
force: options[:force]
|
|
62
|
+
)
|
|
63
|
+
say "Created app/assets/tailwind/spree_admin.css for Tailwind CSS customization"
|
|
64
|
+
|
|
65
|
+
# Create empty application.css to satisfy the default tailwindcss:build task
|
|
66
|
+
# This prevents errors when running assets:precompile with tailwindcss-rails gem
|
|
67
|
+
unless File.exist?('app/assets/tailwind/application.css')
|
|
68
|
+
create_file 'app/assets/tailwind/application.css', "/* Empty file to satisfy tailwindcss-rails default build task */\n"
|
|
69
|
+
end
|
|
70
|
+
end
|
|
39
71
|
end
|
|
40
72
|
end
|
|
41
73
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Spree Admin Tailwind CSS
|
|
3
|
+
*
|
|
4
|
+
* This file is the entry point for Spree Admin's Tailwind CSS.
|
|
5
|
+
* It imports the base styles from the Spree Admin gem and allows
|
|
6
|
+
* you to add custom admin styles.
|
|
7
|
+
*
|
|
8
|
+
* The $SPREE_ADMIN_PATH variable is automatically resolved at build time.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Import Spree Admin base styles from the gem */
|
|
12
|
+
@import "$SPREE_ADMIN_PATH/app/assets/tailwind/spree/admin/index.css";
|
|
13
|
+
|
|
14
|
+
/* Scan host app's custom admin code for Tailwind classes */
|
|
15
|
+
@source "../../views/spree/admin/**/*.erb";
|
|
16
|
+
@source "../../helpers/spree/admin/**/*.rb";
|
|
17
|
+
@source "../../javascript/spree/admin/**/*.js";
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* CUSTOMIZATION OPTIONS
|
|
21
|
+
* =====================
|
|
22
|
+
*
|
|
23
|
+
* 1. Override Tailwind theme values (colors, spacing, etc.)
|
|
24
|
+
* Add after the @import above:
|
|
25
|
+
*
|
|
26
|
+
* @theme {
|
|
27
|
+
* --color-primary-500: #your-color;
|
|
28
|
+
* --color-gray-100: #your-gray;
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* 2. Add custom components using Tailwind's @layer directive:
|
|
32
|
+
*
|
|
33
|
+
* @layer components {
|
|
34
|
+
* .my-custom-button {
|
|
35
|
+
* @apply bg-primary-500 text-white px-4 py-2 rounded;
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* 3. Override admin CSS variables
|
|
40
|
+
* See admin/app/assets/tailwind/spree/admin/base/_theme.css for available variables
|
|
41
|
+
*
|
|
42
|
+
* :root {
|
|
43
|
+
* --sidebar-width: 280px;
|
|
44
|
+
* --header-height: 70px;
|
|
45
|
+
* }
|
|
46
|
+
*/
|
|
@@ -31,11 +31,12 @@ module Spree
|
|
|
31
31
|
template 'views/edit.html.erb', "app/views/spree/admin/#{@plural_name}/edit.html.erb"
|
|
32
32
|
|
|
33
33
|
# partials
|
|
34
|
-
template 'views/_table_header.html.erb', "app/views/spree/admin/#{@plural_name}/_table_header.html.erb"
|
|
35
|
-
template 'views/_table_row.html.erb', "app/views/spree/admin/#{@plural_name}/_table_row.html.erb"
|
|
36
|
-
template 'views/_filters.html.erb', "app/views/spree/admin/#{@plural_name}/_filters.html.erb"
|
|
37
34
|
template 'views/_form.html.erb', "app/views/spree/admin/#{@plural_name}/_form.html.erb"
|
|
38
35
|
|
|
36
|
+
# initializers
|
|
37
|
+
template 'table_initializer.rb', "config/initializers/spree_admin_#{@plural_name}_table.rb"
|
|
38
|
+
template 'navigation_initializer.rb', "config/initializers/spree_admin_#{@plural_name}_navigation.rb"
|
|
39
|
+
|
|
39
40
|
# routes
|
|
40
41
|
insert_into_file 'config/routes.rb', after: "Spree::Core::Engine.add_routes do\n" do
|
|
41
42
|
<<-ROUTES.strip_heredoc.indent!(4)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Rails.application.config.after_initialize do
|
|
2
|
+
Spree.admin.navigation.sidebar.add :<%= @plural_name %>,
|
|
3
|
+
label: :<%= @plural_name %>,
|
|
4
|
+
url: :admin_<%= @plural_name %>_path,
|
|
5
|
+
icon: 'list',
|
|
6
|
+
position: 55,
|
|
7
|
+
active: -> { controller_name == '<%= @plural_name %>' },
|
|
8
|
+
if: -> { can?(:manage, <%= @resource_name %>) }
|
|
9
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Rails.application.config.after_initialize do
|
|
2
|
+
Spree.admin.tables.register(:<%= @plural_name %>, model_class: <%= @resource_name %>, search_param: :name_cont)
|
|
3
|
+
|
|
4
|
+
Spree.admin.tables.<%= @plural_name %>.add :name,
|
|
5
|
+
label: :name,
|
|
6
|
+
type: :link,
|
|
7
|
+
sortable: true,
|
|
8
|
+
filterable: true,
|
|
9
|
+
default: true,
|
|
10
|
+
position: 10
|
|
11
|
+
|
|
12
|
+
Spree.admin.tables.<%= @plural_name %>.add :created_at,
|
|
13
|
+
label: :created_at,
|
|
14
|
+
type: :datetime,
|
|
15
|
+
sortable: true,
|
|
16
|
+
filterable: true,
|
|
17
|
+
default: true,
|
|
18
|
+
position: 20
|
|
19
|
+
|
|
20
|
+
Spree.admin.tables.<%= @plural_name %>.add :updated_at,
|
|
21
|
+
label: :updated_at,
|
|
22
|
+
type: :datetime,
|
|
23
|
+
sortable: true,
|
|
24
|
+
filterable: true,
|
|
25
|
+
default: false,
|
|
26
|
+
position: 30
|
|
27
|
+
end
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
<%%= link_to_with_icon 'plus', Spree.t(:new_<%= @singular_name %>), new_object_url, class: "btn btn-primary" if can? :create, <%= @resource_name %> %>
|
|
7
7
|
<%% end %>
|
|
8
8
|
|
|
9
|
-
<%%=
|
|
9
|
+
<%%= render_table @collection, :<%= @plural_name %> %>
|
data/lib/spree/admin/engine.rb
CHANGED
|
@@ -53,6 +53,8 @@ module Spree
|
|
|
53
53
|
:posts_actions_partials,
|
|
54
54
|
:posts_filters_partials,
|
|
55
55
|
:posts_header_partials,
|
|
56
|
+
:price_lists_actions_partials,
|
|
57
|
+
:price_lists_header_partials,
|
|
56
58
|
:product_dropdown_partials,
|
|
57
59
|
:product_page_title_partials,
|
|
58
60
|
:product_form_partials,
|
|
@@ -126,7 +128,8 @@ module Spree
|
|
|
126
128
|
:vendors_nav_partials,
|
|
127
129
|
:zones_actions_partials,
|
|
128
130
|
:zones_header_partials,
|
|
129
|
-
:navigation
|
|
131
|
+
:navigation,
|
|
132
|
+
:tables
|
|
130
133
|
)
|
|
131
134
|
|
|
132
135
|
class NavigationEnvironment
|
|
@@ -178,6 +181,81 @@ module Spree
|
|
|
178
181
|
end
|
|
179
182
|
end
|
|
180
183
|
|
|
184
|
+
class TablesEnvironment
|
|
185
|
+
def initialize
|
|
186
|
+
@registries = {}
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Register a new table
|
|
190
|
+
# @param name [Symbol] The name of the table (e.g., :products, :orders)
|
|
191
|
+
# @param model_class [Class, nil] The model class for this table
|
|
192
|
+
# @param search_param [Symbol] The ransack parameter for text search (default: :name_cont)
|
|
193
|
+
# @param search_placeholder [String, nil] Custom placeholder for search field
|
|
194
|
+
# @param row_actions [Boolean] Whether to show row actions (default: false)
|
|
195
|
+
# @param row_actions_edit [Boolean] Whether to show edit button in row actions (default: true)
|
|
196
|
+
# @param row_actions_delete [Boolean] Whether to show delete button in row actions (default: false)
|
|
197
|
+
# @param new_resource [Boolean] Whether to show "Create new" button in empty state (default: true)
|
|
198
|
+
# @param date_range_param [Symbol, nil] Ransack parameter base for date range filter (e.g., :completed_at)
|
|
199
|
+
# @param date_range_label [String, nil] Label for date range filter
|
|
200
|
+
# @param link_to_action [Symbol] Action to link to for :link columns (:edit or :show, default: :edit)
|
|
201
|
+
# @return [Spree::Admin::Table] The table instance
|
|
202
|
+
def register(name, model_class: nil, search_param: :name_cont, search_placeholder: nil, row_actions: false, row_actions_edit: true, row_actions_delete: false, new_resource: true, date_range_param: nil, date_range_label: nil, link_to_action: :edit)
|
|
203
|
+
name = name.to_sym
|
|
204
|
+
@registries[name] ||= Spree::Admin::Table.new(
|
|
205
|
+
name,
|
|
206
|
+
key: name,
|
|
207
|
+
model_class: model_class,
|
|
208
|
+
search_param: search_param,
|
|
209
|
+
search_placeholder: search_placeholder,
|
|
210
|
+
row_actions: row_actions,
|
|
211
|
+
row_actions_edit: row_actions_edit,
|
|
212
|
+
row_actions_delete: row_actions_delete,
|
|
213
|
+
new_resource: new_resource,
|
|
214
|
+
date_range_param: date_range_param,
|
|
215
|
+
date_range_label: date_range_label,
|
|
216
|
+
link_to_action: link_to_action
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Get a registered table
|
|
221
|
+
# @param name [Symbol] The name of the table
|
|
222
|
+
# @return [Spree::Admin::Table] The table instance
|
|
223
|
+
# @raise [NoMethodError] if the table hasn't been registered
|
|
224
|
+
def get(name)
|
|
225
|
+
name = name.to_sym
|
|
226
|
+
@registries[name] || raise(NoMethodError, "Table '#{name}' has not been registered. Use Spree.admin.tables.register(:#{name}) first.")
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Check if a table is registered
|
|
230
|
+
# @param name [Symbol] The table name
|
|
231
|
+
# @return [Boolean]
|
|
232
|
+
def registered?(name)
|
|
233
|
+
@registries.key?(name.to_sym)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# List all registered tables
|
|
237
|
+
# @return [Array<Symbol>]
|
|
238
|
+
def registries
|
|
239
|
+
@registries.keys
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Define accessor methods for registered tables
|
|
243
|
+
def method_missing(method_name, *args)
|
|
244
|
+
if method_name.to_s.end_with?('=')
|
|
245
|
+
super
|
|
246
|
+
else
|
|
247
|
+
get(method_name)
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
def respond_to_missing?(method_name, include_private = false)
|
|
252
|
+
method_name.to_s.end_with?('=') ? false : registered?(method_name)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Add app/subscribers to autoload paths
|
|
257
|
+
config.paths.add 'app/subscribers', eager_load: true
|
|
258
|
+
|
|
181
259
|
# accessible via Rails.application.config.spree_admin
|
|
182
260
|
initializer 'spree.admin.environment', before: :load_config_initializers do |app|
|
|
183
261
|
app.config.spree_admin = Environment.new
|
|
@@ -187,31 +265,32 @@ module Spree
|
|
|
187
265
|
Spree::Admin::RuntimeConfig = Spree::Admin::RuntimeConfiguration.new
|
|
188
266
|
end
|
|
189
267
|
|
|
190
|
-
initializer 'spree.admin.dartsass_fix' do |app|
|
|
191
|
-
if app.config.respond_to?(:assets) && defined?(Sprockets)
|
|
192
|
-
# we're not using any sass compressors, as we're using dartsass-rails
|
|
193
|
-
# some gems however like payment_icons still have sassc-rails as a dependency
|
|
194
|
-
# which sets the css_compressor to :sass and breaks the assets pipeline
|
|
195
|
-
app.config.assets.css_compressor = nil if app.config.assets.css_compressor == :sass
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
268
|
# Rails 7.1 introduced a new feature that raises an error if a callback action is missing.
|
|
200
269
|
# We need to disable it as we use a lot of concerns that add callback actions.
|
|
201
270
|
initializer 'spree.admin.disable_raise_on_missing_callback_actions' do |app|
|
|
202
271
|
app.config.action_controller.raise_on_missing_callback_actions = false
|
|
203
272
|
end
|
|
204
273
|
|
|
274
|
+
initializer 'spree.admin.tailwind_path', before: :load_config_initializers do
|
|
275
|
+
ENV['SPREE_ADMIN_PATH'] ||= root.to_s
|
|
276
|
+
end
|
|
277
|
+
|
|
205
278
|
initializer 'spree.admin.assets' do |app|
|
|
206
279
|
if app.config.respond_to?(:assets)
|
|
207
280
|
app.config.assets.paths << root.join('app/javascript')
|
|
208
281
|
app.config.assets.paths << root.join('vendor/javascript')
|
|
209
|
-
|
|
282
|
+
# Add host app's builds directory for compiled Tailwind CSS
|
|
283
|
+
app.config.assets.paths << Rails.root.join('app/assets/builds')
|
|
284
|
+
app.config.assets.precompile += %w[ spree_admin_manifest ] if defined?(Sprockets)
|
|
210
285
|
# fix for TinyMCE-rails gem to work with both propshaft and sprockets
|
|
211
286
|
app.config.assets.excluded_paths ||= [] if defined?(Sprockets)
|
|
212
287
|
end
|
|
213
288
|
end
|
|
214
289
|
|
|
290
|
+
rake_tasks do
|
|
291
|
+
load root.join('lib/tasks/tailwind.rake')
|
|
292
|
+
end
|
|
293
|
+
|
|
215
294
|
initializer 'spree.admin.importmap', after: 'importmap' do |app|
|
|
216
295
|
app.config.spree_admin = ActiveSupport::OrderedOptions.new
|
|
217
296
|
app.config.spree_admin.cache_sweepers = []
|
|
@@ -250,6 +329,17 @@ module Spree
|
|
|
250
329
|
app.config.spree_admin.navigation.register_context(:returns_tabs)
|
|
251
330
|
app.config.spree_admin.navigation.register_context(:developers_tabs)
|
|
252
331
|
app.config.spree_admin.navigation.register_context(:audit_tabs)
|
|
332
|
+
|
|
333
|
+
# Register tables environment
|
|
334
|
+
app.config.spree_admin.tables = TablesEnvironment.new
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Add admin event subscribers
|
|
338
|
+
config.after_initialize do
|
|
339
|
+
Spree.subscribers.concat [
|
|
340
|
+
Spree::Admin::ImportSubscriber,
|
|
341
|
+
Spree::Admin::ImportRowSubscriber
|
|
342
|
+
]
|
|
253
343
|
end
|
|
254
344
|
end
|
|
255
345
|
end
|