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
Merge branch 'master' into address-names
Damian Legawiec31a896b8d2aa
diff --cc frontend/app/assets/images/edit.svgindex a2a4bb291c,1619b86740..07a622c74e--- a/frontend/app/assets/images/edit.svg+++ b/frontend/app/assets/images/edit.svg@@@ -1,14 -1,1 +1,1 @@@- <svg width="100%" height="100%" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">- <g transform="matrix(18.3151,0,0,-18.3533,-16.8313,533.62)" fill="currentColor">- <path d="M2,3.002C1.715,3 1.442,3.121 1.251,3.333C1.06,3.545 0.969,3.829 1,4.112L1.77,11.112C1.797,11.336 1.9,11.544 2.06,11.702L18.42,28.062C19.02,28.664 19.835,29.002 20.685,29.002C21.535,29.002 22.35,28.664 22.95,28.062L26.06,24.952C26.662,24.352 27,23.537 27,22.687C27,21.837 26.662,21.023 26.06,20.422L9.71,4.072C9.552,3.912 9.344,3.81 9.12,3.782L2.12,3.012L2,3.002ZM3.73,10.552L3.13,5.132L8.55,5.732L24.65,21.832C24.876,22.057 25.003,22.363 25.003,22.682C25.003,23.001 24.876,23.307 24.65,23.532L21.53,26.652C21.305,26.878 20.999,27.005 20.68,27.005C20.361,27.005 20.055,26.878 19.83,26.652L3.73,10.552Z" style="fill-rule:nonzero;"/>- </g>- <g transform="matrix(18.3151,0,0,-18.3533,-16.8313,315.135)" fill="currentColor">- <path d="M23,5.888C22.734,5.886 22.479,5.991 22.29,6.178L16.08,12.408C15.691,12.8 15.692,13.434 16.083,13.825C16.474,14.216 17.107,14.217 17.5,13.828L23.73,7.598C23.919,7.41 24.026,7.154 24.026,6.888C24.026,6.621 23.919,6.366 23.73,6.178C23.536,5.986 23.273,5.881 23,5.888Z" style="fill-rule:nonzero;"/>- </g>- <g transform="matrix(12.9508,-12.9778,-12.9508,-12.9778,273.886,649.445)" fill="currentColor">- <rect x="7.39" y="16.1" width="11.01" height="2"/>- </g>- <g transform="matrix(17.7456,2.1377e-16,-2.1377e-16,-16,-40.1047,943)" fill="currentColor">- <path d="M30,27L14.188,27C13.637,27.002 13.192,27.449 13.192,28C13.192,28.551 13.637,28.998 14.188,29L30,29C30.551,28.998 30.996,28.551 30.996,28C30.996,27.449 30.551,27.002 30,27Z" style="fill-rule:nonzero;"/>- </g>- </svg>-<svg height="18.988" viewBox="0 0 20.715 18.988" width="20.715" xmlns="http://www.w3.org/2000/svg"><path d="m15.536 12.608v5.653h-13.81v-10.361h5.82l1.707-1.721h-9.253v13.809h17.262v-9.126zm1.271-9.162 1.473 1.474-8.01 8.094-1.925.407.442-1.872 8.02-8.1zm-.007-2.446-9.584 9.68-1.174 4.992 5.09-1.077 9.583-9.682z" fill="currentColor" transform="translate(0 -1)"/></svg>++<svg height="18.988" viewBox="0 0 20.715 18.988" width="20.715" xmlns="http://www.w3.org/2000/svg"><path d="m15.536 12.608v5.653h-13.81v-10.361h5.82l1.707-1.721h-9.253v13.809h17.262v-9.126zm1.271-9.162 1.473 1.474-8.01 8.094-1.925.407.442-1.872 8.02-8.1zm-.007-2.446-9.584 9.68-1.174 4.992 5.09-1.077 9.583-9.682z" fill="currentColor" transform="translate(0 -1)"/></svg>diff --cc frontend/app/views/spree/users/_address.html.erbindex a58e30b55c,82d27af01f..4bd4a80c4d--- a/frontend/app/views/spree/users/_address.html.erb+++ b/frontend/app/views/spree/users/_address.html.erb@@@ -1,26 -1,21 +1,25 @@@- <address>- <% if address.label? %>- <h4 class="m-0"><%= address.label %></h4>- <span class="text-muted small mb-4"><%= address.address1 %> - <%= address.country_iso %></span>- <% else %>- <span class="account-page-user-full-name">- <%= address.full_name %>- </span>- <div><%= address.address1 %></div>- <% if address.address2.present? %>- <div><%= address.address2 %></div>- <% end %>- <div>- <%= address.city %>- <% if address.state.present? %>- , <%= address.state&.abbr %>- <% end %>- <% if address.zipcode.present? %>- , <%= address.zipcode %>+ <div class="d-flex align-items-start justify-content-between">+ <div class="row">+ <address class="mb-0 col-12">++ <% if address.label&.present? %>++ <h4 class="m-0"><%= address.label %></h4>+ <% end %>+++ <span class="account-page-user-full-name">+ <%= address.full_name %>+ </span>++ <div><%= "#{address.address1} #{address.address2}" %>,</div>+ <div><%= "#{address.city}, #{address.state&.abbr} #{address.zipcode}" %>,</div>+ <div><%= address.country.name %></div>+ </address>+ </div>+ <div class="d-flex ml-2">+ <div role="button" class="bg-transparent border-0 px-1 mr-1 address-button delete-button js-delete-address-link" data-address="<%= spree.address_path(address) %>">+ <%= inline_svg_tag 'garbage_2.svg', class: "delete-address-img" %></div>- <div>- <%= address.country.name %>- </div>- <% end %>- </address>+ <%= link_to spree.edit_address_path(address), method: :get, class: 'address-button px-1', role: 'button', data: { hook: 'edit_address' } do %>+ <%= inline_svg_tag 'edit.svg', class: "delete-address-img" %>+ <% end %>+ </div>+ </div>