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

rename life cycle phase components

ulferts2688bad07995
diff --git a/app/components/projects/settings/life_cycle_steps/index_component.html.erb b/app/components/projects/settings/life_cycle/index_component.html.erb
similarity index 97%
rename from app/components/projects/settings/life_cycle_steps/index_component.html.erb
rename to app/components/projects/settings/life_cycle/index_component.html.erb
index 4f9ce4fa6f7..c3b867a620e 100644
--- a/app/components/projects/settings/life_cycle_steps/index_component.html.erb
+++ b/app/components/projects/settings/life_cycle/index_component.html.erb
@@ -78,7 +78,7 @@
data: { "projects--settings--border-box-filter-target": "searchItem" },
test_selector: "project-life-cycle-step-#{definition.id}"
) do
- render(Projects::Settings::LifeCycleSteps::StepComponent.new(definition:, active?: active))
+ render(Projects::Settings::LifeCycle::PhaseComponent.new(definition:, active?: active))
end
end
end
diff --git a/app/components/projects/settings/life_cycle_steps/index_component.rb b/app/components/projects/settings/life_cycle/index_component.rb
similarity index 98%
rename from app/components/projects/settings/life_cycle_steps/index_component.rb
rename to app/components/projects/settings/life_cycle/index_component.rb
index d747a35cfc4..a90c57804ee 100644
--- a/app/components/projects/settings/life_cycle_steps/index_component.rb
+++ b/app/components/projects/settings/life_cycle/index_component.rb
@@ -28,7 +28,7 @@
module Projects
module Settings
- module LifeCycleSteps
+ module LifeCycle
class IndexComponent < ApplicationComponent
include ApplicationHelper
include OpPrimer::ComponentHelpers
diff --git a/app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb b/app/components/projects/settings/life_cycle/index_page_header_component.html.erb
similarity index 100%
rename from app/components/projects/settings/life_cycle_steps/index_page_header_component.html.erb
rename to app/components/projects/settings/life_cycle/index_page_header_component.html.erb
diff --git a/app/components/projects/settings/life_cycle_steps/index_page_header_component.rb b/app/components/projects/settings/life_cycle/index_page_header_component.rb
similarity index 97%
rename from app/components/projects/settings/life_cycle_steps/index_page_header_component.rb
rename to app/components/projects/settings/life_cycle/index_page_header_component.rb
index 8be423936db..3a42453ac37 100644
--- a/app/components/projects/settings/life_cycle_steps/index_page_header_component.rb
+++ b/app/components/projects/settings/life_cycle/index_page_header_component.rb
@@ -28,7 +28,7 @@
# See COPYRIGHT and LICENSE files for more details.
# ++
-module Projects::Settings::LifeCycleSteps
+module Projects::Settings::LifeCycle
class IndexPageHeaderComponent < ApplicationComponent
include ApplicationHelper
diff --git a/app/components/projects/settings/life_cycle_steps/step_component.html.erb b/app/components/projects/settings/life_cycle/phase_component.html.erb
similarity index 100%
rename from app/components/projects/settings/life_cycle_steps/step_component.html.erb
rename to app/components/projects/settings/life_cycle/phase_component.html.erb
diff --git a/app/components/projects/settings/life_cycle_steps/step_component.rb b/app/components/projects/settings/life_cycle/phase_component.rb
similarity index 95%
rename from app/components/projects/settings/life_cycle_steps/step_component.rb
rename to app/components/projects/settings/life_cycle/phase_component.rb
index f53990c6670..3d00283072b 100644
--- a/app/components/projects/settings/life_cycle_steps/step_component.rb
+++ b/app/components/projects/settings/life_cycle/phase_component.rb
@@ -28,8 +28,8 @@
module Projects
module Settings
- module LifeCycleSteps
- class StepComponent < ApplicationComponent
+ module LifeCycle
+ class PhaseComponent < ApplicationComponent
include ApplicationHelper
include OpPrimer::ComponentHelpers
include OpTurbo::Streamable
diff --git a/app/views/projects/settings/life_cycle_steps/index.html.erb b/app/views/projects/settings/life_cycle_steps/index.html.erb
index 65805a9c311..6cb826f2993 100644
--- a/app/views/projects/settings/life_cycle_steps/index.html.erb
+++ b/app/views/projects/settings/life_cycle_steps/index.html.erb
@@ -27,10 +27,10 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%= render(Projects::Settings::LifeCycleSteps::IndexPageHeaderComponent.new(project: @project)) %>
+<%= render(Projects::Settings::LifeCycle::IndexPageHeaderComponent.new(project: @project)) %>
<%= render(
- Projects::Settings::LifeCycleSteps::IndexComponent.new(
+ Projects::Settings::LifeCycle::IndexComponent.new(
project: @project,
life_cycle_definitions: @life_cycle_definitions
)