Update Company Portal icon matching (#37334)

This pull request enhances the icon mapping logic for software names in
the `SoftwarePage` component, specifically ensuring that the Microsoft
Company Portal app is correctly associated with its icon, even when
referenced by its package name.

**Icon mapping improvements:**

* Added `"microsoft.companyportal"` to the `SOFTWARE_NAME_TO_ICON_MAP`
so that this package name is mapped to the `IntuneCompanyPortal` icon.
* Updated the `matchStrictNameSourceToIcon` function to explicitly
return the `IntuneCompanyPortal` icon when the software name is exactly
`"microsoft.companyportal"`.
This commit is contained in:
Allen Houchins 2025-12-16 11:05:32 -06:00 committed by GitHub
parent 57b531101f
commit 38a4b147c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,6 +278,7 @@ export const SOFTWARE_NAME_TO_ICON_MAP = {
cloudflare: Cloudflare,
code: VisualStudioCode,
"company portal": IntuneCompanyPortal,
"microsoft.companyportal": IntuneCompanyPortal,
coteditor: CotEditor,
cursor: Cursor,
cyberduck: Cyberduck,
@ -525,6 +526,8 @@ const matchStrictNameSourceToIcon = ({
return Zoom;
case name.startsWith("zoom workplace"):
return Zoom;
case name === "microsoft.companyportal":
return IntuneCompanyPortal;
default:
return null;
}