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,114 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class OrderViewModel < ApplicationViewModel
|
4
|
+
include CommentableViewModel
|
5
|
+
|
6
|
+
delegate :cancellations, :pending_items, to: :fulfillment
|
7
|
+
|
8
|
+
def user
|
9
|
+
return nil unless model.user_id.present?
|
10
|
+
@user ||= User.where(id: model.user_id).first
|
11
|
+
end
|
12
|
+
|
13
|
+
def full_name
|
14
|
+
if billing_address.present?
|
15
|
+
"#{billing_address.first_name} #{billing_address.last_name}"
|
16
|
+
elsif shipping_address.present?
|
17
|
+
"#{shipping_address.first_name} #{shipping_address.last_name}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def items
|
22
|
+
@items ||= model.items.by_newest.map { |item| OrderItemViewModel.new(item) }
|
23
|
+
end
|
24
|
+
|
25
|
+
def can_cancel?
|
26
|
+
model.placed? && !canceled?
|
27
|
+
end
|
28
|
+
|
29
|
+
def checkout_by
|
30
|
+
return nil unless model.checkout_by_id.present?
|
31
|
+
@checkout_by ||= User.where(id: model.checkout_by_id).first
|
32
|
+
end
|
33
|
+
|
34
|
+
def timeline
|
35
|
+
@timeline ||= OrderTimelineViewModel.wrap(self, options)
|
36
|
+
end
|
37
|
+
|
38
|
+
def updated_at
|
39
|
+
options['source'].try(:[], 'updated_at').try(:to_datetime) ||
|
40
|
+
model.updated_at
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Shipping
|
45
|
+
#
|
46
|
+
#
|
47
|
+
|
48
|
+
def shipping_address
|
49
|
+
shipping.try(:address)
|
50
|
+
end
|
51
|
+
|
52
|
+
def shipping_service
|
53
|
+
shipping.try(:shipping_service)
|
54
|
+
end
|
55
|
+
|
56
|
+
def shipping
|
57
|
+
@shipping ||=
|
58
|
+
shippings.detect { |s| s.id.to_s == options[:shipping_id].to_s } ||
|
59
|
+
shippings.first
|
60
|
+
end
|
61
|
+
|
62
|
+
def shippings
|
63
|
+
@shippings ||= Shipping.by_order(model.id).to_a
|
64
|
+
end
|
65
|
+
|
66
|
+
def shipping_subtotal
|
67
|
+
shippings.sum { |s| s.price_adjustments.first.try(:amount) || 0.to_m }
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# Payment
|
72
|
+
#
|
73
|
+
#
|
74
|
+
|
75
|
+
def billing_address
|
76
|
+
payment.address
|
77
|
+
end
|
78
|
+
|
79
|
+
def payment
|
80
|
+
@payment ||= PaymentViewModel.wrap(
|
81
|
+
Payment.find_or_initialize_by(id: model.id)
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
def total_adjustments
|
86
|
+
@total_adjustments ||= price_adjustments.reduce_by_description('order')
|
87
|
+
end
|
88
|
+
|
89
|
+
def payment_status
|
90
|
+
options['source'].try(:dig, 'facets', 'payment_status').try(:to_sym)
|
91
|
+
end
|
92
|
+
|
93
|
+
#
|
94
|
+
# Fulfillment
|
95
|
+
#
|
96
|
+
#
|
97
|
+
|
98
|
+
def fulfillment
|
99
|
+
@fulfillment ||= FulfillmentViewModel.wrap(
|
100
|
+
Fulfillment.find_or_initialize_by(id: model.id),
|
101
|
+
order: self
|
102
|
+
)
|
103
|
+
end
|
104
|
+
|
105
|
+
def fulfillment_status
|
106
|
+
options['source'].try(:dig, 'facets', 'fulfillment_status').try(:to_sym)
|
107
|
+
end
|
108
|
+
|
109
|
+
def packages
|
110
|
+
fulfillment.packages
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class PackageViewModel < ApplicationViewModel
|
4
|
+
include ShippingCarrierViewModel
|
5
|
+
|
6
|
+
def items
|
7
|
+
@items ||= model.events_by_item.map do |order_item_id, events|
|
8
|
+
order_item = order.items.detect { |i| i.id.to_s == order_item_id }
|
9
|
+
next if order_item.blank?
|
10
|
+
|
11
|
+
FulfillmentItemViewModel.new(order_item, events: events)
|
12
|
+
end.compact
|
13
|
+
end
|
14
|
+
|
15
|
+
def order
|
16
|
+
options[:order] || OrderViewModel.wrap(Order.find(model.id))
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class PageViewModel < ApplicationViewModel
|
4
|
+
include CommentableViewModel
|
5
|
+
include ContentableViewModel
|
6
|
+
|
7
|
+
def timeline
|
8
|
+
@timeline ||= TimelineViewModel.new(model)
|
9
|
+
end
|
10
|
+
|
11
|
+
def breadcrumbs
|
12
|
+
@breadcrumbs ||= Navigation::Breadcrumbs.new(model)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class PaymentViewModel < ApplicationViewModel
|
4
|
+
def transactions
|
5
|
+
@transactions ||= TransactionViewModel.wrap(
|
6
|
+
tenders.map(&:transactions).flatten
|
7
|
+
)
|
8
|
+
end
|
9
|
+
|
10
|
+
def can_refund?
|
11
|
+
return @can_refund if defined?(@can_refund)
|
12
|
+
@can_refund = tenders.any?(&:refundable?)
|
13
|
+
end
|
14
|
+
|
15
|
+
def can_capture?
|
16
|
+
return @can_capture if defined?(@can_capture)
|
17
|
+
@can_capture = tenders.any?(&:capturable?)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class PricingSkuViewModel < ApplicationViewModel
|
4
|
+
def timeline
|
5
|
+
@timeline ||= TimelineViewModel.new(model)
|
6
|
+
end
|
7
|
+
|
8
|
+
def product
|
9
|
+
@product ||=
|
10
|
+
begin
|
11
|
+
product = Catalog::Product.find_by_sku(model.id)
|
12
|
+
ProductViewModel.wrap(product, options) if product.present?
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def inventory
|
17
|
+
@inventory ||= Inventory::Sku.where(id: model.id).first
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ProductRulesPreviewViewModel < ApplicationViewModel
|
4
|
+
delegate :total, :page, :per_page, to: :search
|
5
|
+
|
6
|
+
def self.wrap(model, options = {})
|
7
|
+
return model.map { |m| wrap(m, options) } if model.is_a?(Enumerable)
|
8
|
+
|
9
|
+
view_model_class = [
|
10
|
+
"Workarea::Admin",
|
11
|
+
"#{model.class.model_name.param_key.camelize}ProductRulesViewModel"
|
12
|
+
].join('::')
|
13
|
+
|
14
|
+
view_model_class.constantize.new(model, options)
|
15
|
+
rescue
|
16
|
+
new(model, options)
|
17
|
+
end
|
18
|
+
|
19
|
+
# Fetches search results of products for category. Extends
|
20
|
+
# search class with {Search::AdminProductRulesPreview} to allow
|
21
|
+
# overriding display rules.
|
22
|
+
#
|
23
|
+
# @return [Workarea::Search::CategoryBrowse]
|
24
|
+
# enumerable collection of the search results
|
25
|
+
#
|
26
|
+
def search
|
27
|
+
@search ||= Search::CategoryBrowse.new(
|
28
|
+
rules: model.product_rules.select(&:valid?),
|
29
|
+
sort: model.default_sort,
|
30
|
+
page: options[:page] || 1,
|
31
|
+
show_all: show_all?
|
32
|
+
).tap { |s| s.extend(Search::AdminProductRulesPreview) }
|
33
|
+
end
|
34
|
+
|
35
|
+
# Provides all products found from search results
|
36
|
+
#
|
37
|
+
# @return [Workarea::PagedArray<Workarea::Admin::ProductViewModel>]
|
38
|
+
#
|
39
|
+
def results
|
40
|
+
@results ||= PagedArray.from(
|
41
|
+
search.results.map do |r|
|
42
|
+
Admin::ProductViewModel.new(r[:model], inventory: r[:inventory])
|
43
|
+
end,
|
44
|
+
search.page,
|
45
|
+
search.per_page,
|
46
|
+
search.total
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
def show_all?
|
51
|
+
options[:show_all].to_s =~ /true/
|
52
|
+
end
|
53
|
+
|
54
|
+
def display_results?
|
55
|
+
model.product_rules.select(&:valid?).present?
|
56
|
+
end
|
57
|
+
|
58
|
+
def base_query
|
59
|
+
return unless model.respond_to?(:query)
|
60
|
+
model.query
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,153 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class ProductViewModel < ApplicationViewModel
|
4
|
+
include CommentableViewModel
|
5
|
+
|
6
|
+
delegate :primary_image, :show_original_range?,
|
7
|
+
:original_min_price, :original_max_price,
|
8
|
+
to: :storefront_view_model, allow_nil: true
|
9
|
+
|
10
|
+
delegate :sell_min_price, :sell_max_price, :on_sale?,
|
11
|
+
:has_prices?, to: :pricing
|
12
|
+
|
13
|
+
def timeline
|
14
|
+
@timeline ||= TimelineViewModel.new(model)
|
15
|
+
end
|
16
|
+
|
17
|
+
def categorization
|
18
|
+
@categorization ||= Categorization.new(model)
|
19
|
+
end
|
20
|
+
|
21
|
+
def categories
|
22
|
+
@categories ||= CategoryViewModel.wrap(categorization.to_models)
|
23
|
+
end
|
24
|
+
|
25
|
+
def rules_categories
|
26
|
+
@rules_categories ||=
|
27
|
+
categories.reject { |c| c.featured_product?(model.id) }
|
28
|
+
end
|
29
|
+
|
30
|
+
def featured_categories
|
31
|
+
@featured_categories ||=
|
32
|
+
categories.select { |c| c.featured_product?(model.id) }
|
33
|
+
end
|
34
|
+
|
35
|
+
def default_category
|
36
|
+
CategoryViewModel.wrap(categorization.default_model)
|
37
|
+
end
|
38
|
+
|
39
|
+
def storefront_view_model
|
40
|
+
@storefront_view_model ||= Storefront::ProductViewModel.wrap(
|
41
|
+
model,
|
42
|
+
@options
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
def pricing
|
47
|
+
@pricing ||= options[:pricing] || Pricing::Collection.new(
|
48
|
+
options[:sku].presence || model.variants.map(&:sku)
|
49
|
+
)
|
50
|
+
end
|
51
|
+
|
52
|
+
def one_price?
|
53
|
+
return false if sell_min_price.nil? || original_min_price.nil?
|
54
|
+
sell_min_price >= original_min_price
|
55
|
+
end
|
56
|
+
|
57
|
+
def show_sell_range?
|
58
|
+
return false if sell_min_price.nil? || sell_max_price.nil?
|
59
|
+
sell_min_price < sell_max_price
|
60
|
+
end
|
61
|
+
|
62
|
+
def pricing?
|
63
|
+
storefront_view_model.present?
|
64
|
+
end
|
65
|
+
|
66
|
+
def variant_sell_price(variant)
|
67
|
+
pricing.for_sku(variant.sku).sell
|
68
|
+
end
|
69
|
+
|
70
|
+
def sales
|
71
|
+
@sales ||= Inventory.total_sales(*model.skus)
|
72
|
+
end
|
73
|
+
|
74
|
+
def available_inventory
|
75
|
+
@available_inventory ||= Inventory.total_available(*model.skus)
|
76
|
+
end
|
77
|
+
|
78
|
+
def ignore_inventory?
|
79
|
+
return @ignore_inventory if defined?(@ignore_inventory)
|
80
|
+
@ignore_inventory ||= inventory.all?(&:ignore?)
|
81
|
+
end
|
82
|
+
|
83
|
+
def templates
|
84
|
+
[
|
85
|
+
[t('workarea.admin.catalog_products.templates.generic'), 'generic']
|
86
|
+
] + Workarea.config.product_templates.reject do |template|
|
87
|
+
template.to_s.include?('test')
|
88
|
+
end.sort.map(&:to_s).map do |template_name|
|
89
|
+
[template_name.titleize, template_name.optionize]
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
def options
|
94
|
+
variants.reduce({}) do |memo, variant|
|
95
|
+
variant.details.each do |name, value|
|
96
|
+
memo[name] ||= []
|
97
|
+
memo[name] << value
|
98
|
+
memo[name].flatten!
|
99
|
+
memo[name].uniq!
|
100
|
+
end
|
101
|
+
|
102
|
+
memo
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def customization_options
|
107
|
+
default_customization_options + configured_customization_options
|
108
|
+
end
|
109
|
+
|
110
|
+
def images_by_option
|
111
|
+
images.asc(:position).group_by do |image|
|
112
|
+
image.option.to_s.titleize
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
def content
|
117
|
+
@content ||= Content.for(model)
|
118
|
+
end
|
119
|
+
|
120
|
+
def storefront_recommendations
|
121
|
+
storefront_view_model.recommendations
|
122
|
+
end
|
123
|
+
|
124
|
+
def insights
|
125
|
+
@insights ||= Insights::ProductViewModel.wrap(model, @options)
|
126
|
+
end
|
127
|
+
|
128
|
+
def inventory
|
129
|
+
@inventory ||=
|
130
|
+
options[:inventory] || Inventory::Collection.new(model.skus)
|
131
|
+
end
|
132
|
+
|
133
|
+
def displayable?
|
134
|
+
active? && inventory.any?(&:displayable?)
|
135
|
+
end
|
136
|
+
|
137
|
+
private
|
138
|
+
|
139
|
+
def default_customization_options
|
140
|
+
[[t('workarea.admin.catalog_products.customizations.none'), nil]]
|
141
|
+
end
|
142
|
+
|
143
|
+
def configured_customization_options
|
144
|
+
Workarea.config.customization_types
|
145
|
+
.map(&:to_s)
|
146
|
+
.map(&:demodulize)
|
147
|
+
.map do |type|
|
148
|
+
[type.titleize, type.underscore]
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Workarea
|
2
|
+
module Admin
|
3
|
+
class RecommendationsViewModel < ApplicationViewModel
|
4
|
+
def sources_display
|
5
|
+
t('workarea.admin.recommendations.sources')
|
6
|
+
end
|
7
|
+
|
8
|
+
def products
|
9
|
+
@products ||=
|
10
|
+
begin
|
11
|
+
models = Catalog::Product.any_in(id: product_ids).to_a
|
12
|
+
|
13
|
+
product_ids.map do |id|
|
14
|
+
model = models.detect { |m| m.id == id }
|
15
|
+
next unless model
|
16
|
+
|
17
|
+
ProductViewModel.new(model)
|
18
|
+
end.compact
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|