Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Improve UI, styles, tidy up CSS, and so on
Damian Legawiec679f02374d95
diff --git a/admin/app/assets/stylesheets/spree/admin/application.scss b/admin/app/assets/stylesheets/spree/admin/application.scssindex e396113bea..1041f56417 100644--- a/admin/app/assets/stylesheets/spree/admin/application.scss+++ b/admin/app/assets/stylesheets/spree/admin/application.scss@@ -19,6 +19,7 @@@import 'components/seo_form';@import 'components/line_items_form';@import 'components/search_picker';+@import 'components/sortable_tree';@import 'plugins/tinymce_custom';@import 'plugins/trix_custom';@@ -34,7 +35,6 @@@import 'shared/base';@import 'shared/forms';-@import 'shared/sortable_tree';@import 'views/dashboard';@import "views/page_builder";diff --git a/admin/app/assets/stylesheets/spree/admin/components/_buttons.scss b/admin/app/assets/stylesheets/spree/admin/components/_buttons.scssindex 43b4e9054f..5ebc142833 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_buttons.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_buttons.scss@@ -1,3 +1,10 @@+// https://github.com/hotwired/turbo/pull/386+button .show-when-disabled { display: none; }+button[disabled] .show-when-disabled { display: initial; }++button .show-when-enabled { display: initial; }+button[disabled] .show-when-enabled { display: none; }+.payment-action-save {@include button-variant(theme-color('success'), theme-color('success'), theme-color('success') );}@@ -108,12 +115,13 @@}.btn-link {- color: $primary !important;+ color: theme-color('primary') !important;border-color: $border-color;&:hover, &:focus {text-decoration: none !important;- background-color: rgba($blue, 0.05) !important;+ background-color: theme-color('action') !important;+ border-color: theme-color('action-border') !important;}}@@ -159,13 +167,12 @@.btn-light {background-color: $white;- background: linear-gradient(rgb(255, 255, 255) 0%, rgb(252, 249, 245) 100%);border-color: $border-color;color: $gray-700;&:hover, &:focus {border-color: $gray-100;- background: linear-gradient(rgb(255, 255, 255) 0%, rgb(245, 245, 245) 100%);+ background-color: $gray-25;color: $gray-900;}diff --git a/admin/app/assets/stylesheets/spree/admin/components/_cards.scss b/admin/app/assets/stylesheets/spree/admin/components/_cards.scssindex 1cdb631b30..1f18112afb 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_cards.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_cards.scss@@ -44,7 +44,7 @@.card-header {display: flex;align-items: center;- min-height: 53px;+ height: 52px;border-bottom-color: $gray-50;.card-title {@@ -74,4 +74,53 @@.card-body .form-group:last-child {margin-bottom: 0;+}++.card-header .arrow {+ @extend .w-auto;+ &:before {+ transition: .3s transform ease-in-out;+ }+}+.card-header .collapsed .arrow:before {+ transform: rotate(-90deg);+}++.collapsable-card {+ @extend .card;+ @extend .overflow-hidden;++ .card-header {+ @extend .p-0;+ }+ .card-header a {+ padding: 0.75rem !important;++ .ti-chevron-down {+ color: $gray-400;+ }++ &:hover {+ text-decoration: none !important;++ .ti-chevron-down {+ color: $gray-900 !important;+ }+ }+ }+ &:hover {+ .card-header a {+ text-decoration: none !important;++ .ti-chevron-down {+ color: $gray-500;+ }+ }+ }+ .card-body {+ border-top: 1px solid $gray-50;+ }+ .card-header {+ border: 0 none;+ }}\ No newline at end of filediff --git a/admin/app/assets/stylesheets/spree/admin/components/_dropdowns.scss b/admin/app/assets/stylesheets/spree/admin/components/_dropdowns.scssindex 56b6589201..34a817b6cc 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_dropdowns.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_dropdowns.scss@@ -7,7 +7,7 @@box-shadow: $dropdown-box-shadow;animation: fadeIn;- animation-duration: 0.2s;+ animation-duration: 0.5s;font-weight: 500;@@ -86,7 +86,8 @@.dropdown-menu {background-color: #272727;- @extend .border-gray-800;+ border: 1px solid $gray-800;+ box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);@extend .text-white;.dropdown-divider {@@ -98,7 +99,7 @@&:hover, &.active {color: $white !important;- background-color: rgba($gray-800, 0.5) !important;+ background-color: $gray-800;i {color: $gray-100 !important;diff --git a/admin/app/assets/stylesheets/spree/admin/components/_navigation.scss b/admin/app/assets/stylesheets/spree/admin/components/_navigation.scssindex ad28a157d9..3fdd9bdc56 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_navigation.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_navigation.scss@@ -50,27 +50,35 @@}.nav-link {- @extend .text-muted;font-weight: 500;+ border: 1px solid transparent;&:hover {- color: theme-color('black') !important;- background-color: $gray-25;+ color: theme-color('primary') !important;+ background-color: theme-color('active');}&.active, &:focus, &:active {- background-color: $gray-25;- color: theme-color('black') !important;+ background-color: $gray-50;+ color: theme-color('primary') !important;+ border: 1px solid $gray-100;}}}}-#header-tabs {+.nav-bare {.nav-item {@extend .mr-4;.nav-link {@extend .px-0;+ color: $gray-600;++ &.active {+ background-color: transparent;+ color: theme-color('primary') !important;+ font-weight: 600;+ }}}}diff --git a/admin/app/assets/stylesheets/spree/admin/shared/_sortable_tree.scss b/admin/app/assets/stylesheets/spree/admin/components/_sortable_tree.scsssimilarity index 100%rename from admin/app/assets/stylesheets/spree/admin/shared/_sortable_tree.scssrename to admin/app/assets/stylesheets/spree/admin/components/_sortable_tree.scssdiff --git a/admin/app/assets/stylesheets/spree/admin/components/_tables.scss b/admin/app/assets/stylesheets/spree/admin/components/_tables.scssindex 693097985b..4dce2a1681 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_tables.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_tables.scss@@ -61,13 +61,27 @@ table.table {text-decoration: none;}}++ &.active {+ td {+ background-color: theme-color('action');+ border-color: theme-color('action-border');+ }+ }}- tr:hover {- background-color: $gray-25;+ tr:hover:not(.active) {+ td {+ background-color: $gray-25;+ }+ }- .btn {- visibility: visible !important;+ tr:last-child {+ td:first-child {+ border-bottom-left-radius: $border-radius-lg;+ }+ td:last-child {+ border-bottom-right-radius: $border-radius-lg;}}}diff --git a/admin/app/assets/stylesheets/spree/admin/components/_variants_form.scss b/admin/app/assets/stylesheets/spree/admin/components/_variants_form.scssindex 431fd6a2cb..90df27e962 100644--- a/admin/app/assets/stylesheets/spree/admin/components/_variants_form.scss+++ b/admin/app/assets/stylesheets/spree/admin/components/_variants_form.scss@@ -167,6 +167,8 @@border-radius: $border-radius;border-top-left-radius: 0;border-top-right-radius: 0;+ border-bottom-left-radius: $border-radius-lg;+ border-bottom-right-radius: $border-radius-lg;}&__body {diff --git a/admin/app/assets/stylesheets/spree/admin/global/_variables.scss b/admin/app/assets/stylesheets/spree/admin/global/_variables.scssindex a67bfa9763..df61c30c66 100644--- a/admin/app/assets/stylesheets/spree/admin/global/_variables.scss+++ b/admin/app/assets/stylesheets/spree/admin/global/_variables.scss@@ -155,35 +155,6 @@ $alert-padding-y: 0.5rem !default;$alert-padding-x: 1rem !default;$alert-border-radius: $border-radius-lg;-label {- font-size: 100%;-}--.blurred {- filter: opacity(50%);-- .form-actions {- display: none;- }-- .cm-editor {- visibility: hidden;- }-}--.custom-checkbox .custom-control-label::before {- border-radius: 0.25rem !important;- border-color: $gray-200;-}---// https://github.com/hotwired/turbo/pull/386-button .show-when-disabled { display: none; }-button[disabled] .show-when-disabled { display: initial; }--button .show-when-enabled { display: initial; }-button[disabled] .show-when-enabled { display: none; }-.border.border-2 {border-width: 2px !important;}diff --git a/admin/app/assets/stylesheets/spree/admin/shared/_base.scss b/admin/app/assets/stylesheets/spree/admin/shared/_base.scssindex 277a0e4c75..719d0f6ef5 100644--- a/admin/app/assets/stylesheets/spree/admin/shared/_base.scss+++ b/admin/app/assets/stylesheets/spree/admin/shared/_base.scss@@ -156,12 +156,12 @@ strong {.shadow-blue {box-shadow: $input-btn-focus-box-shadow;}-.focus-shadow-blue {+.focus-shadow-primary {&:focus, &:focus-within, &:active {box-shadow: $input-btn-focus-box-shadow;}}-.focus-border-blue {+.focus-border-primary {&:focus, &:focus-within, &:active {border-color: $input-focus-border-color;}@@ -176,10 +176,7 @@ strong {}.active {- color: theme-color('black');- background-color: $gray-25;-}-.list-group-item.bg-active {+ color: theme-color('primary');background-color: theme-color('active');}.tab-pane.active {@@ -454,56 +451,6 @@ small,transform: none;}-.card-header .arrow {- @extend .w-auto;- &:before {- transition: .3s transform ease-in-out;- }-}-.card-header .collapsed .arrow:before {- transform: rotate(-90deg);-}--.collapsable-card {- @extend .card;- @extend .overflow-hidden;-- .card-header {- @extend .p-0;- }- .card-header a {- padding: 0.75rem !important;-- .ti-chevron-down {- color: $gray-400;- }-- &:hover {- text-decoration: none !important;-- .ti-chevron-down {- color: $gray-900 !important;- }- }- }- &:hover {- .card-header a {- text-decoration: none !important;-- .ti-chevron-down {- color: $gray-500;- }- }- }- .card-body {- border-top: 1px solid $gray-50;- }- .card-header {- border: 0 none;- }-}--.easepick-wrapper .container.inline {box-shadow: none !important;}@@ -543,6 +490,18 @@ small,}+.blurred {+ filter: opacity(50%);++ .form-actions {+ display: none;+ }++ .cm-editor {+ visibility: hidden;+ }+}+#turbo-spinner {display: none !important;}diff --git a/admin/app/assets/stylesheets/spree/admin/shared/_forms.scss b/admin/app/assets/stylesheets/spree/admin/shared/_forms.scssindex bc95d88380..008721b198 100644--- a/admin/app/assets/stylesheets/spree/admin/shared/_forms.scss+++ b/admin/app/assets/stylesheets/spree/admin/shared/_forms.scss@@ -1,5 +1,11 @@+.custom-checkbox .custom-control-label::before {+ border-radius: 0.25rem !important;+ border-color: $gray-200;+}+label {font-weight: 500;+ font-size: 100%;&:hover {cursor: pointer;diff --git a/admin/app/assets/stylesheets/spree/admin/views/_dashboard.scss b/admin/app/assets/stylesheets/spree/admin/views/_dashboard.scssindex 093f33e576..78ac7a0be7 100644--- a/admin/app/assets/stylesheets/spree/admin/views/_dashboard.scss+++ b/admin/app/assets/stylesheets/spree/admin/views/_dashboard.scss@@ -1,3 +1,16 @@+.analytics-card-tab {+ @extend .rounded;+ @extend .cursor-pointer;+ @extend .p-2;+ @extend .h-100;++ transition: background-color 0.2s ease-in-out;++ &.active, &:hover {+ background-color: $gray-25;+ }+}+.store-preview-link {transition: background-color 0.2s ease-in-out;diff --git a/admin/app/helpers/spree/admin/base_helper.rb b/admin/app/helpers/spree/admin/base_helper.rbindex e39f2fac04..1256208f09 100644--- a/admin/app/helpers/spree/admin/base_helper.rb+++ b/admin/app/helpers/spree/admin/base_helper.rb@@ -224,6 +224,10 @@ module Spreedef path_from_url(url)url.to_s.gsub('https://', '').gsub('http://', '')end++ def allowed_file_types_for_upload+ Rails.application.config.active_storage.web_image_content_types+ endendendenddiff --git a/admin/app/javascript/spree/admin/controllers/bulk_operation_controller.js b/admin/app/javascript/spree/admin/controllers/bulk_operation_controller.jsindex 29ec76e71f..5cf0adfcce 100644--- a/admin/app/javascript/spree/admin/controllers/bulk_operation_controller.js+++ b/admin/app/javascript/spree/admin/controllers/bulk_operation_controller.js@@ -52,20 +52,20 @@ export default class extends CheckboxSelectAll {removeRowBackground() {this.element.querySelectorAll('tr').forEach((row) => {- row.classList.remove('bg-active')+ row.classList.remove('active')})}toggleRowBackground() {this.element.querySelectorAll('tr').forEach((row) => {- row.classList.remove('bg-active')+ row.classList.remove('active')})- this.element.querySelectorAll('.row.bg-active').forEach((row) => {- row.classList.remove('bg-active')+ this.element.querySelectorAll('.row.active').forEach((row) => {+ row.classList.remove('active')})this.checked.forEach((checkbox) => {- if (checkbox.closest('tr')) checkbox.closest('tr').classList.add('bg-active')- else if (checkbox.closest('.row')) checkbox.closest('.row').classList.add('bg-active')+ if (checkbox.closest('tr')) checkbox.closest('tr').classList.add('active')+ else if (checkbox.closest('.row')) checkbox.closest('.row').classList.add('active')})}diff --git a/admin/app/views/active_storage/_upload_form.html.erb b/admin/app/views/active_storage/_upload_form.html.erbindex e7d440b970..c3352cf805 100644--- a/admin/app/views/active_storage/_upload_form.html.erb+++ b/admin/app/views/active_storage/_upload_form.html.erb@@ -36,7 +36,7 @@<div class="d-flex flex-column justify-content-center align-items-center h-100 p-5 text-muted rounded-lg <%= css %>" data-active-storage-upload-target="placeholder" <% if form.object.send(field_name).attached? && form.object.send(field_name).variable? %>style="display: none !important"<% end %>><%= icon('upload', class: 'mr-0 mb-3', style: 'font-size: 2rem;') %>- <%= Spree.t(:upload_image) %>+ <%= Spree.t('admin.upload_new_asset') %><% if crop %><span class="text-muted ml-2 text-center small mt-2">diff --git a/admin/app/views/spree/admin/coupon_codes/index.html.erb b/admin/app/views/spree/admin/coupon_codes/index.html.erbindex 83bf9920d1..2c2fcac8c8 100644--- a/admin/app/views/spree/admin/coupon_codes/index.html.erb+++ b/admin/app/views/spree/admin/coupon_codes/index.html.erb@@ -10,7 +10,7 @@<div class="d-flex align-items-center justify-content-between"><div class="dropdown h-100"><button class="btn btn-light h-100 dropdown-toggle" type="button" data-toggle="dropdown" data-display="static" data-flip="false" aria-expanded="false">- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t(:show) %></span><%= Spree.t(:all) if (params[:q] || {}).values_at(:state_eq).all?(&:blank?) %>diff --git a/admin/app/views/spree/admin/custom_domains/_form.html.erb b/admin/app/views/spree/admin/custom_domains/_form.html.erbindex 428eeea68b..af719fde20 100644--- a/admin/app/views/spree/admin/custom_domains/_form.html.erb+++ b/admin/app/views/spree/admin/custom_domains/_form.html.erb@@ -2,9 +2,9 @@<div class="card-body"><div class="form-group"><%= f.label :url, Spree.t(:domain) %>- <div class="form-control d-flex align-items-center py-0 focus-shadow-blue focus-border-blue">+ <div class="form-control d-flex align-items-center py-0 focus-shadow-primary focus-border-primary"><span class="text-muted">https://</span>- <%= f.text_field :url, class: 'form-control-plaintext pr-0 pl-1', autofocus: true, required: true %>+ <%= f.text_field :url, class: 'form-control-plaintext pr-0 pl-1', autofocus: f.object.new_record?, required: true %></div><%= f.error_message_on :url %></div>diff --git a/admin/app/views/spree/admin/custom_domains/edit.html.erb b/admin/app/views/spree/admin/custom_domains/edit.html.erbindex 22275b01aa..584c41c31a 100644--- a/admin/app/views/spree/admin/custom_domains/edit.html.erb+++ b/admin/app/views/spree/admin/custom_domains/edit.html.erb@@ -1,6 +1,6 @@<% content_for :page_title do %><%= page_header_back_button collection_url %>- Edit custom domain+ <%= @custom_domain.url %><% end %><%= render partial: 'spree/admin/shared/error_messages', locals: { target: @object } %>diff --git a/admin/app/views/spree/admin/custom_domains/index.html.erb b/admin/app/views/spree/admin/custom_domains/index.html.erbindex 6f3c14f469..0b7bf9f8ff 100644--- a/admin/app/views/spree/admin/custom_domains/index.html.erb+++ b/admin/app/views/spree/admin/custom_domains/index.html.erb@@ -4,6 +4,7 @@<%= content_for(:page_title) do %><%= Spree.t(:domains) %><% end %>+<div class="card-lg"><h5 class="mb-3">Internal URL</h5><div class="row mb-4">@@ -14,7 +15,7 @@</div><div class="col-lg-7 offset-lg-1"><%= form_for current_store, url: spree.admin_store_path(current_store), data: { turbo: false, controller: 'enable-button', 'enable-button-disable-when-not-changed-value': true } do |f| %>- <div class="form-control d-flex align-items-center py-0 focus-shadow-blue focus-border-blue mb-3 <% if current_store.custom_domains.any? %>disabled<% end %>">+ <div class="form-control d-flex align-items-center py-0 focus-shadow-primary focus-border-primary mb-3 <% if current_store.custom_domains.any? %>disabled<% end %>"><%= f.text_field :code, class: 'form-control-plaintext pl-0', data: { enable_button_target: 'input' }, required: true, disabled: current_store.custom_domains.any? %><span>.<%= Spree.root_domain %></span></div>@@ -29,8 +30,7 @@<div class="row"><div class="col-lg-4"><p class="text-muted">- If you already own a domain name (like yourname.com), you can set your Vendo store up to live at that domain.- If you'd prefer, you can also use a subdomain on your site (for example, shop.yourname.com).+ Connect your domain or subdomain to your store.</p></div><div class="col-lg-7 offset-lg-1">diff --git a/admin/app/views/spree/admin/custom_domains/new.html.erb b/admin/app/views/spree/admin/custom_domains/new.html.erbindex 9313076682..391f6482c6 100644--- a/admin/app/views/spree/admin/custom_domains/new.html.erb+++ b/admin/app/views/spree/admin/custom_domains/new.html.erb@@ -1,6 +1,6 @@<% content_for :page_title do %><%= page_header_back_button collection_url %>- Setup a new custom domain for your store+ <%= Spree.t(:new_custom_domain) %><% end %><%= render partial: 'spree/admin/shared/error_messages', locals: { target: @object } %>diff --git a/admin/app/views/spree/admin/dashboard/_store_preview.html.erb b/admin/app/views/spree/admin/dashboard/_store_preview.html.erbindex de5fd46f49..fe38848d54 100644--- a/admin/app/views/spree/admin/dashboard/_store_preview.html.erb+++ b/admin/app/views/spree/admin/dashboard/_store_preview.html.erb@@ -26,11 +26,11 @@<% end %><div class="card-body pt-2">- <div class="flex my-2 p-1 w-100 rounded bg-light" data-controller="clipboard" data-clipboard-success-content-value="Copied!">+ <div class="flex my-2 p-1 w-100 rounded border" data-controller="clipboard" data-clipboard-success-content-value="Copied!"><% if current_store.default_custom_domain&.active? %>- <%= text_field_tag :custom_domain, current_store.default_custom_domain.url, readonly: true, class: 'form-control-plaintext py-0 text-muted', data: { clipboard_target: 'source' } %>+ <%= text_field_tag :custom_domain, current_store.default_custom_domain.url, readonly: true, class: 'form-control-plaintext py-0', data: { clipboard_target: 'source' } %><% else %>- <%= text_field_tag :domain, current_store.url, readonly: true, class: 'form-control-plaintext py-0 text-muted', data: { clipboard_target: 'source' } %>+ <%= text_field_tag :domain, current_store.url, readonly: true, class: 'form-control-plaintext py-0', data: { clipboard_target: 'source' } %><% end %><button data-action="clipboard#copy" data-clipboard-target="button" class="btn btn-sm py-1 hover-gray">Copydiff --git a/admin/app/views/spree/admin/dashboard/_top_products.html.erb b/admin/app/views/spree/admin/dashboard/_top_products.html.erbindex f466217eba..90a7178337 100644--- a/admin/app/views/spree/admin/dashboard/_top_products.html.erb+++ b/admin/app/views/spree/admin/dashboard/_top_products.html.erb@@ -15,10 +15,10 @@<th><%= Spree.t(:product) %></th>- <% unless @vendor %>- <th>- <%= Spree.t(:vendor) %>- </th>+ <% if defined?(Spree::Vendor) && !@vendor %>+ <th>+ <%= Spree.t(:vendor) %>+ </th><% end %><th><%= Spree.t(:price) %>diff --git a/admin/app/views/spree/admin/dashboard/analytics.html.erb b/admin/app/views/spree/admin/dashboard/analytics.html.erbindex d382ad86be..0ce815a6a2 100644--- a/admin/app/views/spree/admin/dashboard/analytics.html.erb+++ b/admin/app/views/spree/admin/dashboard/analytics.html.erb@@ -9,7 +9,7 @@<div class="card-header d-block border-0 h-auto p-2"><div class="row"><div class="col-6 col-lg-4 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100 active" data-tabs-target="tab" data-action="click->tabs#change">+ <div class="analytics-card-tab active" data-tabs-target="tab" data-action="click->tabs#change"><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Total Sales</span><span class="font-size-lg text-dark font-weight-bold mt-1">@@ -23,7 +23,7 @@</div><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" data-tabs-target="tab" data-action="click->tabs#change">+ <div class="analytics-card-tab" data-tabs-target="tab" data-action="click->tabs#change"><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Avg. Order Value</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @orders_average %></span>@@ -35,7 +35,7 @@</div><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" data-tabs-target="tab" data-action="click->tabs#change">+ <div class="analytics-card-tab" data-tabs-target="tab" data-action="click->tabs#change"><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Total Orders</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @orders_total %></span>@@ -47,7 +47,7 @@</div><% if @visits_total && @visits_growth_rate %><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" data-tabs-target="tab" data-action="click->tabs#change">+ <div class="analytics-card-tab" data-tabs-target="tab" data-action="click->tabs#change"><div class="d-flex justify-content-center flex-column"><span class="font-size-sm text-muted">Visits</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @visits_total %></span>@@ -61,7 +61,7 @@<% if @audience_total && @audience_growth_rate %><div class="col-6 col-lg-2 pl-0">- <div class="rounded cursor-pointer p-2 hover-light h-100" data-tabs-target="tab" data-action="click->tabs#change">+ <div class="analytics-card-tab" data-tabs-target="tab" data-action="click->tabs#change"><div class="d-flex justify-content-center flex-column"><span class="font-size-sm text-muted">Sign-ups</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @audience_total %></span>diff --git a/admin/app/views/spree/admin/dashboard/show.html.erb b/admin/app/views/spree/admin/dashboard/show.html.erbindex fbd529271c..f049b613fc 100644--- a/admin/app/views/spree/admin/dashboard/show.html.erb+++ b/admin/app/views/spree/admin/dashboard/show.html.erb@@ -16,7 +16,8 @@<%= hidden_field_tag :vendor_id, @vendor.id if @vendor.present? %><%= render 'spree/admin/shared/calendar_range_picker',date_from_value: params[:date_from] || 1.month.ago.beginning_of_month,- date_to_value: params[:date_to] || 1.month.ago.end_of_month %>+ date_to_value: params[:date_to] || 1.month.ago.end_of_month,+ css_classes: "btn btn-sm border hover-light d-inline-flex align-items-center h-100 dropdown-toggle" %><% end %></div><%= render 'analytics' %>diff --git a/admin/app/views/spree/admin/exports/new.html.erb b/admin/app/views/spree/admin/exports/new.html.erbindex b2757e314f..1aabf4e450 100644--- a/admin/app/views/spree/admin/exports/new.html.erb+++ b/admin/app/views/spree/admin/exports/new.html.erb@@ -17,7 +17,7 @@<%= f.label :record_selection, for: :export_record_selection_filtered, class: 'custom-control-label' do %><%= Spree.t(:filtered_records) %><br />- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t('admin.export_only_filtered_records') %></span><% end %>@@ -27,7 +27,7 @@<%= f.label :record_selection, for: :export_record_selection_all, class: 'custom-control-label' do %><%= Spree.t(:all) %><br />- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t('admin.export_all') %></span><% end %>diff --git a/admin/app/views/spree/admin/option_types/_form.html.erb b/admin/app/views/spree/admin/option_types/_form.html.erbindex f1b6581914..c46e994bbc 100644--- a/admin/app/views/spree/admin/option_types/_form.html.erb+++ b/admin/app/views/spree/admin/option_types/_form.html.erb@@ -1,6 +1,6 @@<div class="card mb-4"><div class="card-header">- <h5 class="mb-0"><%= Spree.t(:general_information) %></h5>+ <h5 class="card-title"><%= Spree.t(:general_information) %></h5></div><div class="card-body" data-controller="slug-form"><div class="row mb-3">@@ -50,7 +50,7 @@<div class="card mb-4"><div class="card-header d-flex justify-content-between align-items-center">- <h5 class="mb-0"><%= Spree.t(:option_values) %></h5>+ <h5 class="card-title"><%= Spree.t(:option_values) %></h5></div><div class="card-body p-0"><div class="table-responsive">diff --git a/admin/app/views/spree/admin/orders/_table_filter_dropdown.html.erb b/admin/app/views/spree/admin/orders/_table_filter_dropdown.html.erbindex 80b4524464..dcffe2532a 100644--- a/admin/app/views/spree/admin/orders/_table_filter_dropdown.html.erb+++ b/admin/app/views/spree/admin/orders/_table_filter_dropdown.html.erb@@ -1,7 +1,7 @@<% if controller_name == 'orders' %><div class="dropdown h-100 mr-2"><button class="btn btn-light h-100 dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t(:show) %></span><%= order_filter_dropdown_value %>diff --git a/admin/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb b/admin/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erbindex d88075e2b5..0dfc7f19ce 100644--- a/admin/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb+++ b/admin/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb@@ -1,4 +1,4 @@-<div class="position-fixed border-top px-3 py-2 d-flex bg-light bottom-bar" style="bottom: 0px; left: 0px; width: 344px; z-index: 9999">+<div class="position-fixed border-top px-3 py-2 d-flex bottom-bar" style="bottom: 0px; left: 0px; width: 344px; z-index: 9999"><% if @page_block.can_be_deleted? %><div data-action="click->page-builder#hideSidebarMobile"><%= link_to_delete(@page_block, url: spree.admin_page_section_block_path(@page_block.section, @page_block)) %>diff --git a/admin/app/views/spree/admin/pages/_form.html.erb b/admin/app/views/spree/admin/pages/_form.html.erbindex b46fd8dc54..c7ed10024c 100644--- a/admin/app/views/spree/admin/pages/_form.html.erb+++ b/admin/app/views/spree/admin/pages/_form.html.erb@@ -10,7 +10,7 @@<div class="card-body"><div class="form-group"><%= f.label :name, Spree.t(:name) %>- <%= f.text_field :name, class: 'form-control', required: true, data: { slug_form_target: :name, action: 'slug-form#updateUrlFromName', seo_form_target: 'sourceTitleInput' } %>+ <%= f.text_field :name, class: 'form-control', required: true, data: { slug_form_target: :name, action: 'slug-form#updateUrlFromName', seo_form_target: 'sourceTitleInput' }, autofocus: true %></div></div></div>diff --git a/admin/app/views/spree/admin/payment_methods/_form.html.erb b/admin/app/views/spree/admin/payment_methods/_form.html.erbindex bbdb514231..3aa7ef077d 100644--- a/admin/app/views/spree/admin/payment_methods/_form.html.erb+++ b/admin/app/views/spree/admin/payment_methods/_form.html.erb@@ -8,7 +8,7 @@<div class="col-12 col-md-6"><div class="card mb-4"><div class="card-header">- <h5 class="mb-0"><%= Spree.t(:payment_provider_settings) %></h5>+ <h5 class="card-title"><%= Spree.t(:payment_provider_settings) %></h5></div><div class="card-body"><%= preference_fields(@object, f) unless preference_fields(@object, f).empty? %>@@ -24,7 +24,7 @@<div class="col-12 col-md-6"><div class="card mb-4"><div class="card-header">- <h5 class="mb-0"><%= Spree.t(:display_settings) %></h5>+ <h5 class="card-title"><%= Spree.t(:display_settings) %></h5></div><div class="card-body"><div class="form-group">diff --git a/admin/app/views/spree/admin/post_categories/_form.html.erb b/admin/app/views/spree/admin/post_categories/_form.html.erbindex d2eae80e99..ce43553bc6 100644--- a/admin/app/views/spree/admin/post_categories/_form.html.erb+++ b/admin/app/views/spree/admin/post_categories/_form.html.erb@@ -1,18 +1,14 @@-<div class="row">- <div class="col-lg-12">- <div class="card mb-4">- <div class="card-body">- <div class="form-group">- <%= f.label :title, Spree.t(:title) %>- <%= f.text_field :title, class: "form-control", required: true %>- </div>+<div class="card mb-4">+ <div class="card-body">+ <div class="form-group">+ <%= f.label :title, Spree.t(:title) %>+ <%= f.text_field :title, class: "form-control", required: true, autofocus: f.object.new_record? %>+ </div>- <div class="form-group">- <%= f.label :description, Spree.t(:description) %>- <div class="trix-container">- <%= f.rich_text_area :description %>- </div>- </div>+ <div class="form-group">+ <%= f.label :description, Spree.t(:description) %>+ <div class="trix-container">+ <%= f.rich_text_area :description %></div></div></div>diff --git a/admin/app/views/spree/admin/post_categories/edit.html.erb b/admin/app/views/spree/admin/post_categories/edit.html.erbindex 256d47ddb7..d48967829c 100644--- a/admin/app/views/spree/admin/post_categories/edit.html.erb+++ b/admin/app/views/spree/admin/post_categories/edit.html.erb@@ -7,7 +7,7 @@<%= form_for [:admin, @post_category] do |f| %><div class="row">- <div class="col-lg-6">+ <div class="col-lg-8"><%= render 'form', f: f %><%= render 'spree/admin/shared/edit_resource_links', f: f %></div>diff --git a/admin/app/views/spree/admin/post_categories/new.html.erb b/admin/app/views/spree/admin/post_categories/new.html.erbindex 78a5bb6f9f..0668996ba9 100644--- a/admin/app/views/spree/admin/post_categories/new.html.erb+++ b/admin/app/views/spree/admin/post_categories/new.html.erb@@ -7,7 +7,7 @@<%= form_for [:admin, @post_category] do |f| %><div class="row">- <div class="col-lg-6">+ <div class="col-lg-8"><%= render 'form', f: f %><%= render 'spree/admin/shared/new_resource_links' %></div>diff --git a/admin/app/views/spree/admin/posts/_form.html.erb b/admin/app/views/spree/admin/posts/_form.html.erbindex 13c8fedb52..adb29b2af4 100644--- a/admin/app/views/spree/admin/posts/_form.html.erb+++ b/admin/app/views/spree/admin/posts/_form.html.erb@@ -7,6 +7,7 @@<%= f.text_field :title,class: "form-control",required: true,+ autofocus: true,data: {seo_form_target: 'sourceTitleInput',slug_form_target: 'name',@@ -35,8 +36,8 @@<div class="col-lg-4"><div class="card mb-4">- <div class="card-body">- <div class="form-group mb-0">+ <div class="card-body pb-0">+ <div class="form-group"><%= f.label :image, Spree.t(:featured_image) %><%= render 'active_storage/upload_form', form: f, field_name: :image, width: 1200, height: 600, crop: true, css: 'flex-col' %></div>diff --git a/admin/app/views/spree/admin/products/_table_filter_dropdown.html.erb b/admin/app/views/spree/admin/products/_table_filter_dropdown.html.erbindex 67968e05a3..927c467c67 100644--- a/admin/app/views/spree/admin/products/_table_filter_dropdown.html.erb+++ b/admin/app/views/spree/admin/products/_table_filter_dropdown.html.erb@@ -1,6 +1,6 @@<div class="dropdown h-100 mr-2"><button class="btn btn-light h-100 dropdown-toggle" type="button" data-toggle="dropdown" data-display="static" data-flip="false" aria-expanded="false">- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t(:show) %></span><% if product_filter_status_dropdown_value == Spree.t('admin.products.all_statuses') && product_filter_stock_dropdown_value == Spree.t('admin.products.any_stock') %>diff --git a/admin/app/views/spree/admin/products/form/_base.html.erb b/admin/app/views/spree/admin/products/form/_base.html.erbindex bc2babd6f3..fa9f9b8579 100644--- a/admin/app/views/spree/admin/products/form/_base.html.erb+++ b/admin/app/views/spree/admin/products/form/_base.html.erb@@ -2,7 +2,7 @@<div class="card-body"><div class="form-group"><%= f.label :name, Spree.t(:name) %>- <%= f.text_field :name, class: 'form-control', required: true, data: { seo_form_target: 'sourceTitleInput', slug_form_target: :name, action: 'slug-form#updateUrlFromName' } %>+ <%= f.text_field :name, class: 'form-control', required: true, autofocus: f.object.new_record?, data: { seo_form_target: 'sourceTitleInput', slug_form_target: :name, action: 'slug-form#updateUrlFromName' } %><%= f.error_message_on :name %></div>diff --git a/admin/app/views/spree/admin/products/form/variants/_variant_template.html.erb b/admin/app/views/spree/admin/products/form/variants/_variant_template.html.erbindex 2eae48acc0..b638f6748b 100644--- a/admin/app/views/spree/admin/products/form/variants/_variant_template.html.erb+++ b/admin/app/views/spree/admin/products/form/variants/_variant_template.html.erb@@ -17,7 +17,7 @@</div><div class="variants-table__body__cell column-price"><% supported_currencies.each_with_index do |currency, i| %>- <div class="form-control align-items-center py-0 focus-shadow-blue focus-border-blue mr-2 price-input-container <%= current_currency != currency ? 'd-none' : 'd-flex' %>" <%= !can_manage_prices ? 'readonly' : '' %>>+ <div class="form-control align-items-center py-0 focus-shadow-primary focus-border-primary mr-2 price-input-container <%= current_currency != currency ? 'd-none' : 'd-flex' %>" <%= !can_manage_prices ? 'readonly' : '' %>><%= text_field_tag "product[variants_attributes][prices_attributes][#{i}][amount]", '', class: 'form-control-plaintext px-0', data: { slot: "[prices_attributes][#{currency}][amount]_input", action: 'variants-form#updatePrice', currency: currency.to_s }, readonly: !can_manage_prices %><span><%= currency_symbol(currency) %></span></div>diff --git a/admin/app/views/spree/admin/products/index.html.erb b/admin/app/views/spree/admin/products/index.html.erbindex ed7474337f..2b733f2889 100644--- a/admin/app/views/spree/admin/products/index.html.erb+++ b/admin/app/views/spree/admin/products/index.html.erb@@ -11,3 +11,8 @@<%= render 'list' %><% end %></div>++<p class="text-muted small text-center py-2 px-3 mt-3 rounded-pill mx-auto d-flex-inline">+ Learn more about+ <%= external_link_to 'managing products', 'https://spreecommerce.org/docs/user/manage-products', class: 'text-decoration-none' %>+</p>\ No newline at end of filediff --git a/admin/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb b/admin/app/views/spree/admin/promotions/_table_filter_dropdown.html.erbindex 56d699417d..cce867d0cb 100644--- a/admin/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb+++ b/admin/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb@@ -1,6 +1,6 @@<div class="dropdown h-100 mr-2"><button class="btn btn-light h-100 dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t(:status) %></span><%= promotion_filter_dropdown_value %>diff --git a/admin/app/views/spree/admin/promotions/form/_kind.html.erb b/admin/app/views/spree/admin/promotions/form/_kind.html.erbindex 4779ef1d9f..6f8d019180 100644--- a/admin/app/views/spree/admin/promotions/form/_kind.html.erb+++ b/admin/app/views/spree/admin/promotions/form/_kind.html.erb@@ -7,7 +7,7 @@<%= f.radio_button :multi_codes, false, data: { toggle: :collapse, target: '#single-code' }, class: 'custom-control-input' %><%= f.label :multi_codes_false, class: 'custom-control-label' do %>One code for all customers- <span class="form-text text-muted font-weight-normal">+ <span class="form-text text-muted font-weight-normal mr-1">You can limit the number of times this code can be used.</span><% end %>@@ -20,7 +20,7 @@<%= f.radio_button :multi_codes, true, data: { toggle: :collapse, target: '#multi-codes' }, class: 'custom-control-input' %><%= f.label :multi_codes_true, class: 'custom-control-label' do %>Generate unique codes- <span class="form-text text-muted font-weight-normal">+ <span class="form-text text-muted font-weight-normal mr-1">These codes are generated automatically and can be downloaded as a CSV file. Codes are unique and can only be used once.</span><% end %>diff --git a/admin/app/views/spree/admin/properties/_form.html.erb b/admin/app/views/spree/admin/properties/_form.html.erbindex 6a547e3f4b..703b276015 100644--- a/admin/app/views/spree/admin/properties/_form.html.erb+++ b/admin/app/views/spree/admin/properties/_form.html.erb@@ -1,12 +1,12 @@<div data-controller="slug-form"><div class="form-group"><%= f.label :presentation, raw(Spree.t(:presentation) + required_span_tag) %>- <%= f.text_field :presentation, class: 'form-control', data: { slug_form_target: :name, action: 'input->slug-form#updateUrlFromName' } %>+ <%= f.text_field :presentation, class: 'form-control', data: { slug_form_target: :name, action: 'input->slug-form#updateUrlFromName' }, required: true, autofocus: f.object.new_record? %><%= f.error_message_on :presentation %></div><div class="form-group"><%= f.label :name, Spree.t(:internal_name) %>- <%= f.text_field :name, class: 'form-control', data: { slug_form_target: :url } %>+ <%= f.text_field :name, class: 'form-control', data: { slug_form_target: :url }, required: true %><%= f.error_message_on :name %></div><div class="form-group">diff --git a/admin/app/views/spree/admin/properties/_property.html.erb b/admin/app/views/spree/admin/properties/_property.html.erbindex bacd51f9a3..904176bc74 100644--- a/admin/app/views/spree/admin/properties/_property.html.erb+++ b/admin/app/views/spree/admin/properties/_property.html.erb@@ -9,7 +9,7 @@<%= link_to property.presentation, spree.edit_admin_property_path(property), class: 'text-decoration-none d-flex align-items-center font-weight-bold text-dark', data: { row_link_target: :link } %></td><td class="w-20 cursor-pointer" data-action="click->row-link#openLink">- <%= property.kind.humanize %>+ <span class="badge badge-light"><%= property.kind.humanize %></span></td><td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= property.products.count %>diff --git a/admin/app/views/spree/admin/reports/new.html.erb b/admin/app/views/spree/admin/reports/new.html.erbindex 9a04b73a11..12cee70bf1 100644--- a/admin/app/views/spree/admin/reports/new.html.erb+++ b/admin/app/views/spree/admin/reports/new.html.erb@@ -3,13 +3,13 @@<%= Spree.t("report_names.#{params[:type]}") %><% end %>- <%= content_for :page_actions do %>+<%= content_for :page_actions do %><%= form_for @report, url: spree.admin_reports_path, as: :report, html: { class: 'd-inline-block' } do |f| %><%= f.hidden_field :type %><%= f.hidden_field :date_from %><%= f.hidden_field :date_to %><%= f.hidden_field :currency %>- <button class="btn btn-light with-tip" title="Download report as CSV file">+ <button class="btn btn-primary with-tip" title="Download report as CSV file"><%= icon('download') %><%= Spree.t(:download) %></button>@@ -24,12 +24,12 @@<%= render 'spree/admin/shared/calendar_range_picker',date_from_value: @report.date_from,date_to_value: @report.date_to,- css_classes: 'custom-select d-flex cursor-default' %>+ css_classes: 'custom-select d-flex cursor-default bg-transparent' %><div class="form-group"><%= select_tag :currency,options_for_select(current_store.supported_currencies_list, @report.currency),- class: 'custom-select',+ class: 'custom-select bg-transparent',data: { action: 'change->auto-submit#submit' } %></div></div>diff --git a/admin/app/views/spree/admin/return_authorizations/_filters.html.erb b/admin/app/views/spree/admin/return_authorizations/_filters.html.erbindex 787ac57a3a..d50a4692f0 100644--- a/admin/app/views/spree/admin/return_authorizations/_filters.html.erb+++ b/admin/app/views/spree/admin/return_authorizations/_filters.html.erb@@ -9,7 +9,7 @@data-toggle="dropdown"aria-expanded="false">- <span class="text-muted font-weight-normal">+ <span class="text-muted font-weight-normal mr-1"><%= Spree.t(:show) %>:</span><% if params.dig(:q, :state_eq).present? %>diff --git a/admin/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erb b/admin/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erbindex 53457020a4..d0c1b0bfd4 100644--- a/admin/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erb+++ b/admin/app/views/spree/admin/shared/_analytics_loader_skeleton.html.erb@@ -2,7 +2,7 @@<div class="card-header d-block border-0 h-auto p-2"><div class="row"><div class="col-6 col-lg-4 pr-1">- <div class="rounded cursor-pointer p-2 hover-light h-100 active" style="min-height: 82px;">+ <div class="analytics-card-tab active" style="min-height: 82px;"><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Total Sales</span><span class="font-size-lg text-dark font-weight-bold mt-1">@@ -16,7 +16,7 @@</div><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" >+ <div class="analytics-card-tab" ><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Avg. Order Value</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @orders_average %></span>@@ -28,7 +28,7 @@</div><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" >+ <div class="analytics-card-tab" ><div class="d-flex justify-content-center flex-column mb-3 mb-lg-0"><span class="font-size-sm text-muted">Total Orders</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @orders_total %></span>@@ -40,7 +40,7 @@</div><% if defined?(Ahoy) %><div class="col-6 col-lg-2 pl-0 pr-2">- <div class="rounded cursor-pointer p-2 hover-light h-100" >+ <div class="analytics-card-tab" ><div class="d-flex justify-content-center flex-column"><span class="font-size-sm text-muted">Visits</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @visits_total %></span>@@ -53,7 +53,7 @@<% end %><div class="col-6 col-lg-2 pl-0">- <div class="rounded cursor-pointer p-2 hover-light h-100" >+ <div class="analytics-card-tab" ><div class="d-flex justify-content-center flex-column"><span class="font-size-sm text-muted">Sign-ups</span><span class="font-size-lg text-dark font-weight-bold mt-1 me-3"><%= @audience_total %></span>diff --git a/admin/app/views/spree/admin/shared/_content_header.html.erb b/admin/app/views/spree/admin/shared/_content_header.html.erbindex 4f0c0d7262..d5bc17cfba 100644--- a/admin/app/views/spree/admin/shared/_content_header.html.erb+++ b/admin/app/views/spree/admin/shared/_content_header.html.erb@@ -62,7 +62,7 @@</div><% end %><% if content_for?(:page_tabs) %>- <ul id="header-tabs" class="nav nav-pills flex-nowrap overflow-auto w-100 mb-3">+ <ul class="nav nav-bare flex-nowrap overflow-auto w-100 mb-3"><%= yield :page_tabs %></ul><% end %>diff --git a/admin/app/views/spree/admin/shared/_filters_search_bar.html.erb b/admin/app/views/spree/admin/shared/_filters_search_bar.html.erbindex 2b620cb56e..c11ba4dd51 100644--- a/admin/app/views/spree/admin/shared/_filters_search_bar.html.erb+++ b/admin/app/views/spree/admin/shared/_filters_search_bar.html.erb@@ -2,7 +2,7 @@<% badge_name ||= label %><% placeholder ||= [Spree.t(:search), controller_name.humanize.downcase].join(' ') %>-<div class="form-control d-flex align-items-center py-0 focus-shadow-blue focus-border-blue flex-grow-1 mb-3 mb-lg-0 w-auto">+<div class="form-control d-flex align-items-center py-0 focus-shadow-primary focus-border-primary flex-grow-1 mb-3 mb-lg-0 w-auto"><%= icon "search", class: "mr-3 text-muted" %><%= search_field_tag "q[#{param}]",params.dig(:q, param),diff --git a/admin/app/views/spree/admin/shared/_head.html.erb b/admin/app/views/spree/admin/shared/_head.html.erbindex 92538c6566..a9f9a5c998 100644--- a/admin/app/views/spree/admin/shared/_head.html.erb+++ b/admin/app/views/spree/admin/shared/_head.html.erb@@ -18,9 +18,8 @@-<% if defined?(current_store) && current_store.present? %><%= current_store.name.capitalize %>- <% else %>- Spree<% end %>+ - Spree Commerce</title><link rel="preconnect" href="https://fonts.googleapis.com">diff --git a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb b/admin/app/views/spree/admin/shared/_user_dropdown.html.erbindex 09cf66947d..9dead386e0 100644--- a/admin/app/views/spree/admin/shared/_user_dropdown.html.erb+++ b/admin/app/views/spree/admin/shared/_user_dropdown.html.erb@@ -12,7 +12,7 @@</div><%= icon 'dots-vertical', class: 'mr-0 ml-2 mb-0 d-none d-lg-block' %></button>- <div class="dropdown-menu dropdown-menu-right w-100 shadow-sm mb-1 mt-1 mt-lg-0">+ <div class="dropdown-menu dropdown-menu-dark dropdown-menu-right w-100 mb-1 mt-1 mt-lg-0"><%= link_to_with_icon 'user-scan', Spree.t('admin.edit_profile'), spree.edit_admin_profile_path, class: 'dropdown-item' %><% if enterprise_edition? && try_spree_current_user.respond_to?(:accounts) && try_spree_current_user.accounts.count > 1 %>diff --git a/admin/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb b/admin/app/views/spree/admin/shared/sidebar/_orders_nav.html.erbindex b220bf59b0..7ae117ffda 100644--- a/admin/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb+++ b/admin/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb@@ -5,7 +5,7 @@<%= Spree.t(:orders) %><% if ready_to_ship_orders_count&.positive? %>- <span class="badge ml-auto">+ <span class="badge ml-auto"><%= ready_to_ship_orders_count %></span><% end %>@@ -16,7 +16,7 @@<li class="nav-item"><%= active_link_to spree.admin_orders_path(q: {shipment_state_not_in: [:shipped, :canceled]}), class: 'nav-link d-flex align-items-center', active: params.dig(:q, :shipment_state_not_in).present? do %><span><%= Spree.t('admin.orders.orders_to_fulfill') %></span>- <span class="badge ml-auto">+ <span class="badge ml-auto"><%= ready_to_ship_orders_count %></span><% end %>diff --git a/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb b/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erbindex 090078dc8d..ee1813d7d6 100644--- a/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb+++ b/admin/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb@@ -13,7 +13,7 @@</span><%= icon 'selector', class: 'mr-0 ml-2 mb-0 text-muted' %></button>- <div class="dropdown-menu w-100 shadow-sm border-gray-900 font-size-plus" style="min-width: 200px">+ <div class="dropdown-menu w-100 font-size-plus" style="min-width: 200px"><%= link_to current_store.formatted_url_or_custom_domain, class: 'dropdown-item', target: '_blank' do %><%= icon 'eye' %><%= Spree.t(:view_store) %>diff --git a/admin/app/views/spree/admin/shared/sidebar/_store_nav.html.erb b/admin/app/views/spree/admin/shared/sidebar/_store_nav.html.erbindex fec0372f6e..6fb44e32e7 100644--- a/admin/app/views/spree/admin/shared/sidebar/_store_nav.html.erb+++ b/admin/app/views/spree/admin/shared/sidebar/_store_nav.html.erb@@ -175,8 +175,10 @@<% if can?(:manage, current_store) && !enterprise_edition? %><div class="nav nav-dark flex-column mt-2" id="plan-nav" data-turbo-permanent>- <div class="bg-transparent border-top border-dark pt-2 pl-1 d-flex align-items-center justify-content-between">- <span class="font-weight-light font-size-sm text-white with-tip" title="Spree v<%= Spree.version %>">Community Edition</span>+ <div class="bg-transparent border-top border-dark pt-2 pl-2 d-flex align-items-center justify-content-between">+ <span class="font-weight-light font-size-sm text-white with-tip text-muted" title="Spree v<%= Spree.version %>">+ Community Edition+ </span><%= link_to_with_icon 'bolt', 'Upgrade', 'https://spreecommerce.org/pricing/', class: 'btn btn-sm btn-dark with-tip', target: '_blank', title: 'Upgrade to Enterprise Edition to access more features, such as multi-store management, B2B, multi-vendor marketplace, and more.' %></div></div>diff --git a/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb b/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erbindex bae288eaad..264bb8a285 100644--- a/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb+++ b/admin/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb@@ -1,5 +1,5 @@<li class="nav-item">- <% storefront_active = %w[themes posts pages storefront].include?(controller_name) %>+ <% storefront_active = %w[themes posts post_categories pages storefront].include?(controller_name) %><%= active_link_to_with_icon('building-store', Spree.t('admin.storefront'), spree.admin_themes_path, class: 'nav-link', active: storefront_active) %><% if storefront_active %>@@ -11,7 +11,7 @@<%= active_link_to Spree.t(:pages), spree.admin_pages_path, class: 'nav-link' %></li><li class="nav-item">- <%= active_link_to Spree.t(:posts), spree.admin_posts_path, class: 'nav-link' %>+ <%= active_link_to Spree.t(:posts), spree.admin_posts_path, class: 'nav-link', active: %w[posts post_categories].include?(controller_name) %></li><li class="nav-item"><%= active_link_to Spree.t(:settings), spree.edit_admin_storefront_path, class: 'nav-link' %>diff --git a/admin/app/views/spree/admin/shipments/edit.html.erb b/admin/app/views/spree/admin/shipments/edit.html.erbindex bdebfb56e3..36d595635b 100644--- a/admin/app/views/spree/admin/shipments/edit.html.erb+++ b/admin/app/views/spree/admin/shipments/edit.html.erb@@ -16,7 +16,7 @@<%= form_with model: @shipment, url: spree.admin_order_shipment_path(@order, @shipment), class: "w-100 py-1 d-flex justify-content-between align-items-center" do |f| %><div class="form-inline"><%= f.label :tracking, Spree.t(:tracking_number) %>- <%= f.text_field :tracking, class: 'form-control ml-3', required: true %>+ <%= f.text_field :tracking, class: 'form-control ml-3', required: true, autofocus: true %></div><div class="d-flex h-100 align-items-center"><% if can? :update, @shipment %>diff --git a/admin/app/views/spree/admin/stock_items/_stock_item.html.erb b/admin/app/views/spree/admin/stock_items/_stock_item.html.erbindex 433a94745f..59cbc9c067 100644--- a/admin/app/views/spree/admin/stock_items/_stock_item.html.erb+++ b/admin/app/views/spree/admin/stock_items/_stock_item.html.erb@@ -1,5 +1,5 @@<tr>- <td scope="row" class="w-50">+ <td scope="row p-0" class="w-50"><%= render 'spree/admin/variants/variant', variant: stock_item.variant %></td><td class="w-20">diff --git a/admin/app/views/spree/admin/stock_locations/_form.html.erb b/admin/app/views/spree/admin/stock_locations/_form.html.erbindex 80afccdf4a..8c16a2dc77 100644--- a/admin/app/views/spree/admin/stock_locations/_form.html.erb+++ b/admin/app/views/spree/admin/stock_locations/_form.html.erb@@ -23,7 +23,7 @@</div></div><% unless f.object.default? %>- <div class="row">+ <div class="row mt-3"><div class="col-12"><div class="form-group"><div class="custom-control custom-checkbox">diff --git a/admin/app/views/spree/admin/stores/form/_basic.html.erb b/admin/app/views/spree/admin/stores/form/_basic.html.erbindex 4ed8fea821..decf59158c 100644--- a/admin/app/views/spree/admin/stores/form/_basic.html.erb+++ b/admin/app/views/spree/admin/stores/form/_basic.html.erb@@ -38,7 +38,7 @@</div><div class="card-body"><p class="text-muted">- Set the timezone, unit system and weight unit for your store.+ Set the timezone, default unit system and weight unit for your store.</p><div class="form-group mb-3"><%= label_tag :preferred_timezone, raw(Spree.t(:timezone) + required_span_tag) %>@@ -48,10 +48,16 @@<div class="form-group mb-3"><%= label_tag :preferred_unit_system, raw(Spree.t(:unit_system) + required_span_tag) %><%= select_tag 'store[preferred_unit_system]', options_for_select(unit_systems, @store.preferred_unit_system), {class: 'custom-select', data: {unit_system_target: "body", action: "change->unit-system#unitSystemHandler"}} %>+ <p class="text-muted form-text mt-2 mb-0">+ This will be used as the default unit system for your store. You can override this on a per-product basis.+ </p></div><div class="form-group"><%= label_tag :preferred_weight_unit, raw(Spree.t(:weight_unit) + required_span_tag) %><%= select_tag 'store[preferred_weight_unit]', options_for_select(weight_units(@store), @store.preferred_weight_unit), {class: 'custom-select', data: {unit_system_target: "weightUnit"}} %>+ <p class="text-muted form-text mt-2 mb-0">+ This will be used as the default weight unit for your store. You can override this on a per-product basis.+ </p></div></div></div>diff --git a/admin/app/views/spree/admin/taxonomies/new.html.erb b/admin/app/views/spree/admin/taxonomies/new.html.erbindex e509df5741..91196c8d1e 100644--- a/admin/app/views/spree/admin/taxonomies/new.html.erb+++ b/admin/app/views/spree/admin/taxonomies/new.html.erb@@ -12,7 +12,7 @@<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @taxonomy } %><div class="form-group"><%= f.label :name, raw(Spree.t(:name) + required_span_tag) %>- <%= f.text_field :name, class: 'form-control' %>+ <%= f.text_field :name, class: 'form-control', required: true, autofocus: true %><%= f.error_message_on :name %></div></div>diff --git a/admin/app/views/spree/admin/taxons/_form.html.erb b/admin/app/views/spree/admin/taxons/_form.html.erbindex df3455b362..9b342111be 100644--- a/admin/app/views/spree/admin/taxons/_form.html.erb+++ b/admin/app/views/spree/admin/taxons/_form.html.erb@@ -100,13 +100,12 @@<div class="card-header"><h5 class="card-title"><%= Spree.t(:images) %></h5></div>- <div class="card-body">+ <div class="card-body pb-0"><%= f.label :image, Spree.t(:image) %><%= render 'active_storage/upload_form', form: f, field_name: :image, width: 1920, height: 1080 %><%= f.error_message_on :image %></div>-- <div class="card-body">+ <div class="card-body pb-0"><%= f.label :square_image, Spree.t(:square_image) %><p class="text-muted form-text">Used for the featured image on the homepage.diff --git a/admin/app/views/spree/admin/users/_tabs.html.erb b/admin/app/views/spree/admin/users/_tabs.html.erbindex a19d65c55f..f16bf83f88 100644--- a/admin/app/views/spree/admin/users/_tabs.html.erb+++ b/admin/app/views/spree/admin/users/_tabs.html.erb@@ -1,4 +1,4 @@-<ul class="nav nav-pills nav-fill mb-3" id="vendor" role="tablist">+<ul class="nav nav-pills mb-3" id="vendor" role="tablist"><% if spree.respond_to?(:admin_user_visits_path) %><li class="nav-item" role="presentation"><a class="nav-link active" id="pills-overview-tab" data-toggle="pill" data-target="#pills-overview" role="tab" aria-controls="pills-overview" aria-selected="true">Timeline</a>@@ -23,15 +23,15 @@</li></ul>-<div class="tab-content" id="vendorContent" style="min-height: 200px">+<div class="tab-content" id="vendorContent"><% if spree.respond_to?(:admin_user_visits_path) %><div class="tab-pane fade show active pt-3" id="pills-overview" role="tabpanel" aria-labelledby="pills-overview"><%= turbo_frame_tag :user_visits, src: spree.admin_user_visits_path(@user), target: '_top' %></div><% end %>- <div class="tab-pane fade <%= 'show active pt-3' unless spree.respond_to?(:admin_user_visits_path) %>" id="pills-orders2" role="tabpanel" aria-labelledby="pills-orders2">- <div class="card-lg p-0" style="min-height: 200px">+ <div class="tab-pane fade <%= 'show active' unless spree.respond_to?(:admin_user_visits_path) %>" id="pills-orders2" role="tabpanel" aria-labelledby="pills-orders2">+ <div class="card-lg p-0"><%= turbo_frame_tag :orders_list, src: spree.admin_user_orders_path(@user, frame_name: :orders_list), loading: :lazy, autoscroll: true, data: { autoscroll_block: :nearest, autoscroll_behavior: :smooth } do %><%= render 'spree/admin/shared/spinner' %><% end %>@@ -39,7 +39,7 @@</div><div class="tab-pane fade" id="pills-checkouts" role="tabpanel" aria-labelledby="pills-checkouts">- <div class="card-lg p-0" style="min-height: 200px">+ <div class="card-lg p-0"><%= turbo_frame_tag :orders_list, src: spree.admin_user_checkouts_path(@user, frame_name: :orders_list), loading: :lazy, autoscroll: true, data: { autoscroll_block: :nearest, autoscroll_behavior: :smooth } do %><%= render 'spree/admin/shared/spinner' %><% end %>@@ -48,7 +48,7 @@<% if spree.respond_to?(:admin_user_gift_cards_path) %><div class="tab-pane fade" id="pills-gift-cards" role="tabpanel" aria-labelledby="pills-gift-cards">- <div class="card-lg p-0" style="min-height: 200px">+ <div class="card-lg p-0"><%= turbo_frame_tag :gift_cards_list, src: spree.admin_user_gift_cards_path(@user, frame_name: :gift_cards_list), loading: :lazy, autoscroll: true, data: { autoscroll_block: :nearest, autoscroll_behavior: :smooth } do %><%= render 'spree/admin/shared/spinner' %><% end %>@@ -57,7 +57,7 @@<% end %><div class="tab-pane fade" id="pills-store-credits" role="tabpanel" aria-labelledby="pills-store-credits">- <div class="card-lg p-0" style="min-height: 200px">+ <div class="card-lg p-0"><%= turbo_frame_tag :store_credits_list, src: spree.admin_user_store_credits_path(@user, frame_name: :store_credits_list), loading: :lazy, autoscroll: true, data: { autoscroll_block: :nearest, autoscroll_behavior: :smooth } do %><%= render 'spree/admin/shared/spinner' %><% end %>diff --git a/admin/app/views/spree/admin/variants/_variant.html.erb b/admin/app/views/spree/admin/variants/_variant.html.erbindex 2a2a1977af..441d1d3e8d 100644--- a/admin/app/views/spree/admin/variants/_variant.html.erb+++ b/admin/app/views/spree/admin/variants/_variant.html.erb@@ -1,15 +1,13 @@-<div class="d-flex align-items-center justify-content-start">- <%= link_to spree.edit_admin_product_path(variant.product), data: { turbo_frame: :_top } do %>+<% cache variant do %>+ <%= link_to spree.edit_admin_product_variant_path(variant.product, variant), data: { turbo_frame: :_top }, class: 'd-flex align-items-center justify-content-start text-decoration-none' do %><%= render 'spree/admin/shared/product_image', object: variant %>+ <div class="ml-3">+ <strong><%= variant.name %></strong>+ <% if variant.options_text.present? %>+ <p class="text-muted my-1 font-size-sm">+ <%= variant.options_text %>+ </p>+ <% end %>+ </div><% end %>- <div class="ml-3">- <%= link_to variant.product.name, spree.edit_admin_product_path(variant.product), data: { turbo_frame: :_top } , class: 'text-dark' %>- <br>- <span class="text-muted">- <%= "(#{variant.options_text})" if variant.options_text.present? %>- </span>- <% if variant.sku.present? %>- <span class="text-muted"><strong><%= Spree.t(:sku) %>:</strong> <%= variant.sku %></span>- <% end %>- </div>-</div>+<% end %>\ No newline at end of filediff --git a/admin/app/views/spree/admin/variants/form/_basic.html.erb b/admin/app/views/spree/admin/variants/form/_basic.html.erbindex 7f92ad162e..0487f04275 100644--- a/admin/app/views/spree/admin/variants/form/_basic.html.erb+++ b/admin/app/views/spree/admin/variants/form/_basic.html.erb@@ -1,6 +1,6 @@<div class="card mb-4"><div class="card-header">- <h5 class="mb-0">+ <h5 class="card-title"><%= Spree.t(:settings) %></h5></div>diff --git a/admin/app/views/spree/admin/variants/form/_dimensions.html.erb b/admin/app/views/spree/admin/variants/form/_dimensions.html.erbindex 6a6cb891dd..06de4f01cc 100644--- a/admin/app/views/spree/admin/variants/form/_dimensions.html.erb+++ b/admin/app/views/spree/admin/variants/form/_dimensions.html.erb@@ -26,7 +26,7 @@<div class="form-group"><%= f.label :weight %>- <div class="form-control d-flex align-items-center py-0 focus-border-blue focus-shadow-blue">+ <div class="form-control d-flex align-items-center py-0 focus-border-primary focus-shadow-primary"><%= f.text_field :weight, value: number_with_precision(f.object.weight, precision: 2), class: 'form-control-plaintext pl-0' %><%= f.select :weight_unit, options_for_select(weight_units(current_store), f.object.weight_unit), { include_blank: false }, { class: 'form-control-plaintext w-auto border-left' } %></div>diff --git a/admin/app/views/spree/admin/variants/form/_inventory.html.erb b/admin/app/views/spree/admin/variants/form/_inventory.html.erbindex b5b17f9fc1..2201aa36bc 100644--- a/admin/app/views/spree/admin/variants/form/_inventory.html.erb+++ b/admin/app/views/spree/admin/variants/form/_inventory.html.erb@@ -1,6 +1,6 @@<div class="card mb-4"><div class="card-header">- <h5 class="mb-0">+ <h5 class="card-title"><%= Spree.t(:inventory) %></h5></div>@@ -38,7 +38,7 @@<% end %></tbody></table>- <div class="card-footer text-center bg-gray-25 text-muted">+ <div class="card-footer border-toptext-center bg-gray-25 text-muted"><%= Spree.t('admin.variants_form.stock_locations_link', link: spree.admin_stock_locations_path).html_safe %></div></div>diff --git a/admin/app/views/spree/admin/variants/form/_media.html.erb b/admin/app/views/spree/admin/variants/form/_media.html.erbindex 82abc5810f..6b005ba979 100644--- a/admin/app/views/spree/admin/variants/form/_media.html.erb+++ b/admin/app/views/spree/admin/variants/form/_media.html.erb@@ -13,16 +13,19 @@data-sortable-resource-name-value="asset"data-sortable-response-kind-value="json"><%= render partial: 'spree/admin/variants/form/media_asset', collection: media_form_assets(viewable), as: :asset, cached: spree_base_cache_scope %>- <%= button_tag class: 'text-muted border border-dashed bg-gray-25 hover-gray-50 rounded-lg media-form__add-button h-100', data: {+ <%= button_tag class: "text-muted border border-dashed bg-gray-25 hover-gray-50 rounded-lg media-form__add-button #{'h-100' if media_form_assets(viewable).any?}", data: {controller: 'asset-uploader',asset_uploader_multiple_value: true,asset_uploader_viewable_id_value: viewable&.id,asset_uploader_viewable_type_value: 'Spree::Variant',- asset_uploader_allowed_file_types_value: Rails.application.config.active_storage.web_image_content_types,+ asset_uploader_allowed_file_types_value: allowed_file_types_for_upload,action: 'asset-uploader#open',media_form_target: 'addButton'} do %>- <%= icon('upload', class: 'my-5', style: 'font-size: 2rem;') %>+ <%= icon('upload', class: 'mt-5', style: 'font-size: 2rem;') %>+ <p class="text-muted form-text mt-2 mb-5">+ <%= Spree.t('admin.upload_new_asset') %>+ </p><% end %></div></div>diff --git a/admin/app/views/spree/admin/variants/form/_pricing.html.erb b/admin/app/views/spree/admin/variants/form/_pricing.html.erbindex 02da4f1114..4a5a9f4cc5 100644--- a/admin/app/views/spree/admin/variants/form/_pricing.html.erb+++ b/admin/app/views/spree/admin/variants/form/_pricing.html.erb@@ -1,6 +1,6 @@<div class="card mb-4" data-product-form-target="pricesForm"><div class="card-header d-flex align-items-center justify-content-between">- <h5 class="mb-0">+ <h5 class="card-title"><%= Spree.t(:pricing) %></h5>@@ -29,13 +29,13 @@<tr><td><%= price_form.object.currency %></td><td>- <div class="form-control align-items-center py-0 focus-shadow-blue focus-border-blue mr-2 price-input-container d-flex">+ <div class="form-control align-items-center py-0 focus-shadow-primary focus-border-primary mr-2 price-input-container d-flex"><%= price_form.text_field :amount, class: 'form-control-plaintext px-0', disabled: !can?(:manage, price_form.object) %><span><%= currency_symbol(price_form.object.currency) %></span></div></td><td>- <div class="form-control align-items-center py-0 focus-shadow-blue focus-border-blue mr-2 price-input-container d-flex">+ <div class="form-control align-items-center py-0 focus-shadow-primary focus-border-primary mr-2 price-input-container d-flex"><%= price_form.text_field :compare_at_amount, class: 'form-control-plaintext px-0', disabled: !can?(:manage, price_form.object) %><span><%= currency_symbol(price_form.object.currency) %></span></div>diff --git a/admin/config/locales/en.yml b/admin/config/locales/en.ymlindex 5f8ff36dce..2086e6f169 100644--- a/admin/config/locales/en.yml+++ b/admin/config/locales/en.yml@@ -223,6 +223,7 @@ en:automatic_info: Automatically match products to this taxon based on the conditions you set.manual: Manualmanual_info: Curate products manually. You can add or remove them in bulk.+ upload_new_asset: Upload new asseturl: URLuser:last_order_placed: Last order placed