Skip to content

Commit fdd1a75

Browse files
authored
Merge branch 'main' into add-compliance-fields-to-address
2 parents 57ddbbc + ceadf35 commit fdd1a75

File tree

114 files changed

+1139
-1192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1139
-1192
lines changed

CHANGELOG.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,120 @@
1+
## Solidus v4.5.0 (2025-02-19)
2+
3+
<!-- Please, don't edit manually. The content is automatically generated. -->
4+
5+
## Solidus
6+
7+
* Add not about sprockets manifest before running rails commands by @tvdeyen in https://github.com/solidusio/solidus/pull/6130
8+
9+
## Solidus Core
10+
11+
* Move Line Item Actions to solidus_legacy_promotions by @mamhoff in https://github.com/solidusio/solidus/pull/5916
12+
* Remove rails binstubs from built gems by @tvdeyen in https://github.com/solidusio/solidus/pull/5917
13+
* [FIX] Remove spacing at top of OrderShipping#ship method by @adammathys in https://github.com/solidusio/solidus/pull/5954
14+
* Test app task: Allow passing in user class by @mamhoff in https://github.com/solidusio/solidus/pull/5956
15+
* Backend: Add missing error translation by @mamhoff in https://github.com/solidusio/solidus/pull/5979
16+
* Add show all results to en.yml by @fthobe in https://github.com/solidusio/solidus/pull/5988
17+
* Do not constantize Spree.user_class in UserClassHandle by @mamhoff in https://github.com/solidusio/solidus/pull/5999
18+
* Allow to set Rails deprecations behavior during tests by @tvdeyen in https://github.com/solidusio/solidus/pull/6000
19+
* Introducing product brand using taxon_brand_selector by @shahmayur001 in https://github.com/solidusio/solidus/pull/5989
20+
* Make state machine modules auto-loadable by @mamhoff in https://github.com/solidusio/solidus/pull/6056
21+
* Make Spree::Money autoloadable by @tvdeyen in https://github.com/solidusio/solidus/pull/6040
22+
* Tax Categories on Line Items respect updates to Variant and Product Tax Categories by @harmonymjb in https://github.com/solidusio/solidus/pull/6059
23+
* Unauthorized redirect handling config by @mamhoff in https://github.com/solidusio/solidus/pull/6051
24+
* Lint: Fix Money spec by @mamhoff in https://github.com/solidusio/solidus/pull/6068
25+
* Fix preferences serialization compatibility with Rails version check by @swamp09 in https://github.com/solidusio/solidus/pull/6083
26+
* Make Controller Helpers autoloadable by @mamhoff in https://github.com/solidusio/solidus/pull/6062
27+
* Move permission sets back to app/ by @mamhoff in https://github.com/solidusio/solidus/pull/6090
28+
* Allows Rails 8, updates sqlite in Gemfile to match what CI runs by @rjacoby in https://github.com/solidusio/solidus/pull/6091
29+
* Remove Spree::UserAddress#archived flag by @mamhoff in https://github.com/solidusio/solidus/pull/3852
30+
* Add permalink history for taxon on friendly-id by @shahmayur001 in https://github.com/solidusio/solidus/pull/6100
31+
* Refactor Line Item Total Calculations by @jarednorman in https://github.com/solidusio/solidus/pull/6080
32+
* Fix DummyApp Generator by @tvdeyen in https://github.com/solidusio/solidus/pull/6121
33+
* Rails 8: Include manifest.js in install generator by @mamhoff in https://github.com/solidusio/solidus/pull/6122
34+
* Add Ruby 3.4 support by @tvdeyen in https://github.com/solidusio/solidus/pull/6117
35+
* Add primary Taxon to products (#6047) by @fthobe in https://github.com/solidusio/solidus/pull/6109
36+
* Admin promotion categories add/edit by @chaimann in https://github.com/solidusio/solidus/pull/6101
37+
* Move line_item_comparison_hooks config to Spree::Config by @mamhoff in https://github.com/solidusio/solidus/pull/6050
38+
* Admin and User Metadata for transactional ressources and users (#5897) by @fthobe in https://github.com/solidusio/solidus/pull/6118
39+
* Revert "Merge pull request #6122 from mamhoff/create-manifest-js-in-g… by @mamhoff in https://github.com/solidusio/solidus/pull/6124
40+
* Fix migration typo (missing keyword `foreign_key`) by @chaimann in https://github.com/solidusio/solidus/pull/6126
41+
* Use Flickwerk for loading patches in solidus_promotions and solidus_legacy_promotions by @mamhoff in https://github.com/solidusio/solidus/pull/6049
42+
* Added GTIN and Condition to variant for structured data use by @rahulsingh321 in https://github.com/solidusio/solidus/pull/6097
43+
44+
## Solidus Admin
45+
46+
* Remove rails binstubs from built gems by @tvdeyen in https://github.com/solidusio/solidus/pull/5917
47+
* Unauthorized redirect handling config by @mamhoff in https://github.com/solidusio/solidus/pull/6051
48+
* Allows Rails 8, updates sqlite in Gemfile to match what CI runs by @rjacoby in https://github.com/solidusio/solidus/pull/6091
49+
* Admin promotion categories add/edit by @chaimann in https://github.com/solidusio/solidus/pull/6101
50+
* Added GTIN and Condition to variant for structured data use by @rahulsingh321 in https://github.com/solidusio/solidus/pull/6097
51+
* Fix component translation scopes by @mamhoff in https://github.com/solidusio/solidus/pull/5927
52+
* Feat(Admin): Dynamic routing proxies by @mamhoff in https://github.com/solidusio/solidus/pull/5933
53+
* test: Wait for modal to open before testing its content by @tvdeyen in https://github.com/solidusio/solidus/pull/5993
54+
* [specs] Wait for modal before testing its content by @MadelineCollier in https://github.com/solidusio/solidus/pull/5998
55+
* Use Order#email to show the order's email in new admin by @softr8 in https://github.com/solidusio/solidus/pull/5596
56+
* [Admin][Users]Add new admin store_credits show page by @MadelineCollier in https://github.com/solidusio/solidus/pull/5978
57+
* [Admin][Products] Add product properties create/edit flow to admin by @MadelineCollier in https://github.com/solidusio/solidus/pull/6011
58+
* tests: Give even more dialogs more time to open in tests by @tvdeyen in https://github.com/solidusio/solidus/pull/6017
59+
* [Admin][Users] Add new admin store credits edit_amount flow by @MadelineCollier in https://github.com/solidusio/solidus/pull/6031
60+
* [Admin][Users] Add new admin store credits edit_memo flow by @MadelineCollier in https://github.com/solidusio/solidus/pull/6033
61+
* [Admin][Users] Add new admin store credits invalidate flow by @MadelineCollier in https://github.com/solidusio/solidus/pull/6034
62+
* Use at least solidus_support 0.12.0 by @tvdeyen in https://github.com/solidusio/solidus/pull/6037
63+
* [Admin][Users] Add new admin store credits create flow by @MadelineCollier in https://github.com/solidusio/solidus/pull/6036
64+
* [Admin] Add Prettier config by @tvdeyen in https://github.com/solidusio/solidus/pull/6043
65+
* Pin view_component to < 3.21.0 by @tvdeyen in https://github.com/solidusio/solidus/pull/6048
66+
* Fix unsafe html view component, allow ViewComponent 3.21+ by @mamhoff in https://github.com/solidusio/solidus/pull/6055
67+
* [Admin] Use Rails.application.mounted_helpers in base component by @mamhoff in https://github.com/solidusio/solidus/pull/6039
68+
* [Admin] Open edit and new forms in dialog with turbo frame by @tvdeyen in https://github.com/solidusio/solidus/pull/6046
69+
* Fix missing options in select tags by @chaimann in https://github.com/solidusio/solidus/pull/6120
70+
* Remove Display Order from side menu by @chaimann in https://github.com/solidusio/solidus/pull/6119
71+
* [Admin] Fix tailwindcss-rails Version to v3 for Solidus Admin Compatibility by @swamp09 in https://github.com/solidusio/solidus/pull/6135
72+
* [Admin] Allow bulk delete resources by @chaimann in https://github.com/solidusio/solidus/pull/6134
73+
74+
## Solidus Backend
75+
76+
* Remove rails binstubs from built gems by @tvdeyen in https://github.com/solidusio/solidus/pull/5917
77+
* Backend: Add missing error translation by @mamhoff in https://github.com/solidusio/solidus/pull/5979
78+
* Unauthorized redirect handling config by @mamhoff in https://github.com/solidusio/solidus/pull/6051
79+
* Add primary Taxon to products (#6047) by @fthobe in https://github.com/solidusio/solidus/pull/6109
80+
* Added GTIN and Condition to variant for structured data use by @rahulsingh321 in https://github.com/solidusio/solidus/pull/6097
81+
* Fix field container identifier on admin stock location by @forkata in https://github.com/solidusio/solidus/pull/6107
82+
83+
## Solidus API
84+
85+
* Remove rails binstubs from built gems by @tvdeyen in https://github.com/solidusio/solidus/pull/5917
86+
* Allows Rails 8, updates sqlite in Gemfile to match what CI runs by @rjacoby in https://github.com/solidusio/solidus/pull/6091
87+
* Remove Spree::UserAddress#archived flag by @mamhoff in https://github.com/solidusio/solidus/pull/3852
88+
* Add primary Taxon to products (#6047) by @fthobe in https://github.com/solidusio/solidus/pull/6109
89+
* Admin and User Metadata for transactional ressources and users (#5897) by @fthobe in https://github.com/solidusio/solidus/pull/6118
90+
* Added GTIN and Condition to variant for structured data use by @rahulsingh321 in https://github.com/solidusio/solidus/pull/6097
91+
92+
## Solidus Sample
93+
94+
* Introducing product brand using taxon_brand_selector by @shahmayur001 in https://github.com/solidusio/solidus/pull/5989
95+
* Added GTIN and Condition to variant for structured data use by @rahulsingh321 in https://github.com/solidusio/solidus/pull/6097
96+
97+
## Solidus Promotions
98+
99+
* Add Ruby 3.4 support by @tvdeyen in https://github.com/solidusio/solidus/pull/6117
100+
* Admin promotion categories add/edit by @chaimann in https://github.com/solidusio/solidus/pull/6101
101+
* Move line_item_comparison_hooks config to Spree::Config by @mamhoff in https://github.com/solidusio/solidus/pull/6050
102+
* Use Flickwerk for loading patches in solidus_promotions and solidus_legacy_promotions by @mamhoff in https://github.com/solidusio/solidus/pull/6049
103+
* Fix component translation scopes by @mamhoff in https://github.com/solidusio/solidus/pull/5927
104+
* test: Wait for modal to open before testing its content by @tvdeyen in https://github.com/solidusio/solidus/pull/5993
105+
* Use at least solidus_support 0.12.0 by @tvdeyen in https://github.com/solidusio/solidus/pull/6037
106+
* [Admin] Allow bulk delete resources by @chaimann in https://github.com/solidusio/solidus/pull/6134
107+
* Better promotion menus by @mamhoff in https://github.com/solidusio/solidus/pull/5934
108+
* Fix admin promotions controller by @mamhoff in https://github.com/solidusio/solidus/pull/5943
109+
* [FIX] A few small tweaks for the new promotion admin by @adammathys in https://github.com/solidusio/solidus/pull/5953
110+
* Fix(promotions): Validate benefits on save by @mamhoff in https://github.com/solidusio/solidus/pull/5981
111+
* Fix(Promotions): Return 200 on benefits#edit by @mamhoff in https://github.com/solidusio/solidus/pull/5997
112+
* Add can apply to promotions by @mamhoff in https://github.com/solidusio/solidus/pull/6013
113+
* Fixed wording, typos, license notice & linked to migration guide by @fthobe in https://github.com/solidusio/solidus/pull/6106
114+
115+
**Full Changelog**: https://github.com/solidusio/solidus/compare/v4.4.0...v4.5.0
116+
117+
1118
## Solidus v4.4.0 (2024-11-12)
2119

3120
<!-- Please, don't edit manually. The content is automatically generated. -->

GOVERNANCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ To join the stakeholders, you must be part of one of the groups described above.
169169
Partners are individuals or companies that are financially contributing to the platform’s Open Collective organization,
170170
in exchange for a pre-established set of benefits, mainly the ability to vote during stakeholder meetings.
171171

172-
To join the stakeholders group as Partner, it's just needed that you setup a monthy donation via Open Collective with any of
172+
To join the stakeholders group as Partner, it's just needed that you setup a monthly donation via Open Collective with any of
173173
following partnership tiers:
174174

175175
- **Supporter ($10/month)**: Doesn’t guarantee access to a partnership program.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![Open Source Helpers](https://www.codetriage.com/solidusio/solidus/badges/users.svg)](https://www.codetriage.com/solidusio/solidus)
1515
[![Slack](https://shields.io/badge/slack-start_chatting-blue?logo=slack)](http://slack.solidus.io)
1616

17-
**A free, open-source ecommerce platform that gives you complete control over your store.**
17+
**A free, open-source e-commerce platform that gives you complete control over your store.**
1818

1919
- **Visit our website**: [https://solidus.io/](https://solidus.io/)
2020
- **Read our Community Guidelines**: [https://guides.solidus.io/policies/community-guidelines/](https://guides.solidus.io/policies/community-guidelines/)
@@ -53,7 +53,7 @@ Support this project by becoming a Solidus Ambassador. Your logo will show up he
5353

5454
## Summary
5555

56-
Solidus is a complete open source ecommerce solution built with Ruby on Rails.
56+
Solidus is a complete open source e-commerce solution built with Ruby on Rails.
5757
It is a fork of [Spree](https://spreecommerce.org).
5858

5959
See the [Solidus class documentation](http://docs.solidus.io) and the [Solidus
@@ -69,7 +69,7 @@ Solidus consists of several gems. When you require the `solidus` gem in your
6969
- [`solidus_sample`](https://github.com/solidusio/solidus/tree/master/sample) (Sample data)
7070

7171
All of the gems are designed to work together to provide a fully functional
72-
ecommerce platform. However, you may only want to use the
72+
e-commerce platform. However, you may only want to use the
7373
[`solidus_core`](https://github.com/solidusio/solidus/tree/master/core) gem
7474
combine it with your own custom frontend, admin interface, and API.
7575

admin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Solidus Admin
22

3-
A Rails engine that provides an administrative interface to the Solidus ecommerce platform.
3+
A Rails engine that provides an administrative interface to the Solidus e-commerce platform.
44

55
## Overview
66

admin/app/components/solidus_admin/orders/index/component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def total_column
153153
{
154154
header: :total,
155155
data: ->(order) do
156-
content_tag :div, number_to_currency(order.total)
156+
content_tag :div, order.display_total
157157
end
158158
}
159159
end

admin/app/components/solidus_admin/orders/show/summary/component.html.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<%= render component('ui/panel').new(title: t('.summary')) do %>
33
<%= render component('ui/details_list').new(
44
items: [
5-
{ label: t('.subtotal'), value: number_to_currency(@order.item_total), class: 'font-semibold' },
6-
{ label: t('.taxes'), value: number_to_currency(@order.additional_tax_total) },
7-
{ label: t('.shipping'), value: number_to_currency(@order.shipment_total) },
8-
{ label: link_to(t('.add_promo_code'), '#', class: "body-link"), value: number_to_currency(@order.promo_total) },
9-
{ label: link_to(t('.adjustments'), solidus_admin.order_adjustments_path(@order), class: "body-link"), value: number_to_currency(@order.adjustment_total) },
10-
{ label: t('.total'), value: number_to_currency(@order.total), class: 'font-semibold' }
5+
{ label: t('.subtotal'), value: @order.display_item_total, class: 'font-semibold' },
6+
{ label: t('.taxes'), value: @order.display_additional_tax_total },
7+
{ label: t('.shipping'), value: @order.display_shipment_total },
8+
{ label: link_to(t('.add_promo_code'), '#', class: "body-link"), value: @order.display_promo_total },
9+
{ label: link_to(t('.adjustments'), solidus_admin.order_adjustments_path(@order), class: "body-link"), value: @order.display_adjustment_total },
10+
{ label: t('.total'), value: @order.display_total, class: 'font-semibold' }
1111
]
1212
) %>
1313
<% end %>

admin/app/components/solidus_admin/products/show/component.html.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@
3636
<%= render component("ui/forms/field").text_field(f, :meta_title) %>
3737
<%= render component("ui/forms/field").text_field(f, :meta_description) %>
3838
<%= render component("ui/forms/field").text_area(f, :meta_keywords) %>
39+
<%= render component("ui/forms/field").text_field(f, :gtin) %>
40+
<%= render component("ui/forms/field").select(
41+
f,
42+
:condition,
43+
condition_options,
44+
include_blank: t('spree.unset'),
45+
) %>
3946
<% end %>
40-
4147
<%= render component('ui/panel').new(title: "Media") do |panel| %>
4248
<% panel.with_action(
4349
name: t(".manage_images"),

admin/app/components/solidus_admin/products/show/component.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ def option_type_options
2525
["#{_1} (#{_2})", _3]
2626
end
2727
end
28+
29+
def condition_options
30+
@condition_options ||= Spree::Variant.conditions.map do |key, value|
31+
[t("spree.condition.#{key}"), value]
32+
end
33+
end
2834
end

admin/app/components/solidus_admin/ui/forms/input/component.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def initialize(tag: :input, size: :m, error: nil, **attributes)
9191
def call
9292
if @tag == :select && @attributes[:choices]
9393
with_content options_for_select(@attributes.delete(:choices), @attributes.delete(:value))
94+
elsif @tag == :textarea && @attributes[:value]
95+
with_content @attributes.delete(:value)
9496
end
9597

9698
build_tag

admin/app/components/solidus_admin/ui/table/component.html.erb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@
8888
<% end %>
8989

9090
<%= render component("ui/table/toolbar").new("data-#{stimulus_id}-target": "batchToolbar", role: "toolbar", "aria-label": t(".batch_actions"), hidden: true) do %>
91-
<%= form_tag '', id: batch_actions_form_id %>
92-
<% @data.batch_actions.each do |batch_action| %>
93-
<%= render_batch_action_button(batch_action) %>
91+
<%= form_tag '', id: batch_actions_form_id do %>
92+
<% @data.batch_actions.each do |batch_action| %>
93+
<%= render_batch_action_button(batch_action) %>
94+
<% end %>
9495
<% end %>
9596
<% end %>
9697

0 commit comments

Comments
 (0)