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
add spot tool tip for help icon in show changes drop-down
bsatarnejadbde869cbeb32
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 3c6355d4f49..362e57bd487 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -1346,6 +1346,7 @@ en:apply: 'Apply'header_description: 'View changes made to work packages in the current view within a time period.'show_changes_since: 'Show changes since'+ help_description: 'Default time zone of the instance set by the administrator.'time: 'Time'drop_down:none: '-'diff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.html b/frontend/src/app/shared/components/show-changes/show-changes.component.htmlindex 74d0b4086bf..9a2046d3135 100644--- a/frontend/src/app/shared/components/show-changes/show-changes.component.html+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.html@@ -49,17 +49,28 @@<inputslot="input"- id="appt-time"type="time"- name="appt-time"class="op-show-changes-modal--time-input"/>+<div- slot="input"- class="op-show-changes-modal--time-help spot-body-small"- >- <span class="">CERT</span>- <span class="spot-icon spot-icon_help1"></span>- </div>+ slot="input"+ class="op-show-changes-modal--time-help spot-body-small"+ >+ <span class="">CERT</span>++ <spot-tooltip+ class="op-show-changes-modal--time-tooltip"+ [alignment]="tooltipPosition"+ [disabled]="false"+ [light]="true">++ <span class="spot-icon spot-icon_help1" slot="trigger"></span>++ <span slot="body" class="spot-body-small op-show-changes-modal--time-tooltip-body">{{ text.help_description }}</span>++ </spot-tooltip>+ </div>+</spot-form-field><div class="spot-action-bar">diff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.sass b/frontend/src/app/shared/components/show-changes/show-changes.component.sassindex 737bedbb4e3..2604f7e2227 100644--- a/frontend/src/app/shared/components/show-changes/show-changes.component.sass+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.sass@@ -35,3 +35,7 @@.spot-icon_help1margin-left: $spot-spacing-0_5++ &-tooltip-body+ width: 220px+ display: blockdiff --git a/frontend/src/app/shared/components/show-changes/show-changes.component.ts b/frontend/src/app/shared/components/show-changes/show-changes.component.tsindex 465f1af2479..e5190e828cd 100644--- a/frontend/src/app/shared/components/show-changes/show-changes.component.ts+++ b/frontend/src/app/shared/components/show-changes/show-changes.component.ts@@ -36,6 +36,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';import { WorkPackageViewFiltersService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service';import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';+import SpotDropAlignmentOption from 'core-app/spot/drop-alignment-options';@Component({selector: 'op-show-changes',@@ -53,12 +54,15 @@ export class OpShowChangesComponent extends UntilDestroyedMixin {apply: this.I18n.t('js.show_changes.apply'),show_changes_since: this.I18n.t('js.show_changes.show_changes_since'),time: this.I18n.t('js.show_changes.time'),+ help_description: this.I18n.t('js.show_changes.help_description'),};public opened = false;public filterSelected = false;+ public tooltipPosition = SpotDropAlignmentOption.BottomRight;+public showChangesAvailableValues = [{value: '0',diff --git a/frontend/src/app/spot/styles/sass/components/tooltip.sass b/frontend/src/app/spot/styles/sass/components/tooltip.sassindex 9fdbcecb66d..d0298911c84 100644--- a/frontend/src/app/spot/styles/sass/components/tooltip.sass+++ b/frontend/src/app/spot/styles/sass/components/tooltip.sass@@ -9,7 +9,7 @@pointer-events: none// This keeps the element rendered in the DOM and thus readable by screen readersopacity: 0.001- width: 80%+ width: autotransition-property: transform, opacitytransition-timing-function: ease