Skip to content

Commit

Permalink
First draft of the baseline modal inside a Primer Dialog triggered fr…
Browse files Browse the repository at this point in the history
…om the WP page PageHeader
  • Loading branch information
HDinger committed Oct 18, 2024
1 parent 7f2ef2d commit 0a6aa62
Show file tree
Hide file tree
Showing 11 changed files with 195 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<%= render(Primer::Alpha::Dialog.new(
title: I18n.t("js.baseline.baseline_comparison"),
subtitle: subtitle_text,
size: :medium_portrait,
id: MODAL_ID
)) do |dialog| %>
<% dialog.with_header(variant: :large) %>
<% dialog.with_body do %>
<%= helpers.angular_component_tag "opce-baseline",
inputs: {
showHeaderText: false,
} %>
<% end %>
<% dialog.with_footer do %>
<%= render(Primer::ButtonComponent.new(data: { "close-dialog-id": MODAL_ID })) { I18n.t(:button_cancel) } %>
<%= render(Primer::ButtonComponent.new(
data: {
"close-dialog-id": MODAL_ID,
},
scheme: :primary,
type: :submit)) { I18n.t(:button_apply) } %>
<% end %>
<% end %>
55 changes: 55 additions & 0 deletions app/components/work_packages/baseline/modal_dialog_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# frozen_string_literal: true

# -- copyright
# OpenProject is an open source project management software.
# Copyright (C) the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2013 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# See COPYRIGHT and LICENSE files for more details.
# ++

module WorkPackages
module Baseline
class ModalDialogComponent < ApplicationComponent
MODAL_ID = "op-work-packages-baseline-dialog"
EXPORT_FORM_ID = "op-work-packages-baseline-dialog-form"
include OpTurbo::Streamable
include OpPrimer::ComponentHelpers

attr_reader :query, :project, :query_params

def initialize(query:, project:, title:)
super

@query = query
@project = project
@query_params = ::API::V3::Queries::QueryParamsRepresenter.new(query).to_url_query(merge_params: { columns: [], title: })
end

def subtitle_text
# TODO: show different text and EE icon if no EE licence
I18n.t("js.baseline.header_description")
end
end
end
end
15 changes: 11 additions & 4 deletions app/components/work_packages/index_page_header_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@
d.with_body { "TODO" }
end

header.with_action_dialog(mobile_icon: :"op-baseline",
header.with_action_button(tag: :a,
mobile_icon: :"op-baseline",
mobile_label: I18n.t("js.baseline.toggle_title"),
dialog_arguments: { id: "my_dialog2", title: "A great dialog" },
button_arguments: { button_block: baseline_button_callback, test_selector: "baseline-button" }) do |d|
d.with_body { "TODO" }
href: @project.present? ? baseline_dialog_project_work_packages_path(@project) : baseline_dialog_project_work_packages_path(),
aria: { label: I18n.t("js.baseline.toggle_title") },
title: I18n.t("js.baseline.toggle_title"),
data: { controller: "async-dialog" },
rel: "nofollow") do |button|
button.with_leading_visual_icon(icon: :"op-baseline")
I18n.t("js.baseline.toggle_title")
end



header.with_action_zen_mode_button

