From 8885c8d57f9c3e428a5062800bd4c7f1376da81e Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 21 Aug 2025 19:00:13 +0000
Subject: [PATCH] Add PNG icon support for shifts with sample coffee cup icon
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
---
Client/Pages/Index.razor | 9 ++++++++-
Client/wwwroot/break-icon.png | Bin 0 -> 186 bytes
Server/appsettings.json | 6 ++++++
Services/PdfExportService.cs | 24 ++++++++++++++++++++++--
Shared/Shift.cs | 2 ++
5 files changed, 38 insertions(+), 3 deletions(-)
create mode 100644 Client/wwwroot/break-icon.png
diff --git a/Client/Pages/Index.razor b/Client/Pages/Index.razor
index 8a33bd6..a3927a3 100644
--- a/Client/Pages/Index.razor
+++ b/Client/Pages/Index.razor
@@ -40,7 +40,14 @@ else
}
else
{
- @shift.Icon
+ @if (shift.IsPngIcon)
+ {
+
+ }
+ else
+ {
+ @shift.Icon
+ }
}
@shift.Name
diff --git a/Client/wwwroot/break-icon.png b/Client/wwwroot/break-icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..d47862795652aaed4bb561d5dbf4780b37315dc8
GIT binary patch
literal 186
zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJMo$;Vkcv6U2@ Icon.EndsWith(".png", StringComparison.OrdinalIgnoreCase);
}
}