workarea-admin 3.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +52 -0
- data/README.md +19 -0
- data/Rakefile +23 -0
- data/app/assets/fonts/workarea/admin/spark_dotline_medium.woff +0 -0
- data/app/assets/fonts/workarea/admin/spark_dotline_medium.woff2 +0 -0
- data/app/assets/images/workarea/admin/add.svg +1 -0
- data/app/assets/images/workarea/admin/complete.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/button.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/category_summary.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/custom_block.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/divider.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/hero.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/html.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/image.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/image_and_text.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/image_group.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/product_insights.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/product_list.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/quote.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/recommendations.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/social_networks.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/taxonomy.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/text.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/three_column_taxonomy.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/two_column_taxonomy.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/video.svg +1 -0
- data/app/assets/images/workarea/admin/content_block_types/video_and_text.svg +1 -0
- data/app/assets/images/workarea/admin/default_card.svg +1 -0
- data/app/assets/images/workarea/admin/favicon.ico +0 -0
- data/app/assets/images/workarea/admin/i18n.svg +1 -0
- data/app/assets/images/workarea/admin/icons/add.svg +1 -0
- data/app/assets/images/workarea/admin/icons/add_circle.svg +1 -0
- data/app/assets/images/workarea/admin/icons/alert.svg +1 -0
- data/app/assets/images/workarea/admin/icons/apple_calendar.svg +1 -0
- data/app/assets/images/workarea/admin/icons/arrow_down.svg +1 -0
- data/app/assets/images/workarea/admin/icons/arrow_up.svg +1 -0
- data/app/assets/images/workarea/admin/icons/asset.svg +1 -0
- data/app/assets/images/workarea/admin/icons/attributes.svg +1 -0
- data/app/assets/images/workarea/admin/icons/calendar.svg +1 -0
- data/app/assets/images/workarea/admin/icons/categories.svg +1 -0
- data/app/assets/images/workarea/admin/icons/category.svg +1 -0
- data/app/assets/images/workarea/admin/icons/clock.svg +1 -0
- data/app/assets/images/workarea/admin/icons/close.svg +1 -0
- data/app/assets/images/workarea/admin/icons/comment.svg +1 -0
- data/app/assets/images/workarea/admin/icons/comments.svg +1 -0
- data/app/assets/images/workarea/admin/icons/comments_viewed.svg +1 -0
- data/app/assets/images/workarea/admin/icons/content.svg +1 -0
- data/app/assets/images/workarea/admin/icons/create_preset.svg +1 -0
- data/app/assets/images/workarea/admin/icons/delete.svg +1 -0
- data/app/assets/images/workarea/admin/icons/edit.svg +1 -0
- data/app/assets/images/workarea/admin/icons/expand_more.svg +1 -0
- data/app/assets/images/workarea/admin/icons/favicon.svg +1 -0
- data/app/assets/images/workarea/admin/icons/featured_products.svg +1 -0
- data/app/assets/images/workarea/admin/icons/fire.svg +1 -0
- data/app/assets/images/workarea/admin/icons/fulfillment.svg +1 -0
- data/app/assets/images/workarea/admin/icons/google_calendar.svg +1 -0
- data/app/assets/images/workarea/admin/icons/grip.svg +1 -0
- data/app/assets/images/workarea/admin/icons/help.svg +1 -0
- data/app/assets/images/workarea/admin/icons/home.svg +1 -0
- data/app/assets/images/workarea/admin/icons/images.svg +1 -0
- data/app/assets/images/workarea/admin/icons/impersonation.svg +1 -0
- data/app/assets/images/workarea/admin/icons/imports.svg +1 -0
- data/app/assets/images/workarea/admin/icons/insights.svg +1 -0
- data/app/assets/images/workarea/admin/icons/inventory_sku.svg +1 -0
- data/app/assets/images/workarea/admin/icons/items.svg +1 -0
- data/app/assets/images/workarea/admin/icons/link.svg +1 -0
- data/app/assets/images/workarea/admin/icons/medium.svg +1 -0
- data/app/assets/images/workarea/admin/icons/menu.svg +1 -0
- data/app/assets/images/workarea/admin/icons/navigate_before.svg +1 -0
- data/app/assets/images/workarea/admin/icons/navigate_next.svg +1 -0
- data/app/assets/images/workarea/admin/icons/navigation_menu.svg +1 -0
- data/app/assets/images/workarea/admin/icons/order.svg +1 -0
- data/app/assets/images/workarea/admin/icons/order_statistics.svg +1 -0
- data/app/assets/images/workarea/admin/icons/orders.svg +1 -0
- data/app/assets/images/workarea/admin/icons/original.svg +1 -0
- data/app/assets/images/workarea/admin/icons/outlook.svg +1 -0
- data/app/assets/images/workarea/admin/icons/page.svg +1 -0
- data/app/assets/images/workarea/admin/icons/pages.svg +1 -0
- data/app/assets/images/workarea/admin/icons/payment.svg +1 -0
- data/app/assets/images/workarea/admin/icons/payment_transaction.svg +1 -0
- data/app/assets/images/workarea/admin/icons/permissions.svg +1 -0
- data/app/assets/images/workarea/admin/icons/plan_changes.svg +1 -0
- data/app/assets/images/workarea/admin/icons/planned_changes.svg +1 -0
- data/app/assets/images/workarea/admin/icons/prices.svg +1 -0
- data/app/assets/images/workarea/admin/icons/pricing.svg +1 -0
- data/app/assets/images/workarea/admin/icons/pricing_discount.svg +1 -0
- data/app/assets/images/workarea/admin/icons/pricing_sku.svg +1 -0
- data/app/assets/images/workarea/admin/icons/products.svg +1 -0
- data/app/assets/images/workarea/admin/icons/rates.svg +1 -0
- data/app/assets/images/workarea/admin/icons/recommendations.svg +1 -0
- data/app/assets/images/workarea/admin/icons/refresh.svg +1 -0
- data/app/assets/images/workarea/admin/icons/release.svg +1 -0
- data/app/assets/images/workarea/admin/icons/release_timeline.svg +1 -0
- data/app/assets/images/workarea/admin/icons/rules.svg +1 -0
- data/app/assets/images/workarea/admin/icons/saved_addresses.svg +1 -0
- data/app/assets/images/workarea/admin/icons/search.svg +1 -0
- data/app/assets/images/workarea/admin/icons/settings.svg +1 -0
- data/app/assets/images/workarea/admin/icons/shipping.svg +1 -0
- data/app/assets/images/workarea/admin/icons/small.svg +1 -0
- data/app/assets/images/workarea/admin/icons/star.svg +1 -0
- data/app/assets/images/workarea/admin/icons/timeline.svg +1 -0
- data/app/assets/images/workarea/admin/icons/tmp.svg +1 -0
- data/app/assets/images/workarea/admin/icons/user.svg +1 -0
- data/app/assets/images/workarea/admin/icons/variants.svg +1 -0
- data/app/assets/images/workarea/admin/icons/view.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wide.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/bold.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/bulleted_list.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/html.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/italic.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/link.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/numbered_list.svg +1 -0
- data/app/assets/images/workarea/admin/icons/wysiwyg/underline.svg +1 -0
- data/app/assets/images/workarea/admin/invalid.svg +1 -0
- data/app/assets/images/workarea/admin/logo.svg +1 -0
- data/app/assets/images/workarea/admin/message_error.svg +1 -0
- data/app/assets/images/workarea/admin/message_info.svg +1 -0
- data/app/assets/images/workarea/admin/message_success.svg +1 -0
- data/app/assets/images/workarea/admin/message_warning.svg +1 -0
- data/app/assets/images/workarea/admin/payment_icons/american_express.svg +1 -0
- data/app/assets/images/workarea/admin/payment_icons/diner_s_club.svg +1 -0
- data/app/assets/images/workarea/admin/payment_icons/discover.svg +1 -0
- data/app/assets/images/workarea/admin/payment_icons/mastercard.svg +1 -0
- data/app/assets/images/workarea/admin/payment_icons/visa.svg +1 -0
- data/app/assets/images/workarea/admin/selected.svg +1 -0
- data/app/assets/images/workarea/admin/valid.svg +1 -0
- data/app/assets/javascripts/jquery_ui/admin/categorized_autocomplete.js +53 -0
- data/app/assets/javascripts/jquery_ujs/replace.js +15 -0
- data/app/assets/javascripts/workarea/admin/application.js.erb +235 -0
- data/app/assets/javascripts/workarea/admin/config.js.erb +700 -0
- data/app/assets/javascripts/workarea/admin/google_analytics.js +6 -0
- data/app/assets/javascripts/workarea/admin/modules/add_content_block_buttons.js +71 -0
- data/app/assets/javascripts/workarea/admin/modules/add_to_calendar_buttons.js +45 -0
- data/app/assets/javascripts/workarea/admin/modules/asset_picker_fields.js +51 -0
- data/app/assets/javascripts/workarea/admin/modules/asset_pickers.js +65 -0
- data/app/assets/javascripts/workarea/admin/modules/autocomplete_fields.js +55 -0
- data/app/assets/javascripts/workarea/admin/modules/bookmarks.js +40 -0
- data/app/assets/javascripts/workarea/admin/modules/bulk_action_deletion.js +43 -0
- data/app/assets/javascripts/workarea/admin/modules/bulk_action_items.js +319 -0
- data/app/assets/javascripts/workarea/admin/modules/calendars.js +130 -0
- data/app/assets/javascripts/workarea/admin/modules/categorized_autocomplete_fields.js +58 -0
- data/app/assets/javascripts/workarea/admin/modules/cloneable_rows.js +58 -0
- data/app/assets/javascripts/workarea/admin/modules/content_block_list.js +70 -0
- data/app/assets/javascripts/workarea/admin/modules/content_blocks.js +248 -0
- data/app/assets/javascripts/workarea/admin/modules/content_editor.js +44 -0
- data/app/assets/javascripts/workarea/admin/modules/content_editor_form_cancel.js +29 -0
- data/app/assets/javascripts/workarea/admin/modules/content_editor_forms.js +58 -0
- data/app/assets/javascripts/workarea/admin/modules/content_preset_form.js +29 -0
- data/app/assets/javascripts/workarea/admin/modules/content_preview.js +86 -0
- data/app/assets/javascripts/workarea/admin/modules/dashboard_charts.js +182 -0
- data/app/assets/javascripts/workarea/admin/modules/dashboard_toggles.js +59 -0
- data/app/assets/javascripts/workarea/admin/modules/datepicker_fields.js +113 -0
- data/app/assets/javascripts/workarea/admin/modules/datetimepicker_fields.js +160 -0
- data/app/assets/javascripts/workarea/admin/modules/direct_uploads.js +329 -0
- data/app/assets/javascripts/workarea/admin/modules/disable_publish_now.js +80 -0
- data/app/assets/javascripts/workarea/admin/modules/discount_options_menus.js +115 -0
- data/app/assets/javascripts/workarea/admin/modules/dom_remove.js +30 -0
- data/app/assets/javascripts/workarea/admin/modules/expandables.js +70 -0
- data/app/assets/javascripts/workarea/admin/modules/featured_products_sort.js +28 -0
- data/app/assets/javascripts/workarea/admin/modules/filter_dropdowns.js +88 -0
- data/app/assets/javascripts/workarea/admin/modules/help_helper.js +127 -0
- data/app/assets/javascripts/workarea/admin/modules/help_lookup_buttons.js +66 -0
- data/app/assets/javascripts/workarea/admin/modules/live_search_text.js +49 -0
- data/app/assets/javascripts/workarea/admin/modules/menu_editor_links.js +69 -0
- data/app/assets/javascripts/workarea/admin/modules/menu_editor_menu_list_sortables.js +107 -0
- data/app/assets/javascripts/workarea/admin/modules/menu_editor_sort_by_menus.js +48 -0
- data/app/assets/javascripts/workarea/admin/modules/messages.js +187 -0
- data/app/assets/javascripts/workarea/admin/modules/new_navigation_taxons.js +58 -0
- data/app/assets/javascripts/workarea/admin/modules/pricing_overrides.js +36 -0
- data/app/assets/javascripts/workarea/admin/modules/primary_nav.js +37 -0
- data/app/assets/javascripts/workarea/admin/modules/product_copy_ids.js +47 -0
- data/app/assets/javascripts/workarea/admin/modules/product_images_sortables.js +59 -0
- data/app/assets/javascripts/workarea/admin/modules/product_rules_preview.js +51 -0
- data/app/assets/javascripts/workarea/admin/modules/property_toggles.js +88 -0
- data/app/assets/javascripts/workarea/admin/modules/publish_create_release.js +40 -0
- data/app/assets/javascripts/workarea/admin/modules/publish_with_release_menus.js +132 -0
- data/app/assets/javascripts/workarea/admin/modules/range_fields.js +35 -0
- data/app/assets/javascripts/workarea/admin/modules/recommendations_sortables.js +20 -0
- data/app/assets/javascripts/workarea/admin/modules/releasable_model_search_forms.js +42 -0
- data/app/assets/javascripts/workarea/admin/modules/release_calendar_placeholders.js +83 -0
- data/app/assets/javascripts/workarea/admin/modules/release_reminder.js +93 -0
- data/app/assets/javascripts/workarea/admin/modules/relevance_sort.js +30 -0
- data/app/assets/javascripts/workarea/admin/modules/remote_selects.js +116 -0
- data/app/assets/javascripts/workarea/admin/modules/sort_navigation_menus.js +44 -0
- data/app/assets/javascripts/workarea/admin/modules/sort_variants.js +67 -0
- data/app/assets/javascripts/workarea/admin/modules/tabs.js +66 -0
- data/app/assets/javascripts/workarea/admin/modules/takeover.js +154 -0
- data/app/assets/javascripts/workarea/admin/modules/taxon_insert.js +96 -0
- data/app/assets/javascripts/workarea/admin/modules/taxon_select.js +50 -0
- data/app/assets/javascripts/workarea/admin/modules/toggle_buttons.js +50 -0
- data/app/assets/javascripts/workarea/admin/modules/toggle_filters.js +43 -0
- data/app/assets/javascripts/workarea/admin/modules/tooltips.js +128 -0
- data/app/assets/javascripts/workarea/admin/modules/unsaved_changes.js +56 -0
- data/app/assets/javascripts/workarea/admin/modules/wysiwygs.js +87 -0
- data/app/assets/javascripts/workarea/admin/routes.js.erb +27 -0
- data/app/assets/javascripts/workarea/admin/templates/bookmark_form.jst.ejs +5 -0
- data/app/assets/javascripts/workarea/admin/templates/bulk_action_items_count.jst.ejs +4 -0
- data/app/assets/javascripts/workarea/admin/templates/chart_legend.jst.ejs +9 -0
- data/app/assets/javascripts/workarea/admin/templates/checkbox_with_label.jst.ejs +2 -0
- data/app/assets/javascripts/workarea/admin/templates/content_block_iframe.jst.ejs +2 -0
- data/app/assets/javascripts/workarea/admin/templates/datetime_picker.jst.ejs +37 -0
- data/app/assets/javascripts/workarea/admin/templates/direct_upload_processing.jst.ejs +25 -0
- data/app/assets/javascripts/workarea/admin/templates/direct_upload_table_row.jst.ejs +10 -0
- data/app/assets/javascripts/workarea/admin/templates/expandable_button.jst.ejs +4 -0
- data/app/assets/javascripts/workarea/admin/templates/help_helper.jst.ejs +97 -0
- data/app/assets/javascripts/workarea/admin/templates/help_helper_text.jst.ejs +6 -0
- data/app/assets/javascripts/workarea/admin/templates/inactive_blocks_toggle.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/inline_datepicker.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/loading.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/message.jst.ejs +10 -0
- data/app/assets/javascripts/workarea/admin/templates/message_dismiss_action.jst.ejs +5 -0
- data/app/assets/javascripts/workarea/admin/templates/new_release_option.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/release_select_form.jst.ejs +5 -0
- data/app/assets/javascripts/workarea/admin/templates/remote_select.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/remote_select_insight.jst.ejs.ruby +25 -0
- data/app/assets/javascripts/workarea/admin/templates/remote_select_sparkline.jst.ejs +8 -0
- data/app/assets/javascripts/workarea/admin/templates/tabs_menu.jst.ejs +7 -0
- data/app/assets/javascripts/workarea/admin/templates/takeover.jst.ejs +3 -0
- data/app/assets/javascripts/workarea/admin/templates/ui_menu_heading.jst.ejs +1 -0
- data/app/assets/javascripts/workarea/admin/templates/ui_menu_item.jst.ejs +8 -0
- data/app/assets/javascripts/workarea/admin/templates/wysiwyg_toolbar.jst.ejs.ruby +59 -0
- data/app/assets/stylesheets/dropzonejs/admin/_dropzone.scss +126 -0
- data/app/assets/stylesheets/jquery_select2/admin/theme/_workarea.scss +413 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_accordion.scss +11 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_accordion_content.scss +12 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_accordion_header.scss +37 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_autocomplete.scss +17 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_datepicker.scss +158 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_helper_hidden_accessible.scss +7 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_menu.scss +44 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_sortable.scss +9 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_state_focus.scss +14 -0
- data/app/assets/stylesheets/jquery_ui/admin/_ui_tabs.scss +71 -0
- data/app/assets/stylesheets/tooltipster/admin/_tooltipster_workarea_admin.scss +88 -0
- data/app/assets/stylesheets/turbolinks/admin/_progress_bar.scss +11 -0
- data/app/assets/stylesheets/workarea/admin/application.scss.erb +150 -0
- data/app/assets/stylesheets/workarea/admin/base/_forms.scss +82 -0
- data/app/assets/stylesheets/workarea/admin/base/_images.scss +29 -0
- data/app/assets/stylesheets/workarea/admin/base/_links.scss +5 -0
- data/app/assets/stylesheets/workarea/admin/base/_lists.scss +8 -0
- data/app/assets/stylesheets/workarea/admin/base/_page.scss +32 -0
- data/app/assets/stylesheets/workarea/admin/base/_tables.scss +54 -0
- data/app/assets/stylesheets/workarea/admin/components/_activity.scss +63 -0
- data/app/assets/stylesheets/workarea/admin/components/_activity_group.scss +27 -0
- data/app/assets/stylesheets/workarea/admin/components/_add_to_calendar.scss +17 -0
- data/app/assets/stylesheets/workarea/admin/components/_admin_toolbar.scss +5 -0
- data/app/assets/stylesheets/workarea/admin/components/_asset_picker_field.scss +11 -0
- data/app/assets/stylesheets/workarea/admin/components/_avatar.scss +38 -0
- data/app/assets/stylesheets/workarea/admin/components/_box.scss +52 -0
- data/app/assets/stylesheets/workarea/admin/components/_browsing_controls.scss +234 -0
- data/app/assets/stylesheets/workarea/admin/components/_bulk_actions.scss +42 -0
- data/app/assets/stylesheets/workarea/admin/components/_button.scss +75 -0
- data/app/assets/stylesheets/workarea/admin/components/_calendar.scss +325 -0
- data/app/assets/stylesheets/workarea/admin/components/_card.scss +193 -0
- data/app/assets/stylesheets/workarea/admin/components/_chart.scss +154 -0
- data/app/assets/stylesheets/workarea/admin/components/_chart_legend.scss +22 -0
- data/app/assets/stylesheets/workarea/admin/components/_chartkick.scss +11 -0
- data/app/assets/stylesheets/workarea/admin/components/_checkbox.scss +74 -0
- data/app/assets/stylesheets/workarea/admin/components/_color_picker.scss +21 -0
- data/app/assets/stylesheets/workarea/admin/components/_comments.scss +76 -0
- data/app/assets/stylesheets/workarea/admin/components/_content_block.scss +136 -0
- data/app/assets/stylesheets/workarea/admin/components/_content_block_list.scss +58 -0
- data/app/assets/stylesheets/workarea/admin/components/_content_editor.scss +161 -0
- data/app/assets/stylesheets/workarea/admin/components/_content_preview.scss +117 -0
- data/app/assets/stylesheets/workarea/admin/components/_dashboard.scss +80 -0
- data/app/assets/stylesheets/workarea/admin/components/_dashboard_graphs.scss +23 -0
- data/app/assets/stylesheets/workarea/admin/components/_data_file_sample.scss +18 -0
- data/app/assets/stylesheets/workarea/admin/components/_data_pairs.scss +46 -0
- data/app/assets/stylesheets/workarea/admin/components/_date_marker.scss +42 -0
- data/app/assets/stylesheets/workarea/admin/components/_direct_upload.scss +105 -0
- data/app/assets/stylesheets/workarea/admin/components/_discount.scss +41 -0
- data/app/assets/stylesheets/workarea/admin/components/_expandable.scss +48 -0
- data/app/assets/stylesheets/workarea/admin/components/_header.scss +184 -0
- data/app/assets/stylesheets/workarea/admin/components/_help_article.scss +17 -0
- data/app/assets/stylesheets/workarea/admin/components/_help_article_summary.scss +57 -0
- data/app/assets/stylesheets/workarea/admin/components/_help_helper.scss +559 -0
- data/app/assets/stylesheets/workarea/admin/components/_index_table.scss +79 -0
- data/app/assets/stylesheets/workarea/admin/components/_insight.scss +93 -0
- data/app/assets/stylesheets/workarea/admin/components/_live_search.scss +120 -0
- data/app/assets/stylesheets/workarea/admin/components/_loading.scss +63 -0
- data/app/assets/stylesheets/workarea/admin/components/_menu.scss +121 -0
- data/app/assets/stylesheets/workarea/admin/components/_menu_editor.scss +400 -0
- data/app/assets/stylesheets/workarea/admin/components/_message.scss +108 -0
- data/app/assets/stylesheets/workarea/admin/components/_navigation_builder.scss +97 -0
- data/app/assets/stylesheets/workarea/admin/components/_new_block_button.scss +64 -0
- data/app/assets/stylesheets/workarea/admin/components/_new_navigation_link.scss +23 -0
- data/app/assets/stylesheets/workarea/admin/components/_page_container.scss +5 -0
- data/app/assets/stylesheets/workarea/admin/components/_page_content.scss +19 -0
- data/app/assets/stylesheets/workarea/admin/components/_page_messages.scss +11 -0
- data/app/assets/stylesheets/workarea/admin/components/_pagination.scss +27 -0
- data/app/assets/stylesheets/workarea/admin/components/_payment_icon.scss +20 -0
- data/app/assets/stylesheets/workarea/admin/components/_pricing_overrides.scss +13 -0
- data/app/assets/stylesheets/workarea/admin/components/_primary_nav.scss +85 -0
- data/app/assets/stylesheets/workarea/admin/components/_product_images.scss +83 -0
- data/app/assets/stylesheets/workarea/admin/components/_product_rules.scss +33 -0
- data/app/assets/stylesheets/workarea/admin/components/_product_rules_preview.scss +29 -0
- data/app/assets/stylesheets/workarea/admin/components/_product_summary.scss +78 -0
- data/app/assets/stylesheets/workarea/admin/components/_property.scss +116 -0
- data/app/assets/stylesheets/workarea/admin/components/_property_toggle.scss +35 -0
- data/app/assets/stylesheets/workarea/admin/components/_range_input.scss +32 -0
- data/app/assets/stylesheets/workarea/admin/components/_release_changeset.scss +87 -0
- data/app/assets/stylesheets/workarea/admin/components/_release_creatable.scss +53 -0
- data/app/assets/stylesheets/workarea/admin/components/_release_select.scss +70 -0
- data/app/assets/stylesheets/workarea/admin/components/_search_form.scss +78 -0
- data/app/assets/stylesheets/workarea/admin/components/_secondary_nav.scss +16 -0
- data/app/assets/stylesheets/workarea/admin/components/_state.scss +35 -0
- data/app/assets/stylesheets/workarea/admin/components/_style_guide.scss +134 -0
- data/app/assets/stylesheets/workarea/admin/components/_summary.scss +199 -0
- data/app/assets/stylesheets/workarea/admin/components/_svg_icon.scss +62 -0
- data/app/assets/stylesheets/workarea/admin/components/_tabs.scss +22 -0
- data/app/assets/stylesheets/workarea/admin/components/_takeover.scss +95 -0
- data/app/assets/stylesheets/workarea/admin/components/_text_box.scss +97 -0
- data/app/assets/stylesheets/workarea/admin/components/_text_button.scss +73 -0
- data/app/assets/stylesheets/workarea/admin/components/_toggle_button.scss +159 -0
- data/app/assets/stylesheets/workarea/admin/components/_top_help_articles.scss +82 -0
- data/app/assets/stylesheets/workarea/admin/components/_view.scss +64 -0
- data/app/assets/stylesheets/workarea/admin/components/_workflow_bar.scss +125 -0
- data/app/assets/stylesheets/workarea/admin/components/_wysiwyg.scss +110 -0
- data/app/assets/stylesheets/workarea/admin/email.scss +4 -0
- data/app/assets/stylesheets/workarea/admin/email/_base.scss +48 -0
- data/app/assets/stylesheets/workarea/admin/email/_components.scss +114 -0
- data/app/assets/stylesheets/workarea/admin/email/_helpers.scss +69 -0
- data/app/assets/stylesheets/workarea/admin/email/_settings.scss +22 -0
- data/app/assets/stylesheets/workarea/admin/generic/_box_sizing.scss +20 -0
- data/app/assets/stylesheets/workarea/admin/generic/_fonts.scss +10 -0
- data/app/assets/stylesheets/workarea/admin/generic/_reset.scss +47 -0
- data/app/assets/stylesheets/workarea/admin/objects/_button_reset.scss +17 -0
- data/app/assets/stylesheets/workarea/admin/objects/_inline_list.scss +26 -0
- data/app/assets/stylesheets/workarea/admin/objects/_list_reset.scss +10 -0
- data/app/assets/stylesheets/workarea/admin/objects/_section.scss +8 -0
- data/app/assets/stylesheets/workarea/admin/objects/_text_field_reset.scss +10 -0
- data/app/assets/stylesheets/workarea/admin/objects/_tooltip_content.scss +25 -0
- data/app/assets/stylesheets/workarea/admin/settings/_breakpoints.scss.erb +8 -0
- data/app/assets/stylesheets/workarea/admin/settings/_colors.scss +32 -0
- data/app/assets/stylesheets/workarea/admin/settings/_global.scss +35 -0
- data/app/assets/stylesheets/workarea/admin/settings/_grid.scss +37 -0
- data/app/assets/stylesheets/workarea/admin/settings/_typography.scss +21 -0
- data/app/assets/stylesheets/workarea/admin/settings/_z_indexes.scss +37 -0
- data/app/assets/stylesheets/workarea/admin/tools/_center.scss +34 -0
- data/app/assets/stylesheets/workarea/admin/tools/_focus_ring.scss +23 -0
- data/app/assets/stylesheets/workarea/admin/tools/_global_box_shadow.scss +32 -0
- data/app/assets/stylesheets/workarea/admin/tools/_respond_to.scss +31 -0
- data/app/assets/stylesheets/workarea/admin/tools/_svg.scss +29 -0
- data/app/assets/stylesheets/workarea/admin/tools/_text_box_image.scss +24 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_break_word.scss +9 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_clearfix.scss +13 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_hidden.scss +71 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_image_replacement.scss +11 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_truncate.scss +10 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_visible.scss +70 -0
- data/app/assets/stylesheets/workarea/admin/trumps/_visually_hidden.scss +14 -0
- data/app/assets/stylesheets/workarea/admin/typography/_align.scss +15 -0
- data/app/assets/stylesheets/workarea/admin/typography/_headings.scss +87 -0
- data/app/assets/stylesheets/workarea/admin/typography/_links.scss +39 -0
- data/app/assets/stylesheets/workarea/admin/typography/_spark.scss +26 -0
- data/app/assets/stylesheets/workarea/admin/typography/_text.scss +75 -0
- data/app/controllers/workarea/admin/activities_controller.rb +9 -0
- data/app/controllers/workarea/admin/application_controller.rb +109 -0
- data/app/controllers/workarea/admin/bookmarks_controller.rb +17 -0
- data/app/controllers/workarea/admin/bulk_action_deletions_controller.rb +38 -0
- data/app/controllers/workarea/admin/bulk_action_product_edits_controller.rb +55 -0
- data/app/controllers/workarea/admin/bulk_action_sequential_product_edits_controller.rb +126 -0
- data/app/controllers/workarea/admin/bulk_actions_controller.rb +43 -0
- data/app/controllers/workarea/admin/bulk_variant_saving.rb +31 -0
- data/app/controllers/workarea/admin/catalog_categories_controller.rb +62 -0
- data/app/controllers/workarea/admin/catalog_product_copies_controller.rb +31 -0
- data/app/controllers/workarea/admin/catalog_product_images_controller.rb +67 -0
- data/app/controllers/workarea/admin/catalog_products_controller.rb +82 -0
- data/app/controllers/workarea/admin/catalog_variants_controller.rb +93 -0
- data/app/controllers/workarea/admin/categorizations_controller.rb +37 -0
- data/app/controllers/workarea/admin/changesets_controller.rb +28 -0
- data/app/controllers/workarea/admin/comments_controller.rb +104 -0
- data/app/controllers/workarea/admin/content_assets_controller.rb +66 -0
- data/app/controllers/workarea/admin/content_block_drafts_controller.rb +14 -0
- data/app/controllers/workarea/admin/content_blocks_controller.rb +105 -0
- data/app/controllers/workarea/admin/content_controller.rb +54 -0
- data/app/controllers/workarea/admin/content_emails_controller.rb +35 -0
- data/app/controllers/workarea/admin/content_pages_controller.rb +59 -0
- data/app/controllers/workarea/admin/content_presets_controller.rb +40 -0
- data/app/controllers/workarea/admin/create_catalog_categories_controller.rb +135 -0
- data/app/controllers/workarea/admin/create_catalog_products_controller.rb +145 -0
- data/app/controllers/workarea/admin/create_content_pages_controller.rb +91 -0
- data/app/controllers/workarea/admin/create_pricing_discounts_controller.rb +68 -0
- data/app/controllers/workarea/admin/create_releases_controller.rb +51 -0
- data/app/controllers/workarea/admin/create_users_controller.rb +65 -0
- data/app/controllers/workarea/admin/dashboards_controller.rb +51 -0
- data/app/controllers/workarea/admin/data_file_exports_controller.rb +35 -0
- data/app/controllers/workarea/admin/data_file_imports_controller.rb +35 -0
- data/app/controllers/workarea/admin/data_file_tax_imports_controller.rb +38 -0
- data/app/controllers/workarea/admin/data_files_controller.rb +13 -0
- data/app/controllers/workarea/admin/direct_uploads_controller.rb +36 -0
- data/app/controllers/workarea/admin/email_signups_controller.rb +20 -0
- data/app/controllers/workarea/admin/featured_products_controller.rb +78 -0
- data/app/controllers/workarea/admin/fulfillments_controller.rb +15 -0
- data/app/controllers/workarea/admin/guest_browsings_controller.rb +25 -0
- data/app/controllers/workarea/admin/help_assets_controller.rb +27 -0
- data/app/controllers/workarea/admin/help_authorization.rb +17 -0
- data/app/controllers/workarea/admin/help_controller.rb +79 -0
- data/app/controllers/workarea/admin/impersonations_controller.rb +34 -0
- data/app/controllers/workarea/admin/inventory_skus_controller.rb +79 -0
- data/app/controllers/workarea/admin/jump_to_controller.rb +30 -0
- data/app/controllers/workarea/admin/navigation_menus_controller.rb +104 -0
- data/app/controllers/workarea/admin/navigation_redirects_controller.rb +41 -0
- data/app/controllers/workarea/admin/navigation_taxons_controller.rb +104 -0
- data/app/controllers/workarea/admin/orders_controller.rb +28 -0
- data/app/controllers/workarea/admin/payment_transactions_controller.rb +20 -0
- data/app/controllers/workarea/admin/payments_controller.rb +12 -0
- data/app/controllers/workarea/admin/prices_controller.rb +69 -0
- data/app/controllers/workarea/admin/pricing_discount_code_lists_controller.rb +58 -0
- data/app/controllers/workarea/admin/pricing_discounts_controller.rb +56 -0
- data/app/controllers/workarea/admin/pricing_overrides_controller.rb +54 -0
- data/app/controllers/workarea/admin/pricing_skus_controller.rb +87 -0
- data/app/controllers/workarea/admin/product_rules_controller.rb +97 -0
- data/app/controllers/workarea/admin/publishing.rb +45 -0
- data/app/controllers/workarea/admin/recommendations_controller.rb +36 -0
- data/app/controllers/workarea/admin/releasables_controller.rb +16 -0
- data/app/controllers/workarea/admin/release_sessions_controller.rb +25 -0
- data/app/controllers/workarea/admin/releases_controller.rb +110 -0
- data/app/controllers/workarea/admin/reports_controller.rb +115 -0
- data/app/controllers/workarea/admin/search_customizations_controller.rb +84 -0
- data/app/controllers/workarea/admin/search_settings_controller.rb +27 -0
- data/app/controllers/workarea/admin/searches_controller.rb +11 -0
- data/app/controllers/workarea/admin/shipping_services_controller.rb +85 -0
- data/app/controllers/workarea/admin/shippings_controller.rb +24 -0
- data/app/controllers/workarea/admin/style_guides_controller.rb +6 -0
- data/app/controllers/workarea/admin/tax_categories_controller.rb +55 -0
- data/app/controllers/workarea/admin/tax_rates_controller.rb +14 -0
- data/app/controllers/workarea/admin/timeline_controller.rb +10 -0
- data/app/controllers/workarea/admin/toolbar_controller.rb +16 -0
- data/app/controllers/workarea/admin/trash_controller.rb +50 -0
- data/app/controllers/workarea/admin/user_params.rb +16 -0
- data/app/controllers/workarea/admin/users_controller.rb +77 -0
- data/app/controllers/workarea/admin/visiting.rb +51 -0
- data/app/helpers/workarea/admin/activities_helper.rb +70 -0
- data/app/helpers/workarea/admin/application_helper.rb +161 -0
- data/app/helpers/workarea/admin/bookmarks_helper.rb +15 -0
- data/app/helpers/workarea/admin/bulk_actions_helper.rb +9 -0
- data/app/helpers/workarea/admin/changesets_helper.rb +14 -0
- data/app/helpers/workarea/admin/content_block_icon_helper.rb +22 -0
- data/app/helpers/workarea/admin/content_helper.rb +69 -0
- data/app/helpers/workarea/admin/credit_cards_helper.rb +26 -0
- data/app/helpers/workarea/admin/data_files_helper.rb +9 -0
- data/app/helpers/workarea/admin/date_selector_helper.rb +58 -0
- data/app/helpers/workarea/admin/facets_helper.rb +15 -0
- data/app/helpers/workarea/admin/icons_helper.rb +95 -0
- data/app/helpers/workarea/admin/imports_helper.rb +50 -0
- data/app/helpers/workarea/admin/insights_helper.rb +42 -0
- data/app/helpers/workarea/admin/inventory_helper.rb +9 -0
- data/app/helpers/workarea/admin/navigation_helper.rb +70 -0
- data/app/helpers/workarea/admin/navigation_menus_helper.rb +12 -0
- data/app/helpers/workarea/admin/orders_helper.rb +17 -0
- data/app/helpers/workarea/admin/pages_helper.rb +9 -0
- data/app/helpers/workarea/admin/price_adjustments_helper.rb +21 -0
- data/app/helpers/workarea/admin/pricing_overrides_helper.rb +9 -0
- data/app/helpers/workarea/admin/product_rules_helper.rb +50 -0
- data/app/helpers/workarea/admin/products_helper.rb +10 -0
- data/app/helpers/workarea/admin/releases_helper.rb +221 -0
- data/app/helpers/workarea/admin/reports_helper.rb +57 -0
- data/app/helpers/workarea/admin/search_customizations_helper.rb +19 -0
- data/app/helpers/workarea/admin/settings_helper.rb +18 -0
- data/app/helpers/workarea/admin/storefront_helper.rb +13 -0
- data/app/helpers/workarea/admin/taxons_helper.rb +65 -0
- data/app/mailers/workarea/admin/application_mailer.rb +32 -0
- data/app/mailers/workarea/admin/comment_mailer.rb +32 -0
- data/app/mailers/workarea/admin/data_file_mailer.rb +68 -0
- data/app/mailers/workarea/admin/reports_mailer.rb +18 -0
- data/app/mailers/workarea/admin/status_report_mailer.rb +19 -0
- data/app/view_models/workarea/admin/activity_view_model.rb +107 -0
- data/app/view_models/workarea/admin/alerts_view_model.rb +60 -0
- data/app/view_models/workarea/admin/asset_view_model.rb +11 -0
- data/app/view_models/workarea/admin/bulk_action_deletion_view_model.rb +13 -0
- data/app/view_models/workarea/admin/bulk_action_product_edit_view_model.rb +25 -0
- data/app/view_models/workarea/admin/bulk_action_sequential_product_edit_view_model.rb +25 -0
- data/app/view_models/workarea/admin/category_view_model.rb +55 -0
- data/app/view_models/workarea/admin/changes_view_model.rb +52 -0
- data/app/view_models/workarea/admin/changeset_view_model.rb +81 -0
- data/app/view_models/workarea/admin/code_list_view_model.rb +25 -0
- data/app/view_models/workarea/admin/comment_view_model.rb +18 -0
- data/app/view_models/workarea/admin/commentable_view_model.rb +21 -0
- data/app/view_models/workarea/admin/content_view_model.rb +142 -0
- data/app/view_models/workarea/admin/contentable_view_model.rb +9 -0
- data/app/view_models/workarea/admin/dashboards/catalog_view_model.rb +13 -0
- data/app/view_models/workarea/admin/dashboards/index_view_model.rb +28 -0
- data/app/view_models/workarea/admin/dashboards/insights_graphs.rb +97 -0
- data/app/view_models/workarea/admin/dashboards/marketing_view_model.rb +83 -0
- data/app/view_models/workarea/admin/dashboards/orders_view_model.rb +20 -0
- data/app/view_models/workarea/admin/dashboards/people_view_model.rb +39 -0
- data/app/view_models/workarea/admin/dashboards/reports_view_model.rb +105 -0
- data/app/view_models/workarea/admin/dashboards/search_view_model.rb +22 -0
- data/app/view_models/workarea/admin/dashboards/store_view_model.rb +13 -0
- data/app/view_models/workarea/admin/data_file_view_model.rb +28 -0
- data/app/view_models/workarea/admin/data_files_view_model.rb +42 -0
- data/app/view_models/workarea/admin/discount_rules_view_model.rb +99 -0
- data/app/view_models/workarea/admin/discount_search_view_model.rb +17 -0
- data/app/view_models/workarea/admin/discount_view_model.rb +127 -0
- data/app/view_models/workarea/admin/discounts/buy_some_get_some_view_model.rb +35 -0
- data/app/view_models/workarea/admin/discounts/categories.rb +13 -0
- data/app/view_models/workarea/admin/discounts/category_view_model.rb +40 -0
- data/app/view_models/workarea/admin/discounts/free_gift_view_model.rb +35 -0
- data/app/view_models/workarea/admin/discounts/order_total_view_model.rb +32 -0
- data/app/view_models/workarea/admin/discounts/product_attribute_view_model.rb +38 -0
- data/app/view_models/workarea/admin/discounts/product_view_model.rb +40 -0
- data/app/view_models/workarea/admin/discounts/products.rb +13 -0
- data/app/view_models/workarea/admin/discounts/quantity_fixed_price_view_model.rb +35 -0
- data/app/view_models/workarea/admin/discounts/shipping_view_model.rb +36 -0
- data/app/view_models/workarea/admin/featured_products_view_model.rb +20 -0
- data/app/view_models/workarea/admin/fulfillment_item_view_model.rb +13 -0
- data/app/view_models/workarea/admin/fulfillment_view_model.rb +41 -0
- data/app/view_models/workarea/admin/help_search_view_model.rb +17 -0
- data/app/view_models/workarea/admin/insight_view_model.rb +37 -0
- data/app/view_models/workarea/admin/insights/category_view_model.rb +25 -0
- data/app/view_models/workarea/admin/insights/discount_view_model.rb +25 -0
- data/app/view_models/workarea/admin/insights/insights_details.rb +83 -0
- data/app/view_models/workarea/admin/insights/product_view_model.rb +56 -0
- data/app/view_models/workarea/admin/insights/search_view_model.rb +29 -0
- data/app/view_models/workarea/admin/inventory_sku_view_model.rb +21 -0
- data/app/view_models/workarea/admin/order_item_view_model.rb +29 -0
- data/app/view_models/workarea/admin/order_search_view_model.rb +14 -0
- data/app/view_models/workarea/admin/order_timeline_view_model.rb +163 -0
- data/app/view_models/workarea/admin/order_view_model.rb +114 -0
- data/app/view_models/workarea/admin/package_view_model.rb +20 -0
- data/app/view_models/workarea/admin/page_view_model.rb +16 -0
- data/app/view_models/workarea/admin/payment_view_model.rb +21 -0
- data/app/view_models/workarea/admin/pricing_sku_view_model.rb +21 -0
- data/app/view_models/workarea/admin/product_images_view_model.rb +9 -0
- data/app/view_models/workarea/admin/product_rules_preview_view_model.rb +64 -0
- data/app/view_models/workarea/admin/product_view_model.rb +153 -0
- data/app/view_models/workarea/admin/promo_code_view_model.rb +7 -0
- data/app/view_models/workarea/admin/recommendations_view_model.rb +23 -0
- data/app/view_models/workarea/admin/release_calendar_view_model.rb +57 -0
- data/app/view_models/workarea/admin/release_event_view_model.rb +56 -0
- data/app/view_models/workarea/admin/release_search_view_model.rb +13 -0
- data/app/view_models/workarea/admin/release_view_model.rb +44 -0
- data/app/view_models/workarea/admin/releases_feed_view_model.rb +58 -0
- data/app/view_models/workarea/admin/reports/average_order_value_view_model.rb +14 -0
- data/app/view_models/workarea/admin/reports/customers_view_model.rb +18 -0
- data/app/view_models/workarea/admin/reports/first_time_vs_returning_sales_view_model.rb +14 -0
- data/app/view_models/workarea/admin/reports/group_by_time.rb +38 -0
- data/app/view_models/workarea/admin/reports/insights_view_model.rb +32 -0
- data/app/view_models/workarea/admin/reports/low_inventory_view_model.rb +20 -0
- data/app/view_models/workarea/admin/reports/sales_by_category_view_model.rb +20 -0
- data/app/view_models/workarea/admin/reports/sales_by_country_view_model.rb +14 -0
- data/app/view_models/workarea/admin/reports/sales_by_discount_view_model.rb +20 -0
- data/app/view_models/workarea/admin/reports/sales_by_product_view_model.rb +20 -0
- data/app/view_models/workarea/admin/reports/sales_by_sku_view_model.rb +20 -0
- data/app/view_models/workarea/admin/reports/sales_by_traffic_referrer_view_model.rb +18 -0
- data/app/view_models/workarea/admin/reports/sales_over_time_view_model.rb +14 -0
- data/app/view_models/workarea/admin/reports/searches_view_model.rb +11 -0
- data/app/view_models/workarea/admin/revenue_view_model.rb +45 -0
- data/app/view_models/workarea/admin/search_analysis_view_model.rb +68 -0
- data/app/view_models/workarea/admin/search_customization_product_rules_view_model.rb +25 -0
- data/app/view_models/workarea/admin/search_customization_view_model.rb +17 -0
- data/app/view_models/workarea/admin/search_view_model.rb +91 -0
- data/app/view_models/workarea/admin/shipping_view_model.rb +23 -0
- data/app/view_models/workarea/admin/tax_category_view_model.rb +13 -0
- data/app/view_models/workarea/admin/timeline_view_model.rb +57 -0
- data/app/view_models/workarea/admin/transaction_view_model.rb +39 -0
- data/app/view_models/workarea/admin/user_search_view_model.rb +13 -0
- data/app/view_models/workarea/admin/user_view_model.rb +88 -0
- data/app/view_models/workarea/admin/variant_view_model.rb +48 -0
- data/app/views/layouts/workarea/admin/application.html.haml +181 -0
- data/app/views/layouts/workarea/admin/email.html.haml +185 -0
- data/app/views/layouts/workarea/admin/empty.html.haml +38 -0
- data/app/views/workarea/admin/activities/_bulk_action_order_export_create.haml +8 -0
- data/app/views/workarea/admin/activities/_bulk_action_pricing_discount_code_list_export_create.haml +8 -0
- data/app/views/workarea/admin/activities/_bulk_action_user_export_create.haml +8 -0
- data/app/views/workarea/admin/activities/_catalog_category_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_catalog_category_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_catalog_category_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_catalog_product_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_catalog_product_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_catalog_product_image_create.html.haml +10 -0
- data/app/views/workarea/admin/activities/_catalog_product_image_destroy.html.haml +11 -0
- data/app/views/workarea/admin/activities/_catalog_product_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_catalog_variant_create.html.haml +21 -0
- data/app/views/workarea/admin/activities/_catalog_variant_destroy.html.haml +15 -0
- data/app/views/workarea/admin/activities/_catalog_variant_update.html.haml +22 -0
- data/app/views/workarea/admin/activities/_comment_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_comment_destroy.html.haml +14 -0
- data/app/views/workarea/admin/activities/_comment_update.html.haml +12 -0
- data/app/views/workarea/admin/activities/_content_asset_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_content_asset_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_content_asset_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_content_block_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_content_block_destroy.html.haml +14 -0
- data/app/views/workarea/admin/activities/_content_block_update.html.haml +23 -0
- data/app/views/workarea/admin/activities/_content_email_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_content_page_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_content_page_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_content_page_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_content_update.html.haml +12 -0
- data/app/views/workarea/admin/activities/_help_article_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_help_article_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_help_article_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_help_asset_create.html.haml +8 -0
- data/app/views/workarea/admin/activities/_help_asset_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_import_catalog_create.html.haml +9 -0
- data/app/views/workarea/admin/activities/_import_redirect_create.html.haml +9 -0
- data/app/views/workarea/admin/activities/_import_tax_create.html.haml +9 -0
- data/app/views/workarea/admin/activities/_inventory_sku_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_inventory_sku_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_inventory_sku_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_navigation_menu_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_navigation_menu_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_navigation_menu_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_navigation_redirect_create.html.haml +9 -0
- data/app/views/workarea/admin/activities/_navigation_redirect_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_navigation_taxon_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_navigation_taxon_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_navigation_taxon_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_pricing_discount_code_list_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_pricing_discount_code_list_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_pricing_discount_code_list_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_pricing_discount_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_pricing_discount_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_pricing_discount_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_pricing_sku_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_pricing_sku_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_product_rule_create.html.haml +13 -0
- data/app/views/workarea/admin/activities/_product_rule_destroy.html.haml +13 -0
- data/app/views/workarea/admin/activities/_product_rule_update.html.haml +13 -0
- data/app/views/workarea/admin/activities/_release_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_release_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_release_info.html.haml +6 -0
- data/app/views/workarea/admin/activities/_release_update.html.haml +15 -0
- data/app/views/workarea/admin/activities/_search_customization_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_search_customization_destroy.html.haml +14 -0
- data/app/views/workarea/admin/activities/_search_customization_update.html.haml +11 -0
- data/app/views/workarea/admin/activities/_search_settings_update.html.haml +9 -0
- data/app/views/workarea/admin/activities/_shipping_service_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_shipping_service_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_shipping_service_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_tax_category_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_tax_category_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_tax_category_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/_tax_rate_create.html.haml +12 -0
- data/app/views/workarea/admin/activities/_tax_rate_destroy.html.haml +10 -0
- data/app/views/workarea/admin/activities/_tax_rate_update.html.haml +14 -0
- data/app/views/workarea/admin/activities/_user_update.html.haml +10 -0
- data/app/views/workarea/admin/activities/show.html.haml +43 -0
- data/app/views/workarea/admin/bulk_action_deletions/_form.html.haml +8 -0
- data/app/views/workarea/admin/bulk_action_deletions/edit.html.haml +31 -0
- data/app/views/workarea/admin/bulk_action_product_edits/edit.html.haml +266 -0
- data/app/views/workarea/admin/bulk_action_product_edits/review.html.haml +113 -0
- data/app/views/workarea/admin/bulk_action_sequential_product_edits/product.html.haml +254 -0
- data/app/views/workarea/admin/bulk_action_sequential_product_edits/publishing.html.haml +29 -0
- data/app/views/workarea/admin/bulk_actions/selected.html.haml +16 -0
- data/app/views/workarea/admin/catalog_categories/_aux_navigation.html.haml +2 -0
- data/app/views/workarea/admin/catalog_categories/_cards.html.haml +119 -0
- data/app/views/workarea/admin/catalog_categories/_summary.html.haml +14 -0
- data/app/views/workarea/admin/catalog_categories/edit.html.haml +85 -0
- data/app/views/workarea/admin/catalog_categories/index.html.haml +88 -0
- data/app/views/workarea/admin/catalog_categories/index.json.jbuilder +9 -0
- data/app/views/workarea/admin/catalog_categories/insights.html.haml +71 -0
- data/app/views/workarea/admin/catalog_categories/show.html.haml +23 -0
- data/app/views/workarea/admin/catalog_product_copies/new.html.haml +47 -0
- data/app/views/workarea/admin/catalog_product_images/edit.html.haml +52 -0
- data/app/views/workarea/admin/catalog_product_images/index.html.haml +75 -0
- data/app/views/workarea/admin/catalog_product_images/options.json.jbuilder +4 -0
- data/app/views/workarea/admin/catalog_products/_aux_navigation.html.haml +3 -0
- data/app/views/workarea/admin/catalog_products/_cards.html.haml +265 -0
- data/app/views/workarea/admin/catalog_products/_summary.html.haml +19 -0
- data/app/views/workarea/admin/catalog_products/content.html.haml +40 -0
- data/app/views/workarea/admin/catalog_products/edit.html.haml +170 -0
- data/app/views/workarea/admin/catalog_products/index.html.haml +120 -0
- data/app/views/workarea/admin/catalog_products/index.json.jbuilder +9 -0
- data/app/views/workarea/admin/catalog_products/insights.html.haml +89 -0
- data/app/views/workarea/admin/catalog_products/show.html.haml +24 -0
- data/app/views/workarea/admin/catalog_variants/edit.html.haml +76 -0
- data/app/views/workarea/admin/catalog_variants/index.html.haml +58 -0
- data/app/views/workarea/admin/catalog_variants/index.json.jbuilder +4 -0
- data/app/views/workarea/admin/catalog_variants/new.html.haml +68 -0
- data/app/views/workarea/admin/categorizations/index.html.haml +75 -0
- data/app/views/workarea/admin/categorizations/index.json.jbuilder +9 -0
- data/app/views/workarea/admin/changesets/fields/_category_id.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_category_ids.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_compatible_discount_ids.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_data.html.haml +2 -0
- data/app/views/workarea/admin/changesets/fields/_generic.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_packaged_product_ids.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_product_id.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_product_ids.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/_shipping_service_id.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/data/_category.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/data/_generic.html.haml +4 -0
- data/app/views/workarea/admin/changesets/fields/data/_products.html.haml +4 -0
- data/app/views/workarea/admin/changesets/index.html.haml +42 -0
- data/app/views/workarea/admin/comment_mailer/notify.html.haml +36 -0
- data/app/views/workarea/admin/comments/_card.html.haml +26 -0
- data/app/views/workarea/admin/comments/edit.html.haml +27 -0
- data/app/views/workarea/admin/comments/index.html.haml +64 -0
- data/app/views/workarea/admin/content/_aux_navigation.html.haml +4 -0
- data/app/views/workarea/admin/content/_card.html.haml +24 -0
- data/app/views/workarea/admin/content/_cards.html.haml +9 -0
- data/app/views/workarea/admin/content/_edit.html.haml +75 -0
- data/app/views/workarea/admin/content/_form.html.haml +51 -0
- data/app/views/workarea/admin/content/_summary.html.haml +10 -0
- data/app/views/workarea/admin/content/advanced.html.haml +65 -0
- data/app/views/workarea/admin/content/edit.html.haml +25 -0
- data/app/views/workarea/admin/content/index.html.haml +32 -0
- data/app/views/workarea/admin/content/preview.html.haml +14 -0
- data/app/views/workarea/admin/content/show.html.haml +27 -0
- data/app/views/workarea/admin/content_assets/_cards.html.haml +49 -0
- data/app/views/workarea/admin/content_assets/_summary.html.haml +9 -0
- data/app/views/workarea/admin/content_assets/edit.html.haml +56 -0
- data/app/views/workarea/admin/content_assets/index.html.haml +95 -0
- data/app/views/workarea/admin/content_assets/insert.html.haml +46 -0
- data/app/views/workarea/admin/content_assets/new.html.haml +36 -0
- data/app/views/workarea/admin/content_assets/show.html.haml +21 -0
- data/app/views/workarea/admin/content_blocks/_asset.html.haml +24 -0
- data/app/views/workarea/admin/content_blocks/_boolean.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_breakpoints.html.haml +17 -0
- data/app/views/workarea/admin/content_blocks/_category.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_color.html.haml +19 -0
- data/app/views/workarea/admin/content_blocks/_integer.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_options.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_products.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_range.html.haml +16 -0
- data/app/views/workarea/admin/content_blocks/_string.html.haml +17 -0
- data/app/views/workarea/admin/content_blocks/_taxonomy.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_text.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/_url.html.haml +14 -0
- data/app/views/workarea/admin/content_blocks/index.html.haml +31 -0
- data/app/views/workarea/admin/content_emails/edit.html.haml +22 -0
- data/app/views/workarea/admin/content_emails/index.html.haml +26 -0
- data/app/views/workarea/admin/content_pages/_aux_navigation.html.haml +2 -0
- data/app/views/workarea/admin/content_pages/_cards.html.haml +40 -0
- data/app/views/workarea/admin/content_pages/_summary.html.haml +14 -0
- data/app/views/workarea/admin/content_pages/edit.html.haml +76 -0
- data/app/views/workarea/admin/content_pages/index.html.haml +81 -0
- data/app/views/workarea/admin/content_pages/index.json.jbuilder +7 -0
- data/app/views/workarea/admin/content_pages/show.html.haml +23 -0
- data/app/views/workarea/admin/content_presets/new.html.haml +7 -0
- data/app/views/workarea/admin/create_catalog_categories/content.html.haml +31 -0
- data/app/views/workarea/admin/create_catalog_categories/featured_products.html.haml +75 -0
- data/app/views/workarea/admin/create_catalog_categories/navigation.html.haml +46 -0
- data/app/views/workarea/admin/create_catalog_categories/products.html.haml +64 -0
- data/app/views/workarea/admin/create_catalog_categories/publish.html.haml +36 -0
- data/app/views/workarea/admin/create_catalog_categories/rules.html.haml +68 -0
- data/app/views/workarea/admin/create_catalog_categories/setup.html.haml +51 -0
- data/app/views/workarea/admin/create_catalog_categories/taxonomy.html.haml +35 -0
- data/app/views/workarea/admin/create_catalog_products/categorization.html.haml +68 -0
- data/app/views/workarea/admin/create_catalog_products/content.html.haml +58 -0
- data/app/views/workarea/admin/create_catalog_products/details.html.haml +90 -0
- data/app/views/workarea/admin/create_catalog_products/images.html.haml +60 -0
- data/app/views/workarea/admin/create_catalog_products/publish.html.haml +45 -0
- data/app/views/workarea/admin/create_catalog_products/setup.html.haml +66 -0
- data/app/views/workarea/admin/create_catalog_products/variants.html.haml +93 -0
- data/app/views/workarea/admin/create_content_pages/content.html.haml +30 -0
- data/app/views/workarea/admin/create_content_pages/navigation.html.haml +45 -0
- data/app/views/workarea/admin/create_content_pages/publish.html.haml +35 -0
- data/app/views/workarea/admin/create_content_pages/setup.html.haml +53 -0
- data/app/views/workarea/admin/create_content_pages/taxonomy.html.haml +35 -0
- data/app/views/workarea/admin/create_pricing_discounts/details.html.haml +47 -0
- data/app/views/workarea/admin/create_pricing_discounts/publish.html.haml +31 -0
- data/app/views/workarea/admin/create_pricing_discounts/rules.html.haml +85 -0
- data/app/views/workarea/admin/create_pricing_discounts/setup.html.haml +100 -0
- data/app/views/workarea/admin/create_releases/plan.html.haml +83 -0
- data/app/views/workarea/admin/create_releases/setup.html.haml +58 -0
- data/app/views/workarea/admin/create_users/admin.html.haml +157 -0
- data/app/views/workarea/admin/create_users/customer.html.haml +76 -0
- data/app/views/workarea/admin/create_users/index.html.haml +38 -0
- data/app/views/workarea/admin/dashboards/catalog.html.haml +19 -0
- data/app/views/workarea/admin/dashboards/index.html.haml +177 -0
- data/app/views/workarea/admin/dashboards/marketing.html.haml +64 -0
- data/app/views/workarea/admin/dashboards/orders.html.haml +87 -0
- data/app/views/workarea/admin/dashboards/people.html.haml +70 -0
- data/app/views/workarea/admin/dashboards/reports.html.haml +220 -0
- data/app/views/workarea/admin/dashboards/search.html.haml +48 -0
- data/app/views/workarea/admin/dashboards/settings.html.haml +29 -0
- data/app/views/workarea/admin/dashboards/store.html.haml +21 -0
- data/app/views/workarea/admin/data_file_exports/new.html.haml +47 -0
- data/app/views/workarea/admin/data_file_imports/_csv_notes.html.haml +1 -0
- data/app/views/workarea/admin/data_file_imports/new.html.haml +47 -0
- data/app/views/workarea/admin/data_file_mailer/export.html.haml +3 -0
- data/app/views/workarea/admin/data_file_mailer/import.html.haml +11 -0
- data/app/views/workarea/admin/data_file_mailer/import_error.html.haml +13 -0
- data/app/views/workarea/admin/data_file_mailer/import_failure.html.haml +22 -0
- data/app/views/workarea/admin/data_file_tax_imports/new.html.haml +59 -0
- data/app/views/workarea/admin/data_files/errors.html.haml +38 -0
- data/app/views/workarea/admin/data_files/index.html.haml +68 -0
- data/app/views/workarea/admin/direct_uploads/product_images.html.haml +19 -0
- data/app/views/workarea/admin/email_signups/_summary.html.haml +6 -0
- data/app/views/workarea/admin/email_signups/index.html.haml +47 -0
- data/app/views/workarea/admin/facets/_applied.html.haml +17 -0
- data/app/views/workarea/admin/facets/_price_inputs.html.haml +23 -0
- data/app/views/workarea/admin/facets/_terms.html.haml +17 -0
- data/app/views/workarea/admin/featured_products/_release_preview_warning.html.haml +4 -0
- data/app/views/workarea/admin/featured_products/_selected.html.haml +10 -0
- data/app/views/workarea/admin/featured_products/_unselected.html.haml +8 -0
- data/app/views/workarea/admin/featured_products/edit.html.haml +46 -0
- data/app/views/workarea/admin/featured_products/select.html.haml +72 -0
- data/app/views/workarea/admin/fulfillments/show.html.haml +100 -0
- data/app/views/workarea/admin/help/edit.html.haml +53 -0
- data/app/views/workarea/admin/help/index.html.haml +78 -0
- data/app/views/workarea/admin/help/new.html.haml +53 -0
- data/app/views/workarea/admin/help/show.html.haml +23 -0
- data/app/views/workarea/admin/help/takeover.html.haml +35 -0
- data/app/views/workarea/admin/help_assets/index.html.haml +36 -0
- data/app/views/workarea/admin/insights/_best_customers.html.haml +20 -0
- data/app/views/workarea/admin/insights/_best_full_price_customers.html.haml +20 -0
- data/app/views/workarea/admin/insights/_cold_products.html.haml +29 -0
- data/app/views/workarea/admin/insights/_cold_searches.html.haml +25 -0
- data/app/views/workarea/admin/insights/_customer_acquisition.html.haml +11 -0
- data/app/views/workarea/admin/insights/_customers_at_risk.html.haml +20 -0
- data/app/views/workarea/admin/insights/_hot_products.html.haml +29 -0
- data/app/views/workarea/admin/insights/_hot_searches.html.haml +27 -0
- data/app/views/workarea/admin/insights/_low_aov_customers.html.haml +20 -0
- data/app/views/workarea/admin/insights/_most_discount_given.html.haml +24 -0
- data/app/views/workarea/admin/insights/_most_discounted_products.html.haml +32 -0
- data/app/views/workarea/admin/insights/_new_products.html.haml +20 -0
- data/app/views/workarea/admin/insights/_non_sellers.html.haml +23 -0
- data/app/views/workarea/admin/insights/_popular_searches.html.haml +21 -0
- data/app/views/workarea/admin/insights/_popular_searches_without_results.html.haml +19 -0
- data/app/views/workarea/admin/insights/_products_purchased_together.html.haml +26 -0
- data/app/views/workarea/admin/insights/_products_to_improve.html.haml +26 -0
- data/app/views/workarea/admin/insights/_promising_products.html.haml +26 -0
- data/app/views/workarea/admin/insights/_release_reminder.html.haml +36 -0
- data/app/views/workarea/admin/insights/_repeat_purchase_rate.html.haml +20 -0
- data/app/views/workarea/admin/insights/_sales_by_navigation.html.haml +22 -0
- data/app/views/workarea/admin/insights/_searches_to_improve.html.haml +25 -0
- data/app/views/workarea/admin/insights/_star_products.html.haml +26 -0
- data/app/views/workarea/admin/insights/_star_searches.html.haml +21 -0
- data/app/views/workarea/admin/insights/_top_categories.html.haml +22 -0
- data/app/views/workarea/admin/insights/_top_discounts.html.haml +24 -0
- data/app/views/workarea/admin/insights/_top_products.html.haml +25 -0
- data/app/views/workarea/admin/insights/_trending_products.html.haml +24 -0
- data/app/views/workarea/admin/insights/_trending_searches.html.haml +21 -0
- data/app/views/workarea/admin/insights/_upcoming_releases.html.haml +36 -0
- data/app/views/workarea/admin/inventory_skus/_aux_navigation.html.haml +4 -0
- data/app/views/workarea/admin/inventory_skus/_cards.html.haml +42 -0
- data/app/views/workarea/admin/inventory_skus/_summary.html.haml +6 -0
- data/app/views/workarea/admin/inventory_skus/edit.html.haml +71 -0
- data/app/views/workarea/admin/inventory_skus/index.html.haml +81 -0
- data/app/views/workarea/admin/inventory_skus/new.html.haml +52 -0
- data/app/views/workarea/admin/inventory_skus/show.html.haml +17 -0
- data/app/views/workarea/admin/navigation_menus/_summary.html.haml +10 -0
- data/app/views/workarea/admin/navigation_menus/edit.html.haml +42 -0
- data/app/views/workarea/admin/navigation_menus/index.html.haml +57 -0
- data/app/views/workarea/admin/navigation_menus/new.html.haml +44 -0
- data/app/views/workarea/admin/navigation_redirects/_summary.html.haml +7 -0
- data/app/views/workarea/admin/navigation_redirects/index.html.haml +72 -0
- data/app/views/workarea/admin/navigation_taxons/_insert.html.haml +53 -0
- data/app/views/workarea/admin/navigation_taxons/_select.html.haml +21 -0
- data/app/views/workarea/admin/navigation_taxons/_taxon.html.haml +34 -0
- data/app/views/workarea/admin/navigation_taxons/children.html.haml +19 -0
- data/app/views/workarea/admin/navigation_taxons/edit.html.haml +52 -0
- data/app/views/workarea/admin/navigation_taxons/index.html.haml +38 -0
- data/app/views/workarea/admin/navigation_taxons/new.html.haml +43 -0
- data/app/views/workarea/admin/orders/_aux_navigation.html.haml +4 -0
- data/app/views/workarea/admin/orders/_cards.html.haml +181 -0
- data/app/views/workarea/admin/orders/_summary.html.haml +11 -0
- data/app/views/workarea/admin/orders/attributes.html.haml +123 -0
- data/app/views/workarea/admin/orders/index.html.haml +128 -0
- data/app/views/workarea/admin/orders/show.html.haml +24 -0
- data/app/views/workarea/admin/orders/tenders/_credit_card.html.haml +4 -0
- data/app/views/workarea/admin/orders/tenders/_missing.html.haml +1 -0
- data/app/views/workarea/admin/orders/tenders/_store_credit.html.haml +4 -0
- data/app/views/workarea/admin/orders/timeline.html.haml +33 -0
- data/app/views/workarea/admin/orders/timeline/_authorize.html.haml +12 -0
- data/app/views/workarea/admin/orders/timeline/_canceled.html.haml +8 -0
- data/app/views/workarea/admin/orders/timeline/_canceled_fulfillment.html.haml +8 -0
- data/app/views/workarea/admin/orders/timeline/_capture.html.haml +12 -0
- data/app/views/workarea/admin/orders/timeline/_comment.html.haml +9 -0
- data/app/views/workarea/admin/orders/timeline/_copied.html.haml +9 -0
- data/app/views/workarea/admin/orders/timeline/_created.html.haml +8 -0
- data/app/views/workarea/admin/orders/timeline/_placed.html.haml +8 -0
- data/app/views/workarea/admin/orders/timeline/_price_overridden.html.haml +8 -0
- data/app/views/workarea/admin/orders/timeline/_refund.html.haml +12 -0
- data/app/views/workarea/admin/orders/timeline/_shipped.html.haml +8 -0
- data/app/views/workarea/admin/payment_transactions/_aux_navigation.html.haml +2 -0
- data/app/views/workarea/admin/payment_transactions/_summary.html.haml +6 -0
- data/app/views/workarea/admin/payment_transactions/index.html.haml +78 -0
- data/app/views/workarea/admin/payment_transactions/show.html.haml +80 -0
- data/app/views/workarea/admin/payments/show.html.haml +72 -0
- data/app/views/workarea/admin/prices/edit.html.haml +70 -0
- data/app/views/workarea/admin/prices/index.html.haml +51 -0
- data/app/views/workarea/admin/prices/new.html.haml +65 -0
- data/app/views/workarea/admin/pricing/show.html.haml +99 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/_cards.html.haml +67 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/_summary.html.haml +6 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/edit.html.haml +34 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/index.html.haml +53 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/new.html.haml +40 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/promo_codes.html.haml +50 -0
- data/app/views/workarea/admin/pricing_discount_code_lists/show.html.haml +31 -0
- data/app/views/workarea/admin/pricing_discounts/_aux_navigation.html.haml +3 -0
- data/app/views/workarea/admin/pricing_discounts/_cards.html.haml +122 -0
- data/app/views/workarea/admin/pricing_discounts/_summary.html.haml +10 -0
- data/app/views/workarea/admin/pricing_discounts/conditions/_item_quantity.html.haml +8 -0
- data/app/views/workarea/admin/pricing_discounts/conditions/_order_total.html.haml +10 -0
- data/app/views/workarea/admin/pricing_discounts/conditions/_promo_code.html.haml +17 -0
- data/app/views/workarea/admin/pricing_discounts/conditions/_user_tags.html.haml +13 -0
- data/app/views/workarea/admin/pricing_discounts/edit.html.haml +57 -0
- data/app/views/workarea/admin/pricing_discounts/index.html.haml +85 -0
- data/app/views/workarea/admin/pricing_discounts/index.json.jbuilder +8 -0
- data/app/views/workarea/admin/pricing_discounts/insights.html.haml +60 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_buy_some_get_some.html.haml +39 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_category.html.haml +22 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_free_gift.html.haml +28 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_order_total.html.haml +21 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_product.html.haml +23 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_product_attribute.html.haml +32 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_quantity_fixed_price.html.haml +36 -0
- data/app/views/workarea/admin/pricing_discounts/properties/_shipping.html.haml +21 -0
- data/app/views/workarea/admin/pricing_discounts/rules.html.haml +64 -0
- data/app/views/workarea/admin/pricing_discounts/show.html.haml +39 -0
- data/app/views/workarea/admin/pricing_overrides/edit.html.haml +115 -0
- data/app/views/workarea/admin/pricing_skus/_aux_navigation.html.haml +4 -0
- data/app/views/workarea/admin/pricing_skus/_cards.html.haml +67 -0
- data/app/views/workarea/admin/pricing_skus/_summary.html.haml +10 -0
- data/app/views/workarea/admin/pricing_skus/edit.html.haml +65 -0
- data/app/views/workarea/admin/pricing_skus/index.html.haml +81 -0
- data/app/views/workarea/admin/pricing_skus/new.html.haml +78 -0
- data/app/views/workarea/admin/pricing_skus/show.html.haml +16 -0
- data/app/views/workarea/admin/product_rules/_card.html.haml +23 -0
- data/app/views/workarea/admin/product_rules/_form.html.haml +12 -0
- data/app/views/workarea/admin/product_rules/_preview.html.haml +28 -0
- data/app/views/workarea/admin/product_rules/fields/_available_inventory.html.haml +7 -0
- data/app/views/workarea/admin/product_rules/fields/_category.html.haml +5 -0
- data/app/views/workarea/admin/product_rules/fields/_created_at.html.haml +4 -0
- data/app/views/workarea/admin/product_rules/fields/_excluded_products.html.haml +5 -0
- data/app/views/workarea/admin/product_rules/fields/_generic.html.haml +8 -0
- data/app/views/workarea/admin/product_rules/fields/_on_sale.html.haml +7 -0
- data/app/views/workarea/admin/product_rules/fields/_price.html.haml +5 -0
- data/app/views/workarea/admin/product_rules/fields/_search.html.haml +31 -0
- data/app/views/workarea/admin/product_rules/index.html.haml +61 -0
- data/app/views/workarea/admin/product_rules/preview.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/summaries/_available_inventory.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/summaries/_category.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/summaries/_created_at.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/summaries/_excluded_products.html.haml +4 -0
- data/app/views/workarea/admin/product_rules/summaries/_generic.html.haml +3 -0
- data/app/views/workarea/admin/product_rules/summaries/_on_sale.html.haml +5 -0
- data/app/views/workarea/admin/product_rules/summaries/_price.html.haml +1 -0
- data/app/views/workarea/admin/product_rules/summaries/_search.html.haml +1 -0
- data/app/views/workarea/admin/recommendations/edit.html.haml +42 -0
- data/app/views/workarea/admin/releasables/index.html.haml +72 -0
- data/app/views/workarea/admin/releases/_cards.html.haml +103 -0
- data/app/views/workarea/admin/releases/_publish.html.haml +31 -0
- data/app/views/workarea/admin/releases/_select.html.haml +13 -0
- data/app/views/workarea/admin/releases/_summary.html.haml +6 -0
- data/app/views/workarea/admin/releases/calendar.html.haml +54 -0
- data/app/views/workarea/admin/releases/edit.html.haml +83 -0
- data/app/views/workarea/admin/releases/index.html.haml +100 -0
- data/app/views/workarea/admin/releases/new.html.haml +6 -0
- data/app/views/workarea/admin/releases/show.html.haml +65 -0
- data/app/views/workarea/admin/reports/_export.html.haml +12 -0
- data/app/views/workarea/admin/reports/_group_by_time.html.haml +6 -0
- data/app/views/workarea/admin/reports/average_order_value.html.haml +39 -0
- data/app/views/workarea/admin/reports/customers.html.haml +49 -0
- data/app/views/workarea/admin/reports/first_time_vs_returning_sales.html.haml +41 -0
- data/app/views/workarea/admin/reports/insights.html.haml +16 -0
- data/app/views/workarea/admin/reports/low_inventory.html.haml +35 -0
- data/app/views/workarea/admin/reports/reference.html.haml +88 -0
- data/app/views/workarea/admin/reports/sales_by_category.html.haml +42 -0
- data/app/views/workarea/admin/reports/sales_by_country.html.haml +42 -0
- data/app/views/workarea/admin/reports/sales_by_discount.html.haml +38 -0
- data/app/views/workarea/admin/reports/sales_by_product.html.haml +42 -0
- data/app/views/workarea/admin/reports/sales_by_sku.html.haml +42 -0
- data/app/views/workarea/admin/reports/sales_by_traffic_referrer.html.haml +42 -0
- data/app/views/workarea/admin/reports/sales_over_time.html.haml +49 -0
- data/app/views/workarea/admin/reports/searches.html.haml +45 -0
- data/app/views/workarea/admin/reports_mailer/export.html.haml +3 -0
- data/app/views/workarea/admin/search_customizations/_aux_navigation.html.haml +2 -0
- data/app/views/workarea/admin/search_customizations/_cards.html.haml +130 -0
- data/app/views/workarea/admin/search_customizations/analyze.html.haml +119 -0
- data/app/views/workarea/admin/search_customizations/edit.html.haml +74 -0
- data/app/views/workarea/admin/search_customizations/index.html.haml +78 -0
- data/app/views/workarea/admin/search_customizations/index.json.jbuilder +4 -0
- data/app/views/workarea/admin/search_customizations/insights.html.haml +71 -0
- data/app/views/workarea/admin/search_customizations/show.html.haml +19 -0
- data/app/views/workarea/admin/search_settings/show.html.haml +55 -0
- data/app/views/workarea/admin/searches/show.html.haml +54 -0
- data/app/views/workarea/admin/shared/_activate_select.html.haml +6 -0
- data/app/views/workarea/admin/shared/_bulk_actions.html.haml +18 -0
- data/app/views/workarea/admin/shared/_creation_date.html.haml +21 -0
- data/app/views/workarea/admin/shared/_csv_formatting_tooltip.html.haml +9 -0
- data/app/views/workarea/admin/shared/_date_selector.html.haml +22 -0
- data/app/views/workarea/admin/shared/_message.html.haml +4 -0
- data/app/views/workarea/admin/shared/_pagination.html.haml +38 -0
- data/app/views/workarea/admin/shared/_primary_nav.html.haml +113 -0
- data/app/views/workarea/admin/shared/_publishing_select.html.haml +6 -0
- data/app/views/workarea/admin/shared/_release_slug_tooltip.html.haml +7 -0
- data/app/views/workarea/admin/shared/_summary.html.haml +9 -0
- data/app/views/workarea/admin/shared/_toggle_button.html.haml +7 -0
- data/app/views/workarea/admin/shared/values.json.jbuilder +4 -0
- data/app/views/workarea/admin/shipping_services/edit.html.haml +69 -0
- data/app/views/workarea/admin/shipping_services/index.html.haml +61 -0
- data/app/views/workarea/admin/shipping_services/new.html.haml +57 -0
- data/app/views/workarea/admin/shippings/index.html.haml +92 -0
- data/app/views/workarea/admin/status_report_mailer/report.html.haml +94 -0
- data/app/views/workarea/admin/style_guides/_navigation.html.haml +10 -0
- data/app/views/workarea/admin/style_guides/base/_forms.html.haml +77 -0
- data/app/views/workarea/admin/style_guides/base/_tables.html.haml +72 -0
- data/app/views/workarea/admin/style_guides/components/_activity.html.haml +25 -0
- data/app/views/workarea/admin/style_guides/components/_activity_group.html.haml +80 -0
- data/app/views/workarea/admin/style_guides/components/_asset_picker_field.html.haml +12 -0
- data/app/views/workarea/admin/style_guides/components/_avatar.html.haml +17 -0
- data/app/views/workarea/admin/style_guides/components/_box.html.haml +59 -0
- data/app/views/workarea/admin/style_guides/components/_button.html.haml +53 -0
- data/app/views/workarea/admin/style_guides/components/_card.html.haml +157 -0
- data/app/views/workarea/admin/style_guides/components/_checkbox.html.haml +21 -0
- data/app/views/workarea/admin/style_guides/components/_color_picker_field.html.haml +36 -0
- data/app/views/workarea/admin/style_guides/components/_data_file_sample.html.haml +28 -0
- data/app/views/workarea/admin/style_guides/components/_data_pairs.html.haml +28 -0
- data/app/views/workarea/admin/style_guides/components/_date_marker.html.haml +18 -0
- data/app/views/workarea/admin/style_guides/components/_direct_upload.html.haml +96 -0
- data/app/views/workarea/admin/style_guides/components/_expandable.html.haml +25 -0
- data/app/views/workarea/admin/style_guides/components/_index_table.html.haml +51 -0
- data/app/views/workarea/admin/style_guides/components/_insight.html.haml +100 -0
- data/app/views/workarea/admin/style_guides/components/_loading.html.haml +85 -0
- data/app/views/workarea/admin/style_guides/components/_menu.html.haml +112 -0
- data/app/views/workarea/admin/style_guides/components/_message.html.haml +45 -0
- data/app/views/workarea/admin/style_guides/components/_pagination.html.haml +156 -0
- data/app/views/workarea/admin/style_guides/components/_product_summary.html.haml +28 -0
- data/app/views/workarea/admin/style_guides/components/_property.html.haml +147 -0
- data/app/views/workarea/admin/style_guides/components/_property_toggle.html.haml +48 -0
- data/app/views/workarea/admin/style_guides/components/_release_changeset.html.haml +55 -0
- data/app/views/workarea/admin/style_guides/components/_search_form.html.haml +28 -0
- data/app/views/workarea/admin/style_guides/components/_state.html.haml +35 -0
- data/app/views/workarea/admin/style_guides/components/_summary.html.haml +66 -0
- data/app/views/workarea/admin/style_guides/components/_svg_icon.html.haml +51 -0
- data/app/views/workarea/admin/style_guides/components/_tabs.html.haml +17 -0
- data/app/views/workarea/admin/style_guides/components/_text_box.html.haml +147 -0
- data/app/views/workarea/admin/style_guides/components/_text_button.html.haml +58 -0
- data/app/views/workarea/admin/style_guides/components/_toggle_button.html.haml +59 -0
- data/app/views/workarea/admin/style_guides/components/_ui_accordion.html.haml +21 -0
- data/app/views/workarea/admin/style_guides/components/_ui_autocomplete.html.haml +10 -0
- data/app/views/workarea/admin/style_guides/components/_ui_datepicker.html.haml +22 -0
- data/app/views/workarea/admin/style_guides/components/_ui_helper_hidden_accessible.html.haml +5 -0
- data/app/views/workarea/admin/style_guides/components/_view.html.haml +45 -0
- data/app/views/workarea/admin/style_guides/components/_workflow_bar.html.haml +118 -0
- data/app/views/workarea/admin/style_guides/components/_wysiwyg.html.haml +10 -0
- data/app/views/workarea/admin/style_guides/index.html.haml +87 -0
- data/app/views/workarea/admin/style_guides/objects/_button.html.haml +9 -0
- data/app/views/workarea/admin/style_guides/objects/_button_reset.html.haml +17 -0
- data/app/views/workarea/admin/style_guides/objects/_inline_list.html.haml +41 -0
- data/app/views/workarea/admin/style_guides/objects/_list_reset.html.haml +17 -0
- data/app/views/workarea/admin/style_guides/objects/_section.html.haml +13 -0
- data/app/views/workarea/admin/style_guides/objects/_text_field_reset.html.haml +11 -0
- data/app/views/workarea/admin/style_guides/objects/_tooltip_content.html.haml +31 -0
- data/app/views/workarea/admin/style_guides/settings/_color_variables.html.haml +21 -0
- data/app/views/workarea/admin/style_guides/show.html.haml +10 -0
- data/app/views/workarea/admin/style_guides/trumps/_break_word.html.haml +15 -0
- data/app/views/workarea/admin/style_guides/trumps/_clearfix.html.haml +21 -0
- data/app/views/workarea/admin/style_guides/trumps/_hidden.html.haml +97 -0
- data/app/views/workarea/admin/style_guides/trumps/_image_replacement.html.haml +13 -0
- data/app/views/workarea/admin/style_guides/trumps/_truncate.html.haml +13 -0
- data/app/views/workarea/admin/style_guides/trumps/_visible.html.haml +97 -0
- data/app/views/workarea/admin/style_guides/trumps/_visually_hidden.html.haml +17 -0
- data/app/views/workarea/admin/style_guides/typography/_align.html.haml +25 -0
- data/app/views/workarea/admin/style_guides/typography/_fonts.html.haml +25 -0
- data/app/views/workarea/admin/style_guides/typography/_headings.html.haml +34 -0
- data/app/views/workarea/admin/style_guides/typography/_links.html.haml +47 -0
- data/app/views/workarea/admin/style_guides/typography/_spark.html.haml +32 -0
- data/app/views/workarea/admin/style_guides/typography/_text.html.haml +50 -0
- data/app/views/workarea/admin/tax_categories/_cards.html.haml +57 -0
- data/app/views/workarea/admin/tax_categories/edit.html.haml +44 -0
- data/app/views/workarea/admin/tax_categories/index.html.haml +48 -0
- data/app/views/workarea/admin/tax_categories/new.html.haml +39 -0
- data/app/views/workarea/admin/tax_categories/show.html.haml +19 -0
- data/app/views/workarea/admin/tax_rates/index.html.haml +52 -0
- data/app/views/workarea/admin/timeline/_card.html.haml +16 -0
- data/app/views/workarea/admin/timeline/show.html.haml +78 -0
- data/app/views/workarea/admin/toolbar/show.html.haml +79 -0
- data/app/views/workarea/admin/trash/index.html.haml +21 -0
- data/app/views/workarea/admin/users/_cards.html.haml +199 -0
- data/app/views/workarea/admin/users/_summary.html.haml +15 -0
- data/app/views/workarea/admin/users/addresses.html.haml +22 -0
- data/app/views/workarea/admin/users/edit.html.haml +88 -0
- data/app/views/workarea/admin/users/index.html.haml +94 -0
- data/app/views/workarea/admin/users/index.json.jbuilder +4 -0
- data/app/views/workarea/admin/users/insights.html.haml +128 -0
- data/app/views/workarea/admin/users/orders.html.haml +52 -0
- data/app/views/workarea/admin/users/permissions.html.haml +132 -0
- data/app/views/workarea/admin/users/show.html.haml +38 -0
- data/bin/rails +18 -0
- data/config/locales/en.yml +3609 -0
- data/config/routes.rb +372 -0
- data/lib/workarea/admin.rb +7 -0
- data/lib/workarea/admin/engine.rb +8 -0
- data/lib/workarea/mailer_previews/admin/comment_mailer_preview.rb +12 -0
- data/lib/workarea/mailer_previews/admin/data_file_mailer_preview.rb +21 -0
- data/lib/workarea/mailer_previews/admin/status_report_mailer_preview.rb +9 -0
- data/public/workarea/import_samples/tax_rates.csv +3 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +5 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +22 -0
- data/test/dummy/config/boot.rb +3 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +17 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/de.yml +2 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +10 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +1 -0
- data/test/dummy/script/rails +6 -0
- data/test/helpers/workarea/admin/application_helper_test.rb +83 -0
- data/test/helpers/workarea/admin/icons_helper_test.rb +62 -0
- data/test/helpers/workarea/admin/imports_helper_test.rb +31 -0
- data/test/helpers/workarea/admin/insights_helper_test.rb +19 -0
- data/test/helpers/workarea/admin/releases_helper_test.rb +152 -0
- data/test/helpers/workarea/admin/settings_helper_test.rb +34 -0
- data/test/integration/workarea/admin/assets_integration_test.rb +62 -0
- data/test/integration/workarea/admin/authorization_integration_test.rb +32 -0
- data/test/integration/workarea/admin/bookmarks_integration_test.rb +29 -0
- data/test/integration/workarea/admin/bulk_action_deletions_integration_test.rb +149 -0
- data/test/integration/workarea/admin/bulk_action_product_edits_integration_test.rb +77 -0
- data/test/integration/workarea/admin/bulk_action_sequential_product_edits_integration_test.rb +198 -0
- data/test/integration/workarea/admin/bulk_actions_integration_test.rb +42 -0
- data/test/integration/workarea/admin/catalog_product_copies_integration_test.rb +37 -0
- data/test/integration/workarea/admin/categories_integration_test.rb +63 -0
- data/test/integration/workarea/admin/categorizations_integration_test.rb +49 -0
- data/test/integration/workarea/admin/changesets_integration_test.rb +22 -0
- data/test/integration/workarea/admin/comments_integration_test.rb +147 -0
- data/test/integration/workarea/admin/content_blocks_integration_test.rb +116 -0
- data/test/integration/workarea/admin/content_emails_integration_test.rb +22 -0
- data/test/integration/workarea/admin/content_integration_test.rb +20 -0
- data/test/integration/workarea/admin/content_presets_integration_test.rb +38 -0
- data/test/integration/workarea/admin/create_catalog_categories_integration_test.rb +99 -0
- data/test/integration/workarea/admin/create_catalog_products_integration_test.rb +215 -0
- data/test/integration/workarea/admin/create_content_pages_integration_test.rb +99 -0
- data/test/integration/workarea/admin/create_pricing_discounts_integration_test.rb +249 -0
- data/test/integration/workarea/admin/create_releases_integration_test.rb +24 -0
- data/test/integration/workarea/admin/create_users_integration_test.rb +188 -0
- data/test/integration/workarea/admin/data_file_exports_integration_test.rb +69 -0
- data/test/integration/workarea/admin/data_file_imports_integration_test.rb +153 -0
- data/test/integration/workarea/admin/direct_uploads_integration_test.rb +92 -0
- data/test/integration/workarea/admin/discounts_integration_test.rb +57 -0
- data/test/integration/workarea/admin/email_signups_integration_test.rb +18 -0
- data/test/integration/workarea/admin/featured_products_integration_test.rb +55 -0
- data/test/integration/workarea/admin/guest_browsings_integration_test.rb +62 -0
- data/test/integration/workarea/admin/help_articles_integration_test.rb +70 -0
- data/test/integration/workarea/admin/impersonations_integration_test.rb +79 -0
- data/test/integration/workarea/admin/import_taxes_integration_test.rb +30 -0
- data/test/integration/workarea/admin/inventory_skus_integration_test.rb +68 -0
- data/test/integration/workarea/admin/jump_to_integration_test.rb +239 -0
- data/test/integration/workarea/admin/menus_integration_test.rb +142 -0
- data/test/integration/workarea/admin/pages_integration_test.rb +45 -0
- data/test/integration/workarea/admin/permissions_integration_test.rb +27 -0
- data/test/integration/workarea/admin/pricing_overrides_integration_test.rb +63 -0
- data/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb +86 -0
- data/test/integration/workarea/admin/pricing_skus_integration_test.rb +67 -0
- data/test/integration/workarea/admin/product_images_integration_test.rb +68 -0
- data/test/integration/workarea/admin/product_rules_integration_test.rb +151 -0
- data/test/integration/workarea/admin/products_integration_test.rb +73 -0
- data/test/integration/workarea/admin/promo_codes_list_integration_test.rb +73 -0
- data/test/integration/workarea/admin/publish_authorization_integration_test.rb +66 -0
- data/test/integration/workarea/admin/publishing_integration_test.rb +36 -0
- data/test/integration/workarea/admin/recommendations_integration_test.rb +29 -0
- data/test/integration/workarea/admin/redirects_integration_test.rb +26 -0
- data/test/integration/workarea/admin/releases_integration_test.rb +172 -0
- data/test/integration/workarea/admin/reports_integration_test.rb +55 -0
- data/test/integration/workarea/admin/search_customizations_integration_test.rb +60 -0
- data/test/integration/workarea/admin/search_settings_integration_test.rb +63 -0
- data/test/integration/workarea/admin/shipping_service_integration_test.rb +79 -0
- data/test/integration/workarea/admin/sort_integration_test.rb +17 -0
- data/test/integration/workarea/admin/tax_categories_integration_test.rb +44 -0
- data/test/integration/workarea/admin/taxonomy_integration_test.rb +94 -0
- data/test/integration/workarea/admin/trash_integration_test.rb +145 -0
- data/test/integration/workarea/admin/users_integration_test.rb +153 -0
- data/test/integration/workarea/admin/variants_integration_test.rb +78 -0
- data/test/integration/workarea/admin/visiting_integration_test.rb +40 -0
- data/test/javascripts/add_content_block_buttons_spec.js +21 -0
- data/test/javascripts/add_to_calendar_buttons_spec.js +27 -0
- data/test/javascripts/asset_pickers_spec.js +56 -0
- data/test/javascripts/cloneable_rows_spec.js +38 -0
- data/test/javascripts/content_blocks_spec.js +47 -0
- data/test/javascripts/content_editor_form_cancel_spec.js +19 -0
- data/test/javascripts/content_editor_forms_spec.js +20 -0
- data/test/javascripts/content_preset_form_spec.js +18 -0
- data/test/javascripts/datepicker_fields_spec.js +65 -0
- data/test/javascripts/datetimepicker_fields_spec.js +97 -0
- data/test/javascripts/direct_uploads_spec.js +152 -0
- data/test/javascripts/fixtures/add_content_block_button.html.haml +10 -0
- data/test/javascripts/fixtures/add_to_calendar_button.html.haml +6 -0
- data/test/javascripts/fixtures/asset_picker.html.haml +6 -0
- data/test/javascripts/fixtures/calendar.html.haml +25 -0
- data/test/javascripts/fixtures/cloneable_row.html.haml +7 -0
- data/test/javascripts/fixtures/content_block.html.haml +4 -0
- data/test/javascripts/fixtures/content_block_editor_form.html.haml +8 -0
- data/test/javascripts/fixtures/datepicker_fields.html.haml +31 -0
- data/test/javascripts/fixtures/datetimepicker_fields.html.haml +11 -0
- data/test/javascripts/fixtures/direct_upload.html.haml +3 -0
- data/test/javascripts/fixtures/help_lookup_button.haml +11 -0
- data/test/javascripts/fixtures/menu_editor_menu_list_sortable.html.haml +3 -0
- data/test/javascripts/fixtures/new_navigation_taxon.html.haml +10 -0
- data/test/javascripts/fixtures/primary_nav.html.haml +4 -0
- data/test/javascripts/fixtures/property_toggle.html.haml +16 -0
- data/test/javascripts/fixtures/release_calendar_placeholder.html.haml +1 -0
- data/test/javascripts/fixtures/release_reminder.html.haml +6 -0
- data/test/javascripts/fixtures/remote_select.html.haml +1 -0
- data/test/javascripts/fixtures/sort_form.html.haml +3 -0
- data/test/javascripts/fixtures/takeover.html.haml +4 -0
- data/test/javascripts/fixtures/tooltip.html.haml +3 -0
- data/test/javascripts/menu_editor_menu_list_sortables_spec.js +40 -0
- data/test/javascripts/messages_spec.js +50 -0
- data/test/javascripts/new_navigation_taxons_spec.js +20 -0
- data/test/javascripts/primary_nav_spec.js +22 -0
- data/test/javascripts/property_toggles_spec.js +33 -0
- data/test/javascripts/release_calendar_placeholders_spec.js +60 -0
- data/test/javascripts/release_reminder_spec.js +18 -0
- data/test/javascripts/relevance_sort_spec.js +23 -0
- data/test/javascripts/remove_selects_spec.js +32 -0
- data/test/javascripts/spec_helper.js +3 -0
- data/test/javascripts/takeover_spec.js +99 -0
- data/test/javascripts/tooltips_spec.js +52 -0
- data/test/mailers/workarea/admin/status_report_mailer_test.rb +38 -0
- data/test/system/workarea/admin/activity_system_test.rb +79 -0
- data/test/system/workarea/admin/alerts_system_test.rb +43 -0
- data/test/system/workarea/admin/assets_system_test.rb +75 -0
- data/test/system/workarea/admin/bookmarks_system_test.rb +31 -0
- data/test/system/workarea/admin/bulk_action_deletions_system_test.rb +71 -0
- data/test/system/workarea/admin/bulk_actions_system_test.rb +206 -0
- data/test/system/workarea/admin/categories_system_test.rb +188 -0
- data/test/system/workarea/admin/comments_system_test.rb +21 -0
- data/test/system/workarea/admin/content_emails_system_test.rb +29 -0
- data/test/system/workarea/admin/content_presets_system_test.rb +65 -0
- data/test/system/workarea/admin/content_system_test.rb +130 -0
- data/test/system/workarea/admin/dashboard_system_test.rb +72 -0
- data/test/system/workarea/admin/data_files_system_test.rb +110 -0
- data/test/system/workarea/admin/discounts_system_test.rb +106 -0
- data/test/system/workarea/admin/exports_system_test.rb +63 -0
- data/test/system/workarea/admin/featured_products_system_test.rb +39 -0
- data/test/system/workarea/admin/guest_browsing_system_test.rb +86 -0
- data/test/system/workarea/admin/help_system_test.rb +104 -0
- data/test/system/workarea/admin/impersonation_system_test.rb +59 -0
- data/test/system/workarea/admin/imports_system_test.rb +42 -0
- data/test/system/workarea/admin/insights_system_test.rb +15 -0
- data/test/system/workarea/admin/inventory_skus_system_test.rb +45 -0
- data/test/system/workarea/admin/menus_system_test.rb +94 -0
- data/test/system/workarea/admin/orders_system_test.rb +108 -0
- data/test/system/workarea/admin/pages_system_test.rb +58 -0
- data/test/system/workarea/admin/payment_transactions_system_test.rb +44 -0
- data/test/system/workarea/admin/pricing_sku_prices_system_test.rb +81 -0
- data/test/system/workarea/admin/pricing_skus_system_test.rb +56 -0
- data/test/system/workarea/admin/product_copy_system_test.rb +48 -0
- data/test/system/workarea/admin/product_images_system_test.rb +71 -0
- data/test/system/workarea/admin/product_rules_system_test.rb +157 -0
- data/test/system/workarea/admin/products_system_test.rb +140 -0
- data/test/system/workarea/admin/publish_authorization_system_test.rb +90 -0
- data/test/system/workarea/admin/recommendations_system_test.rb +80 -0
- data/test/system/workarea/admin/redirects_system_test.rb +42 -0
- data/test/system/workarea/admin/releases_system_test.rb +232 -0
- data/test/system/workarea/admin/reports_system_test.rb +455 -0
- data/test/system/workarea/admin/search_customizations_system_test.rb +133 -0
- data/test/system/workarea/admin/search_settings_system_test.rb +34 -0
- data/test/system/workarea/admin/search_system_test.rb +111 -0
- data/test/system/workarea/admin/sequential_product_editing_system_test.rb +57 -0
- data/test/system/workarea/admin/shipping_services_system_test.rb +30 -0
- data/test/system/workarea/admin/style_guides_system_test.rb +18 -0
- data/test/system/workarea/admin/tax_categories_system_test.rb +61 -0
- data/test/system/workarea/admin/taxonomy_system_test.rb +41 -0
- data/test/system/workarea/admin/timeline_system_test.rb +62 -0
- data/test/system/workarea/admin/toolbar_system_test.rb +24 -0
- data/test/system/workarea/admin/trash_system_test.rb +53 -0
- data/test/system/workarea/admin/users_system_test.rb +141 -0
- data/test/system/workarea/admin/variants_system_test.rb +51 -0
- data/test/teaspoon_env.rb +10 -0
- data/test/test_helper.rb +10 -0
- data/test/view_models/workarea/admin/activity_view_model_test.rb +173 -0
- data/test/view_models/workarea/admin/changeset_view_model_test.rb +72 -0
- data/test/view_models/workarea/admin/code_list_view_model_test.rb +43 -0
- data/test/view_models/workarea/admin/commentable_view_model_test.rb +52 -0
- data/test/view_models/workarea/admin/content_view_model_test.rb +109 -0
- data/test/view_models/workarea/admin/dashboards/insights_graphs_test.rb +106 -0
- data/test/view_models/workarea/admin/dashboards/marketing_view_model_test.rb +25 -0
- data/test/view_models/workarea/admin/dashboards/people_view_model_test.rb +26 -0
- data/test/view_models/workarea/admin/discount_rules_view_model_test.rb +119 -0
- data/test/view_models/workarea/admin/discount_search_view_model_test.rb +26 -0
- data/test/view_models/workarea/admin/discount_view_model_test.rb +19 -0
- data/test/view_models/workarea/admin/fulfillment_item_view_model_test.rb +18 -0
- data/test/view_models/workarea/admin/fulfillment_view_model_test.rb +37 -0
- data/test/view_models/workarea/admin/help_search_view_model_test.rb +35 -0
- data/test/view_models/workarea/admin/insights/insights_details_test.rb +159 -0
- data/test/view_models/workarea/admin/insights/product_view_model_test.rb +92 -0
- data/test/view_models/workarea/admin/order_timeline_view_model_test.rb +194 -0
- data/test/view_models/workarea/admin/product_images_view_model_test.rb +22 -0
- data/test/view_models/workarea/admin/product_view_model_test.rb +152 -0
- data/test/view_models/workarea/admin/promo_code_view_model_test.rb +17 -0
- data/test/view_models/workarea/admin/release_calendar_view_model_test.rb +72 -0
- data/test/view_models/workarea/admin/release_view_model_test.rb +80 -0
- data/test/view_models/workarea/admin/releases_feed_view_model_test.rb +39 -0
- data/test/view_models/workarea/admin/reports/average_order_value_view_model_test.rb +27 -0
- data/test/view_models/workarea/admin/reports/group_by_time_test.rb +32 -0
- data/test/view_models/workarea/admin/reports/insights_view_model_test.rb +36 -0
- data/test/view_models/workarea/admin/reports/sales_by_traffic_referrer_view_model_test.rb +19 -0
- data/test/view_models/workarea/admin/reports/sales_over_time_view_model_test.rb +27 -0
- data/test/view_models/workarea/admin/search_analysis_view_model_test.rb +74 -0
- data/test/view_models/workarea/admin/search_view_model_test.rb +36 -0
- data/test/view_models/workarea/admin/shipping_view_model_test.rb +29 -0
- data/test/view_models/workarea/admin/timeline_view_model_test.rb +80 -0
- data/test/view_models/workarea/admin/transaction_view_model_test.rb +34 -0
- data/test/view_models/workarea/admin/user_search_view_model_test.rb +16 -0
- data/workarea-admin.gemspec +17 -0
- metadata +1401 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ReleaseCalendarViewModel < ApplicationViewModel
|
4
|
+
|
5
|
+
def days
|
6
|
+
@days ||= date_range.reduce({}) do |days, date|
|
7
|
+
days.merge(date.strftime("%Y-%m-%d") => find_releases_for_date(date))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def prev_week
|
12
|
+
start_date - 1.week
|
13
|
+
end
|
14
|
+
|
15
|
+
def next_week
|
16
|
+
start_date + 1.week
|
17
|
+
end
|
18
|
+
|
19
|
+
def weekdays
|
20
|
+
date_range.slice(0, 7).map { |d| Date::ABBR_DAYNAMES[d.wday] }
|
21
|
+
end
|
22
|
+
|
23
|
+
def start_date
|
24
|
+
options.fetch(:start_date, Time.zone.today).to_date
|
25
|
+
end
|
26
|
+
|
27
|
+
def unscheduled
|
28
|
+
@unscheduled ||= Release.unscheduled.to_a
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def find_releases_for_date(date)
|
34
|
+
releases_in_range.map{ |r| ReleaseViewModel.new(r, options) }
|
35
|
+
.select { |r| date_within_range?(date, r) }
|
36
|
+
end
|
37
|
+
|
38
|
+
def date_within_range?(date, release)
|
39
|
+
return true if date == release.publish_time.to_date
|
40
|
+
return false if release.undo_at.blank?
|
41
|
+
|
42
|
+
date.to_time.to_i.between?(release.publish_time.to_i, release.undo_at.to_i)
|
43
|
+
end
|
44
|
+
|
45
|
+
def releases_in_range
|
46
|
+
@releases ||= Release.published_within(date_range.first, date_range.last)
|
47
|
+
end
|
48
|
+
|
49
|
+
def date_range
|
50
|
+
range_start = start_date.beginning_of_week(start_day = :sunday) - 1.week
|
51
|
+
range_end = start_date.end_of_week(start_day = :sunday) + 2.weeks
|
52
|
+
|
53
|
+
(range_start..range_end).to_a
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ReleaseEventViewModel < ApplicationViewModel
|
4
|
+
include Workarea::Admin::Engine.routes.url_helpers
|
5
|
+
|
6
|
+
def all_day_event?
|
7
|
+
return false unless starts_and_ends?
|
8
|
+
ends_at - starts_at > 1
|
9
|
+
end
|
10
|
+
|
11
|
+
def starts_and_ends?
|
12
|
+
starts_at.present? && ends_at.present?
|
13
|
+
end
|
14
|
+
|
15
|
+
def description
|
16
|
+
description = [
|
17
|
+
I18n.t('workarea.admin.releases.feed.view_release',
|
18
|
+
url: release_url(host: Workarea.config.host, id: id))
|
19
|
+
]
|
20
|
+
|
21
|
+
if all_day_event?
|
22
|
+
description << I18n.t('workarea.admin.releases.feed.starts_on',
|
23
|
+
date: starts_at.strftime('%b %-d, %Y at %r'))
|
24
|
+
description << I18n.t('workarea.admin.releases.feed.ends_on',
|
25
|
+
date: ends_at.strftime('%b %-d, %Y at %r'))
|
26
|
+
end
|
27
|
+
|
28
|
+
unless ends_at.present?
|
29
|
+
description << I18n.t('workarea.admin.releases.feed.no_undo_date')
|
30
|
+
end
|
31
|
+
|
32
|
+
description.join('\n')
|
33
|
+
end
|
34
|
+
|
35
|
+
def publish_time
|
36
|
+
model.publish_at || model.published_at
|
37
|
+
end
|
38
|
+
|
39
|
+
def undo_time
|
40
|
+
model.undo_at || model.undone_at
|
41
|
+
end
|
42
|
+
|
43
|
+
def starts_at
|
44
|
+
return if publish_time.nil?
|
45
|
+
time = publish_time.strftime('%Y %m %d %H %M %S').split(' ').map(&:to_i)
|
46
|
+
DateTime.civil(*time, publish_time.strftime('%z'))
|
47
|
+
end
|
48
|
+
|
49
|
+
def ends_at
|
50
|
+
return if undo_time.nil?
|
51
|
+
time = undo_time.strftime('%Y %m %d %H %M %S').split(' ').map(&:to_i)
|
52
|
+
DateTime.civil(*time, undo_time.strftime('%z'))
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ReleaseSearchViewModel < SearchViewModel
|
4
|
+
def sort
|
5
|
+
model.class.available_sorts.detect { |s| s.to_s == options[:sort] } || super
|
6
|
+
end
|
7
|
+
|
8
|
+
def sorts
|
9
|
+
super + model.class.available_sorts.map(&:to_a)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ReleaseViewModel < ApplicationViewModel
|
4
|
+
include CommentableViewModel
|
5
|
+
|
6
|
+
def timeline
|
7
|
+
@timeline ||= TimelineViewModel.new(model)
|
8
|
+
end
|
9
|
+
|
10
|
+
def changesets_with_releasable
|
11
|
+
@changesets_with_releasable ||= model
|
12
|
+
.changesets
|
13
|
+
.map { |c| ChangesetViewModel.wrap(c) }
|
14
|
+
.select { |changeset| changeset.root.present? }
|
15
|
+
.reject { |changeset| changeset.releasable.blank? }
|
16
|
+
end
|
17
|
+
|
18
|
+
def can_undo?
|
19
|
+
!undone? && changesets.any? { |c| c.undo.present? }
|
20
|
+
end
|
21
|
+
|
22
|
+
def published_on_date?(date)
|
23
|
+
date == publish_time.to_date
|
24
|
+
end
|
25
|
+
|
26
|
+
def ended_on_date?(date)
|
27
|
+
return true if content_release?
|
28
|
+
date == model.undo_at.to_date
|
29
|
+
end
|
30
|
+
|
31
|
+
def content_release?
|
32
|
+
model.undo_at.blank?
|
33
|
+
end
|
34
|
+
|
35
|
+
def publish_time
|
36
|
+
model.publish_at || model.published_at
|
37
|
+
end
|
38
|
+
|
39
|
+
def undo_time
|
40
|
+
model.undo_at || model.undone_at
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ReleasesFeedViewModel < ApplicationViewModel
|
4
|
+
delegate :to_ical, to: :calendar
|
5
|
+
|
6
|
+
def calendar
|
7
|
+
@calendar ||= Icalendar::Calendar.new.tap do |calendar|
|
8
|
+
calendar.add_timezone(calendar_timezone)
|
9
|
+
|
10
|
+
calendar.x_wr_calname = I18n.t(
|
11
|
+
'workarea.admin.releases.feed.name',
|
12
|
+
site_name: Workarea.config.site_name
|
13
|
+
)
|
14
|
+
|
15
|
+
releases.each do |release|
|
16
|
+
calendar.event do |event|
|
17
|
+
event.dtstart = format_date(release.starts_at, release.all_day_event?)
|
18
|
+
event.dtend = format_date(release.ends_at, release.all_day_event?)
|
19
|
+
event.summary = release.name
|
20
|
+
event.description = release.description
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
calendar
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def timezone_id
|
31
|
+
Time.zone.tzinfo.identifier
|
32
|
+
end
|
33
|
+
|
34
|
+
def calendar_timezone
|
35
|
+
TZInfo::Timezone.get(timezone_id).ical_timezone(Time.current)
|
36
|
+
end
|
37
|
+
|
38
|
+
def releases
|
39
|
+
@releases ||= Admin::ReleaseEventViewModel.wrap(
|
40
|
+
(
|
41
|
+
Release.published_within(Time.current, 1.year.from_now) +
|
42
|
+
Release.undone_within(Time.current, 1.year.from_now)
|
43
|
+
).uniq
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
def format_date(time, date_only = false)
|
48
|
+
return unless time.present?
|
49
|
+
|
50
|
+
if date_only
|
51
|
+
Icalendar::Values::Date.new(time.to_date, tzid: timezone_id)
|
52
|
+
else
|
53
|
+
Icalendar::Values::DateTime.new(time, tzid: timezone_id)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class AverageOrderValueViewModel < ApplicationViewModel
|
5
|
+
include GroupByTime
|
6
|
+
|
7
|
+
def graph_data
|
8
|
+
return {} if day_of_week?
|
9
|
+
results.group_by(&:starts_at).transform_values { |v| (v || []).map(&:average_order_value) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class CustomersViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
user = users.detect { |p| p.email == result['_id'] }
|
8
|
+
OpenStruct.new({ user: user }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def users
|
13
|
+
@users ||= User.any_in(email: model.results.map { |r| r['_id'] }).to_a
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class FirstTimeVsReturningSalesViewModel < ApplicationViewModel
|
5
|
+
include GroupByTime
|
6
|
+
|
7
|
+
def graph_data
|
8
|
+
return [] if day_of_week?
|
9
|
+
results.group_by(&:starts_at).transform_values { |v| (v || []).map(&:percent_returning) }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
module GroupByTime
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
OpenStruct.new({ period: get_period_for(result['_id']) }.merge(result))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def get_period_for(id)
|
12
|
+
if id.key?('day_of_week')
|
13
|
+
Date::DAYNAMES[id['day_of_week'] - 1]
|
14
|
+
elsif id.key?('quarter')
|
15
|
+
"#{id['year']} Q#{id['quarter']}"
|
16
|
+
elsif id.key?('week')
|
17
|
+
Date.strptime("#{id['year']}-#{id['week']}", '%G-%V').strftime('%Y-%-m-%-d')
|
18
|
+
else
|
19
|
+
id.values.join('-')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def group_by_options
|
24
|
+
model.group_bys.map { |o| [o.titleize, o] }
|
25
|
+
end
|
26
|
+
|
27
|
+
def uneven_day_distribution?
|
28
|
+
number_of_days = (model.ends_at.to_date - model.starts_at.to_date).to_i
|
29
|
+
(number_of_days % 7) != 0
|
30
|
+
end
|
31
|
+
|
32
|
+
def day_of_week?
|
33
|
+
options[:group_by].to_s == 'day_of_week'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class InsightsViewModel < ApplicationViewModel
|
5
|
+
def type_options
|
6
|
+
@type_options ||= [[t('workarea.admin.reports.insights.all_insights'), nil]] +
|
7
|
+
Workarea::Insights::Base.distinct(:_type).map do |type|
|
8
|
+
[type.demodulize.titleize, type]
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def feed
|
13
|
+
@feed ||= InsightViewModel.wrap(query.page(options[:page]))
|
14
|
+
end
|
15
|
+
|
16
|
+
def type
|
17
|
+
options[:type]
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def query
|
23
|
+
if type.present?
|
24
|
+
type.constantize.all
|
25
|
+
else
|
26
|
+
Workarea::Insights::Base.all
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class LowInventoryViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
sku = skus.detect { |s| s.id.to_s == result['_id'] }
|
8
|
+
OpenStruct.new({ sku: sku }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def skus
|
13
|
+
@skus ||= Inventory::Sku.any_in(
|
14
|
+
id: model.results.map { |r| r['_id'] }
|
15
|
+
).to_a
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class SalesByCategoryViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
category = categories.detect { |c| c.id.to_s == result['_id'] }
|
8
|
+
OpenStruct.new({ category: category }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def categories
|
13
|
+
@categories ||= Catalog::Category.any_in(
|
14
|
+
id: model.results.map { |r| r['_id'] }
|
15
|
+
).to_a
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class SalesByCountryViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
name = Country[result['_id']]&.name
|
8
|
+
OpenStruct.new({ name: name }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class SalesByDiscountViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
discount = discounts.detect { |p| p.id.to_s == result['_id'] }
|
8
|
+
OpenStruct.new({ discount: discount }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def discounts
|
13
|
+
@discounts ||= Pricing::Discount.any_in(
|
14
|
+
id: model.results.map { |r| r['_id'] }
|
15
|
+
).to_a
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
module Reports
|
4
|
+
class SalesByProductViewModel < ApplicationViewModel
|
5
|
+
def results
|
6
|
+
@results ||= model.results.map do |result|
|
7
|
+
product = products.detect { |p| p.id == result['_id'] }
|
8
|
+
OpenStruct.new({ product: product }.merge(result))
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def products
|
13
|
+
@products ||= Catalog::Product.any_in(
|
14
|
+
id: model.results.map { |r| r['_id'] }
|
15
|
+
).to_a
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|