header.with_action_menu(
Expand Down
7 changes: 0 additions & 7 deletions app/components/work_packages/index_page_header_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ def title
@query&.name ? @query.name : t(:label_work_package_plural)
end

def baseline_button_callback
lambda do |button|
button.with_leading_visual_icon(icon: :"op-baseline")
I18n.t("js.baseline.toggle_title")
end
end

def project_include_button_callback
lambda do |button|
button.with_leading_visual_icon(icon: :"op-include-projects")
Expand Down
10 changes: 7 additions & 3 deletions app/controllers/work_packages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class WorkPackagesController < ApplicationController
:project, only: :show
before_action :check_allowed_export,
:protect_from_unauthorized_export, only: %i[index export_dialog]
before_action :find_optional_project, only: %i[split_view split_create]
before_action :find_optional_project, only: %i[split_view split_create baseline_dialog]
before_action :load_and_authorize_in_optional_project, only: %i[index export_dialog new copy]
authorization_checked! :index, :show, :new, :copy, :export_dialog, :split_view, :split_create
authorization_checked! :index, :show, :new, :copy, :export_dialog, :split_view, :split_create, :baseline_dialog

before_action :load_and_validate_query, only: %i[index split_view split_create copy]
before_action :load_and_validate_query, only: %i[index split_view split_create copy baseline_dialog]
before_action :load_work_packages, only: :index, if: -> { request.format.atom? }
before_action :load_and_validate_query_for_export, only: :export_dialog

Expand Down Expand Up @@ -116,6 +116,10 @@ def export_dialog
respond_with_dialog WorkPackages::Exports::ModalDialogComponent.new(query: @query, project: @project, title: params[:title])
end

def baseline_dialog
respond_with_dialog WorkPackages::Baseline::ModalDialogComponent.new(query: @query, project: @project, title: params[:title])
end

protected

def split_view_base_route
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
get "/report" => "work_packages/reports#report"
get "menu" => "work_packages/menus#show"
get "/export_dialog" => "work_packages#export_dialog"
get "/baseline_dialog" => "work_packages#baseline_dialog"
end

get "/copy" => "work_packages#copy", on: :member, as: "copy"
Expand Down Expand Up @@ -616,6 +617,7 @@
end

get "/export_dialog" => "work_packages#export_dialog", on: :collection, as: "export_dialog"
get "/baseline_dialog" => "work_packages#baseline_dialog", on: :collection, as: "baseline_dialog"

get "/split_view/update_counter" => "work_packages/split_view#update_counter",
on: :member
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ import { WorkPackageSplitCreateEntryComponent } from 'core-app/features/work-pac
import { WorkPackageFullCopyEntryComponent } from 'core-app/features/work-packages/routing/wp-full-copy/wp-full-copy-entry.component';
import { WorkPackageFullCreateEntryComponent } from 'core-app/features/work-packages/routing/wp-full-create/wp-full-create-entry.component';
import { WorkPackageFullViewEntryComponent } from 'core-app/features/work-packages/routing/wp-full-view/wp-full-view-entry.component';
import { OpBaselineEntryComponent } from 'core-app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component';

export function initializeServices(injector:Injector) {
return () => {
Expand Down Expand Up @@ -364,6 +365,7 @@ export class OpenProjectModule implements DoBootstrap {
registerCustomElement('opce-wp-full-view', WorkPackageFullViewEntryComponent, { injector });
registerCustomElement('opce-wp-full-create', WorkPackageFullCreateEntryComponent, { injector });
registerCustomElement('opce-wp-full-copy', WorkPackageFullCopyEntryComponent, { injector });
registerCustomElement('opce-baseline', OpBaselineEntryComponent, { injector });
registerCustomElement('opce-timer-account-menu', TimerAccountMenuComponent, { injector });
registerCustomElement('opce-remote-field-updater', RemoteFieldUpdaterComponent, { injector });
registerCustomElement('opce-modal-single-date-picker', OpModalSingleDatePickerComponent, { injector });
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
//-- copyright
// OpenProject is an open source project management software.
// Copyright (C) the OpenProject GmbH
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
// Copyright (C) 2006-2013 Jean-Philippe Lang
// Copyright (C) 2010-2013 the ChiliProject Team
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// See COPYRIGHT and LICENSE files for more details.
//++

import {
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,

Check failure on line 33 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L33 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'EventEmitter' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'EventEmitter' is defined but never used. Allowed unused vars must match /^_/u.","line":33,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":33,"endColumn":15}

Check failure on line 33 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L33 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'EventEmitter' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'EventEmitter' is defined but never used. Allowed unused vars must match /^_/u.","line":33,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":33,"endColumn":15}
HostBinding,

Check failure on line 34 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L34 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'HostBinding' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'HostBinding' is defined but never used. Allowed unused vars must match /^_/u.","line":34,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":34,"endColumn":14}

Check failure on line 34 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L34 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'HostBinding' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'HostBinding' is defined but never used. Allowed unused vars must match /^_/u.","line":34,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":34,"endColumn":14}
Input,
OnInit,

Check failure on line 36 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L36 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'OnInit' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'OnInit' is defined but never used. Allowed unused vars must match /^_/u.","line":36,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":36,"endColumn":9}

Check failure on line 36 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L36 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'OnInit' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'OnInit' is defined but never used. Allowed unused vars must match /^_/u.","line":36,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":36,"endColumn":9}
Output,

Check failure on line 37 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L37 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'Output' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'Output' is defined but never used. Allowed unused vars must match /^_/u.","line":37,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":37,"endColumn":9}

Check failure on line 37 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L37 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'Output' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'Output' is defined but never used. Allowed unused vars must match /^_/u.","line":37,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":37,"endColumn":9}
} from '@angular/core';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused imports EventEmitter, HostBinding, OnInit, Output.

