Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
| /> */} | ||
| <Flex className="ml-2"> | ||
| {logoUrl && ( | ||
| <Image |
There was a problem hiding this comment.
Using an Image here in lieu of an Avatar so oversize images are scaled down and not cropped.
There was a problem hiding this comment.
consider adding this as a comment in the code
Greptile OverviewGreptile SummaryThis PR adds vendor logo support to the Okta monitor results UI by deriving a logo URL from staged resource metadata ( The main integration point is Confidence Score: 3/5
Important Files Changed
|
Additional Comments (1)
|
| <Flex className="ml-2"> | ||
| {logoUrl && ( | ||
| <Image | ||
| src={logoUrl} | ||
| alt={systemName} | ||
| preview={false} | ||
| width={36} | ||
| /> | ||
| )} |
There was a problem hiding this comment.
Broken vendor logo rendering
logoUrl being defined doesn’t guarantee the image will load (404/CORS/network). Since fidesui’s Image is AntD’s Image (no built-in fallback), this will display a broken image instead of the Settings avatar whenever the remote URL fails. Consider using Avatar with src + icon fallback (as in ConnectionTypeLogo) or track onError to swap to the fallback Avatar.
| <Avatar | ||
| shape="square" | ||
| size={36} | ||
| icon={<Icons.Settings />} | ||
| alt={systemName} |
There was a problem hiding this comment.
Is there a reason we're not using ConnectionTypeLogo here?
| src={logoUrl} | ||
| alt={systemName} | ||
| preview={false} | ||
| width={36} |
There was a problem hiding this comment.
could probably use DEFAULT_LOGO_SIZE here
| /> */} | ||
| <Flex className="ml-2"> | ||
| {logoUrl && ( | ||
| <Image |
There was a problem hiding this comment.
consider adding this as a comment in the code
| // Try to extract domain from vendor ID or system name | ||
| const domain = getDomain(vendorId); | ||
| if (domain) { | ||
| return getBrandIconUrl(domain, 72); // 18px * 2 for retina |
There was a problem hiding this comment.
| return getBrandIconUrl(domain, 72); // 18px * 2 for retina | |
| return getBrandIconUrl(domain, 72); // 36px * 2 for retina |
Ticket ENG-2391
Description Of Changes
Adds vendor logos to Okta monitor results UI.
Code Changes
getDomainhelper method to fail usefully (not all results from Okta monitors have logo URLs)Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works