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

switch icons for phases&gates

ulferts78c768bd0fc2
diff --git a/app/components/projects/life_cycle_component.rb b/app/components/projects/life_cycle_component.rb
index 421424a7c66..d9fc12c025d 100644
--- a/app/components/projects/life_cycle_component.rb
+++ b/app/components/projects/life_cycle_component.rb
@@ -44,8 +44,7 @@ module Projects
end
def icon
- # TODO: Update icon as per mockups.
- :"git-commit"
+ :"op-phase"
end
def icon_color_class
diff --git a/app/components/projects/phase_component.rb b/app/components/projects/phase_component.rb
index 70eed681048..ea5c4471534 100644
--- a/app/components/projects/phase_component.rb
+++ b/app/components/projects/phase_component.rb
@@ -62,8 +62,7 @@ module Projects
end
def gate_icon
- # TODO: use op-gate once octicons is released and merged in
- :"git-commit"
+ :"op-gate"
end
def icon_color_class
diff --git a/app/forms/projects/life_cycles/form.rb b/app/forms/projects/life_cycles/form.rb
index 0d86e332e4c..f1b45dad326 100644
--- a/app/forms/projects/life_cycles/form.rb
+++ b/app/forms/projects/life_cycles/form.rb
@@ -87,7 +87,7 @@ module Projects::LifeCycles
def icon
icon_name = case model
when Project::Stage
- :"git-commit"
+ :"op-phase"
when Project::Gate
:diamond
else
diff --git a/app/models/queries/projects/selects/project_phase.rb b/app/models/queries/projects/selects/project_phase.rb
index 6609b883f70..1aeefc0d3d8 100644
--- a/app/models/queries/projects/selects/project_phase.rb
+++ b/app/models/queries/projects/selects/project_phase.rb
@@ -65,8 +65,7 @@ class Queries::Projects::Selects::ProjectPhase < Queries::Selects::Base
def visual_icon
{
- # TODO: needs to be changed
- icon: :"git-commit",
+ icon: :"op-phase",
classes: helpers.hl_inline_class("project_phase_definition", project_phase_definition)
}
end
diff --git a/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.rb b/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.rb
index 43e1f19da34..178b3b04e9e 100644
--- a/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.rb
+++ b/modules/overviews/app/components/project_life_cycles/sections/project_life_cycles/show_component.rb
@@ -54,7 +54,7 @@ module ProjectLifeCycles
def icon
case model
when Project::Stage
- :"git-commit"
+ :"op-phase"
when Project::Gate
:diamond
else
diff --git a/spec/helpers/sort_helper_spec.rb b/spec/helpers/sort_helper_spec.rb
index aee9c2669f0..3d367ff843f 100644
--- a/spec/helpers/sort_helper_spec.rb
+++ b/spec/helpers/sort_helper_spec.rb
@@ -447,7 +447,7 @@ RSpec.describe SortHelper do
end
it "shows a commit icon in the header for gates" do
- icon = action_menu.at_css(".generic-table--action-menu-button .Button-leadingVisual .octicon-git-commit")
+ icon = action_menu.at_css(".generic-table--action-menu-button .Button-leadingVisual .octicon-op-phase")
expect(icon).to be_present
header_text = action_menu.at_css(".generic-table--action-menu-button .Button-label").text.strip