From f2536ccbef95c1800505b08599c1048a5ea8d66d Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:56:48 +0200 Subject: [PATCH] Add SeparationLineComponent for visual separation in charts (#419) * 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. * Fix import statement to use double quotes for consistency --- 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..487be55f 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 @@