import { I18nService } from 'core-app/core/i18n/i18n.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import I18nService.

Check failure on line 40 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L40 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'I18nService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'I18nService' is defined but never used. Allowed unused vars must match /^_/u.","line":40,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":40,"endColumn":21}

Check failure on line 40 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L40 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'I18nService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'I18nService' is defined but never used. Allowed unused vars must match /^_/u.","line":40,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":40,"endColumn":21}
import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import UntilDestroyedMixin.

Check failure on line 41 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L41 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'UntilDestroyedMixin' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'UntilDestroyedMixin' is defined but never used. Allowed unused vars must match /^_/u.","line":41,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":41,"endColumn":29}

Check failure on line 41 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L41 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'UntilDestroyedMixin' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'UntilDestroyedMixin' is defined but never used. Allowed unused vars must match /^_/u.","line":41,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":41,"endColumn":29}
import { HalResourceService } from 'core-app/features/hal/services/hal-resource.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import HalResourceService.

Check failure on line 42 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L42 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'HalResourceService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'HalResourceService' is defined but never used. Allowed unused vars must match /^_/u.","line":42,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":42,"endColumn":28}

Check failure on line 42 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L42 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'HalResourceService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'HalResourceService' is defined but never used. Allowed unused vars must match /^_/u.","line":42,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":42,"endColumn":28}
import SpotDropAlignmentOption from 'core-app/spot/drop-alignment-options';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import SpotDropAlignmentOption.

Check failure on line 43 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L43 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'SpotDropAlignmentOption' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'SpotDropAlignmentOption' is defined but never used. Allowed unused vars must match /^_/u.","line":43,"column":8,"nodeType":"Identifier","messageId":"unusedVar","endLine":43,"endColumn":31}

Check failure on line 43 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L43 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'SpotDropAlignmentOption' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'SpotDropAlignmentOption' is defined but never used. Allowed unused vars must match /^_/u.","line":43,"column":8,"nodeType":null,"messageId":"unusedVar","endLine":43,"endColumn":31}
import { WeekdayService } from 'core-app/core/days/weekday.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import WeekdayService.

Check failure on line 44 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L44 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'WeekdayService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'WeekdayService' is defined but never used. Allowed unused vars must match /^_/u.","line":44,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":44,"endColumn":24}

Check failure on line 44 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L44 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'WeekdayService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'WeekdayService' is defined but never used. Allowed unused vars must match /^_/u.","line":44,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":44,"endColumn":24}
import { DayResourceService } from 'core-app/core/state/days/day.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import DayResourceService.

Check failure on line 45 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L45 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'DayResourceService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'DayResourceService' is defined but never used. Allowed unused vars must match /^_/u.","line":45,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":45,"endColumn":28}

Check failure on line 45 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L45 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'DayResourceService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'DayResourceService' is defined but never used. Allowed unused vars must match /^_/u.","line":45,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":45,"endColumn":28}
import { IDay } from 'core-app/core/state/days/day.model';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import IDay.

Check failure on line 46 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L46 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'IDay' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'IDay' is defined but never used. Allowed unused vars must match /^_/u.","line":46,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":46,"endColumn":14}

Check failure on line 46 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L46 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'IDay' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'IDay' is defined but never used. Allowed unused vars must match /^_/u.","line":46,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":46,"endColumn":14}
import { TimezoneService } from 'core-app/core/datetime/timezone.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import TimezoneService.

Check failure on line 47 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L47 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'TimezoneService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'TimezoneService' is defined but never used. Allowed unused vars must match /^_/u.","line":47,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":47,"endColumn":25}

Check failure on line 47 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L47 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'TimezoneService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'TimezoneService' is defined but never used. Allowed unused vars must match /^_/u.","line":47,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":47,"endColumn":25}
import { ConfigurationService } from 'core-app/core/config/configuration.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import ConfigurationService.

Check failure on line 48 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L48 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'ConfigurationService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'ConfigurationService' is defined but never used. Allowed unused vars must match /^_/u.","line":48,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":48,"endColumn":30}

Check failure on line 48 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L48 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'ConfigurationService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'ConfigurationService' is defined but never used. Allowed unused vars must match /^_/u.","line":48,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":48,"endColumn":30}
import { Observable } from 'rxjs';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import Observable.

Check failure on line 49 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L49 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'Observable' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'Observable' is defined but never used. Allowed unused vars must match /^_/u.","line":49,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":49,"endColumn":20}

