Skip to content

Commit 2eb2c84

Browse files
committed
Merge remote-tracking branch 'origin/release/16.5' into housekeeping/merge-release-into-dev
2 parents 21766d6 + 078d40a commit 2eb2c84

File tree

157 files changed

+762
-922
lines changed

Some content is hidden

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

157 files changed

+762
-922
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,4 @@ end
419419

420420
gem "openproject-octicons", "~>19.29.0"
421421
gem "openproject-octicons_helper", "~>19.29.0"
422-
gem "openproject-primer_view_components", "~>0.73.0"
422+
gem "openproject-primer_view_components", "~>0.73.1"

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ GEM
879879
actionview
880880
openproject-octicons (= 19.29.0)
881881
railties
882-
openproject-primer_view_components (0.73.0)
882+
openproject-primer_view_components (0.73.1)
883883
actionview (>= 7.2.0)
884884
activesupport (>= 7.2.0)
885885
openproject-octicons (>= 19.29.0)
@@ -1697,7 +1697,7 @@ DEPENDENCIES
16971697
openproject-octicons (~> 19.29.0)
16981698
openproject-octicons_helper (~> 19.29.0)
16991699
openproject-openid_connect!
1700-
openproject-primer_view_components (~> 0.73.0)
1700+
openproject-primer_view_components (~> 0.73.1)
17011701
openproject-recaptcha!
17021702
openproject-reporting!
17031703
openproject-storages!
@@ -2076,7 +2076,7 @@ CHECKSUMS
20762076
openproject-octicons (19.29.0) sha256=9d9106a276d140a2ba975052688b0c92e404af0df5db87d322265ac5c15e8815
20772077
openproject-octicons_helper (19.29.0) sha256=d093d91163b27d1624841590a8e6b202186d165ad7d006ceadc8bdc3b09830e6
20782078
openproject-openid_connect (1.0.0)
2079-
openproject-primer_view_components (0.73.0) sha256=cd0f25ce22107e5a72745f5e69b599a633263275c78cbc25fb6c40ff75f0c610
2079+
openproject-primer_view_components (0.73.1) sha256=591d1803255a8d02b6a53a846efd67535cb1739d44ba20b124d0e2707a20932f
20802080
openproject-recaptcha (1.0.0)
20812081
openproject-reporting (1.0.0)
20822082
openproject-storages (1.0.0)

app/assets/images/16_4_features.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/assets/images/16_5_features.svg

Lines changed: 1 addition & 1 deletion
Loading

app/components/enterprise_trials/welcome_dialog_component.html.erb

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,26 @@
1717
end
1818
flex.with_row(mt: 2) do
1919
content_tag :div, class: "onboarding--video" do
20-
render(Primer::BaseComponent.new(
21-
my: 2,
22-
tag: :video,
23-
frameborder: "0",
24-
height: "430",
25-
width: "100%",
26-
autoplay: "autoplay",
27-
controls: true,
28-
src: OpenProject::Static::Links.url_for(:enterprise_welcome_video),
29-
allowfullscreen: true
30-
))
20+
render(
21+
Primer::BaseComponent.new(
22+
my: 2,
23+
tag: :video,
24+
height: "430",
25+
width: "100%",
26+
controls: true,
27+
preload: "none",
28+
allowfullscreen: true,
29+
data: { "media-dialog-target": "video" }
30+
)
31+
) do
32+
render(
33+
Primer::BaseComponent.new(
34+
tag: :source,
35+
src: OpenProject::Static::Links.url_for(:enterprise_welcome_video),
36+
type: "video/mp4"
37+
)
38+
)
39+
end
3140
end
3241
end
3342
end

app/components/onboarding/video_dialog_component.html.erb

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
controller: "media-dialog"
77
},
88
title:,
9+
classes: "Overlay--size-large-portrait",
910
size: :xlarge
1011
)
1112
) do |dialog|
@@ -21,15 +22,22 @@
2122
Primer::BaseComponent.new(
2223
my: 2,
2324
tag: :video,
24-
frameborder: "0",
2525
height: "430",
2626
width: "100%",
27-
autoplay: "autoplay",
2827
controls: true,
29-
src: video_src,
30-
allowfullscreen: true
28+
preload: "none",
29+
allowfullscreen: true,
30+
data: { "media-dialog-target": "video" }
3131
)
32-
)
32+
) do
33+
render(
34+
Primer::BaseComponent.new(
35+
tag: :source,
36+
src: video_src,
37+
type: "video/mp4"
38+
)
39+
)
40+
end
3341
end
3442
)
3543
end

