From 7a982e91fed502f541afd63dbfa092d1e59b4320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:52:42 +0200 Subject: [PATCH 1/2] Add SeparationLineComponent for visual separation in charts This commit introduces the SeparationLineComponent, which provides a styled separation line for visual clarity between chart sections. The component includes its own CSS for styling, an HTML template, and a basic spec file for testing. The component is utilized in the label-chart component to visually distinguish comparison charts. --- src/app/item-detail/item-detail.module.ts | 3 +- .../label-chart/label-chart.component.html | 4 +++ .../separation-line.component.css | 29 +++++++++++++++++++ .../separation-line.component.html | 1 + .../separation-line.component.spec.ts | 23 +++++++++++++++ .../separation-line.component.ts | 10 +++++++ 6 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/app/item-detail/separation-line/separation-line.component.css create mode 100644 src/app/item-detail/separation-line/separation-line.component.html create mode 100644 src/app/item-detail/separation-line/separation-line.component.spec.ts create mode 100644 src/app/item-detail/separation-line/separation-line.component.ts diff --git a/src/app/item-detail/item-detail.module.ts b/src/app/item-detail/item-detail.module.ts index 1bef06e9..f97e3a0f 100644 --- a/src/app/item-detail/item-detail.module.ts +++ b/src/app/item-detail/item-detail.module.ts @@ -31,6 +31,7 @@ import { ThresholdFailureComponent } from "./request-stats/threshold-failure/thr import { ZoomChartsComponent } from "./zoom-charts/zoom-charts.component"; import { ErrorSummaryComponent } from "./error-summary/error-summary.component"; import { ValidationsModule } from "./validations/validations.module"; +import { SeparationLineComponent } from './separation-line/separation-line.component'; const routes: Routes = [{ @@ -43,7 +44,7 @@ const routes: Routes = [{ declarations: [ItemDetailComponent, RequestStatsComponent, ThresholdsAlertComponent, PerformanceAnalysisComponent, LabelChartComponent, AnalyzeChartsComponent, LabelHealthComponent, LabelTrendComponent, StatsCompareComponent, AddMetricComponent, ShareComponent, DeleteShareLinkComponent, - CreateNewShareLinkComponent, MonitoringStatsComponent, ReloadCustomChartComponent, ChartIntervalComponent, ForbiddenComponent, ThresholdFailureComponent, ZoomChartsComponent, ErrorSummaryComponent], + CreateNewShareLinkComponent, MonitoringStatsComponent, ReloadCustomChartComponent, ChartIntervalComponent, ForbiddenComponent, ThresholdFailureComponent, ZoomChartsComponent, ErrorSummaryComponent, SeparationLineComponent], imports: [ CommonModule, NgbModule, RouterModule.forRoot(routes), DataTableModule, SharedItemModule, SharedModule, HighchartsChartModule, ValidationsModule, ReactiveFormsModule, FormsModule, RoleModule, diff --git a/src/app/item-detail/label-chart/label-chart.component.html b/src/app/item-detail/label-chart/label-chart.component.html index fee48d12..3de47b04 100644 --- a/src/app/item-detail/label-chart/label-chart.component.html +++ b/src/app/item-detail/label-chart/label-chart.component.html @@ -25,7 +25,11 @@