Check failure on line 49 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L49 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'Observable' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'Observable' is defined but never used. Allowed unused vars must match /^_/u.","line":49,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":49,"endColumn":20}
import {
DEFAULT_TIMESTAMP,

Check failure on line 51 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L51 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'DEFAULT_TIMESTAMP' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'DEFAULT_TIMESTAMP' is defined but never used. Allowed unused vars must match /^_/u.","line":51,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":51,"endColumn":20}

Check failure on line 51 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L51 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'DEFAULT_TIMESTAMP' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'DEFAULT_TIMESTAMP' is defined but never used. Allowed unused vars must match /^_/u.","line":51,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":51,"endColumn":20}
WorkPackageViewBaselineService,

Check failure on line 52 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L52 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'WorkPackageViewBaselineService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'WorkPackageViewBaselineService' is defined but never used. Allowed unused vars must match /^_/u.","line":52,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":52,"endColumn":33}

Check failure on line 52 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L52 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'WorkPackageViewBaselineService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'WorkPackageViewBaselineService' is defined but never used. Allowed unused vars must match /^_/u.","line":52,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":52,"endColumn":33}
} from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-baseline.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused imports DEFAULT_TIMESTAMP, WorkPackageViewBaselineService.
import { validDate } from 'core-app/shared/components/datepicker/helpers/date-modal.helpers';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import validDate.

Check failure on line 54 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L54 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'validDate' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'validDate' is defined but never used. Allowed unused vars must match /^_/u.","line":54,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":54,"endColumn":19}

Check failure on line 54 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L54 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'validDate' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'validDate' is defined but never used. Allowed unused vars must match /^_/u.","line":54,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":54,"endColumn":19}
import {
baselineFilterFromValue,

Check failure on line 56 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L56 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'baselineFilterFromValue' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'baselineFilterFromValue' is defined but never used. Allowed unused vars must match /^_/u.","line":56,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":56,"endColumn":26}

Check failure on line 56 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L56 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'baselineFilterFromValue' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'baselineFilterFromValue' is defined but never used. Allowed unused vars must match /^_/u.","line":56,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":56,"endColumn":26}
getPartsFromTimestamp,

Check failure on line 57 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L57 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'getPartsFromTimestamp' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'getPartsFromTimestamp' is defined but never used. Allowed unused vars must match /^_/u.","line":57,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":57,"endColumn":24}

Check failure on line 57 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L57 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'getPartsFromTimestamp' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'getPartsFromTimestamp' is defined but never used. Allowed unused vars must match /^_/u.","line":57,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":57,"endColumn":24}
offsetToUtcString,

Check failure on line 58 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L58 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'offsetToUtcString' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'offsetToUtcString' is defined but never used. Allowed unused vars must match /^_/u.","line":58,"column":3,"nodeType":"Identifier","messageId":"unusedVar","endLine":58,"endColumn":20}

Check failure on line 58 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L58 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'offsetToUtcString' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'offsetToUtcString' is defined but never used. Allowed unused vars must match /^_/u.","line":58,"column":3,"nodeType":null,"messageId":"unusedVar","endLine":58,"endColumn":20}
} from 'core-app/features/work-packages/components/wp-baseline/baseline-helpers';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused imports baselineFilterFromValue, getPartsFromTimestamp, offsetToUtcString.
import * as moment from 'moment-timezone';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import moment.

Check failure on line 60 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L60 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'moment' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'moment' is defined but never used. Allowed unused vars must match /^_/u.","line":60,"column":13,"nodeType":"Identifier","messageId":"unusedVar","endLine":60,"endColumn":19}

Check failure on line 60 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L60 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'moment' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'moment' is defined but never used. Allowed unused vars must match /^_/u.","line":60,"column":13,"nodeType":null,"messageId":"unusedVar","endLine":60,"endColumn":19}
import { BannersService } from 'core-app/core/enterprise/banners.service';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import BannersService.

Check failure on line 61 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L61 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'BannersService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'BannersService' is defined but never used. Allowed unused vars must match /^_/u.","line":61,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":61,"endColumn":24}

Check failure on line 61 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L61 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'BannersService' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'BannersService' is defined but never used. Allowed unused vars must match /^_/u.","line":61,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":61,"endColumn":24}
import { enterpriseDocsUrl } from 'core-app/core/setup/globals/constants.const';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import enterpriseDocsUrl.

