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
switch icons for phases&gates
ulferts78c768bd0fc2
diff --git a/app/components/projects/life_cycle_component.rb b/app/components/projects/life_cycle_component.rbindex 421424a7c66..d9fc12c025d 100644--- a/app/components/projects/life_cycle_component.rb+++ b/app/components/projects/life_cycle_component.rb@@ -44,8 +44,7 @@ module Projectsenddef icon- # TODO: Update icon as per mockups.- :"git-commit"+ :"op-phase"enddef icon_color_classdiff --git a/app/components/projects/phase_component.rb b/app/components/projects/phase_component.rbindex 70eed681048..ea5c4471534 100644--- a/app/components/projects/phase_component.rb+++ b/app/components/projects/phase_component.rb@@ -62,8 +62,7 @@ module Projectsenddef gate_icon- # TODO: use op-gate once octicons is released and merged in- :"git-commit"+ :"op-gate"enddef icon_color_classdiff --git a/app/forms/projects/life_cycles/form.rb b/app/forms/projects/life_cycles/form.rbindex 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::LifeCyclesdef iconicon_name = case modelwhen Project::Stage- :"git-commit"+ :"op-phase"when Project::Gate:diamondelsediff --git a/app/models/queries/projects/selects/project_phase.rb b/app/models/queries/projects/selects/project_phase.rbindex 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::Basedef visual_icon{- # TODO: needs to be changed- icon: :"git-commit",+ icon: :"op-phase",classes: helpers.hl_inline_class("project_phase_definition", project_phase_definition)}enddiff --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.rbindex 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 ProjectLifeCyclesdef iconcase modelwhen Project::Stage- :"git-commit"+ :"op-phase"when Project::Gate:diamondelsediff --git a/spec/helpers/sort_helper_spec.rb b/spec/helpers/sort_helper_spec.rbindex aee9c2669f0..3d367ff843f 100644--- a/spec/helpers/sort_helper_spec.rb+++ b/spec/helpers/sort_helper_spec.rb@@ -447,7 +447,7 @@ RSpec.describe SortHelper doendit "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_presentheader_text = action_menu.at_css(".generic-table--action-menu-button .Button-label").text.strip