OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge branch 'dev' into merge-release/15.3-20250213161949
Alexander Brandon Coles17617191cc13
diff --cc modules/meeting/app/components/meetings/delete_dialog_component.html.erbindex f4c5f93e97b,f78a174c8c4..5ec7fddc639--- a/modules/meeting/app/components/meetings/delete_dialog_component.html.erb+++ b/modules/meeting/app/components/meetings/delete_dialog_component.html.erb@@@ -28,17 -28,17 +28,19 @@@ See COPYRIGHT and LICENSE files for mor++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- confirm_button_text:,- cancel_button_text:,- form_arguments: {- action: project_meeting_path(@project, @meeting, back_url: @back_url),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,++ confirm_button_text:,++ cancel_button_text:,+ form_arguments: {- action: polymorphic_path([@project, @meeting.becomes(Meeting)]),++ action: project_meeting_path(@project, @meeting, back_url: @back_url),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { heading }message.with_description_content(confirmation_message)diff --cc modules/meeting/app/components/meetings/header_component.html.erbindex 82cc17ba597,1fcdfc92d1f..0802710ac72--- a/modules/meeting/app/components/meetings/header_component.html.erb+++ b/modules/meeting/app/components/meetings/header_component.html.erb@@@ -5,20 -5,24 +5,24 @@@keep_scroll_position_url_value: meeting_path(@meeting)component_wrapper do- render(Primer::OpenProject::PageHeader.new(- test_selector: "meeting-page-header",- state: @state,- data: {- poll_for_changes_target: "reference",- reference_value: @meeting.changed_hash- }- )) do |header|+ render(+ Primer::OpenProject::PageHeader.new(+ test_selector: "meeting-page-header",+ state: @state,+ data: {+ poll_for_changes_target: "reference",+ reference_value: @meeting.changed_hash+ }+ )+ ) do |header|header.with_title do |title|- title.with_editable_form(model: @meeting,- update_path: update_title_project_meeting_path(@project, @meeting),- cancel_path: cancel_edit_project_meeting_path(@project, @meeting),- label: Meeting.human_attribute_name(:title),- placeholder: Meeting.human_attribute_name(:title))+ title.with_editable_form(+ model: @meeting,- update_path: update_title_meeting_path(@meeting),- cancel_path: cancel_edit_meeting_path(@meeting),++ update_path: update_title_project_meeting_path(@project, @meeting),++ cancel_path: cancel_edit_project_meeting_path(@project, @meeting),+ label: Meeting.human_attribute_name(:title),+ placeholder: Meeting.human_attribute_name(:title)+ )if @meeting.template?"#{@meeting.title} (#{I18n.t(:label_template)})"elsif @series.present?@@@ -45,27 -49,33 +49,33 @@@endend- header.with_action_menu(menu_arguments: {},- button_arguments: { icon: "kebab-horizontal",- "aria-label": t("label_meeting_actions"),- classes: "hide-when-print",- test_selector: "op-meetings-header-action-trigger" }) do |menu|+ header.with_action_menu(+ menu_arguments: {},+ button_arguments: { icon: "kebab-horizontal",+ "aria-label": t("label_meeting_actions"),+ classes: "hide-when-print",+ test_selector: "op-meetings-header-action-trigger" }+ ) do |menu|if @meeting.editable? && !@series- menu.with_item(label: t("label_meeting_edit_title"),- href: edit_project_meeting_path(@project, @meeting),- content_arguments: {- data: { "turbo-stream": true }- }) do |item|+ menu.with_item(+ label: t("label_meeting_edit_title"),- href: edit_meeting_path(@meeting),++ href: edit_project_meeting_path(@project, @meeting),+ content_arguments: {+ data: { "turbo-stream": true }+ }+ ) do |item|item.with_leading_visual_icon(icon: :pencil)endendunless @meeting.template?- menu.with_item(label: copy_label,- href: copy_project_meeting_path(@project, @meeting),- content_arguments: {- data: { turbo_stream: true }- }) do |item|+ menu.with_item(+ label: copy_label,- href: copy_meeting_path(@meeting),++ href: copy_project_meeting_path(@project, @meeting),+ content_arguments: {+ data: { turbo_stream: true }+ }+ ) do |item|item.with_leading_visual_icon(icon: :copy)end@@@ -75,32 -87,38 +87,38 @@@endif @meeting.open? && User.current.allowed_in_project?(:send_meeting_agendas_notification, @meeting.project)- menu.with_item(label: t("meeting.label_mail_all_participants"),- href: notify_project_meeting_path(@project, @meeting),- form_arguments: { method: :post, data: { turbo: "false" } }) do |item|+ menu.with_item(+ label: t("meeting.label_mail_all_participants"),- href: notify_meeting_path(@meeting),++ href: notify_project_meeting_path(@project, @meeting),+ form_arguments: { method: :post, data: { turbo: "false" } }+ ) do |item|item.with_leading_visual_icon(icon: :mail)endendend- menu.with_item(label: t(:label_history),- tag: :a,- href: history_project_meeting_path(@project, @meeting),- content_arguments: {- "data-controller": "async-dialog"- },- value: "") do |item|+ menu.with_item(+ label: t(:label_history),+ tag: :a,- href: history_meeting_path(@meeting),++ href: history_project_meeting_path(@project, @meeting),+ content_arguments: {+ "data-controller": "async-dialog"+ },+ value: ""+ ) do |item|item.with_leading_visual_icon(icon: :clock) # or :check TBDendif delete_enabled?- menu.with_item(label: delete_label,- scheme: :danger,- href: delete_dialog_project_meeting_path(@project, @meeting),- tag: :a,- content_arguments: {- data: { controller: "async-dialog" }- }) do |item|+ menu.with_item(+ label: delete_label,+ scheme: :danger,- href: polymorphic_path([:delete_dialog, @project, @meeting.becomes(Meeting)]),++ href: delete_dialog_project_meeting_path(@project, @meeting),+ tag: :a,+ content_arguments: {+ data: { controller: "async-dialog" }+ }+ ) do |item|item.with_leading_visual_icon(icon: :trash)endenddiff --cc modules/meeting/app/components/meetings/index_sub_header_component.html.erbindex 922fcb28ebf,72e276465fb..9edf4c9cdc8--- a/modules/meeting/app/components/meetings/index_sub_header_component.html.erb+++ b/modules/meeting/app/components/meetings/index_sub_header_component.html.erb@@@ -1,55 -1,63 +1,63 @@@- <%= render(Primer::OpenProject::SubHeader.new(data: {- controller: "filter--filters-form",- "application-target": "dynamic",- "filter--filters-form-output-format-value": "json",- })) do |subheader|- subheader.with_filter_component do- render(Meetings::CombinedFilterComponent.new(query: @query, project: @project, params: @params))- end-- if render_create_button?- subheader.with_action_component do+ <%= render(+ Primer::OpenProject::SubHeader.new(+ data: {+ controller: "filter--filters-form",+ "application-target": "dynamic",+ "filter--filters-form-output-format-value": "json"+ }+ )+ ) do |subheader|+ subheader.with_filter_component do+ render(Meetings::CombinedFilterComponent.new(query: @query, project: @project, params: @params))+ end- render Primer::Alpha::ActionMenu.new(anchor_align: :end) do |menu|- menu.with_show_button(scheme: :primary,- test_selector: "add-meeting-button",- mobile_icon: :plus,- mobile_label: label_text,- id: id,- title: accessibility_label_text,- aria: { label: accessibility_label_text }) do |button|- button.with_leading_visual_icon(icon: :plus)- button.with_trailing_action_icon(icon: :"triangle-down")- I18n.t(:label_meeting)- end+ if render_create_button?+ subheader.with_action_component do+ render Primer::Alpha::ActionMenu.new(anchor_align: :end) do |menu|+ menu.with_show_button(+ scheme: :primary,+ test_selector: "add-meeting-button",+ mobile_icon: :plus,+ mobile_label: label_text,+ id: id,+ title: accessibility_label_text,+ aria: { label: accessibility_label_text }+ ) do |button|+ button.with_leading_visual_icon(icon: :plus)+ button.with_trailing_action_icon(icon: :"triangle-down")+ I18n.t(:label_meeting)+ end- menu.with_item(label: I18n.t("meeting.types.one_time"),- tag: :a,- href: polymorphic_path([:new_dialog, @project, :meetings], type: :structured),- content_arguments: { data: { controller: "async-dialog" } }- ) do |item|- item.with_description.with_content(t("meeting.types.structured_text"))- end+ menu.with_item(+ label: I18n.t("meeting.types.one_time"),+ tag: :a,- href: new_dialog_meetings_path(project_id: @project&.id, type: :structured),++ href: polymorphic_path([:new_dialog, @project, :meetings], type: :structured),+ content_arguments: { data: { controller: "async-dialog" } }+ ) do |item|+ item.with_description.with_content(t("meeting.types.structured_text"))+ end- menu.with_item(label: I18n.t("meeting.types.recurring"),- tag: :a,- href: polymorphic_path([:new_dialog, @project, :meetings], type: :recurring),- content_arguments: { data: { controller: "async-dialog" } }- ) do |item|- item.with_description.with_content(t("meeting.types.recurring_text"))- end+ menu.with_item(+ label: I18n.t("meeting.types.recurring"),+ tag: :a,- href: new_dialog_meetings_path(project_id: @project&.id, type: :recurring),++ href: polymorphic_path([:new_dialog, @project, :meetings], type: :recurring),+ content_arguments: { data: { controller: "async-dialog" } }+ ) do |item|+ item.with_description.with_content(t("meeting.types.recurring_text"))+ end- menu.with_item(label: I18n.t("meeting.types.classic"),- tag: :a,- href: dynamic_path- ) do |item|- item.with_description.with_content(t("meeting.types.classic_text"))+ menu.with_item(+ label: I18n.t("meeting.types.classic"),+ tag: :a,+ href: dynamic_path+ ) do |item|+ item.with_description.with_content(t("meeting.types.classic_text"))+ end+ endendend- end- end- subheader.with_bottom_pane_component(mt: 0) do- render(Meetings::MeetingFiltersComponent.new(query: @query, project: @project))- end- end %>+ subheader.with_bottom_pane_component(mt: 0) do+ render(Meetings::MeetingFiltersComponent.new(query: @query, project: @project))+ end+ end %>diff --cc modules/meeting/app/components/meetings/side_panel/details_component.html.erbindex 7bb46b14bec,6a61d098c27..645f710da98--- a/modules/meeting/app/components/meetings/side_panel/details_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/details_component.html.erb@@@ -124,14 -126,16 +126,16 @@@endpeople.with_column(mr: 2) do- render(Primer::Beta::Button.new(- scheme: :link,- underline: false,- tag: :a,- href: participants_dialog_project_meeting_path(@project, @meeting),- classes: "hide-when-print",- data: { controller: 'async-dialog' }- )) do+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ underline: false,+ tag: :a,- href: participants_dialog_meeting_path(@meeting),++ href: participants_dialog_project_meeting_path(@project, @meeting),+ classes: "hide-when-print",+ data: { controller: "async-dialog" }+ )+ ) dot("label_meeting_show_all_participants")endenddiff --cc modules/meeting/app/components/meetings/side_panel/participants_component.html.erbindex 181af8854ae,c45f1e8bc60..1a6ef01c443--- a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb@@@ -13,11 -13,11 +13,11 @@@icon: :gear,scheme: :invisible,tag: :a,- href: participants_dialog_meeting_path(@meeting),+ href: participants_dialog_project_meeting_path(@project, @meeting),classes: "hide-when-print",- data: { controller: 'async-dialog' },- 'aria-label': t("label_meeting_manage_participants"),- test_selector: "manage-participants-button",+ data: { controller: "async-dialog" },+ "aria-label": t("label_meeting_manage_participants"),+ test_selector: "manage-participants-button")end@@@ -33,16 -33,18 +33,18 @@@if @meeting.editable?participants_container.with_row(mt: 3) do- render(Primer::Beta::Button.new(- scheme: :link,- color: :default,- underline: false,- font_weight: :bold,- tag: :a,- href: participants_dialog_project_meeting_path(@project, @meeting),- classes: "hide-when-print",- data: { controller: 'async-dialog' }- )) do |button|+ render(+ Primer::Beta::Button.new(+ scheme: :link,+ color: :default,+ underline: false,+ font_weight: :bold,+ tag: :a,- href: participants_dialog_meeting_path(@meeting),++ href: participants_dialog_project_meeting_path(@project, @meeting),+ classes: "hide-when-print",+ data: { controller: "async-dialog" }+ )+ ) do |button|button.with_leading_visual_icon(icon: "person-add")t("label_meeting_add_participants")enddiff --cc modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erbindex 14ef8566395,c2b0096a566..18922ae2ba3--- a/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/participants_dialog.html.erb@@@ -12,12 -14,11 +14,11 @@@id: "edit_participants_form",model: @meeting,method: :put,- url: update_participants_meeting_path(@meeting),+ url: update_participants_project_meeting_path(@project, @meeting),data: { turbo: true, turbo_stream: true },- class: 'Overlay-form'- ) do |f|+ class: "Overlay-form"+ ) do |_f|flex_layout do |form_container|-form_container.with_row doflex_layout(justify_content: :flex_end) do |header|header.with_column(style: "width: 90px;", text_align: :center) dodiff --cc modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erbindex e06d09e2df2,3fe5ea06d09..9a96b25fad1--- a/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/delete_dialog_component.html.erb@@@ -28,15 -28,17 +28,17 @@@ See COPYRIGHT and LICENSE files for mor++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- form_arguments: {- action: project_recurring_meeting_path(@project, @recurring_meeting),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ form_arguments: {- action: polymorphic_path([@project, @recurring_meeting]),++ action: project_recurring_meeting_path(@project, @recurring_meeting),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t("recurring_meeting.delete_dialog.heading") }message.with_description_content(confirmation_message)diff --cc modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erbindex e0aabf2fb70,c4c5ddb92f8..1e44d0a1692--- a/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/delete_scheduled_dialog_component.html.erb@@@ -28,21 -28,22 +28,23 @@@ See COPYRIGHT and LICENSE files for mor++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id:,- title:,- confirm_button_text:,- cancel_button_text:,- form_arguments: {- action: destroy_scheduled_project_recurring_meeting_path(- @project,- @series,- start_time: @scheduled_meeting.start_time.iso8601- ),- method: :delete,- data: { turbo: true }- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id:,+ title:,+ confirm_button_text:,+ cancel_button_text:,+ form_arguments: {- action: polymorphic_path(- [:destroy_scheduled, @project, @scheduled_meeting.recurring_meeting],++ action: destroy_scheduled_project_recurring_meeting_path(++ @project,++ @series,+ start_time: @scheduled_meeting.start_time.iso8601+ ),+ method: :delete,+ data: { turbo: true }+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t("recurring_meeting.scheduled_delete_dialog.heading") }message.with_description_content(confirmation_message)diff --cc modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erbindex f914390c6b1,c63155aad61..0a56e3d5721--- a/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/end_series_dialog_component.html.erb@@@ -28,15 -28,17 +28,17 @@@ See COPYRIGHT and LICENSE files for mor++#%><%=- render(Primer::OpenProject::DangerDialog.new(- id: "recurring-meetings-end-series-dialog",- confirm_button_text: I18n.t(:label_recurring_meeting_series_end_now),- title: I18n.t("recurring_meeting.end_series_dialog.title"),- form_arguments: {- action: end_series_project_recurring_meeting_path(@project, @series),- method: :post- }- )) do |dialog|+ render(+ Primer::OpenProject::DangerDialog.new(+ id: "recurring-meetings-end-series-dialog",+ confirm_button_text: I18n.t(:label_recurring_meeting_series_end_now),+ title: I18n.t("recurring_meeting.end_series_dialog.title"),+ form_arguments: {- action: end_series_recurring_meeting_path(@series),++ action: end_series_project_recurring_meeting_path(@project, @series),+ method: :post+ }+ )+ ) do |dialog|dialog.with_confirmation_message do |message|message.with_heading(tag: :h2) { I18n.t(:text_meeting_series_end_early_heading) }message.with_description_content(I18n.t(:text_meeting_series_end_early))diff --cc modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erbindex d604ae9d795,2a1439dad5d..974eea0e2f3--- a/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/show_page_header_component.html.erb@@@ -20,13 -21,13 +21,13 @@@menu.with_item(label: I18n.t(:label_recurring_meeting_series_edit),icon: :gear,- href: details_dialog_recurring_meeting_path(@meeting),+ href: details_dialog_project_recurring_meeting_path(@project, @meeting),tag: :a,content_arguments: {- data: { controller: 'async-dialog' },+ data: { controller: "async-dialog" }},- 'aria-label': t(:label_recurring_meeting_series_edit),- test_selector: "edit-meeting-details-button",+ "aria-label": t(:label_recurring_meeting_series_edit),+ test_selector: "edit-meeting-details-button") do |item|item.with_leading_visual_icon(icon: :pencil)end@@@ -39,8 -40,8 +40,8 @@@endmenu.with_item(- label: t('meeting.label_mail_all_participants'),+ label: t("meeting.label_mail_all_participants"),- href: notify_recurring_meeting_path(@meeting),+ href: notify_project_recurring_meeting_path(@project, @meeting),form_arguments: { method: :post }) do |item|item.with_leading_visual_icon(icon: :mail)@@@ -49,10 -50,10 +50,10 @@@if [email protected]_ended? && @meeting.start_time.to_date < Time.zone.todaymenu.with_item(label: t(:label_recurring_meeting_series_end),- href: end_series_dialog_recurring_meeting_path(@meeting),+ href: end_series_dialog_project_recurring_meeting_path(@project, @meeting),tag: :a,content_arguments: {- data: { controller: 'async-dialog' },+ data: { controller: "async-dialog" }}) do |item|item.with_leading_visual_icon(icon: :"x-circle")diff --cc modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erbindex 68ab3beef82,1fd739456c0..a666c1e6ac8--- a/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb+++ b/modules/meeting/app/components/recurring_meetings/show_page_sub_header_component.html.erb@@@ -1,22 -1,30 +1,30 @@@- <%= render(Primer::OpenProject::SubHeader.new(data: {- controller: "filter--filters-form",- "application-target": "dynamic",- "filter--filters-form-output-format-value": "json",- })) do |subheader|- subheader.with_filter_component do- render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|- control.with_item(tag: :a,- icon: :"arrow-right",- href: project_recurring_meeting_path(@meeting.project, @meeting),- label: t(:label_upcoming_meetings_short),- title: t(:label_upcoming_meetings),- selected: @params[:direction] != "past")- control.with_item(tag: :a,- icon: :history,- href: project_recurring_meeting_path(@meeting.project, @meeting, direction: :past),- label: t(:label_past_meetings_short),- title: t(:label_past_meetings),- selected: @params[:direction] == "past")- end- end- end %>+ <%= render(+ Primer::OpenProject::SubHeader.new(+ data: {+ controller: "filter--filters-form",+ "application-target": "dynamic",+ "filter--filters-form-output-format-value": "json"+ }+ )+ ) do |subheader|+ subheader.with_filter_component do+ render(Primer::Alpha::SegmentedControl.new("aria-label": I18n.t(:label_filter_plural))) do |control|+ control.with_item(+ tag: :a,+ icon: :"arrow-right",- href: recurring_meeting_path(@meeting),++ href: project_recurring_meeting_path(@meeting.project, @meeting),+ label: t(:label_upcoming_meetings_short),+ title: t(:label_upcoming_meetings),+ selected: @params[:direction] != "past"+ )+ control.with_item(+ tag: :a,+ icon: :history,- href: recurring_meeting_path(@meeting, direction: :past),++ href: project_recurring_meeting_path(@meeting.project, @meeting, direction: :past),+ label: t(:label_past_meetings_short),+ title: t(:label_past_meetings),+ selected: @params[:direction] == "past"+ )+ end+ end+ end %>diff --cc modules/meeting/app/views/meetings/show.html.erbindex 7c76d8122c7,6b1323afb4b..85880071451--- a/modules/meeting/app/views/meetings/show.html.erb+++ b/modules/meeting/app/views/meetings/show.html.erb@@@ -73,18 -73,22 +73,22 @@@ See COPYRIGHT and LICENSE files for mor<% end %><% if authorize_for(:meetings, :copy) %><li>- <%= link_to(t(:button_copy),- copy_project_meeting_path(@project, @meeting),- class: "icon-context icon-copy") %>+ <%= link_to(+ t(:button_copy),- copy_meeting_path(@meeting),++ copy_project_meeting_path(@project, @meeting),+ class: "icon-context icon-copy"+ ) %></li><% end %><% if authorize_for(:meetings, :destroy) %><li>- <%= link_to(t(:button_delete),- project_meeting_path(@project, @meeting),- class: "icon-context icon-delete",- method: :delete,- data: { confirm: t(:text_are_you_sure) }) %>+ <%= link_to(+ t(:button_delete),- polymorphic_path([@project, @meeting]),++ project_meeting_path(@project, @meeting),+ class: "icon-context icon-delete",+ method: :delete,+ data: { confirm: t(:text_are_you_sure) }+ ) %></li><% end %></ul>