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
Please linters
Henriette Dargebce871a8606c
diff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erbindex 6388556c9a5..2ee6faecbc0 100644--- a/app/components/work_packages/details/tab_component.html.erb+++ b/app/components/work_packages/details/tab_component.html.erb@@ -5,6 +5,7 @@menu_items.each do |node|component.with_tab(selected: @tab == node.name,href: url_for(node.url),+ test_selector: "wp-details-tab-component--tab-#{node.name}",data: { turbo: true, turbo_action: "replace" }) do |c|c.with_text { t("js.work_packages.tabs.#{node.name}") }diff --git a/app/components/work_packages/details/tab_component.rb b/app/components/work_packages/details/tab_component.rbindex 67b20458133..fe6fbdee583 100644--- a/app/components/work_packages/details/tab_component.rb+++ b/app/components/work_packages/details/tab_component.rb@@ -19,7 +19,7 @@ class WorkPackages::Details::TabComponent < ApplicationComponentdef menu = :work_package_split_viewdef menu_items- @menu_items ||= begin+ @menu_items ||=Redmine::MenuManager.items(menu, nil).root@@ -27,7 +27,7 @@ class WorkPackages::Details::TabComponent < ApplicationComponent.select do |node|allowed_node?(node, User.current, project) && visible_node?(menu, node)end- end+ enddef full_screen_tabif @tab.name == "overview"diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.tsindex f470abda791..4f0ca3affc3 100644--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts@@ -3,10 +3,10 @@ import { OpSharedModule } from 'core-app/shared/shared.module';import { CommonModule } from '@angular/common';import { IconModule } from 'core-app/shared/components/icon/icon.module';import {- InAppNotificationBellComponent+ InAppNotificationBellComponent,} from 'core-app/features/in-app-notifications/bell/in-app-notification-bell.component';import {- InAppNotificationEntryComponent+ InAppNotificationEntryComponent,} from 'core-app/features/in-app-notifications/entry/in-app-notification-entry.component';import { OpenprojectPrincipalRenderingModule } from 'core-app/shared/components/principal/principal-rendering.module';import { ScrollingModule } from '@angular/cdk/scrolling';@@ -17,16 +17,16 @@ import { OpenprojectWorkPackagesModule } from 'core-app/features/work-packages/oimport { DynamicModule } from 'ng-dynamic-component';import { InAppNotificationStatusComponent } from './entry/status/in-app-notification-status.component';import {- OpenprojectContentLoaderModule+ OpenprojectContentLoaderModule,} from 'core-app/shared/components/op-content-loader/openproject-content-loader.module';import { EmptyStateComponent } from './center/empty-state/empty-state.component';import { IanBellService } from 'core-app/features/in-app-notifications/bell/state/ian-bell.service';import { InAppNotificationActorsLineComponent } from './entry/actors-line/in-app-notification-actors-line.component';import { InAppNotificationDateAlertComponent } from './entry/date-alert/in-app-notification-date-alert.component';import {- InAppNotificationsDateAlertsUpsaleComponent+ InAppNotificationsDateAlertsUpsaleComponent,} from 'core-app/features/in-app-notifications/date-alerts-upsale/ian-date-alerts-upsale.component';-import { IanCenterService } from "core-app/features/in-app-notifications/center/state/ian-center.service";+import { IanCenterService } from 'core-app/features/in-app-notifications/center/state/ian-center.service';@NgModule({declarations: [diff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.tsindex 949544c9723..836295ba421 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts@@ -44,15 +44,16 @@ export class WorkPackageOverviewTabComponent extends UntilDestroyedMixin implemepublic tabName = this.I18n.t('js.label_latest_activity');- public constructor(readonly I18n:I18nService,+ public constructor(+ readonly I18n:I18nService,readonly $state:StateService,- readonly apiV3Service:ApiV3Service) {+ readonly apiV3Service:ApiV3Service,+ ) {super();-}ngOnInit() {- this.workPackageId = this.workPackage?.id || this.$state.params.workPackageId;+ this.workPackageId = this.workPackage?.id || this.$state.params.workPackageId as string;this.apiV3Servicediff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.tsindex 56dd4634532..b2843695528 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts@@ -26,13 +26,17 @@// See COPYRIGHT and LICENSE files for more details.//++-import { Component, ElementRef, Input } from '@angular/core';+import {+ ChangeDetectionStrategy,+ Component,+ ElementRef,+ Input,+} from '@angular/core';import {WorkPackageIsolatedQuerySpaceDirective,} from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive';import { populateInputsFromDataset } from 'core-app/shared/components/dataset-inputs';-/*** An entry component to be rendered by Rails which opens an isolated query space* for the work package split view@@ -46,6 +50,7 @@ import { populateInputsFromDataset } from 'core-app/shared/components/dataset-in[showTabs]="false"></op-wp-split-view>`,+ changeDetection: ChangeDetectionStrategy.OnPush,})export class WorkPackageSplitViewEntryComponent {@Input() workPackageId:string;diff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.tsindex 183cb20f366..5d567dfb22e 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts@@ -69,7 +69,7 @@ import { TabComponent } from 'core-app/features/work-packages/components/wp-tabsexport class WorkPackageSplitViewComponent extends WorkPackageSingleViewBase implements OnInit {hasState:boolean = !!this.$state.current;/** Reference to the base route e.g., work-packages.partitioned.list or bim.partitioned.split */- private baseRoute:string = this.$state.current?.data?.baseRoute;+ private baseRoute:string = this.$state.current?.data?.baseRoute as string;@Input() workPackageId:string;@Input() showTabs = true;diff --git a/spec/support/pages/work_packages/primerized_split_work_package.rb b/spec/support/pages/work_packages/primerized_split_work_package.rbindex d66b0cf81fb..cd27ed03204 100644--- a/spec/support/pages/work_packages/primerized_split_work_package.rb+++ b/spec/support/pages/work_packages/primerized_split_work_package.rb@@ -36,12 +36,12 @@ module Pagesdef switch_to_tab(tab:)in_split_view do- click_link tab+ click_link_or_button tabendenddef expect_tab(tab)- expect(page).to have_link(tab) do |link|+ within_test_selector("wp-details-tab-component--tab-#{tab.downcase}") do |link|link["data-aria-current"] == "page"endend