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
Use a title for the baseline legend to make them consistent (#12753)
Oliver Günther678d01f0c203
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.htmlindex f6afe4f3863..628417365da 100644--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline-legends/baseline-legends.component.html@@ -1,21 +1,12 @@<span class="op-baseline-legends--filter"><span [textContent]="legendDescription"></span>&ngsp;- <spot-tooltip+ <span*ngIf="userOffset !== offset"- >- <span- slot="trigger"- class="spot-icon spot-icon_1 spot-icon_info2"- ></span>- <p- slot="body"- class="spot-body-small op-baseline-legends--tooltip"- >- {{ text.in_your_timezone }}- {{ localDate }}- </p>- </spot-tooltip>+ data-qa-selector="baseline-legend-time-offset"+ class="spot-icon spot-icon_1 spot-icon_info2"+ title="{{ text.in_your_timezone }} {{ localDate }}"+ ></span></span><div class="op-baseline-legends--details hidden-for-mobile"><span class="spot-icon spot-icon_1 spot-icon_add op-baseline-legends--details-icon-added"></span>diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.htmlindex 0b5a6a1b6f8..33207717e71 100644--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.html@@ -78,16 +78,12 @@type="time"class="op-baseline--time-input"/>- <spot-tooltip+ <spanslot="input"- class="op-baseline--time-tooltip op-baseline--time-help spot-body-small"- [alignment]="tooltipPosition"- [disabled]="false"- [light]="true">- <span slot="trigger" class="op-baseline--time-zone" [textContent]="mappedOffset(selectedOffsets[0])"></span>- <span slot="body" class="spot-body-small op-baseline--time-tooltip-body">{{ text.help_description }}</span>- </spot-tooltip>-+ class="op-baseline--time-help spot-body-small"+ [attr.title]="text.help_description"+ [textContent]="mappedOffset(selectedOffsets[0])"+ ></span><span*ngIf="userOffset !== selectedOffsets[0]"diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.htmlindex 764f905e5e1..89d69bc238e 100644--- a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html@@ -120,22 +120,13 @@class="op-wp-single-card--content-status"></wp-status-button>- <spot-tooltip- slot="input"- class="spot-body-small"- [alignment]="tooltipPosition"- [disabled]="false"- [light]="true">- <span- slot="trigger"- *ngIf="baselineIcon(workPackage)!==''"- class="spot-icon spot-icon_1 spot-icon_flex op-wp-single-card--content-baseline"- [ngClass]="baselineMode==='added' ? 'spot-icon_flex spot-icon_add op-table-baseline--icon-added' :- (baselineMode==='removed' ? 'spot-icon_minus1 op-table-baseline--icon-removed' : 'spot-icon_arrow-left-right op-table-baseline--icon-changed')"- ></span>- <span slot="body" class="spot-body-small op-wp-single-card--content-baseline-tooltip">- {{ baselineMode==='added' ? text.baseLineIconAdded : (baselineMode==='removed' ? text.baseLineIconRemoved : text.baseLineIconChanged) }}</span>- </spot-tooltip>+ <span+ *ngIf="baselineIcon(workPackage) !== ''"+ class="spot-icon spot-icon_1 spot-icon_flex op-wp-single-card--content-baseline"+ [ngClass]="baselineMode==='added' ? 'spot-icon_flex spot-icon_add op-table-baseline--icon-added' : (baselineMode==='removed' ? 'spot-icon_minus1 op-table-baseline--icon-removed' : 'spot-icon_arrow-left-right op-table-baseline--icon-changed')"+ title="{{ baselineMode==='added' ? text.baseLineIconAdded : (baselineMode==='removed' ? text.baseLineIconRemoved : text.baseLineIconChanged) }}"+ >+ </span></div><op-principaldiff --git a/spec/support/components/work_packages/baseline.rb b/spec/support/components/work_packages/baseline.rbindex 4f4aa22d686..278503a46e7 100644--- a/spec/support/components/work_packages/baseline.rb+++ b/spec/support/components/work_packages/baseline.rb@@ -46,7 +46,9 @@ module Componentsenddef expect_legend_tooltip(text)- expect(page).to have_selector('.op-baseline-legends .spot-tooltip--body', visible: :all, text:)+ expect(page).to have_selector('[data-qa-selector="baseline-legend-time-offset"]', visible: :all) { |node|+ node['title'] == text+ }enddef expect_no_legends