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
@@ -10,43 +10,82 @@
|
|
10
10
|
|
11
11
|
.view__container
|
12
12
|
= render_cards_for(@category, :rates)
|
13
|
-
%h2.view__heading= pluralize(@rates.count, 'Rate')
|
14
13
|
|
14
|
+
.browsing-controls.browsing-controls--with-divider.browsing-controls--center
|
15
|
+
= form_tag tax_category_rates_path, method: :get, id: 'rates_search_form', class: 'browsing-controls__form' do
|
16
|
+
.browsing-controls__sort
|
17
|
+
.property.property--inline
|
18
|
+
= label_tag 'sort', t('workarea.admin.search.sort_by'), class: 'property__name'
|
19
|
+
= select_tag 'sort', options_for_select(sort_options(@rates), params[:sort]), data: { form_submitting_control: '' }
|
20
|
+
.browsing-controls__search
|
21
|
+
.search-form.search-form--large
|
22
|
+
= text_field_tag :q, params[:q], class: 'search-form__input', id: 'search_rates', title: t('workarea.admin.tax_rates.index.search_placeholder'), placeholder: t('workarea.admin.tax_rates.index.search_placeholder')
|
23
|
+
= button_tag t('workarea.admin.search.go'), value: 'search_rates', class: 'search-form__button'
|
24
|
+
|
25
|
+
%p.browsing-controls__count{ data: { browsing_controls_count: @rates.total_count } }
|
26
|
+
= t('workarea.admin.tax_rates.index.rates', count: @rates.total_count)
|
27
|
+
|
28
|
+
.view__container
|
15
29
|
- if @rates.blank?
|
16
|
-
=
|
30
|
+
%p.align-center= t('workarea.admin.tax_rates.index.empty_message')
|
17
31
|
- else
|
18
|
-
%table
|
32
|
+
%table.index-table
|
19
33
|
%thead
|
20
34
|
%tr
|
21
|
-
%th= t('workarea.admin.tax_rates.index.table.
|
22
|
-
%th
|
35
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.country')
|
36
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.region')
|
37
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.postal_code')
|
38
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.country_percentage')
|
39
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.region_percentage')
|
40
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.postal_code_percentage')
|
41
|
+
%th.align-center
|
23
42
|
= t('workarea.admin.tax_rates.index.table.min_value')
|
24
43
|
= link_to '#min-value-tooltip', data: { tooltip: '' } do
|
25
44
|
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.tax_rates.index.table.min_value_link'))
|
26
45
|
%span#min-value-tooltip.tooltip-content= t('workarea.admin.tax_rates.index.table.min_value_tooltip')
|
27
|
-
%th
|
46
|
+
%th.align-center
|
28
47
|
= t('workarea.admin.tax_rates.index.table.max_value')
|
29
48
|
= link_to '#max-value-tooltip', data: { tooltip: '' } do
|
30
49
|
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.tax_rates.index.table.max_value_link'))
|
31
50
|
%span#max-value-tooltip.tooltip-content= t('workarea.admin.tax_rates.index.table.max_value_tooltip')
|
32
|
-
%th= t('workarea.admin.tax_rates.index.table.
|
33
|
-
%th= t('workarea.admin.tax_rates.index.table.
|
34
|
-
%th= t('workarea.admin.tax_rates.index.table.postal_code')
|
35
|
-
%th= t('workarea.admin.tax_rates.index.table.charge_on_shipping')
|
51
|
+
%th.align-center= t('workarea.admin.tax_rates.index.table.charge_on_shipping')
|
52
|
+
%th.align-right= t('workarea.admin.tax_rates.index.table.actions')
|
36
53
|
%tbody
|
37
54
|
- @rates.each do |rate|
|
38
|
-
%tr
|
39
|
-
%td=
|
40
|
-
%td= rate.
|
41
|
-
%td= rate.
|
42
|
-
%td= rate.
|
43
|
-
%td= rate.
|
44
|
-
%td= rate.
|
45
|
-
%td= rate.
|
55
|
+
%tr.index-table__row
|
56
|
+
%td.align-center= rate.country.try(&:alpha2) || '-'
|
57
|
+
%td.align-center= rate.region || '-'
|
58
|
+
%td.align-center= rate.postal_code.presence || '-'
|
59
|
+
%td.align-center= number_to_percentage(rate.country_percentage * 100, precision: 1)
|
60
|
+
%td.align-center= number_to_percentage(rate.region_percentage * 100, precision: 1)
|
61
|
+
%td.align-center= number_to_percentage(rate.postal_code_percentage * 100, precision: 1)
|
62
|
+
%td.align-center= rate.tier_min.present? ? number_to_currency(rate.tier_min) : t('workarea.admin.tax_rates.index.not_applicable')
|
63
|
+
%td.align-center= rate.tier_max.present? ? number_to_currency(rate.tier_max) : t('workarea.admin.tax_rates.index.not_applicable')
|
64
|
+
%td.align-center= rate.charge_on_shipping ? t('workarea.admin.true') : t('workarea.admin.false')
|
65
|
+
%td
|
66
|
+
.grid.grid--auto.grid--right
|
67
|
+
.grid__cell
|
68
|
+
= link_to edit_tax_category_rate_path(@category, rate), class: 'text-button' do
|
69
|
+
%span.grid.grid--auto.grid--middle.grid--flush
|
70
|
+
%span.grid__cell= t('workarea.admin.actions.edit')
|
71
|
+
%span.grid__cell= inline_svg('workarea/admin/icons/edit.svg', class: 'text-button__icon')
|
72
|
+
.grid__cell
|
73
|
+
= link_to tax_category_rate_path(@category, rate), class: 'text-button text-button--destroy', data: { method: 'delete', confirm: t('workarea.admin.actions.delete_confirmation') } do
|
74
|
+
%span.grid.grid--auto.grid--middle.grid--flush
|
75
|
+
%span.grid__cell= t('workarea.admin.actions.delete')
|
76
|
+
%span.grid__cell= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon')
|
77
|
+
|
46
78
|
|
47
79
|
- if @rates.total_pages > 1
|
48
80
|
= render 'workarea/admin/shared/pagination', collection: @rates
|
49
81
|
|
50
82
|
.workflow-bar
|
51
|
-
.grid
|
52
|
-
.grid__cell
|
83
|
+
.grid
|
84
|
+
.grid__cell.grid__cell--50
|
85
|
+
.grid.grid--auto.grid--middle
|
86
|
+
.grid__cell= link_to t('workarea.admin.tax_rates.index.import_button'), new_data_file_tax_import_path(tax_category_id: @category.id), id: 'bulk_import', class: 'workflow-bar__button'
|
87
|
+
.grid__cell.grid__cell--50
|
88
|
+
.grid.grid--auto.grid--right.grid--middle
|
89
|
+
.grid__cell
|
90
|
+
= link_to t('workarea.admin.tax_rates.index.new_button'), new_tax_category_rate_path, id: 'add_tax_category_rate', class: 'workflow-bar__button workflow-bar__button--create'
|
91
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
- @page_title = t('workarea.admin.tax_rates.new.title', category: @category.name)
|
2
|
+
|
3
|
+
.view
|
4
|
+
.view__header
|
5
|
+
.grid.grid--middle.grid--center
|
6
|
+
.grid__cell.grid__cell--50
|
7
|
+
.view__heading
|
8
|
+
= link_to_index_for(@rate)
|
9
|
+
%h1= @page_title
|
10
|
+
|
11
|
+
.view__container.view__container--narrow
|
12
|
+
= form_tag tax_category_rates_path(@category), method: :post, id: 'tax_category_form', data: { unsaved_changes: '' } do
|
13
|
+
.grid.grid--huge
|
14
|
+
.grid__cell.grid__cell--50
|
15
|
+
.property
|
16
|
+
= label_tag 'rate_country', t('workarea.admin.tax_rates.index.table.country'), class: 'property__name'
|
17
|
+
= text_field_tag 'rate[country]', @rate.country.try(&:alpha2), class: 'text-box'
|
18
|
+
|
19
|
+
.grid__cell.grid__cell--50
|
20
|
+
.property
|
21
|
+
= label_tag 'rate_country_percentage', t('workarea.admin.tax_rates.index.table.country_percentage'), class: 'property__name'
|
22
|
+
= number_field_tag 'rate[country_percentage]', @rate.country_percentage * 100, min: 0, max: 100, step: 0.01, class: 'text-box'
|
23
|
+
|
24
|
+
.grid__cell.grid__cell--50
|
25
|
+
.property
|
26
|
+
= label_tag 'rate_region', t('workarea.admin.tax_rates.index.table.region'), class: 'property__name'
|
27
|
+
= text_field_tag 'rate[region]', @rate.region, class: 'text-box'
|
28
|
+
|
29
|
+
.grid__cell.grid__cell--50
|
30
|
+
.property
|
31
|
+
= label_tag 'rate_region_percentage', t('workarea.admin.tax_rates.index.table.region_percentage'), class: 'property__name'
|
32
|
+
= number_field_tag 'rate[region_percentage]', @rate.region_percentage * 100, min: 0, max: 100, step: 0.01, class: 'text-box'
|
33
|
+
|
34
|
+
.grid__cell.grid__cell--50
|
35
|
+
.property
|
36
|
+
= label_tag 'rate_postal_code', t('workarea.admin.tax_rates.index.table.postal_code'), class: 'property__name'
|
37
|
+
= text_field_tag 'rate[postal_code]', @rate.postal_code, class: 'text-box'
|
38
|
+
|
39
|
+
.grid__cell.grid__cell--50
|
40
|
+
.property
|
41
|
+
= label_tag 'rate_postal_code_percentage', t('workarea.admin.tax_rates.index.table.postal_code_percentage'), class: 'property__name'
|
42
|
+
= number_field_tag 'rate[postal_code_percentage]', @rate.postal_code_percentage * 100, min: 0, max: 100, step: 0.01, class: 'text-box'
|
43
|
+
|
44
|
+
.grid__cell.grid__cell--33
|
45
|
+
.property
|
46
|
+
= label_tag 'rate_tier_min', t('workarea.admin.tax_rates.index.table.min_value'), class: 'property__name'
|
47
|
+
= text_field_tag 'rate[tier_min]', @rate.tier_min, class: 'text-box'
|
48
|
+
|
49
|
+
.grid__cell.grid__cell--33
|
50
|
+
.property
|
51
|
+
= label_tag 'rate_tier_max', t('workarea.admin.tax_rates.index.table.max_value'), class: 'property__name'
|
52
|
+
= text_field_tag 'rate[tier_max]', @rate.tier_max, class: 'text-box'
|
53
|
+
|
54
|
+
.grid__cell.grid__cell--33
|
55
|
+
.property
|
56
|
+
= label_tag 'rate_charge_on_shipping', t('workarea.admin.tax_rates.index.table.charge_on_shipping'), class: 'property__name'
|
57
|
+
= toggle_button_for 'rate[charge_on_shipping]', @rate.charge_on_shipping
|
58
|
+
|
59
|
+
.workflow-bar
|
60
|
+
.grid.grid--auto.grid--right.grid--middle
|
61
|
+
.grid__cell
|
62
|
+
= button_tag t('workarea.admin.tax_rates.new.create_button'), value: 'create_tax_rate', class: 'workflow-bar__button workflow-bar__button--create'
|
@@ -13,19 +13,20 @@
|
|
13
13
|
.view__container
|
14
14
|
= render_cards_for(@timeline.subject, :timeline)
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
.view__container.view__container--narrow
|
17
|
+
.section
|
18
|
+
- if @timeline.empty?
|
19
|
+
%p.heading--2.align-center= t('workarea.admin.timeline.no_activity')
|
20
|
+
- else
|
21
|
+
- unless @timeline.unscheduled_changesets.empty?
|
22
|
+
.activity-group
|
23
|
+
.grid
|
24
|
+
- @timeline.unscheduled_changesets.each_with_index do |changeset, index|
|
24
25
|
.grid__cell.grid__cell--20
|
25
|
-
- if index
|
26
|
-
.date-marker
|
26
|
+
- if index.zero?
|
27
|
+
.date-marker.date-marker--center
|
27
28
|
.date-marker__annotation= t('workarea.admin.timeline.unscheduled_changes')
|
28
|
-
.date-
|
29
|
+
.date-marker__unknown ?
|
29
30
|
.grid__cell.grid__cell--80
|
30
31
|
.activity
|
31
32
|
.activity__header
|
@@ -40,27 +41,28 @@
|
|
40
41
|
= hidden_field_tag :release_id, changeset.release.id
|
41
42
|
= hidden_field_tag :return_to, url_for(@timeline.subject)
|
42
43
|
= button_tag value: 'edit_changes', class: 'text-button' do
|
43
|
-
|
44
|
-
= inline_svg('workarea/admin/icons/edit.svg', class: 'text-button__icon')
|
44
|
+
= inline_svg('workarea/admin/icons/edit.svg', class: 'text-button__icon', title: t('workarea.admin.timeline.edit'))
|
45
45
|
.grid__cell
|
46
46
|
= form_tag release_changeset_path(changeset.release, changeset), method: :delete, class: 'action-group__item', data: { deletion_form: { message: t('workarea.admin.timeline.delete_confirmation') } } do
|
47
|
-
= button_tag value: 'delete_changeset', class: 'text-button' do
|
48
|
-
|
49
|
-
= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon')
|
47
|
+
= button_tag value: 'delete_changeset', class: 'text-button text-button--destroy' do
|
48
|
+
= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon', title: t('workarea.admin.actions.delete'))
|
50
49
|
.activity__message
|
51
50
|
.release-changeset.release-changeset--activity
|
52
51
|
- changeset.changed_fields.each do |field|
|
53
52
|
= render_changeset_field(changeset, field)
|
54
53
|
|
55
|
-
|
56
|
-
|
54
|
+
- unless @timeline.upcoming_changesets.empty?
|
55
|
+
.activity-group
|
56
|
+
.grid
|
57
|
+
- @timeline.upcoming_changesets.each_with_index do |changeset, index|
|
57
58
|
.grid__cell.grid__cell--20
|
58
|
-
|
59
|
-
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
59
|
+
- if index.zero? || changeset.release_date.present?
|
60
|
+
.date-marker
|
61
|
+
- if index.zero?
|
62
|
+
.date-marker__annotation= t('workarea.admin.timeline.upcoming_changes')
|
63
|
+
- if changeset.release_date.present?
|
64
|
+
.date-marker__month= local_time(changeset.release_date, format: '%b')
|
65
|
+
.date-marker__day= local_time(changeset.release_date, format: '%e')
|
64
66
|
.grid__cell.grid__cell--80
|
65
67
|
.activity
|
66
68
|
.activity__header
|
@@ -77,32 +79,23 @@
|
|
77
79
|
= hidden_field_tag :release_id, changeset.release.id
|
78
80
|
= hidden_field_tag :return_to, url_for(@timeline.subject)
|
79
81
|
= button_tag value: 'edit_changes', class: 'text-button' do
|
80
|
-
|
81
|
-
= inline_svg('workarea/admin/icons/edit.svg', class: 'text-button__icon')
|
82
|
+
= inline_svg('workarea/admin/icons/edit.svg', class: 'text-button__icon', title: t('workarea.admin.timeline.edit'))
|
82
83
|
.grid__cell
|
83
84
|
= form_tag release_changeset_path(changeset.release, changeset), method: :delete, class: 'action-group__item', data: { deletion_form: { message: t('workarea.admin.timeline.delete_confirmation') } } do
|
84
|
-
= button_tag value: 'delete_changeset', class: 'text-button' do
|
85
|
-
|
86
|
-
= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon')
|
85
|
+
= button_tag value: 'delete_changeset', class: 'text-button text-button--destroy' do
|
86
|
+
= inline_svg('workarea/admin/icons/delete.svg', class: 'text-button__icon', title: t('workarea.admin.actions.delete'))
|
87
87
|
.activity__message
|
88
88
|
.release-changeset.release-changeset--activity
|
89
89
|
- changeset.changed_fields.each do |field|
|
90
90
|
= render_changeset_field(changeset, field)
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
.date-marker__annotation= t('workarea.admin.timeline.today')
|
97
|
-
.date-marker__month= local_time(Date.today, format: '%b')
|
98
|
-
.date-marker__day= local_time(Date.today, format: '%e')
|
99
|
-
.grid__cell.grid__cell--80
|
100
|
-
|
101
|
-
- @timeline.activity_by_day.each_with_index do |(day, entries), index|
|
102
|
-
.activity-group.activity-group--bordered
|
92
|
+
- unless @timeline.activity_by_day.empty?
|
93
|
+
.activity-group
|
94
|
+
.grid
|
95
|
+
- @timeline.activity_by_day.each_with_index do |(day, entries), index|
|
103
96
|
.grid__cell.grid__cell--20
|
104
97
|
.date-marker
|
105
|
-
-
|
98
|
+
- if index == 0 && @timeline.today_has_activity
|
106
99
|
.date-marker__annotation= t('workarea.admin.timeline.today')
|
107
100
|
.date-marker__month= local_time(day, format: '%b')
|
108
101
|
.date-marker__day= local_time(day, format: '%e')
|
@@ -44,6 +44,17 @@
|
|
44
44
|
- if @content.present?
|
45
45
|
.header__action= link_to t('workarea.admin.toolbar.edit_content'), edit_content_path(@content), class: 'header__action-link'
|
46
46
|
|
47
|
+
.header__action
|
48
|
+
= link_to segment_override_path(return_to: params[:return_to]), title: t('workarea.admin.toolbar.select_segments'), id: 'select_segments', class: 'header__action-link' do
|
49
|
+
= inline_svg('workarea/admin/icons/user.svg', class: 'svg-icon svg-icon--medium svg-icon--blue') unless Rails.env.test? # Capybara cannot find this link by content, id, or title if this is present
|
50
|
+
- if override_segments.blank?
|
51
|
+
= t('workarea.admin.toolbar.select_segments')
|
52
|
+
- else
|
53
|
+
= override_segments.take(2).map(&:name).join(', ')
|
54
|
+
- if override_segments.size > 2
|
55
|
+
,
|
56
|
+
= t('workarea.admin.toolbar.more_segments', count: override_segments.size - 2)
|
57
|
+
|
47
58
|
.header__action
|
48
59
|
= form_tag release_session_path(return_to: params[:return_to]), method: :post, class: 'header__action-link' do
|
49
60
|
= inline_svg('workarea/admin/icons/calendar.svg', title: t('workarea.admin.toolbar.managing_changes_for'), class: 'release-select__icon')
|
@@ -67,7 +78,6 @@
|
|
67
78
|
= link_to current_impersonation.email, user_path(current_impersonation)
|
68
79
|
%br
|
69
80
|
= form_tag impersonations_path, method: 'delete', data: { disable_delete_confirmation: '' } do
|
70
|
-
= hidden_field_tag :return_to, return_to
|
71
81
|
= button_tag t('workarea.admin.toolbar.stop_impersonation'), class: 'text-button text-button--destroy'
|
72
82
|
|
73
83
|
- if allow_pricing_override?
|
@@ -14,74 +14,77 @@
|
|
14
14
|
= render_cards_for(@user, :attributes)
|
15
15
|
|
16
16
|
.view__container.view__container--narrow
|
17
|
-
|
18
|
-
|
17
|
+
.section
|
18
|
+
- @user.errors.full_messages.each do |message|
|
19
|
+
= render_message 'error', message
|
19
20
|
|
20
21
|
= form_tag user_path(@user), method: :patch, multipart: true, id: 'user_form', data: { unsaved_changes: '' } do
|
21
|
-
.
|
22
|
-
.
|
23
|
-
.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
=
|
40
|
-
=
|
22
|
+
.section
|
23
|
+
.grid.grid--huge
|
24
|
+
.grid__cell.grid__cell--50
|
25
|
+
.property
|
26
|
+
= label_tag 'user[first_name]', t('workarea.admin.fields.first_name'), class: 'property__name'
|
27
|
+
= text_field_tag 'user[first_name]', @user.first_name, class: 'text-box', autocomplete: 'off'
|
28
|
+
.grid__cell.grid__cell--50
|
29
|
+
.property
|
30
|
+
= label_tag 'user[last_name]', t('workarea.admin.fields.last_name'), class: 'property__name'
|
31
|
+
= text_field_tag 'user[last_name]', @user.last_name, class: 'text-box', autocomplete: 'off'
|
32
|
+
.property.property--required
|
33
|
+
= label_tag 'user[email]', t('workarea.admin.fields.email'), class: 'property__name'
|
34
|
+
= email_field_tag 'user[email]', @user.email, class: 'text-box', required: true, autocomplete: 'off'
|
35
|
+
.property
|
36
|
+
= label_tag 'user[password]', t('workarea.admin.fields.password'), class: 'property__name'
|
37
|
+
= password_field_tag 'user[password]', nil, class: 'text-box', autocomplete: 'off'
|
38
|
+
%span.property__note= link_to t('workarea.admin.users.edit.send_password_reset'), send_password_reset_user_path(@user), data: { method: :post }
|
39
|
+
.property
|
40
|
+
= label_tag 'user[avatar]', class: 'property__name' do
|
41
|
+
= t('workarea.admin.fields.avatar')
|
42
|
+
= link_to '#user-avatar-info', data: { tooltip: '' } do
|
43
|
+
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.users.edit.avatar_tooltip'))
|
41
44
|
|
42
|
-
|
43
|
-
|
45
|
+
= avatar_for @user
|
46
|
+
= file_field_tag 'user[avatar]'
|
44
47
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
+
- if @user.avatar.present?
|
49
|
+
= check_box_tag 'remove_avatar', 1, nil
|
50
|
+
= label_tag 'remove_avatar', t('workarea.admin.users.edit.avatar_delete')
|
48
51
|
|
49
|
-
|
50
|
-
|
52
|
+
#user-avatar-info.tooltip-content
|
53
|
+
%p= t('workarea.admin.users.edit.avatar_tooltip_content')
|
51
54
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
55
|
+
.property
|
56
|
+
= label_tag 'user[tag_list]', t('workarea.admin.fields.tags'), class: 'property__name'
|
57
|
+
= text_field_tag 'user[tag_list]', @user.tag_list, class: 'text-box'
|
58
|
+
%span.property__note= t('workarea.admin.form.csv_field_note')
|
56
59
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
60
|
+
.grid.grid--huge
|
61
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
62
|
+
.property
|
63
|
+
= label_tag 'payment[store_credit]', t('workarea.admin.fields.store_credit'), class: 'property__name'
|
64
|
+
= currency_symbol
|
65
|
+
= number_field_tag 'payment[store_credit]', @user.payment_profile.store_credit, class: 'text-box text-box--small', step: 0.01, min: 0
|
66
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
67
|
+
.property
|
68
|
+
%span.property__name
|
69
|
+
= t('workarea.admin.users.edit.email_signup')
|
70
|
+
= toggle_button_for 'email_signup', @user.email_signup?
|
68
71
|
|
69
|
-
|
72
|
+
= append_partials('admin.user_properties', user: @user)
|
70
73
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
77
|
-
.property
|
78
|
-
= label_tag 'user_created_at', t('workarea.admin.fields.created_at'), class: 'property__name'
|
79
|
-
= local_time(@user.created_at)
|
80
|
-
- if @user.created_by.present?
|
74
|
+
.grid.grid--huge
|
75
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
76
|
+
.property
|
77
|
+
= label_tag 'user_updated_at', t('workarea.admin.fields.updated_at'), class: 'property__name'
|
78
|
+
= local_time(@user.updated_at)
|
81
79
|
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
82
80
|
.property
|
83
|
-
= label_tag '
|
84
|
-
=
|
81
|
+
= label_tag 'user_created_at', t('workarea.admin.fields.created_at'), class: 'property__name'
|
82
|
+
= local_time(@user.created_at)
|
83
|
+
- if @user.created_by.present?
|
84
|
+
.grid__cell.grid__cell--50.grid__cell--25-at-medium
|
85
|
+
.property
|
86
|
+
= label_tag 'user_created_by', t('workarea.admin.fields.created_by'), class: 'property__name'
|
87
|
+
= link_to @user.created_by.name, user_path(@user.created_by)
|
85
88
|
|
86
89
|
.workflow-bar
|
87
90
|
.grid.grid--auto.grid--right.grid--middle
|
@@ -2,13 +2,11 @@
|
|
2
2
|
|
3
3
|
.view
|
4
4
|
.view__header
|
5
|
-
.grid.grid--
|
5
|
+
.grid.grid--middle.grid--center
|
6
6
|
.grid__cell.grid__cell--50
|
7
7
|
.view__heading
|
8
8
|
= link_to "↑ #{t('workarea.admin.users.index.dashboard_link')}", people_dashboards_path, class: 'view__dashboard-button'
|
9
9
|
%h1= t('workarea.admin.users.index.title')
|
10
|
-
.grid__cell.grid__cell--25
|
11
|
-
= append_partials('admin.user_index_aux_navigation')
|
12
10
|
|
13
11
|
.view__container
|
14
12
|
.browsing-controls.browsing-controls--with-divider.browsing-controls--center{ class: ('browsing-controls--filters-displayed' unless @search.toggle_facets?) }
|
@@ -2,3 +2,11 @@ json.results @results do |user|
|
|
2
2
|
json.label user.name
|
3
3
|
json.value user.id
|
4
4
|
end
|
5
|
+
|
6
|
+
json.mentions @results do |user|
|
7
|
+
json.id user.id
|
8
|
+
json.name user.name
|
9
|
+
json.email user.email
|
10
|
+
json.lookup "#{user.name} (#{user.email})"
|
11
|
+
json.fillAttr user.email.split('@').first
|
12
|
+
end
|
@@ -29,7 +29,11 @@
|
|
29
29
|
%tr
|
30
30
|
%th
|
31
31
|
%span.data-pairs__name= t('workarea.admin.users.insights.average_order_value')
|
32
|
-
%td
|
32
|
+
%td
|
33
|
+
- if @user.insights.average_order_value.blank?
|
34
|
+
\-
|
35
|
+
- else
|
36
|
+
= number_to_currency @user.insights.average_order_value
|
33
37
|
%tr
|
34
38
|
%th
|
35
39
|
%span.data-pairs__name= t('workarea.admin.users.insights.discounts')
|
@@ -69,38 +73,38 @@
|
|
69
73
|
%th
|
70
74
|
%span.data-pairs__name= t('workarea.admin.users.insights.orders')
|
71
75
|
%td
|
72
|
-
|
73
|
-
|
76
|
+
- if @user.insights.orders_percentile.blank?
|
77
|
+
\-
|
78
|
+
- else
|
79
|
+
= @user.insights.orders_percentile.ordinalize
|
80
|
+
= t('workarea.admin.users.insights.percentile')
|
74
81
|
%tr
|
75
82
|
%th
|
76
83
|
%span.data-pairs__name= t('workarea.admin.users.insights.revenue')
|
77
84
|
%td
|
78
|
-
|
79
|
-
|
85
|
+
- if @user.insights.revenue_percentile.blank?
|
86
|
+
\-
|
87
|
+
- else
|
88
|
+
= @user.insights.revenue_percentile.ordinalize
|
89
|
+
= t('workarea.admin.users.insights.percentile')
|
80
90
|
%tr
|
81
91
|
%th
|
82
92
|
%span.data-pairs__name= t('workarea.admin.users.insights.frequency')
|
83
93
|
%td
|
84
|
-
|
85
|
-
|
94
|
+
- if @user.insights.frequency_percentile.blank?
|
95
|
+
\-
|
96
|
+
- else
|
97
|
+
= @user.insights.frequency_percentile.ordinalize
|
98
|
+
= t('workarea.admin.users.insights.percentile')
|
86
99
|
%tr
|
87
100
|
%th
|
88
101
|
%span.data-pairs__name= t('workarea.admin.users.insights.aov')
|
89
102
|
%td
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
= t('workarea.admin.users.insights.customer_insights')
|
96
|
-
#customer-insights-info.tooltip-content.align-center
|
97
|
-
= t( |
|
98
|
-
'workarea.admin.users.insights.customer_insights_info_html', |
|
99
|
-
best_customers_path: insights_report_path(type: Workarea::Insights::BestCustomers), |
|
100
|
-
customers_at_risk_path: insights_report_path(type: Workarea::Insights::CustomersAtRisk), |
|
101
|
-
repeat_purchase_rate_path: insights_report_path(type: Workarea::Insights::RepeatPurchaseRate), |
|
102
|
-
orders_path: orders_user_path(@user) |
|
103
|
-
) |
|
103
|
+
- if @user.insights.average_order_value_percentile.blank?
|
104
|
+
\-
|
105
|
+
- else
|
106
|
+
= @user.insights.average_order_value_percentile.ordinalize
|
107
|
+
= t('workarea.admin.users.insights.percentile')
|
104
108
|
|
105
109
|
.section
|
106
110
|
%h2.align-center= t('workarea.admin.users.insights.recently_viewed.title')
|
@@ -129,8 +133,12 @@
|
|
129
133
|
%p.align-center= t('workarea.admin.users.insights.recently_viewed.none')
|
130
134
|
|
131
135
|
%ul
|
132
|
-
- @user.recent_searches.each do |
|
133
|
-
%li
|
136
|
+
- @user.recent_searches.each do |search_id|
|
137
|
+
%li
|
138
|
+
= form_tag search_customizations_path, method: 'post' do
|
139
|
+
= hidden_field_tag 'q', search_id, id: nil
|
140
|
+
= button_tag search_id, class: 'button button--small'
|
141
|
+
|
134
142
|
|
135
143
|
- if @insights.any?
|
136
144
|
.view__container.view__container--narrow
|
@@ -24,7 +24,7 @@
|
|
24
24
|
= form_tag user_path(@user), method: :patch, id: 'user_form', data: { unsaved_changes: '' } do
|
25
25
|
.grid.grid--center
|
26
26
|
.grid__cell.grid__cell--33
|
27
|
-
%h3.align-center= t('workarea.admin.users.permissions.
|
27
|
+
%h3.align-center= t('workarea.admin.users.permissions.admin_capabilities')
|
28
28
|
.property
|
29
29
|
= check_box :user, :admin, disabled: @user.super_admin?
|
30
30
|
= label_tag 'user[admin]', t('workarea.admin.users.permissions.access_to_administration'), class: 'property__name'
|
@@ -42,6 +42,15 @@
|
|
42
42
|
#can-publish-warning.tooltip-content
|
43
43
|
%p= t('workarea.admin.users.permissions.can_publish_now_message')
|
44
44
|
|
45
|
+
.property
|
46
|
+
= check_box :user, :orders_manager, disabled: @user.super_admin?
|
47
|
+
= label_tag 'user[orders_manager]', t('workarea.admin.users.permissions.can_manage_orders'), class: 'property__name'
|
48
|
+
= link_to '#can-manage-orders', data: { tooltip: '' } do
|
49
|
+
= inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.users.permissions.can_publish_now_info'))
|
50
|
+
|
51
|
+
#can-manage-orders.tooltip-content
|
52
|
+
%p= t('workarea.admin.users.permissions.can_manage_orders_message')
|
53
|
+
|
45
54
|
.property
|
46
55
|
= check_box :user, :can_restore, disabled: @user.super_admin?
|
47
56
|
= label_tag 'user[can_restore]', t('workarea.admin.users.permissions.can_restore_deleted_items'), class: 'property__name'
|
@@ -11,6 +11,13 @@
|
|
11
11
|
= render_aux_navigation_for(@user)
|
12
12
|
|
13
13
|
.view__container
|
14
|
+
- if @user.login_locked?
|
15
|
+
.grid.grid--center
|
16
|
+
.grid__cell.grid__cell--75
|
17
|
+
= render_message 'warn' do
|
18
|
+
%span= t('workarea.admin.users.show.locked')
|
19
|
+
= link_to t('workarea.admin.users.show.unlock'), unlock_user_path(@user), data: { method: :patch }
|
20
|
+
|
14
21
|
= render_cards_for(@user)
|
15
22
|
|
16
23
|
.workflow-bar
|