Skip to content

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

Responsible -> Presenter

Klaus Zanders4164e81ad57a
diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
index 579c35f98fd..063d0fa056e 100644
--- a/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.html.erb
@@ -19,8 +19,8 @@
render(MeetingAgendaItem::Duration.new(f))
end
- grid.with_area(:responsible) do
- render(MeetingAgendaItem::Responsible.new(f))
+ grid.with_area(:presenter) do
+ render(MeetingAgendaItem::Presenter.new(f))
end
grid.with_area(:notes,
diff --git a/modules/meeting/app/components/meeting_agenda_items/form_component.sass b/modules/meeting/app/components/meeting_agenda_items/form_component.sass
index 5daff020414..f099afaafb1 100644
--- a/modules/meeting/app/components/meeting_agenda_items/form_component.sass
+++ b/modules/meeting/app/components/meeting_agenda_items/form_component.sass
@@ -3,7 +3,7 @@
.op-meeting-agenda-item-form
display: grid
grid-template-columns: 2fr 1fr 140px
- grid-template-areas: "title responsible duration" "notes notes notes" "add_note actions actions"
+ grid-template-areas: "title presenter duration" "notes notes notes" "add_note actions actions"
grid-gap: 8px
&--actions
@@ -11,4 +11,4 @@
@media screen and (max-width: $breakpoint-sm)
grid-template-columns: 1fr auto
- grid-template-areas: "title title" "duration responsible" "notes notes" "add_note actions"
+ grid-template-areas: "title title" "duration presenter" "notes notes" "add_note actions"
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
index d902067a7dd..0509445bdac 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.html.erb
@@ -50,11 +50,11 @@
end
end
- if @meeting_agenda_item.responsible
- grid.with_area(:responsible, tag: :div, classes: 'ellipsis') do
+ if @meeting_agenda_item.presenter
+ grid.with_area(:presenter, tag: :div, classes: 'ellipsis') do
flex_layout do |flex|
flex.with_column(classes: 'ellipsis') do
- render(Users::AvatarComponent.new(user: @meeting_agenda_item.responsible, size: 'mini', title:, classes: 'op-principal_flex'))
+ render(Users::AvatarComponent.new(user: @meeting_agenda_item.presenter, size: 'mini', title:, classes: 'op-principal_flex'))
end
end
end
diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass
index 0f7fda15d69..ce0916d3850 100644
--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass
+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.sass
@@ -1,23 +1,23 @@
@import 'helpers'
-$meeting-agenda-item--responsible-width: 300px
+$meeting-agenda-item--presenter-width: 300px
.op-meeting-agenda-item
display: grid
- grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--responsible-width) fit-content(40px)
- grid-template-areas: "drag-handle content duration responsible actions" ". notes notes notes notes"
+ grid-template-columns: 20px auto 1fr fit-content($meeting-agenda-item--presenter-width) fit-content(40px)
+ grid-template-areas: "drag-handle content duration presenter actions" ".notes notes notes notes"
&--drag-handle,
&--duration,
&--content,
- &--responsible
+ &--presenter
align-self: center
&--actions
justify-self: end
&--responsbile
- max-width: $meeting-agenda-item--responsible-width
+ max-width: $meeting-agenda-item--presenter-width
justify-self: end
&--duration
@@ -28,7 +28,7 @@ $meeting-agenda-item--responsible-width: 300px
@media screen and (max-width: $breakpoint-lg)
grid-template-columns: 20px auto 1fr 50px
- grid-template-areas: "drag-handle content content actions" ". responsible responsible duration" ". notes notes notes"
+ grid-template-areas: "drag-handle content content actions" ".presenter presenter duration" ".notes notes notes"
&--author
justify-self: stretch
diff --git a/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb b/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb
index 1367d5a5532..414ebd2cd02 100644
--- a/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb
+++ b/modules/meeting/app/contracts/meeting_agenda_items/base_contract.rb
@@ -41,6 +41,6 @@ module MeetingAgendaItems
attribute :title
attribute :duration_in_minutes
attribute :notes
- attribute :responsible
+ attribute :presenter
end
end
diff --git a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb b/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
index 7e3e63550a6..dbef2a15100 100644
--- a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
+++ b/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
@@ -197,7 +197,7 @@ class MeetingAgendaItemsController < ApplicationController
def meeting_agenda_item_params
params
.require(:meeting_agenda_item)
- .permit(:title, :duration_in_minutes, :responsible_id, :notes, :work_package_id, :lock_version)
+ .permit(:title, :duration_in_minutes, :presenter_id, :notes, :work_package_id, :lock_version)
end
def generic_call_failure_response(call)
diff --git a/modules/meeting/app/forms/meeting_agenda_item/responsible.rb b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb
similarity index 95%
rename from modules/meeting/app/forms/meeting_agenda_item/responsible.rb
rename to modules/meeting/app/forms/meeting_agenda_item/presenter.rb
index 6c52851e305..0301bcebbdc 100644
--- a/modules/meeting/app/forms/meeting_agenda_item/responsible.rb
+++ b/modules/meeting/app/forms/meeting_agenda_item/presenter.rb
@@ -26,11 +26,11 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-class MeetingAgendaItem::Responsible < ApplicationForm
+class MeetingAgendaItem::Presenter < ApplicationForm
form do |f|
f.user_autocompleter(
name: :responsible_id,
- label: I18n.t("attributes.responsible"),
+ label: I18n.t("attributes.presenter"),
visually_hide_label: true,
autocomplete_options: {
url: ::API::V3::Utilities::PathHelper::ApiV3Path.principals,
diff --git a/modules/meeting/app/models/meeting_agenda_item.rb b/modules/meeting/app/models/meeting_agenda_item.rb
index a5b0751467b..3babdc799c9 100644
--- a/modules/meeting/app/models/meeting_agenda_item.rb
+++ b/modules/meeting/app/models/meeting_agenda_item.rb
@@ -39,7 +39,7 @@ class MeetingAgendaItem < ApplicationRecord
belongs_to :work_package, class_name: "::WorkPackage"
has_one :project, through: :meeting
belongs_to :author, class_name: "User", optional: false
- belongs_to :responsible, class_name: "User", optional: true
+ belongs_to :presenter, class_name: "User", optional: true
acts_as_list scope: :meeting
default_scope { order(:position) }
diff --git a/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb b/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb
index 77b0df351a1..ce9e93e3550 100644
--- a/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb
+++ b/modules/meeting/db/migrate/20240313102951_add_responsible_to_meeting.rb
@@ -1,6 +1,6 @@
class AddResponsibleToMeeting < ActiveRecord::Migration[7.1]
def change
- add_reference :meeting_agenda_items, :responsible, type: :bigint, foreign_key: { to_table: :users }, index: true
- add_reference :meeting_agenda_item_journals, :responsible, type: :bigint, foreign_key: { to_table: :users }, index: true
+ add_reference :meeting_agenda_items, :presenter, type: :bigint, foreign_key: { to_table: :users }, index: true
+ add_reference :meeting_agenda_item_journals, :presenter, type: :bigint, foreign_key: { to_table: :users }, index: true
end
end