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,3 +1,5 @@
|
|
1
|
+
- asset = Workarea::Content::Asset.find_or_initialize_by(id: block.data[field.slug])
|
2
|
+
|
1
3
|
.property{ class: ('property--required' if field.required?), data: field.options[:html_data_attributes] }
|
2
4
|
= label_tag dom_id(block, field.slug), class: 'property__name' do
|
3
5
|
= field.name
|
@@ -7,18 +9,23 @@
|
|
7
9
|
|
8
10
|
- if field.note.present?
|
9
11
|
%span.property__note= field.note
|
12
|
+
|
10
13
|
.asset-picker-field{ data: { asset_picker_field: '' } }
|
11
14
|
.asset-picker-field__cell
|
12
15
|
= hidden_field_tag "block[data][#{field.slug}]", block.data[field.slug], id: nil, class: 'text-box text-box--i18n', required: field.required?
|
13
16
|
|
14
17
|
%span{ data: { asset_name: true } }
|
15
|
-
- asset = Workarea::Content::Asset.find_or_initialize_by(id: block.data[field.slug])
|
16
18
|
= asset.name.presence || t('workarea.admin.content_blocks.asset.name_missing')
|
17
19
|
|
18
20
|
.asset-picker-field__cell= link_to t('workarea.admin.content_blocks.asset.select_an_asset'), insert_content_assets_path(file_type: field.file_types), class: 'text-button', data: { asset_picker_field_open: '', turbolinks: false }
|
19
21
|
- if asset.name.present?
|
20
22
|
.asset-picker-field__cell= button_tag t('workarea.admin.content_blocks.asset.clear_asset'), type: 'button', value: 'clear_asset', id: nil, class: 'text-button text-button--destroy', data: { asset_picker_field_clear: '' }
|
21
23
|
|
24
|
+
%span.property__note
|
25
|
+
= t('workarea.admin.content_blocks.asset.alt_text_note')
|
26
|
+
- if asset.alt_text.present?
|
27
|
+
%strong= "(#{asset.alt_text})"
|
28
|
+
|
22
29
|
- if field.tooltip.present?
|
23
30
|
.tooltip-content{ id: "#{dom_id(block, field.slug)}_tooltip" }
|
24
31
|
%p= field.tooltip
|
@@ -11,6 +11,7 @@
|
|
11
11
|
%li
|
12
12
|
%strong= t('workarea.admin.fields.active')
|
13
13
|
= check_box_tag 'page', 'active', model.active, disabled: true
|
14
|
+
= inline_svg('workarea/admin/icons/user.svg', class: 'svg-icon svg-icon--small svg-icon--blue') if model.active? && model.segments.any?
|
14
15
|
%li
|
15
16
|
%strong= t('workarea.admin.fields.show_left_navigation')
|
16
17
|
= model.show_navigation?.to_s.titleize
|
@@ -31,7 +31,7 @@
|
|
31
31
|
%span.property__name
|
32
32
|
= t('workarea.admin.fields.active')
|
33
33
|
= inline_svg('workarea/admin/i18n.svg', class: 'svg-icon svg-icon--small') if locale_options.many? && Workarea.config.localized_active_fields
|
34
|
-
=
|
34
|
+
= render 'workarea/admin/shared/active_field', scope: 'page', model: @page
|
35
35
|
|
36
36
|
.property
|
37
37
|
= label_tag 'page[tag_list]', t('workarea.admin.content_pages.edit.tags_label'), class: 'property__name'
|
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
.property
|
30
30
|
= label_tag 'product[meta_description]', t('workarea.admin.create_catalog_products.content.meta_description'), class: 'property__name'
|
31
|
-
= text_field_tag 'product[meta_description]', @product.meta_description, class: 'text-box text-box--i18n', placeholder: t('workarea.admin.create_catalog_products.content.
|
31
|
+
= text_field_tag 'product[meta_description]', @product.meta_description, class: 'text-box text-box--i18n', placeholder: t('workarea.admin.create_catalog_products.content.defaults_to_a_truncated_description')
|
32
32
|
%span.property__note= t('workarea.admin.create_catalog_products.content.provides_a_summary_that_is_displayed_on_search_engine_result_pages')
|
33
33
|
|
34
34
|
.workflow-bar
|
@@ -0,0 +1,45 @@
|
|
1
|
+
- @page_title = t('workarea.admin.create_release_undos.new.title', name: @release.name)
|
2
|
+
|
3
|
+
.view
|
4
|
+
.view__header
|
5
|
+
.view__heading
|
6
|
+
%h1= t('workarea.admin.create_release_undos.new.title', name: @release.name)
|
7
|
+
|
8
|
+
.view__container.view__container--narrow
|
9
|
+
- @undo_release.errors.full_messages.each do |message|
|
10
|
+
= render_message 'error', message
|
11
|
+
|
12
|
+
= form_tag release_undo_path(@release), method: 'post' do
|
13
|
+
.section
|
14
|
+
.property.property--required
|
15
|
+
= label_tag 'release_name', t('workarea.admin.fields.name'), class: 'property__name'
|
16
|
+
= text_field_tag 'release[name]', @undo_release.name, class: 'text-box text-box--i18n', required: true, placeholder: t('workarea.admin.create_release_undos.new.release_name_placeholder', year: Time.current.year)
|
17
|
+
|
18
|
+
.property
|
19
|
+
= label_tag 'release[tag_list]', t('workarea.admin.fields.tags'), class: 'property__name'
|
20
|
+
= text_field_tag 'release[tag_list]', @undo_release.tag_list, class: 'text-box'
|
21
|
+
%span.property__note= t('workarea.admin.create_release_undos.new.tags_note')
|
22
|
+
|
23
|
+
- if current_user.can_publish_now?
|
24
|
+
.align-center
|
25
|
+
.grid.grid--huge
|
26
|
+
.grid__cell.grid__cell--50-at-medium
|
27
|
+
.property
|
28
|
+
= label_tag 'release_publish_at', t('workarea.admin.fields.undo_at'), class: 'property__name'
|
29
|
+
.box.box--rounded= hidden_field_tag 'release[publish_at]', @undo_release.publish_at, data: { datetimepicker_field: { inline: true } }
|
30
|
+
|
31
|
+
.workflow-bar
|
32
|
+
.grid.grid--middle
|
33
|
+
.grid__cell.grid__cell--20
|
34
|
+
= link_to t('workarea.admin.form.cancel'), undo_release_path(@release), class: 'workflow-bar__button workflow-bar__button--delete'
|
35
|
+
|
36
|
+
.grid__cell.grid__cell--60
|
37
|
+
%ol.workflow-bar__steps
|
38
|
+
%li.workflow-bar__step
|
39
|
+
%strong 1) #{t('workarea.admin.create_release_undos.workflow.setup')}
|
40
|
+
%li.workflow-bar__step
|
41
|
+
2) #{t('workarea.admin.create_release_undos.workflow.review')}
|
42
|
+
|
43
|
+
.grid__cell.grid__cell--20
|
44
|
+
.grid.grid--auto.grid--right.grid--middle
|
45
|
+
.grid__cell= button_tag t('workarea.admin.create_release_undos.workflow.create_undo'), value: 'create_undo', class: 'workflow-bar__button workflow-bar__button--create'
|
@@ -0,0 +1,51 @@
|
|
1
|
+
- @page_title = t('workarea.admin.create_release_undos.review.title', name: @release.name)
|
2
|
+
|
3
|
+
.view
|
4
|
+
.view__header
|
5
|
+
.view__heading
|
6
|
+
%h1.heading--no-margin= t('workarea.admin.create_release_undos.review.title', name: @release.name)
|
7
|
+
%p= link_to t('workarea.admin.create_release_undos.workflow.or_skip_this'), url_for(@undo_release)
|
8
|
+
|
9
|
+
|
10
|
+
.view__container.view__container--narrow
|
11
|
+
.section
|
12
|
+
.grid.grid--center
|
13
|
+
.grid__cell.grid__cell--50
|
14
|
+
%p.align-center.text.text--large= t('workarea.admin.create_release_undos.review.changes_description_html', undo: link_to(@undo_release.name, @undo_release), original: link_to(@release.name, @release))
|
15
|
+
|
16
|
+
.grid.grid--center
|
17
|
+
.grid__cell.grid__cell--80-at-medium
|
18
|
+
%ul.list-reset
|
19
|
+
- @undo_release.changesets_with_releasable.each do |changeset|
|
20
|
+
%li
|
21
|
+
.release-changeset
|
22
|
+
.release-changeset__header
|
23
|
+
.release-changeset__icon
|
24
|
+
= changeset_icon changeset, { class: 'svg-icon svg-icon--large'}
|
25
|
+
%h5.release-changeset__heading= link_to changeset.name, url_for(changeset.root)
|
26
|
+
.release-changeset__actions
|
27
|
+
.grid.grid--auto
|
28
|
+
= form_tag release_changeset_path(@undo_release, changeset), method: :delete, class: 'grid__cell', data: { deletion_form: { message: t('workarea.admin.changesets.delete_confirmation') } } do
|
29
|
+
= button_tag value: 'delete_changeset', class: 'text-button text-button--destroy' do
|
30
|
+
= t('workarea.admin.actions.delete')
|
31
|
+
= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon')
|
32
|
+
|
33
|
+
.release-changeset__body
|
34
|
+
- changeset.changed_fields.each do |field|
|
35
|
+
= render_changeset_field(changeset, field)
|
36
|
+
|
37
|
+
.workflow-bar
|
38
|
+
.grid.grid--middle
|
39
|
+
.grid__cell.grid__cell--20
|
40
|
+
= link_to t('workarea.admin.form.cancel'), release_path(@undo_release), class: 'workflow-bar__button workflow-bar__button--delete', data: { method: 'delete', confirm: t('workarea.admin.create_release_undos.workflow.delete_confirmation') }
|
41
|
+
|
42
|
+
.grid__cell.grid__cell--60
|
43
|
+
%ol.workflow-bar__steps
|
44
|
+
%li.workflow-bar__step
|
45
|
+
1) #{link_to t('workarea.admin.create_release_undos.workflow.setup'), new_release_undo_path(@release)}
|
46
|
+
%li.workflow-bar__step
|
47
|
+
%strong 2) #{t('workarea.admin.create_release_undos.workflow.review')}
|
48
|
+
|
49
|
+
.grid__cell.grid__cell--20
|
50
|
+
.grid.grid--auto.grid--right.grid--middle
|
51
|
+
.grid__cell= link_to "#{t('workarea.admin.create_release_undos.workflow.done')} →", release_path(@undo_release), class: 'workflow-bar__button'
|
@@ -56,9 +56,10 @@
|
|
56
56
|
= render 'workarea/admin/facets/applied', search: @search, reset_path: plan_create_release_path(@release)
|
57
57
|
|
58
58
|
- if @search.results.any?
|
59
|
-
.
|
60
|
-
|
61
|
-
.
|
59
|
+
.section
|
60
|
+
.grid.grid--auto.grid--flush.grid--center
|
61
|
+
- @search.results.each do |result|
|
62
|
+
.grid__cell= render_summary_for(result)
|
62
63
|
|
63
64
|
- if @search.results.total_pages > 1
|
64
65
|
= render 'workarea/admin/shared/pagination', collection: @search.results
|
@@ -17,23 +17,19 @@
|
|
17
17
|
= label_tag 'release_name', t('workarea.admin.fields.name'), class: 'property__name'
|
18
18
|
= text_field_tag 'release[name]', @release.name, class: 'text-box text-box--i18n', required: true, placeholder: t('workarea.admin.create_releases.setup.release_name_placeholder', year: Time.current.year)
|
19
19
|
|
20
|
-
- if current_user.can_publish_now?
|
21
|
-
.grid.grid--huge
|
22
|
-
.grid__cell.grid__cell--50-at-medium
|
23
|
-
.property
|
24
|
-
= label_tag 'release_publish_at', t('workarea.admin.fields.publish_at'), class: 'property__name'
|
25
|
-
.box.box--rounded= hidden_field_tag 'release[publish_at]', @release.publish_at, data: { datetimepicker_field: { inline: true, uiOptions: { minDate: 0 } }.to_json }
|
26
|
-
|
27
|
-
.grid__cell.grid__cell--50-at-medium
|
28
|
-
.property
|
29
|
-
= label_tag 'release_undo_at', t('workarea.admin.fields.undo_at'), class: 'property__name'
|
30
|
-
.box.box--rounded= hidden_field_tag 'release[undo_at]', nil, data: { datetimepicker_field: { inline: true, uiOptions: { minDate: 0 } }.to_json }
|
31
|
-
|
32
20
|
.property
|
33
21
|
= label_tag 'release[tag_list]', t('workarea.admin.fields.tags'), class: 'property__name'
|
34
22
|
= text_field_tag 'release[tag_list]', @release.tag_list, class: 'text-box'
|
35
23
|
%span.property__note= t('workarea.admin.create_releases.setup.tags_note')
|
36
24
|
|
25
|
+
- if current_user.can_publish_now?
|
26
|
+
.align-center
|
27
|
+
.grid.grid--huge
|
28
|
+
.grid__cell.grid__cell--50-at-medium
|
29
|
+
.property
|
30
|
+
= label_tag 'release_publish_at', t('workarea.admin.fields.publish_at'), class: 'property__name'
|
31
|
+
.box.box--rounded= hidden_field_tag 'release[publish_at]', @release.publish_at, data: { datetimepicker_field: { inline: true } }
|
32
|
+
|
37
33
|
.workflow-bar
|
38
34
|
.grid.grid--middle
|
39
35
|
.grid__cell.grid__cell--20
|
@@ -0,0 +1,55 @@
|
|
1
|
+
- @page_title = t('workarea.admin.create_segments.rules.title', name: @segment.name)
|
2
|
+
|
3
|
+
.view
|
4
|
+
.view__header
|
5
|
+
.grid.grid--center
|
6
|
+
.grid__cell.grid__cell--50
|
7
|
+
.view__heading
|
8
|
+
%h1.heading.heading--no-margin= t('workarea.admin.create_segments.rules.title', name: @segment.name)
|
9
|
+
- if params[:action] == 'new_rule'
|
10
|
+
= link_to "← #{t('workarea.admin.actions.back')}", rules_create_segment_path(@segment)
|
11
|
+
|
12
|
+
.view__container.view__container--narrow
|
13
|
+
.section
|
14
|
+
- if @rules.any?
|
15
|
+
- @rules.each do |rule|
|
16
|
+
.box.box--rounded.box--padded
|
17
|
+
- if rule == @rule
|
18
|
+
.grid.grid--auto.grid--center.grid--middle
|
19
|
+
.grid__cell
|
20
|
+
= render 'workarea/admin/segment_rules/form', segment: @segment, rule: rule, return_to: rules_create_segment_path(@segment)
|
21
|
+
.grid__cell
|
22
|
+
= link_to t('workarea.admin.actions.cancel'), rules_create_segment_path(@segment)
|
23
|
+
- else
|
24
|
+
.grid.grid--right.grid--middle
|
25
|
+
.grid__cell.grid__cell--50
|
26
|
+
.align-center= render "workarea/admin/segment_rules/summaries/#{rule.slug}", rule: rule
|
27
|
+
.grid__cell.grid__cell--25
|
28
|
+
.align-right
|
29
|
+
= link_to inline_svg('workarea/admin/icons/edit.svg', class: 'svg-icon svg-icon--small', title: t('workarea.admin.actions.edit')), edit_rule_create_segment_path(@segment, rule)
|
30
|
+
= link_to inline_svg('workarea/admin/icons/delete.svg', class: 'svg-icon svg-icon--small svg-icon--red', title: t('workarea.admin.actions.remove')), segment_rule_path(@segment, rule, return_to: rules_create_segment_path(@segment)), data: { method: 'delete' }
|
31
|
+
|
32
|
+
- if params[:action] == 'new_rule'
|
33
|
+
= render 'workarea/admin/segment_rules/form', segment: @segment, rule: @rule, return_to: rules_create_segment_path(@segment)
|
34
|
+
|
35
|
+
- else
|
36
|
+
= form_tag new_rule_create_segment_path(@segment), method: 'get' do
|
37
|
+
.grid.grid--auto.grid--center.grid--middle
|
38
|
+
.grid__cell= t('workarea.admin.create_segments.rules.add_rule')
|
39
|
+
.grid__cell= select_tag 'rule_type', options_for_select(segment_rule_types_options)
|
40
|
+
.grid__cell= button_tag inline_svg('workarea/admin/icons/add_circle.svg', class: 'svg-icon svg-icon--medium svg-icon--green', title: t('workarea.admin.create_segments.rules.add_rule')), value: 'add_rule', class: 'text-button'
|
41
|
+
|
42
|
+
.workflow-bar
|
43
|
+
.grid.grid--middle
|
44
|
+
.grid__cell.grid__cell--20
|
45
|
+
= link_to t('workarea.admin.form.cancel'), segment_path(@segment), class: 'workflow-bar__button workflow-bar__button--delete', data: { method: 'delete', confirm: t('workarea.admin.create_segments.workflow.cancel_message') }
|
46
|
+
|
47
|
+
.grid__cell.grid__cell--60
|
48
|
+
%ol.workflow-bar__steps
|
49
|
+
%li.workflow-bar__step 1) #{link_to t('workarea.admin.create_segments.workflow.steps.setup'), edit_create_segment_path(@segment)}
|
50
|
+
%li.workflow-bar__step
|
51
|
+
%strong 2) #{t('workarea.admin.create_segments.workflow.steps.rules')}
|
52
|
+
|
53
|
+
.grid__cell.grid__cell--20
|
54
|
+
.grid.grid--auto.grid--right.grid--middle
|
55
|
+
.grid__cell= link_to "#{t('workarea.admin.create_segments.rules.complete')} →", segment_path(@segment), class: 'workflow-bar__button'
|
@@ -0,0 +1,42 @@
|
|
1
|
+
- @page_title = t('workarea.admin.create_segments.setup.title')
|
2
|
+
|
3
|
+
.view
|
4
|
+
.view__header
|
5
|
+
.view__heading
|
6
|
+
%h1.heading.heading--no-margin= t('workarea.admin.create_segments.setup.title')
|
7
|
+
|
8
|
+
.view__container.view__container--narrow
|
9
|
+
- @segment.errors.full_messages.each do |message|
|
10
|
+
= render_message 'error', message
|
11
|
+
|
12
|
+
= form_tag create_segments_path, method: 'post' do
|
13
|
+
.section
|
14
|
+
.property.property--required
|
15
|
+
= label_tag 'segment_name', t('workarea.admin.fields.name'), class: 'property__name'
|
16
|
+
= text_field_tag 'segment[name]', @segment.name, class: 'text-box', required: true
|
17
|
+
|
18
|
+
.property
|
19
|
+
= label_tag 'segment[tag_list]', t('workarea.admin.fields.tags'), class: 'property__name'
|
20
|
+
= text_field_tag 'segment[tag_list]', @segment.tag_list, class: 'text-box'
|
21
|
+
%span.property__note= t('workarea.admin.form.csv_field_note')
|
22
|
+
|
23
|
+
.workflow-bar
|
24
|
+
.grid.grid--middle
|
25
|
+
.grid__cell.grid__cell--20
|
26
|
+
- if @segment.new_record?
|
27
|
+
= link_to t('workarea.admin.form.cancel'), segments_path, class: 'workflow-bar__button workflow-bar__button--delete'
|
28
|
+
- else
|
29
|
+
= link_to t('workarea.admin.form.cancel'), segment_path(@segment), class: 'workflow-bar__button workflow-bar__button--delete', data: { method: 'delete', confirm: t('workarea.admin.create_segments.workflow.cancel_message') }
|
30
|
+
|
31
|
+
.grid__cell.grid__cell--60
|
32
|
+
%ol.workflow-bar__steps
|
33
|
+
%li.workflow-bar__step
|
34
|
+
%strong 1) #{t('workarea.admin.create_segments.workflow.steps.setup')}
|
35
|
+
- if @segment.new_record?
|
36
|
+
%li.workflow-bar__step 2) #{t('workarea.admin.create_segments.workflow.steps.rules')}
|
37
|
+
- else
|
38
|
+
%li.workflow-bar__step 2) #{link_to t('workarea.admin.create_segments.workflow.steps.rules'), rules_create_segment_path(@segment)}
|
39
|
+
|
40
|
+
.grid__cell.grid__cell--20
|
41
|
+
.grid.grid--auto.grid--right.grid--middle
|
42
|
+
.grid__cell= button_tag t('workarea.admin.create_segments.setup.save_and_add_rules'), value: 'save_setup', class: 'workflow-bar__button workflow-bar__button--create'
|
@@ -12,6 +12,7 @@
|
|
12
12
|
%li= link_to t('workarea.admin.dashboards.catalog.categories'), catalog_categories_path
|
13
13
|
%li= link_to t('workarea.admin.dashboards.catalog.pricing'), pricing_skus_path
|
14
14
|
%li= link_to t('workarea.admin.dashboards.catalog.inventory'), inventory_skus_path
|
15
|
+
%li= link_to t('workarea.admin.dashboards.catalog.fulfillment'), fulfillment_skus_path
|
15
16
|
= append_partials('admin.catalog_dashboard_navigation')
|
16
17
|
|
17
18
|
.view__container.view__container--narrow
|
@@ -11,7 +11,7 @@
|
|
11
11
|
%li= link_to t('workarea.admin.dashboards.people.all_people'), users_path
|
12
12
|
%li= link_to t('workarea.admin.dashboards.people.customers'), users_path(role: %w(Customer))
|
13
13
|
%li= link_to t('workarea.admin.dashboards.people.administrators'), users_path(role: %w(Administrator))
|
14
|
-
%li= link_to t('workarea.admin.dashboards.people.
|
14
|
+
%li= link_to t('workarea.admin.dashboards.people.segments'), segments_path
|
15
15
|
= append_partials('admin.people_dashboard_navigation')
|
16
16
|
|
17
17
|
.view__container
|
@@ -9,6 +9,24 @@
|
|
9
9
|
|
10
10
|
.view__container
|
11
11
|
.grid.grid--auto.grid--flush.grid--center
|
12
|
+
.grid__cell
|
13
|
+
.card{ class: card_classes(:timeline_report, local_assigns[:active]) }
|
14
|
+
= link_to timeline_report_path, class: 'card__header' do
|
15
|
+
%span.card__header-text= t('workarea.admin.reports.timeline.title')
|
16
|
+
= inline_svg 'workarea/admin/icons/insights.svg', class: 'card__icon'
|
17
|
+
|
18
|
+
.card__body
|
19
|
+
.card__centered-content
|
20
|
+
%p= t('workarea.admin.reports.timeline.summary.intro_html', count: @dashboard.timeline.summary[:releases])
|
21
|
+
%ul
|
22
|
+
%li= t('workarea.admin.reports.timeline.summary.revenue_html', revenue: number_to_currency(@dashboard.timeline.summary[:revenue]))
|
23
|
+
%li= t('workarea.admin.reports.timeline.summary.orders_html', orders: @dashboard.timeline.summary[:orders])
|
24
|
+
%li= t('workarea.admin.reports.timeline.summary.units_sold_html', units_sold: @dashboard.timeline.summary[:units_sold])
|
25
|
+
%li= t('workarea.admin.reports.timeline.summary.customers_html', customers: @dashboard.timeline.summary[:customers])
|
26
|
+
|
27
|
+
= link_to timeline_report_path(starts_at: 3.months.ago), class: 'card__button' do
|
28
|
+
%span.button.button--small= t('workarea.admin.dashboards.reports.view_full_report')
|
29
|
+
|
12
30
|
.grid__cell
|
13
31
|
.card{ class: card_classes(:insights_report, local_assigns[:active]) }
|
14
32
|
= link_to insights_report_path, class: 'card__header' do
|
@@ -150,6 +168,19 @@
|
|
150
168
|
= link_to sales_by_country_report_path, class: 'card__button' do
|
151
169
|
%span.button.button--small= t('workarea.admin.dashboards.reports.view_full_report')
|
152
170
|
|
171
|
+
.grid__cell
|
172
|
+
.card{ class: card_classes(:sales_by_country_report, local_assigns[:active]) }
|
173
|
+
= link_to sales_by_tender_report_path, class: 'card__header' do
|
174
|
+
%span.card__header-text= t('workarea.admin.reports.sales_by_tender.title')
|
175
|
+
= inline_svg 'workarea/admin/icons/insights.svg', class: 'card__icon'
|
176
|
+
|
177
|
+
.card__body
|
178
|
+
.card__centered-content
|
179
|
+
= column_chart @dashboard.tender_graph_data, Workarea.config.default_chartkick_options.merge(prefix: Money.default_currency.symbol)
|
180
|
+
|
181
|
+
= link_to sales_by_tender_report_path, class: 'card__button' do
|
182
|
+
%span.button.button--small= t('workarea.admin.dashboards.reports.view_full_report')
|
183
|
+
|
153
184
|
.grid__cell
|
154
185
|
.card{ class: card_classes(:customers_report, local_assigns[:active]) }
|
155
186
|
= link_to customers_report_path, class: 'card__header' do
|
@@ -8,6 +8,7 @@
|
|
8
8
|
|
9
9
|
.view__container
|
10
10
|
%ul.secondary-nav
|
11
|
+
%li= link_to t('workarea.admin.dashboards.settings.configuration'), configuration_path
|
11
12
|
%li= link_to t('workarea.admin.dashboards.settings.search'), search_settings_path
|
12
13
|
%li= link_to t('workarea.admin.dashboards.settings.tax_categories'), tax_categories_path
|
13
14
|
%li= link_to t('workarea.admin.dashboards.settings.shipping_services'), shipping_services_path
|
@@ -15,11 +16,29 @@
|
|
15
16
|
= append_partials('admin.settings_dashboard_navigation')
|
16
17
|
%li= link_to t('workarea.admin.dashboards.settings.trash'), trash_index_path
|
17
18
|
|
18
|
-
.view__container
|
19
|
+
.view__container{ data: { jump_to_menu: '' } }
|
20
|
+
- @configuration.definition.fieldsets.each do |fieldset|
|
21
|
+
- next if fieldset.fields.none?
|
22
|
+
|
23
|
+
.insight
|
24
|
+
.insight__heading{ data: { jump_to_menu_heading: 1 }, id: fieldset.name.systemize }= fieldset.name
|
25
|
+
.insight__body.insight__body--pad-sides
|
26
|
+
- fieldset.fields.each do |field|
|
27
|
+
- value = field.encrypted? ? ("•" * 10) : @configuration.send(field.key)
|
28
|
+
- sanitized = sanitize_config_value(value)
|
29
|
+
- if sanitized.present?
|
30
|
+
.align-left
|
31
|
+
%h2.heading.heading--4
|
32
|
+
- if field.overridden?
|
33
|
+
= link_to '#overridden-field', data: { tooltip: '' } do
|
34
|
+
= inline_svg('workarea/admin/icons/alert.svg', class: 'svg-icon svg-icon--small svg-icon--red', title: t('workarea.admin.configurations.show.field_overridden'))
|
35
|
+
#{field.name}:
|
36
|
+
%p= sanitized
|
37
|
+
|
19
38
|
.insight
|
20
|
-
.insight__heading= t('workarea.admin.dashboards.settings.
|
39
|
+
.insight__heading{ data: { jump_to_menu_heading: 1 }, id: 'static' }= t('workarea.admin.dashboards.settings.static_configuration')
|
21
40
|
.insight__body.insight__body--pad-sides
|
22
|
-
%p.insight__note= t('workarea.admin.dashboards.settings.
|
41
|
+
%p.insight__note= t('workarea.admin.dashboards.settings.static_note')
|
23
42
|
- @settings.each do |key, value|
|
24
43
|
- sanitized = sanitize_config_value(value)
|
25
44
|
- if sanitized.present?
|
@@ -27,3 +46,4 @@
|
|
27
46
|
%h2.heading.heading--4 #{key.to_s.titleize}:
|
28
47
|
%p= sanitized
|
29
48
|
|
49
|
+
= render 'workarea/admin/configurations/overridden'
|
@@ -15,11 +15,13 @@
|
|
15
15
|
|
16
16
|
.section
|
17
17
|
.grid.grid--center
|
18
|
-
.grid__cell.grid__cell--
|
18
|
+
.grid__cell.grid__cell--75
|
19
19
|
- @import.errors.full_messages.each do |message|
|
20
20
|
= render_message 'error', message
|
21
21
|
|
22
22
|
.property.align-center
|
23
|
+
- if @import.releasable?
|
24
|
+
= render 'workarea/admin/shared/publishing_select'
|
23
25
|
= file_field_tag 'import[file]', class: 'text-box text-box--wide', required: true
|
24
26
|
= button_tag t('workarea.admin.data_file_imports.new.start_import'), value: 'create_import', class: 'button button--inline'
|
25
27
|
%span.property__note= t('workarea.admin.data_file_imports.new.note')
|
@@ -33,7 +35,7 @@
|
|
33
35
|
- Workarea.config.data_file_formats.each do |file_type|
|
34
36
|
= link_to_unless @import.file_type.to_s == file_type.to_s, file_type.upcase, url_for(import: { model_type: @import.model_type, file_type: file_type }), data: { turbolinks: false }
|
35
37
|
%br
|
36
|
-
= link_to t('workarea.admin.data_file_imports.new.download_sample'), url_for(params.merge(action: 'sample'
|
38
|
+
= link_to t('workarea.admin.data_file_imports.new.download_sample'), url_for(params.merge(action: 'sample')) if @import.samples.present?
|
37
39
|
|
38
40
|
- if @import.samples.blank?
|
39
41
|
%p.align-center= t('workarea.admin.data_file_imports.new.no_samples')
|
@@ -1,3 +1,5 @@
|
|
1
|
+
= render_schema_org(email_action_schema(url_for(@export), t('workarea.admin.data_file_mailer.export.email_action.name'), t('workarea.admin.data_file_mailer.export.email_action.description')))
|
2
|
+
|
1
3
|
%tr
|
2
4
|
%td
|
3
5
|
%p= t('workarea.admin.data_file_mailer.export.download_html', link: link_to(t('workarea.admin.data_file_mailer.export.download_link'), url_for(@export)), name: @export.name.downcase, type: @export.file_type.upcase)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
= render_schema_org(email_action_schema(index_url_for(@import.model_class), t('workarea.admin.data_file_mailer.import.email_action.name'), t('workarea.admin.data_file_mailer.import.email_action.description')))
|
2
|
+
|
1
3
|
%tr
|
2
4
|
%td
|
3
5
|
%h1= t('workarea.admin.data_file_mailer.import.message', name: @import.file_name)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
= render_schema_org(email_action_schema(index_url_for(@import.model_class), t('workarea.admin.data_file_mailer.import_failure.email_action.name'), t('workarea.admin.data_file_mailer.import_failure.email_action.description')))
|
2
|
+
|
1
3
|
%tr
|
2
4
|
%td
|
3
5
|
%h1= t('workarea.admin.data_file_mailer.import_failure.message', name: @import.file_name)
|
@@ -10,7 +10,7 @@
|
|
10
10
|
- @search.facet_selections.each do |facet, values|
|
11
11
|
- values.each do |value|
|
12
12
|
%li.browsing-controls__applied-filter
|
13
|
-
%span=
|
13
|
+
%span= value.titleize
|
14
14
|
= link_to facet_path(facet, value), class: 'browsing-controls__applied-remove-link' do
|
15
15
|
= inline_svg('workarea/admin/icons/close.svg', class: 'browsing-controls__applied-icon svg-icon svg-icon--small svg-icon--black', title: t('workarea.admin.facets.applied.remove_filter'))
|
16
16
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= link_to remove_featured_product_path(featurable.to_global_id, product_id: product.id), class: 'product-summary', data: { remote: true, method: 'delete', replace: true } do
|
1
|
+
= link_to remove_featured_product_path(featurable.to_global_id, product_id: product.id), class: summary_inventory_status_css_classes(product).push('product-summary'), data: { remote: true, method: 'delete', replace: true } do
|
2
2
|
.product-summary__media
|
3
3
|
.product-summary__image-wrapper
|
4
4
|
= image_tag(product_image_url(product.primary_image, :small), alt: product.name, class: 'product-summary__image')
|
@@ -7,4 +7,5 @@
|
|
7
7
|
%span.product-summary__graph
|
8
8
|
%span.spark{ title: t('workarea.admin.catalog_categories.cards.featured_products.sparkline_title') }
|
9
9
|
{#{sparkline_analytics_data_for(product.insights.orders_sparkline).join(',')}}
|
10
|
-
|
10
|
+
- if product.inventory_message.present?
|
11
|
+
.product-summary__status= product.inventory_message
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= link_to add_featured_product_path(featurable.to_global_id, product_id: product.id), class: 'product-summary', data: { remote: true, method: 'post', replace: true } do
|
1
|
+
= link_to add_featured_product_path(featurable.to_global_id, product_id: product.id), class: summary_inventory_status_css_classes(product).push('product-summary'), data: { remote: true, method: 'post', replace: true } do
|
2
2
|
.product-summary__media
|
3
3
|
.product-summary__image-wrapper
|
4
4
|
= image_tag(product_image_url(product.primary_image, :small), alt: product.name, class: 'product-summary__image')
|
@@ -6,3 +6,5 @@
|
|
6
6
|
%span.product-summary__graph
|
7
7
|
%span.spark{ title: t('workarea.admin.catalog_categories.cards.featured_products.sparkline_title') }
|
8
8
|
{#{sparkline_analytics_data_for(product.insights.orders_sparkline).join(',')}}
|
9
|
+
- if product.inventory_message.present?
|
10
|
+
.product-summary__status= product.inventory_message
|
@@ -26,15 +26,13 @@
|
|
26
26
|
|
27
27
|
%p.align-center= link_to '← ' + t('workarea.admin.featured_products.edit.browse_link'), select_featured_product_path(@featurable.to_global_id)
|
28
28
|
|
29
|
-
= render 'workarea/admin/featured_products/release_preview_warning'
|
30
|
-
|
31
29
|
= form_tag featured_product_path(@featurable.to_global_id), method: 'patch' do
|
32
30
|
.section
|
33
31
|
.product-rules-preview__products
|
34
32
|
.grid.grid--auto.grid--flush.grid--center{ data: { featured_products_sort: true } }
|
35
33
|
- @featurable.featured_products.each do |product|
|
36
34
|
.grid__cell
|
37
|
-
.product-summary
|
35
|
+
.product-summary{ class: summary_inventory_status_css_classes(product) }
|
38
36
|
= hidden_field_tag 'product_ids[]', product.id, id: nil
|
39
37
|
.product-summary__media
|
40
38
|
.product-summary__image-wrapper
|
@@ -44,3 +42,5 @@
|
|
44
42
|
%span.product-summary__graph
|
45
43
|
%span.spark{ title: t('workarea.admin.catalog_categories.cards.featured_products.sparkline_title') }
|
46
44
|
{#{sparkline_analytics_data_for(product.insights.orders_sparkline).join(',')}}
|
45
|
+
- if product.inventory_message.present?
|
46
|
+
.product-summary__status= product.inventory_message
|
@@ -21,7 +21,6 @@
|
|
21
21
|
.section
|
22
22
|
%h2.view__heading= t('workarea.admin.featured_products.select.instruction')
|
23
23
|
%p.align-center= t('workarea.admin.featured_products.select.details_html', link: link_to(t('workarea.admin.featured_products.select.sort_now_link'), edit_featured_product_path(@featurable.to_global_id)))
|
24
|
-
= render 'workarea/admin/featured_products/release_preview_warning'
|
25
24
|
|
26
25
|
.browsing-controls.browsing-controls--with-divider.browsing-controls--center{ class: ('browsing-controls--filters-displayed' unless @search.toggle_facets?) }
|
27
26
|
= form_tag select_featured_product_path(@featurable.to_global_id), method: 'get', id: 'product_search_form', class: 'browsing-controls__form' do
|