Check failure on line 62 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L62 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'enterpriseDocsUrl' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'enterpriseDocsUrl' is defined but never used. Allowed unused vars must match /^_/u.","line":62,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":62,"endColumn":27}

Check failure on line 62 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L62 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'enterpriseDocsUrl' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'enterpriseDocsUrl' is defined but never used. Allowed unused vars must match /^_/u.","line":62,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":62,"endColumn":27}
import { DayElement } from 'flatpickr/dist/types/instance';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import DayElement.

Check failure on line 63 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L63 <no-unused-vars>(https://eslint.org/docs/latest/rules/no-unused-vars)

'DayElement' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"no-unused-vars","severity":2,"message":"'DayElement' is defined but never used. Allowed unused vars must match /^_/u.","line":63,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":63,"endColumn":20}

Check failure on line 63 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L63 <@typescript-eslint/no-unused-vars>(https://typescript-eslint.io/rules/no-unused-vars)

'DayElement' is defined but never used. Allowed unused vars must match /^_/u.
Raw output
{"ruleId":"@typescript-eslint/no-unused-vars","severity":2,"message":"'DayElement' is defined but never used. Allowed unused vars must match /^_/u.","line":63,"column":10,"nodeType":null,"messageId":"unusedVar","endLine":63,"endColumn":20}
import { populateInputsFromDataset } from 'core-app/shared/components/dataset-inputs';
import { WorkPackageIsolatedQuerySpaceDirective } from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive';


@Component({

Check failure on line 68 in frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts

View workflow job for this annotation

GitHub Actions / eslint

[eslint] frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component.ts#L67-L68 <no-multiple-empty-lines>(https://eslint.org/docs/latest/rules/no-multiple-empty-lines)

More than 1 blank line not allowed.
Raw output
{"ruleId":"no-multiple-empty-lines","severity":2,"message":"More than 1 blank line not allowed.","line":67,"column":1,"nodeType":"Program","messageId":"consecutiveBlank","endLine":68,"endColumn":1,"fix":{"range":[3015,3016],"text":""}}
hostDirectives: [WorkPackageIsolatedQuerySpaceDirective],
template: `
<op-baseline
[visible]="visible"
[showActionBar]="showActionBar"
[showHeaderText]="showHeaderText"
></op-baseline>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class OpBaselineEntryComponent {
@Input() showActionBar? = false;
@Input() visible = true;
@Input() showHeaderText = true;

constructor(
readonly elementRef:ElementRef,
) {
populateInputsFromDataset(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
[class.op-baseline_tab]="!showActionBar">
<div
class="op-baseline--enterprise-title"
*ngIf="eeShowBanners">
*ngIf="eeShowBanners && showHeaderText">
<span class="">{{ text.baseline_comparison }}</span>
<span class="spot-icon spot-icon_enterprise-addons"></span>
</div>
<span class="spot-body-small">{{ eeShowBanners ? text.enterprise_header_description : text.header_description }}</span>
<span *ngIf="showHeaderText" class="spot-body-small">{{ eeShowBanners ? text.enterprise_header_description : text.header_description }}</span>
<a
*ngIf="eeShowBanners"
[attr.href]="text.moreInfoLink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {

@Input() visible = true;

@Input() showHeaderText = true;

public mappedSelectedDate:string|null;

public nonWorkingDays$:Observable<IDay[]> = this.wpTableBaseline.nonWorkingDays$;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ import { WorkPackageSplitCreateEntryComponent } from 'core-app/features/work-pac
import { WorkPackageFullCopyEntryComponent } from 'core-app/features/work-packages/routing/wp-full-copy/wp-full-copy-entry.component';
import { WorkPackageFullCreateEntryComponent } from 'core-app/features/work-packages/routing/wp-full-create/wp-full-create-entry.component';
import { WorkPackageFullViewEntryComponent } from 'core-app/features/work-packages/routing/wp-full-view/wp-full-view-entry.component';
import { OpBaselineEntryComponent } from 'core-app/features/work-packages/components/wp-baseline/baseline/baseline-entry.component';

@NgModule({
imports: [
Expand Down Expand Up @@ -660,6 +661,7 @@ import { WorkPackageFullViewEntryComponent } from 'core-app/features/work-packag
// Timestamps
OpBaselineModalComponent,
OpBaselineComponent,
OpBaselineEntryComponent,
OpBaselineLoadingComponent,
OpBaselineLegendsComponent,

Expand Down

0 comments on commit 0a6aa62

Please sign in to comment.