From 4c9044a5f1ef36d70148dace139c253fdf5f47fe Mon Sep 17 00:00:00 2001 From: alwu <121817690+wuall826@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:30:30 -0400 Subject: [PATCH] [GLT-4245] TAT trend report legend for Color by Gate (#228) --- changes/add_GLT-4245 | 1 + changes/fix_GLT-4245 | 1 + src/main/resources/static/css/output.css | 12 ++++ src/main/resources/templates/tat-trend.html | 68 +++++++++---------- ts/component/legend.ts | 41 ++++++++++-- ts/component/table-builder.ts | 2 +- ts/tat-trend.ts | 74 ++++++++++++--------- ts/util/color-mapping.ts | 15 +++++ 8 files changed, 141 insertions(+), 73 deletions(-) create mode 100644 changes/add_GLT-4245 create mode 100644 changes/fix_GLT-4245 create mode 100644 ts/util/color-mapping.ts diff --git a/changes/add_GLT-4245 b/changes/add_GLT-4245 new file mode 100644 index 00000000..d766cde4 --- /dev/null +++ b/changes/add_GLT-4245 @@ -0,0 +1 @@ +TAT Trend report legend for colour by gate \ No newline at end of file diff --git a/changes/fix_GLT-4245 b/changes/fix_GLT-4245 new file mode 100644 index 00000000..e725ba85 --- /dev/null +++ b/changes/fix_GLT-4245 @@ -0,0 +1 @@ +TAT Trend Report color by gate feature to work correctly with time range grouping \ No newline at end of file diff --git a/src/main/resources/static/css/output.css b/src/main/resources/static/css/output.css index 1114a6c4..bd862dbf 100644 --- a/src/main/resources/static/css/output.css +++ b/src/main/resources/static/css/output.css @@ -658,6 +658,10 @@ Ensure the default browser behavior of the `hidden` attribute. display: none; } +.h-3{ + height: 0.75rem; +} + .h-full{ height: 100%; } @@ -666,6 +670,10 @@ Ensure the default browser behavior of the `hidden` attribute. min-height: 100vh; } +.w-3{ + width: 0.75rem; +} + .w-6{ width: 1.5rem; } @@ -800,6 +808,10 @@ Ensure the default browser behavior of the `hidden` attribute. justify-content: space-between; } +.gap-1{ + gap: 0.25rem; +} + .gap-2{ gap: 0.5rem; } diff --git a/src/main/resources/templates/tat-trend.html b/src/main/resources/templates/tat-trend.html index 232f08f0..8e1a8dd8 100644 --- a/src/main/resources/templates/tat-trend.html +++ b/src/main/resources/templates/tat-trend.html @@ -11,49 +11,49 @@