app/components/users/sessions/row_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def delete_button
106106
"aria-label": I18n.t(:button_revoke),
107107
data: {
108108
turbo_method: :delete,
109-
turbo_confirm: I18n.t(:text_are_you_sure),
109+
turbo_confirm: I18n.t("users.sessions.deletion_warning"),
110110
turbo_submits_with: I18n.t(:label_loading)
111111
}
112112
)

app/controllers/concerns/custom_fields/shared_actions.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ def create # rubocop:disable Metrics/AbcSize
5555
.call(get_custom_field_params.merge(type: permitted_params.custom_field_type))
5656

5757
if call.success?
58+
custom_field = call.result
5859
flash[:notice] = t(:notice_successful_create)
59-
call_hook(:controller_custom_fields_new_after_save, custom_field: call.result)
60-
redirect_to index_path(call.result, tab: call.result.class.name)
60+
call_hook(:controller_custom_fields_new_after_save, custom_field:)
61+
redirect_to edit_path(custom_field, id: custom_field.id)
6162
else
6263
@custom_field = call.result || new_custom_field
6364
render action: :new, status: :unprocessable_entity
@@ -142,7 +143,7 @@ def prepare_custom_option_position
142143

143144
index = 0
144145

145-
params[:custom_field][:custom_options_attributes].each do |_id, attributes|
146+
params[:custom_field][:custom_options_attributes].each_value do |attributes|
146147
attributes[:position] = (index = index + 1)
147148
end
148149
end

app/models/work_package_custom_field.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class WorkPackageCustomField < CustomField
6161
}
6262

6363
scope :usable_as_custom_action, -> {
64-
where.not(field_format: %w[hierarchy])
64+
where.not(field_format: %w[hierarchy scored_list])
6565
.order(:name)
6666
}
6767

config/locales/crowdin/af.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ af:
643643
title: "Session management"
644644
instructions: "You are logged in to your account through the following devices. Revoke sessions that you do not recognise or from devices you do not control."
645645
may_not_delete_current: "You cannot delete your current session."
646+
deletion_warning: "Are you sure you want to revoke this session? You will be logged out on this device."
646647
groups:
647648
member_in_these_groups: "This user is currently a member of the following groups:"
648649
no_results_title_text: This user is currently not a member in any group.
@@ -2581,22 +2582,15 @@ af:
25812582
header: "Read about new features and product updates."
25822583
learn_about: "Learn more about all new features"
25832584
#We need to include the version to invalidate outdated translations in other locales
2584-
"16_4":
2585-
new_features_title: >
2586-
The release contains various new features and improvements, such as:
2587-
new_features_list:
2588-
line_0: Option to auto-sync system color + contrast mode.
2589-
line_1: Dark high contrast mode for improved accessibility.
2590-
line_2: PDF export of project lists.
2591-
line_3: Custom font for all PDF exports (Enterprise add-on).
2592-
line_4: Improved meeting participants dialog.
2593-
line_5: Improved budget handling in project queries and budget planning.
2594-
line_6: Updated Home and Project overview page.
25952585
"16_5":
25962586
new_features_title: >
25972587
The release contains various new features and improvements, such as:
25982588
new_features_list:
2599-
line_0: New features and improvements coming soon. Keep checking back!
2589+
line_0: Add work packages to a meeting section in the Meetings tab.
2590+
line_1: Choose color mode more conveniently with “Increase contrast” checkboxes.
2591+
line_2: Filter projects by last update.
2592+
line_3: Jump to highlighted target elements from deep links.
2593+
line_4: Confirm critical actions with more accessible danger dialogs.
26002594
links:
26012595
upgrade_enterprise_edition: "Upgrade to Enterprise edition"
26022596
postgres_migration: "Migrating your installation to PostgreSQL"

0 commit comments

Comments
 (0)