From d17a476af4bf46410fb025c888f2d7ad75099425 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Thu, 9 Nov 2023 00:14:09 +0700 Subject: [PATCH] UBERF-4197 Update HR events icons (#3958) Signed-off-by: Alexander Onnikov --- models/hr/src/index.ts | 4 +-- plugins/hr-assets/assets/icons.svg | 45 ++++++++++++++++++++++++------ plugins/hr-assets/src/index.ts | 2 ++ plugins/hr/src/index.ts | 4 ++- 4 files changed, 43 insertions(+), 12 deletions(-) diff --git a/models/hr/src/index.ts b/models/hr/src/index.ts index 77abc69656..ab945950ca 100644 --- a/models/hr/src/index.ts +++ b/models/hr/src/index.ts @@ -249,7 +249,7 @@ export function createModel (builder: Builder): void { core.space.Model, { label: hr.string.PTO2, - icon: hr.icon.PTO, + icon: hr.icon.PTO2, color: PaletteColorIndexes.Watermelon, value: -0.5 }, @@ -273,7 +273,7 @@ export function createModel (builder: Builder): void { core.space.Model, { label: hr.string.Overtime2, - icon: hr.icon.Overtime, + icon: hr.icon.Overtime2, color: PaletteColorIndexes.Cerulean, value: 0.5 }, diff --git a/plugins/hr-assets/assets/icons.svg b/plugins/hr-assets/assets/icons.svg index 02fe4920c4..fbd86174e3 100644 --- a/plugins/hr-assets/assets/icons.svg +++ b/plugins/hr-assets/assets/icons.svg @@ -15,20 +15,47 @@ - - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + diff --git a/plugins/hr-assets/src/index.ts b/plugins/hr-assets/src/index.ts index b86ace7ff9..d6a4b296ea 100644 --- a/plugins/hr-assets/src/index.ts +++ b/plugins/hr-assets/src/index.ts @@ -24,6 +24,8 @@ loadMetadata(hr.icon, { Vacation: `${icons}#vacation`, Sick: `${icons}#sick`, PTO: `${icons}#pto`, + PTO2: `${icons}#pto2`, Overtime: `${icons}#overtime`, + Overtime2: `${icons}#overtime2`, Remote: `${icons}#remote` }) diff --git a/plugins/hr/src/index.ts b/plugins/hr/src/index.ts index e1f6580319..17c43841e9 100644 --- a/plugins/hr/src/index.ts +++ b/plugins/hr/src/index.ts @@ -128,8 +128,10 @@ const hr = plugin(hrId, { Vacation: '' as Asset, Sick: '' as Asset, PTO: '' as Asset, + PTO2: '' as Asset, Remote: '' as Asset, - Overtime: '' as Asset + Overtime: '' as Asset, + Overtime2: '' as Asset }, ids: { Head: '' as Ref,