workarea-admin 3.4.45 → 3.5.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +52 -0
- data/app/assets/images/workarea/admin/email_logo.png +0 -0
- data/app/assets/javascripts/workarea/admin/application.js.erb +11 -1
- data/app/assets/javascripts/workarea/admin/config.js.erb +96 -0
- data/app/assets/javascripts/workarea/admin/modules/active_by_segment_tooltips.js +108 -0
- data/app/assets/javascripts/workarea/admin/modules/calendars.js +1 -1
- data/app/assets/javascripts/workarea/admin/modules/categorized_autocomplete_fields.js +1 -1
- data/app/assets/javascripts/workarea/admin/modules/impersonation_notification.js +44 -0
- data/app/assets/javascripts/workarea/admin/modules/jump_to_menus.js +74 -0
- data/app/assets/javascripts/workarea/admin/modules/new_navigation_taxons.js +1 -2
- data/app/assets/javascripts/workarea/admin/modules/release_reminder.js +1 -0
- data/app/assets/javascripts/workarea/admin/modules/selects.js +33 -0
- data/app/assets/javascripts/workarea/admin/modules/style_guide_autocomplete_fields.js +42 -0
- data/app/assets/javascripts/workarea/admin/modules/timeline_report_chart.js +105 -0
- data/app/assets/javascripts/workarea/admin/modules/toggle_elements.js +27 -0
- data/app/assets/javascripts/workarea/admin/modules/tribute_areas.js +91 -0
- data/app/assets/javascripts/workarea/admin/templates/chart_legend.jst.ejs +17 -9
- data/app/assets/javascripts/workarea/admin/templates/jump_to_menu.jst.ejs +13 -0
- data/app/assets/stylesheets/workarea/admin/application.scss.erb +3 -0
- data/app/assets/stylesheets/workarea/admin/base/_forms.scss +2 -2
- data/app/assets/stylesheets/workarea/admin/components/_activity.scss +24 -16
- data/app/assets/stylesheets/workarea/admin/components/_activity_group.scss +3 -19
- data/app/assets/stylesheets/workarea/admin/components/_box.scss +21 -5
- data/app/assets/stylesheets/workarea/admin/components/_calendar.scss +102 -140
- data/app/assets/stylesheets/workarea/admin/components/_chart_legend.scss +10 -13
- data/app/assets/stylesheets/workarea/admin/components/_checkbox.scss +49 -23
- data/app/assets/stylesheets/workarea/admin/components/_content_block_list.scss +5 -3
- data/app/assets/stylesheets/workarea/admin/components/_date_marker.scss +24 -3
- data/app/assets/stylesheets/workarea/admin/components/_index_table.scss +5 -0
- data/app/assets/stylesheets/workarea/admin/components/_jump_to_menu.scss +57 -0
- data/app/assets/stylesheets/workarea/admin/components/_product_summary.scss +46 -0
- data/app/assets/stylesheets/workarea/admin/components/_toggle_button.scss +1 -4
- data/app/assets/stylesheets/workarea/admin/email/_base.scss +30 -2
- data/app/assets/stylesheets/workarea/admin/email/_components.scss +66 -5
- data/app/assets/stylesheets/workarea/admin/email/_helpers.scss +16 -5
- data/app/assets/stylesheets/workarea/admin/email/{_settings.scss → _settings.scss.erb} +4 -4
- data/app/controllers/workarea/admin/application_controller.rb +2 -4
- data/app/controllers/workarea/admin/bulk_action_sequential_product_edits_controller.rb +4 -6
- data/app/controllers/workarea/admin/bulk_variant_saving.rb +1 -2
- data/app/controllers/workarea/admin/catalog_products_controller.rb +4 -6
- data/app/controllers/workarea/admin/catalog_variants_controller.rb +2 -3
- data/app/controllers/workarea/admin/comments_controller.rb +9 -0
- data/app/controllers/workarea/admin/configurations_controller.rb +29 -0
- data/app/controllers/workarea/admin/content_assets_controller.rb +3 -1
- data/app/controllers/workarea/admin/content_blocks_controller.rb +1 -7
- data/app/controllers/workarea/admin/create_catalog_products_controller.rb +2 -8
- data/app/controllers/workarea/admin/create_release_undos_controller.rb +43 -0
- data/app/controllers/workarea/admin/create_segments_controller.rb +68 -0
- data/app/controllers/workarea/admin/dashboards_controller.rb +2 -0
- data/app/controllers/workarea/admin/data_file_imports_controller.rb +7 -2
- data/app/controllers/workarea/admin/fulfillment_skus_controller.rb +58 -0
- data/app/controllers/workarea/admin/fulfillment_tokens_controller.rb +56 -0
- data/app/controllers/workarea/admin/guest_browsings_controller.rb +2 -2
- data/app/controllers/workarea/admin/impersonations_controller.rb +3 -4
- data/app/controllers/workarea/admin/orders_controller.rb +3 -0
- data/app/controllers/workarea/admin/pricing_discount_redemptions_controller.rb +13 -0
- data/app/controllers/workarea/admin/pricing_overrides_controller.rb +1 -1
- data/app/controllers/workarea/admin/product_rules_controller.rb +1 -2
- data/app/controllers/workarea/admin/releases_controller.rb +8 -13
- data/app/controllers/workarea/admin/reports_controller.rb +18 -0
- data/app/controllers/workarea/admin/segment_overrides_controller.rb +19 -0
- data/app/controllers/workarea/admin/segment_rules_controller.rb +62 -0
- data/app/controllers/workarea/admin/segments_controller.rb +48 -0
- data/app/controllers/workarea/admin/tax_rates_controller.rb +62 -1
- data/app/controllers/workarea/admin/unsubscribes_controller.rb +40 -0
- data/app/controllers/workarea/admin/users_controller.rb +19 -0
- data/app/helpers/workarea/admin/application_helper.rb +2 -12
- data/app/helpers/workarea/admin/configurations_helper.rb +9 -0
- data/app/helpers/workarea/admin/content_helper.rb +2 -3
- data/app/helpers/workarea/admin/fulfillment_helper.rb +10 -0
- data/app/helpers/workarea/admin/icons_helper.rb +26 -0
- data/app/helpers/workarea/admin/navigation_helper.rb +1 -0
- data/app/helpers/workarea/admin/pricing_overrides_helper.rb +1 -1
- data/app/helpers/workarea/admin/products_helper.rb +13 -0
- data/app/helpers/workarea/admin/releases_helper.rb +5 -21
- data/app/helpers/workarea/admin/segments_helper.rb +68 -0
- data/app/helpers/workarea/admin/settings_helper.rb +11 -3
- data/app/mailers/workarea/admin/comment_mailer.rb +3 -3
- data/app/mailers/workarea/admin/status_report_mailer.rb +19 -6
- data/app/view_models/workarea/admin/bulk_action_product_edit_view_model.rb +5 -0
- data/app/view_models/workarea/admin/changeset_view_model.rb +15 -3
- data/app/view_models/workarea/admin/code_list_view_model.rb +1 -1
- data/app/view_models/workarea/admin/commentable_view_model.rb +4 -0
- data/app/view_models/workarea/admin/content_view_model.rb +2 -0
- data/app/view_models/workarea/admin/dashboards/marketing_view_model.rb +5 -9
- data/app/view_models/workarea/admin/dashboards/reports_view_model.rb +25 -0
- data/app/view_models/workarea/admin/discounts/buy_some_get_some_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/category_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/free_gift_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/order_total_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/product_attribute_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/product_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/quantity_fixed_price_view_model.rb +6 -0
- data/app/view_models/workarea/admin/discounts/shipping_view_model.rb +6 -0
- data/app/view_models/workarea/admin/featured_products_view_model.rb +6 -12
- data/app/view_models/workarea/admin/fulfillment_sku_view_model.rb +22 -0
- data/app/view_models/workarea/admin/fulfillment_token_view_model.rb +15 -0
- data/app/view_models/workarea/admin/fulfillment_view_model.rb +14 -0
- data/app/view_models/workarea/admin/insight_view_model.rb +2 -2
- data/app/view_models/workarea/admin/insights/product_view_model.rb +2 -2
- data/app/view_models/workarea/admin/insights/segment_view_model.rb +25 -0
- data/app/view_models/workarea/admin/order_view_model.rb +4 -0
- data/app/view_models/workarea/admin/pricing_sku_view_model.rb +0 -51
- data/app/view_models/workarea/admin/product_rules_preview_view_model.rb +2 -2
- data/app/view_models/workarea/admin/product_view_model.rb +26 -5
- data/app/view_models/workarea/admin/recommendations_view_model.rb +3 -11
- data/app/view_models/workarea/admin/release_calendar_view_model.rb +4 -9
- data/app/view_models/workarea/admin/release_event_view_model.rb +8 -41
- data/app/view_models/workarea/admin/release_view_model.rb +10 -17
- data/app/view_models/workarea/admin/releases_feed_view_model.rb +5 -13
- data/app/view_models/workarea/admin/reports/customers_view_model.rb +4 -2
- data/app/view_models/workarea/admin/reports/low_inventory_view_model.rb +2 -5
- data/app/view_models/workarea/admin/reports/sales_by_category_view_model.rb +2 -5
- data/app/view_models/workarea/admin/reports/sales_by_discount_view_model.rb +2 -5
- data/app/view_models/workarea/admin/reports/sales_by_product_view_model.rb +2 -5
- data/app/view_models/workarea/admin/reports/sales_by_tender_view_model.rb +13 -0
- data/app/view_models/workarea/admin/reports/timeline_view_model.rb +74 -0
- data/app/view_models/workarea/admin/search_customization_product_rules_view_model.rb +1 -1
- data/app/view_models/workarea/admin/segment_view_model.rb +19 -0
- data/app/view_models/workarea/admin/user_view_model.rb +6 -9
- data/app/view_models/workarea/admin/variant_view_model.rb +8 -0
- data/app/views/layouts/workarea/admin/application.html.haml +1 -1
- data/app/views/layouts/workarea/admin/email.html.haml +35 -41
- data/app/views/workarea/admin/activities/_configuration_admin_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_fulfillment_sku_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_fulfillment_sku_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_fulfillment_sku_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_segment_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_segment_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_segment_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/show.html.haml +18 -11
- data/app/views/workarea/admin/bulk_action_product_edits/edit.html.haml +4 -0
- data/app/views/workarea/admin/bulk_action_product_edits/review.html.haml +11 -4
- data/app/views/workarea/admin/bulk_action_sequential_product_edits/product.html.haml +1 -1
- data/app/views/workarea/admin/catalog_categories/_cards.html.haml +3 -1
- data/app/views/workarea/admin/catalog_categories/edit.html.haml +1 -4
- data/app/views/workarea/admin/catalog_categories/index.html.haml +1 -0
- data/app/views/workarea/admin/catalog_product_images/edit.html.haml +1 -1
- data/app/views/workarea/admin/catalog_products/_cards.html.haml +2 -4
- data/app/views/workarea/admin/catalog_products/edit.html.haml +2 -1
- data/app/views/workarea/admin/catalog_products/index.html.haml +4 -2
- data/app/views/workarea/admin/catalog_products/insights.html.haml +2 -0
- data/app/views/workarea/admin/catalog_variants/edit.html.haml +6 -1
- data/app/views/workarea/admin/catalog_variants/index.html.haml +2 -0
- data/app/views/workarea/admin/catalog_variants/new.html.haml +5 -0
- data/app/views/workarea/admin/changesets/fields/_active_segment_ids.html.haml +4 -0
- data/app/views/workarea/admin/comment_mailer/notify.html.haml +27 -19
- data/app/views/workarea/admin/comments/index.html.haml +18 -12
- data/app/views/workarea/admin/configurations/_overridden.html.haml +2 -0
- data/app/views/workarea/admin/configurations/show.html.haml +49 -0
- data/app/views/workarea/admin/configurations/types/_array.html.haml +3 -0
- data/app/views/workarea/admin/configurations/types/_boolean.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_duration.html.haml +2 -0
- data/app/views/workarea/admin/configurations/types/_encrypted.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_float.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_hash.html.haml +17 -0
- data/app/views/workarea/admin/configurations/types/_integer.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_select.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_string.html.haml +1 -0
- data/app/views/workarea/admin/configurations/types/_symbol.html.haml +1 -0
- data/app/views/workarea/admin/content/_edit.html.haml +8 -1
- data/app/views/workarea/admin/content/_form.html.haml +13 -7
- data/app/views/workarea/admin/content/advanced.html.haml +18 -10
- data/app/views/workarea/admin/content_assets/_cards.html.haml +3 -0
- data/app/views/workarea/admin/content_assets/_summary.html.haml +1 -1
- data/app/views/workarea/admin/content_assets/edit.html.haml +6 -0
- data/app/views/workarea/admin/content_assets/index.html.haml +7 -2
- data/app/views/workarea/admin/content_assets/new.html.haml +10 -3
- data/app/views/workarea/admin/content_blocks/_asset.html.haml +8 -1
- data/app/views/workarea/admin/content_pages/_cards.html.haml +1 -0
- data/app/views/workarea/admin/content_pages/edit.html.haml +1 -1
- data/app/views/workarea/admin/content_pages/index.html.haml +1 -0
- data/app/views/workarea/admin/create_catalog_categories/publish.html.haml +1 -0
- data/app/views/workarea/admin/create_catalog_products/content.html.haml +1 -1
- data/app/views/workarea/admin/create_catalog_products/publish.html.haml +1 -0
- data/app/views/workarea/admin/create_content_pages/publish.html.haml +1 -0
- data/app/views/workarea/admin/create_pricing_discounts/publish.html.haml +1 -0
- data/app/views/workarea/admin/create_release_undos/new.html.haml +45 -0
- data/app/views/workarea/admin/create_release_undos/review.html.haml +51 -0
- data/app/views/workarea/admin/create_releases/plan.html.haml +4 -3
- data/app/views/workarea/admin/create_releases/setup.html.haml +8 -12
- data/app/views/workarea/admin/create_segments/rules.html.haml +55 -0
- data/app/views/workarea/admin/create_segments/setup.html.haml +42 -0
- data/app/views/workarea/admin/create_users/admin.html.haml +0 -2
- data/app/views/workarea/admin/dashboards/catalog.html.haml +1 -0
- data/app/views/workarea/admin/dashboards/people.html.haml +1 -1
- data/app/views/workarea/admin/dashboards/reports.html.haml +31 -0
- data/app/views/workarea/admin/dashboards/settings.html.haml +23 -3
- data/app/views/workarea/admin/data_file_imports/new.html.haml +4 -2
- data/app/views/workarea/admin/data_file_mailer/export.html.haml +2 -0
- data/app/views/workarea/admin/data_file_mailer/import.html.haml +2 -0
- data/app/views/workarea/admin/data_file_mailer/import_failure.html.haml +2 -0
- data/app/views/workarea/admin/facets/_applied.html.haml +1 -1
- data/app/views/workarea/admin/featured_products/_selected.html.haml +3 -2
- data/app/views/workarea/admin/featured_products/_unselected.html.haml +3 -1
- data/app/views/workarea/admin/featured_products/edit.html.haml +3 -3
- data/app/views/workarea/admin/featured_products/select.html.haml +0 -1
- data/app/views/workarea/admin/fulfillment_skus/_aux_navigation.html.haml +3 -0
- data/app/views/workarea/admin/fulfillment_skus/_cards.html.haml +57 -0
- data/app/views/workarea/admin/fulfillment_skus/_summary.html.haml +6 -0
- data/app/views/workarea/admin/fulfillment_skus/edit.html.haml +53 -0
- data/app/views/workarea/admin/fulfillment_skus/index.html.haml +75 -0
- data/app/views/workarea/admin/fulfillment_skus/new.html.haml +41 -0
- data/app/views/workarea/admin/fulfillment_skus/show.html.haml +17 -0
- data/app/views/workarea/admin/fulfillment_tokens/index.html.haml +73 -0
- data/app/views/workarea/admin/fulfillments/show.html.haml +41 -6
- data/app/views/workarea/admin/insights/_most_discounted_products.html.haml +4 -4
- data/app/views/workarea/admin/inventory_skus/show.html.haml +1 -1
- data/app/views/workarea/admin/navigation_menus/_summary.html.haml +1 -1
- data/app/views/workarea/admin/navigation_menus/edit.html.haml +1 -1
- data/app/views/workarea/admin/navigation_menus/index.html.haml +3 -1
- data/app/views/workarea/admin/navigation_redirects/index.html.haml +0 -5
- data/app/views/workarea/admin/navigation_taxons/index.html.haml +20 -4
- data/app/views/workarea/admin/orders/_cards.html.haml +23 -5
- data/app/views/workarea/admin/orders/attributes.html.haml +4 -1
- data/app/views/workarea/admin/orders/fraud.html.haml +43 -0
- data/app/views/workarea/admin/orders/index.html.haml +1 -0
- data/app/views/workarea/admin/orders/timeline.html.haml +1 -1
- data/app/views/workarea/admin/pricing_discount_code_lists/_cards.html.haml +1 -1
- data/app/views/workarea/admin/pricing_discount_code_lists/promo_codes.html.haml +1 -1
- data/app/views/workarea/admin/pricing_discount_redemptions/index.html.haml +44 -0
- data/app/views/workarea/admin/pricing_discounts/_cards.html.haml +22 -0
- data/app/views/workarea/admin/pricing_discounts/conditions/_segments.html.haml +5 -0
- data/app/views/workarea/admin/pricing_discounts/edit.html.haml +5 -15
- data/app/views/workarea/admin/pricing_discounts/index.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_buy_some_get_some.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_category.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_free_gift.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_order_total.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_product.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_product_attribute.html.haml +2 -1
- data/app/views/workarea/admin/pricing_discounts/properties/_quantity_fixed_price.html.haml +1 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_shipping.html.haml +1 -0
- data/app/views/workarea/admin/pricing_skus/_cards.html.haml +7 -7
- data/app/views/workarea/admin/pricing_skus/edit.html.haml +5 -5
- data/app/views/workarea/admin/pricing_skus/index.html.haml +4 -4
- data/app/views/workarea/admin/pricing_skus/new.html.haml +6 -9
- data/app/views/workarea/admin/product_rules/_card.html.haml +2 -2
- data/app/views/workarea/admin/product_rules/_form.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/index.html.haml +2 -0
- data/app/views/workarea/admin/releases/_cards.html.haml +50 -12
- data/app/views/workarea/admin/releases/_publish.html.haml +1 -1
- data/app/views/workarea/admin/releases/edit.html.haml +33 -46
- data/app/views/workarea/admin/releases/index.html.haml +81 -90
- data/app/views/workarea/admin/releases/list.html.haml +107 -0
- data/app/views/workarea/admin/releases/original.html.haml +50 -0
- data/app/views/workarea/admin/releases/show.html.haml +3 -17
- data/app/views/workarea/admin/releases/undo.html.haml +64 -0
- data/app/views/workarea/admin/reports/average_order_value.html.haml +1 -1
- data/app/views/workarea/admin/reports/customers.html.haml +4 -0
- data/app/views/workarea/admin/reports/first_time_vs_returning_sales.html.haml +1 -1
- data/app/views/workarea/admin/reports/reference.html.haml +19 -60
- data/app/views/workarea/admin/reports/sales_by_country.html.haml +6 -0
- data/app/views/workarea/admin/reports/sales_by_product.html.haml +6 -0
- data/app/views/workarea/admin/reports/sales_by_sku.html.haml +6 -0
- data/app/views/workarea/admin/reports/sales_by_tender.html.haml +30 -0
- data/app/views/workarea/admin/reports/sales_over_time.html.haml +5 -1
- data/app/views/workarea/admin/reports/timeline.html.haml +20 -0
- data/app/views/workarea/admin/search_customizations/_cards.html.haml +1 -0
- data/app/views/workarea/admin/search_customizations/edit.html.haml +1 -1
- data/app/views/workarea/admin/search_customizations/index.html.haml +1 -0
- data/app/views/workarea/admin/searches/show.html.haml +6 -5
- data/app/views/workarea/admin/segment_overrides/show.html.haml +29 -0
- data/app/views/workarea/admin/segment_rules/_form.html.haml +13 -0
- data/app/views/workarea/admin/segment_rules/fields/_browser_info.html.haml +13 -0
- data/app/views/workarea/admin/segment_rules/fields/_geolocation.html.haml +4 -0
- data/app/views/workarea/admin/segment_rules/fields/_last_order.html.haml +3 -0
- data/app/views/workarea/admin/segment_rules/fields/_logged_in.html.haml +2 -0
- data/app/views/workarea/admin/segment_rules/fields/_orders.html.haml +5 -0
- data/app/views/workarea/admin/segment_rules/fields/_revenue.html.haml +9 -0
- data/app/views/workarea/admin/segment_rules/fields/_sessions.html.haml +5 -0
- data/app/views/workarea/admin/segment_rules/fields/_tags.html.haml +4 -0
- data/app/views/workarea/admin/segment_rules/fields/_traffic_referrer.html.haml +13 -0
- data/app/views/workarea/admin/segment_rules/geolocation_options.json.jbuilder +4 -0
- data/app/views/workarea/admin/segment_rules/index.html.haml +25 -0
- data/app/views/workarea/admin/segment_rules/summaries/_browser_info.html.haml +11 -0
- data/app/views/workarea/admin/segment_rules/summaries/_geolocation.html.haml +2 -0
- data/app/views/workarea/admin/segment_rules/summaries/_last_order.html.haml +2 -0
- data/app/views/workarea/admin/segment_rules/summaries/_logged_in.html.haml +5 -0
- data/app/views/workarea/admin/segment_rules/summaries/_orders.html.haml +6 -0
- data/app/views/workarea/admin/segment_rules/summaries/_revenue.html.haml +7 -0
- data/app/views/workarea/admin/segment_rules/summaries/_sessions.html.haml +6 -0
- data/app/views/workarea/admin/segment_rules/summaries/_tags.html.haml +2 -0
- data/app/views/workarea/admin/segment_rules/summaries/_traffic_referrer.html.haml +10 -0
- data/app/views/workarea/admin/segments/_cards.html.haml +81 -0
- data/app/views/workarea/admin/segments/_publish.html.haml +10 -0
- data/app/views/workarea/admin/segments/edit.html.haml +41 -0
- data/app/views/workarea/admin/segments/index.html.haml +64 -0
- data/app/views/workarea/admin/segments/insights.html.haml +52 -0
- data/app/views/workarea/admin/segments/show.html.haml +20 -0
- data/app/views/workarea/admin/shared/_active_field.html.haml +17 -0
- data/app/views/workarea/admin/shared/_bulk_actions.html.haml +10 -8
- data/app/views/workarea/admin/shared/_primary_nav.html.haml +5 -2
- data/app/views/workarea/admin/shared/_toggle_button.html.haml +1 -1
- data/app/views/workarea/admin/shipping_services/edit.html.haml +0 -4
- data/app/views/workarea/admin/shipping_services/new.html.haml +0 -4
- data/app/views/workarea/admin/status_report_mailer/report.html.haml +83 -86
- data/app/views/workarea/admin/style_guides/components/_activity.html.haml +3 -5
- data/app/views/workarea/admin/style_guides/components/_activity_group.html.haml +9 -15
- data/app/views/workarea/admin/style_guides/components/_box.html.haml +12 -7
- data/app/views/workarea/admin/style_guides/components/_checkbox.html.haml +21 -2
- data/app/views/workarea/admin/style_guides/components/_release_changeset.html.haml +3 -5
- data/app/views/workarea/admin/tax_rates/edit.html.haml +64 -0
- data/app/views/workarea/admin/tax_rates/index.html.haml +59 -20
- data/app/views/workarea/admin/tax_rates/new.html.haml +62 -0
- data/app/views/workarea/admin/timeline/show.html.haml +34 -41
- data/app/views/workarea/admin/toolbar/show.html.haml +11 -1
- data/app/views/workarea/admin/trash/index.html.haml +1 -1
- data/app/views/workarea/admin/users/edit.html.haml +60 -57
- data/app/views/workarea/admin/users/index.html.haml +1 -3
- data/app/views/workarea/admin/users/index.json.jbuilder +8 -0
- data/app/views/workarea/admin/users/insights.html.haml +31 -23
- data/app/views/workarea/admin/users/permissions.html.haml +10 -1
- data/app/views/workarea/admin/users/show.html.haml +7 -0
- data/config/locales/en.yml +569 -124
- data/config/routes.rb +57 -5
- data/lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb +3 -1
- data/public/workarea/import_samples/tax_rates.csv +3 -3
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/helpers/workarea/admin/application_helper_test.rb +0 -16
- data/test/helpers/workarea/admin/icons_helper_test.rb +9 -0
- data/test/helpers/workarea/admin/products_helper_test.rb +73 -0
- data/test/helpers/workarea/admin/releases_helper_test.rb +0 -49
- data/test/helpers/workarea/admin/settings_helper_test.rb +22 -1
- data/test/integration/workarea/admin/assets_integration_test.rb +2 -5
- data/test/integration/workarea/admin/comments_integration_test.rb +27 -7
- data/test/integration/workarea/admin/configurations_integration_test.rb +21 -0
- data/test/integration/workarea/admin/create_release_undos_integration_test.rb +29 -0
- data/test/integration/workarea/admin/create_segments_integration_test.rb +26 -0
- data/test/integration/workarea/admin/data_file_imports_integration_test.rb +34 -8
- data/test/integration/workarea/admin/fulfillment_skus_integration_test.rb +55 -0
- data/test/integration/workarea/admin/fulfillment_tokens_integration_test.rb +43 -0
- data/test/integration/workarea/admin/guest_browsings_integration_test.rb +8 -32
- data/test/integration/workarea/admin/impersonations_integration_test.rb +13 -57
- data/test/integration/workarea/admin/jump_to_integration_test.rb +0 -29
- data/test/integration/workarea/admin/pricing_overrides_integration_test.rb +11 -0
- data/test/integration/workarea/admin/products_integration_test.rb +0 -13
- data/test/integration/workarea/admin/releases_integration_test.rb +71 -87
- data/test/integration/workarea/admin/segment_overrides_integration_test.rb +28 -0
- data/test/integration/workarea/admin/segment_rules_integration_test.rb +49 -0
- data/test/integration/workarea/admin/segments_integration_test.rb +31 -0
- data/test/integration/workarea/admin/shipping_service_integration_test.rb +1 -3
- data/test/integration/workarea/admin/tax_categories_integration_test.rb +1 -1
- data/test/integration/workarea/admin/unsubscribes_integration_test.rb +32 -0
- data/test/integration/workarea/admin/users_integration_test.rb +32 -0
- data/test/javascripts/fixtures/release_reminder.html.haml +3 -3
- data/test/javascripts/new_navigation_taxons_spec.js +1 -12
- data/test/mailers/workarea/admin/comment_mailer_test.rb +35 -0
- data/test/mailers/workarea/admin/status_report_mailer_test.rb +30 -25
- data/test/system/workarea/admin/alerts_system_test.rb +2 -1
- data/test/system/workarea/admin/bulk_actions_system_test.rb +1 -1
- data/test/system/workarea/admin/comments_system_test.rb +43 -0
- data/test/system/workarea/admin/content_system_test.rb +6 -0
- data/test/system/workarea/admin/dashboard_system_test.rb +8 -9
- data/test/system/workarea/admin/data_files_system_test.rb +1 -1
- data/test/system/workarea/admin/discounts_system_test.rb +18 -0
- data/test/system/workarea/admin/featured_products_system_test.rb +3 -0
- data/test/system/workarea/admin/fulfillment_skus_system_test.rb +48 -0
- data/test/system/workarea/admin/impersonation_system_test.rb +5 -2
- data/test/system/workarea/admin/orders_system_test.rb +32 -21
- data/test/system/workarea/admin/payment_transactions_system_test.rb +34 -32
- data/test/system/workarea/admin/releases_system_test.rb +151 -37
- data/test/system/workarea/admin/reports_system_test.rb +29 -0
- data/test/system/workarea/admin/segments_system_test.rb +124 -0
- data/test/system/workarea/admin/tax_categories_system_test.rb +166 -16
- data/test/system/workarea/admin/users_system_test.rb +15 -0
- data/test/view_models/workarea/admin/changeset_view_model_test.rb +59 -9
- data/test/view_models/workarea/admin/code_list_view_model_test.rb +0 -5
- data/test/view_models/workarea/admin/content_view_model_test.rb +13 -11
- data/test/view_models/workarea/admin/insights/product_view_model_test.rb +4 -4
- data/test/view_models/workarea/admin/insights/segment_view_model_test.rb +73 -0
- data/test/view_models/workarea/admin/product_rules_preview_view_model_test.rb +37 -0
- data/test/view_models/workarea/admin/product_view_model_test.rb +13 -19
- data/test/view_models/workarea/admin/release_calendar_view_model_test.rb +16 -0
- data/test/view_models/workarea/admin/release_view_model_test.rb +13 -56
- data/test/view_models/workarea/admin/releases_feed_view_model_test.rb +8 -21
- data/test/view_models/workarea/admin/reports/timeline_view_model_test.rb +76 -0
- data/test/view_models/workarea/admin/search_analysis_view_model_test.rb +14 -16
- data/test/view_models/workarea/admin/timeline_view_model_test.rb +1 -1
- metadata +128 -17
- data/app/views/workarea/admin/featured_products/_release_preview_warning.html.haml +0 -4
- data/app/views/workarea/admin/releases/calendar.html.haml +0 -54
- data/test/dummy/tmp/screenshots/.keep +0 -0
- data/test/helpers/workarea/admin/content_helper_test.rb +0 -17
- data/test/integration/workarea/admin/index_tracking_integration_test.rb +0 -21
- data/test/javascripts/fixtures/existing_navigation_taxon.html.haml +0 -10
- data/test/view_models/workarea/admin/pricing_sku_view_model_test.rb +0 -84
@@ -1,22 +1,19 @@
|
|
1
1
|
/*------------------------------------*\
|
2
2
|
#CHART-LEGEND
|
3
|
-
TODO remove in v4, not used >= 3.4
|
4
3
|
\*------------------------------------*/
|
5
4
|
|
6
|
-
$chart-legend-
|
5
|
+
$chart-legend-list-item-disabled-opacity: .25 !default;
|
7
6
|
|
7
|
+
.chart-legend {}
|
8
8
|
|
9
|
-
.chart-
|
10
|
-
|
11
|
-
}
|
9
|
+
.chart-legend__list {
|
10
|
+
@extend %inline-list;
|
11
|
+
}
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
.chart-legend__color-dot {
|
16
|
-
display: inline-block;
|
17
|
-
width: $chart-legend-dot-size;
|
18
|
-
height: $chart-legend-dot-size;
|
19
|
-
vertical-align: middle;
|
13
|
+
.chart-legend__list-item {
|
14
|
+
margin: 0 $spacing-unit;
|
20
15
|
}
|
21
16
|
|
22
|
-
.chart-
|
17
|
+
.chart-legend__list-item--disabled {
|
18
|
+
opacity: $chart-legend-list-item-disabled-opacity;
|
19
|
+
}
|
@@ -12,63 +12,89 @@ $checkbox-icon-size: 16px !default;
|
|
12
12
|
|
13
13
|
|
14
14
|
.checkbox {
|
15
|
+
position: relative;
|
15
16
|
display: inline-block;
|
17
|
+
cursor: pointer;
|
16
18
|
}
|
17
19
|
|
20
|
+
.checkbox--no-label {}
|
21
|
+
|
18
22
|
.checkbox--indeterminate {}
|
19
23
|
|
20
24
|
/**
|
21
|
-
*
|
25
|
+
* Hide the input off-page
|
22
26
|
*/
|
23
27
|
.checkbox__input {
|
24
28
|
@extend %visually-hidden;
|
25
29
|
}
|
26
30
|
|
27
31
|
/**
|
28
|
-
*
|
29
|
-
* 1.
|
32
|
+
* Checkbox UI
|
33
|
+
* 1. Required for backwards compatibility
|
30
34
|
*/
|
31
35
|
.checkbox__label {
|
32
|
-
position: relative;
|
33
36
|
display: inline-block;
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
line-height: 1;
|
38
|
+
|
39
|
+
.index-table &, /* [1] */
|
40
|
+
.checkbox--no-label & {
|
41
|
+
max-width: $checkbox-size + 1px;
|
42
|
+
max-height: $checkbox-size + 1px;
|
43
|
+
overflow: hidden;
|
44
|
+
}
|
45
|
+
|
46
|
+
&::before {
|
47
|
+
position: relative;
|
48
|
+
display: inline-block;
|
49
|
+
width: $checkbox-size;
|
50
|
+
height: $checkbox-size;
|
51
|
+
background-color: $checkbox-bg-color;
|
52
|
+
border-radius: $checkbox-border-radius;
|
53
|
+
border: 1px solid $checkbox-border-color;
|
54
|
+
appearance: none;
|
55
|
+
vertical-align: middle;
|
56
|
+
font-size: 0;
|
57
|
+
margin-right: $spacing-unit;
|
58
|
+
content: '';
|
59
|
+
}
|
42
60
|
|
43
|
-
&::after {
|
44
|
-
|
61
|
+
&::after {
|
62
|
+
position: absolute;
|
63
|
+
left: 0;
|
64
|
+
top: 2px;
|
45
65
|
display: inline-block;
|
46
66
|
font-weight: bold;
|
67
|
+
width: $checkbox-icon-size;
|
68
|
+
text-align: center;
|
47
69
|
font-size: $checkbox-icon-size;
|
48
70
|
color: $checkbox-icon-color;
|
49
71
|
}
|
50
72
|
}
|
51
73
|
|
52
74
|
/**
|
53
|
-
*
|
54
|
-
* 1.
|
75
|
+
* State management
|
76
|
+
* 1. Checked
|
77
|
+
* 2. Indeterminate
|
55
78
|
*/
|
56
|
-
.checkbox__input:checked ~ .checkbox__label {
|
57
|
-
|
79
|
+
.checkbox__input:checked ~ .checkbox__label { /* [1] */
|
80
|
+
&::before {
|
81
|
+
background-color: $checkbox-bg-color-active;
|
82
|
+
}
|
58
83
|
|
59
|
-
&::after {
|
84
|
+
&::after {
|
60
85
|
content: '✔';
|
61
86
|
}
|
62
87
|
}
|
63
88
|
|
64
89
|
/**
|
65
90
|
* Indeterminate UI State
|
66
|
-
* 1. Icon
|
67
91
|
*/
|
68
|
-
.checkbox--indeterminate .checkbox__label {
|
69
|
-
|
92
|
+
.checkbox--indeterminate .checkbox__label { /* [2] */
|
93
|
+
&::before {
|
94
|
+
background-color: $checkbox-bg-color-active;
|
95
|
+
}
|
70
96
|
|
71
|
-
&::after {
|
97
|
+
&::after {
|
72
98
|
content: '–';
|
73
99
|
}
|
74
100
|
}
|
@@ -11,7 +11,6 @@ $content-block-list-item-bg-color: $white !default;
|
|
11
11
|
$content-block-icon-size: 24px !default;
|
12
12
|
$content-block-icon-color: $gray !default;
|
13
13
|
|
14
|
-
|
15
14
|
.content-block-list {
|
16
15
|
@extend %list-reset;
|
17
16
|
border-bottom: $content-block-list-border;
|
@@ -38,10 +37,14 @@ $content-block-icon-color: $gray !default;
|
|
38
37
|
fill: $content-block-icon-color;
|
39
38
|
}
|
40
39
|
|
40
|
+
.content-block-list__segments {
|
41
|
+
float: right;
|
42
|
+
}
|
43
|
+
|
41
44
|
.content-block-list__name {
|
42
45
|
@extend %truncate;
|
43
46
|
padding: 0 ($spacing-unit * 2);
|
44
|
-
width: calc(100% - #{$content-block-icon-size *
|
47
|
+
width: calc(100% - #{$content-block-icon-size * 3});
|
45
48
|
float: left;
|
46
49
|
font-size: 1.16rem;
|
47
50
|
line-height: $content-block-icon-size;
|
@@ -55,4 +58,3 @@ $content-block-icon-color: $gray !default;
|
|
55
58
|
.content-block-list__icon--move {
|
56
59
|
cursor: move;
|
57
60
|
}
|
58
|
-
|
@@ -3,9 +3,12 @@
|
|
3
3
|
\*------------------------------------*/
|
4
4
|
|
5
5
|
$date-marker-min-width: 50px !default;
|
6
|
+
$date-marker-min-height: 48px !default;
|
6
7
|
$date-marker-background-color: $light-gray !default;
|
7
8
|
$date-marker-month-font-size: 12px !default;
|
8
9
|
$date-marker-day-font-size: 20px !default;
|
10
|
+
$date-marker-arrow-size: 12px !default;
|
11
|
+
$date-marker-border-radius: $global-border-radius !default;
|
9
12
|
|
10
13
|
.date-marker {
|
11
14
|
position: relative;
|
@@ -13,15 +16,25 @@ $date-marker-day-font-size: 20px !default;
|
|
13
16
|
margin-right: $horizontal-margin;
|
14
17
|
padding: $spacing-unit;
|
15
18
|
min-width: $date-marker-min-width;
|
19
|
+
min-height: $date-marker-min-height;
|
16
20
|
float: right;
|
17
21
|
font-weight: bold;
|
18
22
|
line-height: 1.2;
|
19
23
|
text-align: center;
|
20
24
|
background-color: $date-marker-background-color;
|
21
|
-
|
25
|
+
border-radius: $date-marker-border-radius;
|
22
26
|
|
23
|
-
|
24
|
-
|
27
|
+
&::before {
|
28
|
+
position: absolute;
|
29
|
+
top: 50%;
|
30
|
+
right: 0;
|
31
|
+
transform: translate(50%, -50%) rotate(45deg);
|
32
|
+
display: block;
|
33
|
+
width: $date-marker-arrow-size;
|
34
|
+
height: $date-marker-arrow-size;
|
35
|
+
background-color: $date-marker-background-color;
|
36
|
+
content: '';
|
37
|
+
}
|
25
38
|
}
|
26
39
|
|
27
40
|
.date-marker__annotation {
|
@@ -33,10 +46,18 @@ $date-marker-day-font-size: 20px !default;
|
|
33
46
|
|
34
47
|
.date-marker__month {
|
35
48
|
font-size: $date-marker-month-font-size;
|
49
|
+
line-height: 1;
|
50
|
+
text-transform: uppercase;
|
36
51
|
}
|
37
52
|
|
38
53
|
.date-marker__day {
|
39
54
|
margin-bottom: 0;
|
40
55
|
font-size: $date-marker-day-font-size;
|
56
|
+
line-height: 1;
|
57
|
+
}
|
58
|
+
|
59
|
+
.date-marker__unknown {
|
60
|
+
@include center;
|
61
|
+
font-size: $date-marker-day-font-size;
|
41
62
|
}
|
42
63
|
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
$index-table-row-color: $black !default;
|
6
6
|
$index-table-row-inactive-color: $gray !default;
|
7
|
+
$index-table-row-highlight-color: $green !default;
|
7
8
|
$index-table-image-size: 32px !default;
|
8
9
|
|
9
10
|
/**
|
@@ -31,6 +32,10 @@ $index-table-image-size: 32px !default;
|
|
31
32
|
color: $index-table-row-color;
|
32
33
|
}
|
33
34
|
|
35
|
+
.index-table__row--highlight {
|
36
|
+
background: rgba($index-table-row-highlight-color, 0.2);
|
37
|
+
}
|
38
|
+
|
34
39
|
.index-table__row--inactive {
|
35
40
|
color: $index-table-row-inactive-color;
|
36
41
|
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
#JUMP-TO-MENU
|
3
|
+
\*------------------------------------*/
|
4
|
+
|
5
|
+
$jump-to-menu-bg-color: $white !default;
|
6
|
+
$jump-to-menu-border-color: $light-gray !default;
|
7
|
+
|
8
|
+
.jump-to-menu {
|
9
|
+
display: none;
|
10
|
+
|
11
|
+
@include respond-to($wide-breakpoint) {
|
12
|
+
display: block;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.jump-to-menu--with-workflow-bar {}
|
17
|
+
|
18
|
+
|
19
|
+
.jump-to-menu__container {
|
20
|
+
@include global-box-shadow;
|
21
|
+
position: fixed;
|
22
|
+
bottom: 0;
|
23
|
+
right: 0;
|
24
|
+
width: inherit;
|
25
|
+
max-height: calc(100vh - #{$global-header-height} - #{$spacing-unit * 2});
|
26
|
+
margin-right: $spacing-unit;
|
27
|
+
background: $jump-to-menu-bg-color;
|
28
|
+
border: 1px solid $jump-to-menu-border-color;
|
29
|
+
border-radius: 5px 5px 0 0;
|
30
|
+
overflow-y: auto;
|
31
|
+
|
32
|
+
.jump-to-menu--with-workflow-bar & {
|
33
|
+
bottom: $global-workflow-bar-height;
|
34
|
+
max-height: calc(100vh - #{$global-header-height} - #{$global-workflow-bar-height} - #{$spacing-unit * 2});
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
.jump-to-menu__list {
|
40
|
+
margin: 0;
|
41
|
+
padding: ($spacing-unit / 2) ($spacing-unit * 2);
|
42
|
+
list-style: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
.jump-to-menu__list-item { margin: $spacing-unit 0; }
|
46
|
+
|
47
|
+
|
48
|
+
.jump-to-menu__link {
|
49
|
+
display: inline-block;
|
50
|
+
text-decoration: none;
|
51
|
+
line-height: 1.25;
|
52
|
+
|
53
|
+
&:hover { text-decoration: underline; }
|
54
|
+
}
|
55
|
+
|
56
|
+
.jump-to-menu__link--1 {}
|
57
|
+
.jump-to-menu__link--2 { padding-left: 1em; font-size: 0.9rem; }
|
@@ -7,6 +7,10 @@ $product-summary-muted-bg-color: $light-gray !default;
|
|
7
7
|
$product-summary-box-shadow-color: $gray !default;
|
8
8
|
$product-summary-action-color: $blue !default;
|
9
9
|
|
10
|
+
$product-summary-status-color: $white !default;
|
11
|
+
$product-summary-status-issue-color: $red !default;
|
12
|
+
$product-summary-status-issue-low-inventory-color: $orange !default;
|
13
|
+
|
10
14
|
$product-summary-image-outline: 2px solid $gray !default;
|
11
15
|
|
12
16
|
|
@@ -36,6 +40,35 @@ $product-summary-image-outline: 2px solid $gray !default;
|
|
36
40
|
background: $product-summary-muted-bg-color;
|
37
41
|
}
|
38
42
|
|
43
|
+
.product-summary--status-issue {
|
44
|
+
@include global-box-shadow($product-summary-status-issue-color, tight);
|
45
|
+
|
46
|
+
&.product-summary--low-inventory {
|
47
|
+
@include global-box-shadow($product-summary-status-issue-low-inventory-color, tight);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
.product-summary__status {
|
53
|
+
@include center;
|
54
|
+
display: none;
|
55
|
+
color: $product-summary-status-color;
|
56
|
+
background: $product-summary-status-issue-color;
|
57
|
+
width: 80%;
|
58
|
+
text-align: center;
|
59
|
+
font-weight: bold;
|
60
|
+
padding: ($spacing-unit / 2) $spacing-unit;
|
61
|
+
border-radius: $global-border-radius;
|
62
|
+
|
63
|
+
.product-summary--status-issue & {
|
64
|
+
display: block;
|
65
|
+
}
|
66
|
+
|
67
|
+
.product-summary--low-inventory & {
|
68
|
+
background: $product-summary-status-issue-low-inventory-color;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
39
72
|
|
40
73
|
.product-summary__remove {
|
41
74
|
display: block;
|
@@ -76,3 +109,16 @@ $product-summary-image-outline: 2px solid $gray !default;
|
|
76
109
|
display: block;
|
77
110
|
text-align: center;
|
78
111
|
}
|
112
|
+
|
113
|
+
|
114
|
+
/**
|
115
|
+
* For Products that will not display on the Storefront we reduce opacity.
|
116
|
+
*/
|
117
|
+
.product-summary__media,
|
118
|
+
.product-summary__name,
|
119
|
+
.product-summary__graph {
|
120
|
+
.product-summary--inactive &,
|
121
|
+
.product-summary--out-of-stock & {
|
122
|
+
opacity: 0.5;
|
123
|
+
}
|
124
|
+
}
|
@@ -20,10 +20,6 @@ $toggle-button-status-negative-color: $red !default;
|
|
20
20
|
display: inline-block;
|
21
21
|
}
|
22
22
|
|
23
|
-
.toggle-button--disabled {
|
24
|
-
opacity: 0.5;
|
25
|
-
}
|
26
|
-
|
27
23
|
/**
|
28
24
|
* 1. provides positiioning context for `.toggle-button__label`
|
29
25
|
* 2. height + vertical margin = `.text-box` height
|
@@ -82,6 +78,7 @@ $toggle-button-status-negative-color: $red !default;
|
|
82
78
|
font-size: 12px;
|
83
79
|
font-weight: bold;
|
84
80
|
line-height: 24px; /* [1] */
|
81
|
+
text-align: left;
|
85
82
|
text-transform: uppercase;
|
86
83
|
border: 1px solid $toggle-button-label-border-color;
|
87
84
|
border-radius: 12px;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
body {
|
6
6
|
margin: 0;
|
7
|
+
padding: 0 !important;
|
7
8
|
}
|
8
9
|
|
9
10
|
body > center {
|
@@ -12,10 +13,16 @@ body > center {
|
|
12
13
|
|
13
14
|
body > center,
|
14
15
|
body > center > table {
|
15
|
-
background: $email-background-color;
|
16
16
|
text-align: left;
|
17
17
|
}
|
18
18
|
|
19
|
+
// Required to ensure background is properly displayed across clients
|
20
|
+
body,
|
21
|
+
body > center,
|
22
|
+
.mso-wrapper {
|
23
|
+
background: $email-background-color;
|
24
|
+
}
|
25
|
+
|
19
26
|
table {
|
20
27
|
border: 0;
|
21
28
|
-premailer-cellpadding: 0;
|
@@ -35,14 +42,35 @@ img {
|
|
35
42
|
}
|
36
43
|
|
37
44
|
a {
|
38
|
-
color: $
|
45
|
+
color: $blue;
|
46
|
+
text-decoration: underline;
|
39
47
|
}
|
40
48
|
|
41
49
|
h1, h2, h3, h4, h5, h6, p {
|
42
50
|
font-family: $font-family;
|
51
|
+
margin-top: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
h1 {
|
55
|
+
font-size: 26px;
|
43
56
|
}
|
44
57
|
|
45
58
|
p {
|
46
59
|
font-size: $font-size;
|
47
60
|
line-height: $line-height;
|
48
61
|
}
|
62
|
+
|
63
|
+
hr {
|
64
|
+
background-color: $light-gray;
|
65
|
+
border: 0;
|
66
|
+
height: 1px;
|
67
|
+
margin: ($spacing-unit * 2) 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
ul {
|
71
|
+
padding-left: $spacing-unit * 3;
|
72
|
+
}
|
73
|
+
|
74
|
+
li {
|
75
|
+
margin: $spacing-unit 0;
|
76
|
+
}
|
@@ -1,24 +1,33 @@
|
|
1
1
|
/*------------------------------------*\
|
2
2
|
#LAYOUT
|
3
3
|
\*------------------------------------*/
|
4
|
+
|
5
|
+
$email-container-font-color: $dark-gray !default;
|
4
6
|
$email-container-main-bg-color: $white !default;
|
7
|
+
$email-container-main-shadow-color: $light-gray !default;
|
8
|
+
$email-container-main-accent-color: $blue !default;
|
5
9
|
|
6
10
|
.email-container {
|
7
|
-
margin: auto;
|
11
|
+
margin: 0 auto;
|
8
12
|
text-align: center;
|
13
|
+
font-family: $font-family;
|
14
|
+
color: $email-container-font-color;
|
9
15
|
}
|
10
16
|
|
11
17
|
.email-container--main {
|
18
|
+
box-shadow: 0 0 10px $email-container-main-shadow-color;
|
19
|
+
border-bottom: 8px solid $email-container-main-accent-color;
|
20
|
+
|
12
21
|
& > tr > td {
|
13
22
|
background: $email-container-main-bg-color;
|
14
|
-
text-align:
|
23
|
+
text-align: left;
|
15
24
|
vertical-align: top;
|
16
|
-
padding: $spacing-unit;
|
25
|
+
padding: $spacing-unit * 3;
|
17
26
|
}
|
18
27
|
}
|
19
28
|
|
20
29
|
.email-header {
|
21
|
-
padding: ($spacing-unit *
|
30
|
+
padding: ($spacing-unit * 4) 0;
|
22
31
|
}
|
23
32
|
|
24
33
|
.email-footer {
|
@@ -26,6 +35,10 @@ $email-container-main-bg-color: $white !default;
|
|
26
35
|
font-family: $font-family;
|
27
36
|
}
|
28
37
|
|
38
|
+
.section {
|
39
|
+
padding: ($spacing-unit * 2) 0;
|
40
|
+
}
|
41
|
+
|
29
42
|
|
30
43
|
/*------------------------------------*\
|
31
44
|
#PREHEADER-TEXT
|
@@ -47,10 +60,14 @@ $email-container-main-bg-color: $white !default;
|
|
47
60
|
#LOGO
|
48
61
|
\*------------------------------------*/
|
49
62
|
.logo {
|
63
|
+
display: inline-block;
|
64
|
+
vertical-align: top;
|
50
65
|
text-decoration: none;
|
51
66
|
}
|
52
67
|
|
53
|
-
.logo__image {
|
68
|
+
.logo__image {
|
69
|
+
display: block;
|
70
|
+
}
|
54
71
|
|
55
72
|
|
56
73
|
/*------------------------------------*\
|
@@ -112,3 +129,47 @@ $item-table-border-color: $light-gray !default;
|
|
112
129
|
}
|
113
130
|
}
|
114
131
|
|
132
|
+
/*------------------------------------*\
|
133
|
+
#BOX
|
134
|
+
\*------------------------------------*/
|
135
|
+
$box-border-color: $blue !default;
|
136
|
+
|
137
|
+
.box {
|
138
|
+
border: 1px solid $box-border-color;
|
139
|
+
border-left-width: 8px;
|
140
|
+
padding: $spacing-unit * 2;
|
141
|
+
margin: ($spacing-unit * 4) 0;
|
142
|
+
}
|
143
|
+
|
144
|
+
/*------------------------------------*\
|
145
|
+
#COMMENT
|
146
|
+
\*------------------------------------*/
|
147
|
+
|
148
|
+
.comment {
|
149
|
+
@extend .box;
|
150
|
+
margin: $spacing-unit * 4;
|
151
|
+
}
|
152
|
+
|
153
|
+
.comment__author-info {
|
154
|
+
display: block;
|
155
|
+
font-size: $font-size - 2;
|
156
|
+
font-style: italic;
|
157
|
+
margin-top: $spacing-unit * 2;
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
/*------------------------------------*\
|
162
|
+
#BUTTON
|
163
|
+
\*------------------------------------*/
|
164
|
+
$button-color: $white !default;
|
165
|
+
$button-bg-color: $blue !default;
|
166
|
+
|
167
|
+
.button {
|
168
|
+
display: inline-block;
|
169
|
+
padding: $spacing-unit ($spacing-unit * 4);
|
170
|
+
background: $button-bg-color;
|
171
|
+
color: $button-color;
|
172
|
+
text-decoration: none;
|
173
|
+
font-weight: bold;
|
174
|
+
border-radius: 11px;
|
175
|
+
}
|
@@ -10,6 +10,22 @@
|
|
10
10
|
.align-right { text-align: right; }
|
11
11
|
|
12
12
|
|
13
|
+
/**
|
14
|
+
* Display helpers
|
15
|
+
*/
|
16
|
+
.hidden {
|
17
|
+
display: none;
|
18
|
+
font-size: 1px;
|
19
|
+
line-height: 1px;
|
20
|
+
max-height: 0px;
|
21
|
+
max-width: 0px;
|
22
|
+
opacity: 0;
|
23
|
+
overflow: hidden;
|
24
|
+
mso-hide: all;
|
25
|
+
font-family: sans-serif;
|
26
|
+
}
|
27
|
+
|
28
|
+
|
13
29
|
/**
|
14
30
|
* Responsive helpers
|
15
31
|
*
|
@@ -61,9 +77,4 @@
|
|
61
77
|
table.center-on-narrow {
|
62
78
|
display: inline-block !important;
|
63
79
|
}
|
64
|
-
|
65
|
-
/* Adjust typography on small screens to improve readability */
|
66
|
-
.email-container p {
|
67
|
-
font-size: $font-size + 2px !important;
|
68
|
-
}
|
69
80
|
}
|
@@ -7,10 +7,10 @@
|
|
7
7
|
* imported, effectively adjusting the theme of the site for the site's emails.
|
8
8
|
*/
|
9
9
|
|
10
|
-
$font-size: 16px !default;
|
11
|
-
|
12
10
|
@import '../settings/colors';
|
13
11
|
@import '../settings/global';
|
12
|
+
|
13
|
+
$font-size: 16px !default;
|
14
14
|
@import '../settings/typography';
|
15
15
|
|
16
16
|
|
@@ -18,5 +18,5 @@ $font-size: 16px !default;
|
|
18
18
|
* Email-specific variables are defined separately.
|
19
19
|
*/
|
20
20
|
|
21
|
-
$email-max-width:
|
22
|
-
$email-background-color: $
|
21
|
+
$email-max-width: <%= Workarea.config.admin_email_width %>px !default;
|
22
|
+
$email-background-color: $off-white !default;
|
@@ -4,7 +4,6 @@ module Workarea
|
|
4
4
|
include Turbolinks::Controller
|
5
5
|
include Authentication
|
6
6
|
include Authorization
|
7
|
-
include AdminGuestBrowsing
|
8
7
|
include Impersonation
|
9
8
|
include CurrentRelease
|
10
9
|
include Visiting
|
@@ -17,7 +16,6 @@ module Workarea
|
|
17
16
|
before_action :require_login
|
18
17
|
before_action :require_admin
|
19
18
|
before_action :check_authorization, except: :dashboard
|
20
|
-
before_action :touch_auth_cookie, unless: -> { impersonating? || admin_browsing_as_guest? }
|
21
19
|
before_action :set_variant
|
22
20
|
before_action :setup_alerts, if: :current_layout
|
23
21
|
around_action :audit_log
|
@@ -90,7 +88,7 @@ module Workarea
|
|
90
88
|
end
|
91
89
|
|
92
90
|
def inline_cache_busting
|
93
|
-
Sidekiq::Callbacks.inline(
|
91
|
+
Sidekiq::Callbacks.inline(BustNavigationCache, BustSkuCache) { yield }
|
94
92
|
end
|
95
93
|
|
96
94
|
def enable_auto_redirect
|
@@ -102,7 +100,7 @@ module Workarea
|
|
102
100
|
end
|
103
101
|
|
104
102
|
def track_index_filters
|
105
|
-
session[:last_index_path] = request.fullpath
|
103
|
+
session[:last_index_path] = request.fullpath
|
106
104
|
end
|
107
105
|
end
|
108
106
|
end
|
@@ -64,21 +64,19 @@ module Workarea
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def set_details
|
67
|
-
|
68
|
-
original: @product.details,
|
67
|
+
HashUpdate.new(
|
69
68
|
adds: params[:new_details],
|
70
69
|
updates: params[:details],
|
71
70
|
removes: params[:details_to_remove]
|
72
|
-
).
|
71
|
+
).apply(@product.details)
|
73
72
|
end
|
74
73
|
|
75
74
|
def set_filters
|
76
|
-
|
77
|
-
original: @product.filters,
|
75
|
+
HashUpdate.new(
|
78
76
|
adds: params[:new_filters],
|
79
77
|
updates: params[:filters],
|
80
78
|
removes: params[:filters_to_remove]
|
81
|
-
).
|
79
|
+
).apply(@product.filters)
|
82
80
|
end
|
83
81
|
|
84
82
|
def set_images
|
@@ -21,9 +21,8 @@ module Workarea
|
|
21
21
|
end
|
22
22
|
|
23
23
|
if attributes[:inventory].present?
|
24
|
-
inventory = Inventory::Sku.
|
24
|
+
inventory = Inventory::Sku.find_or_create_by(id: variant.sku)
|
25
25
|
inventory.available = attributes[:inventory]
|
26
|
-
inventory.policy = 'standard' if inventory.new_record?
|
27
26
|
inventory.save!
|
28
27
|
end
|
29
28
|
end
|