From b24e1855e97361df837a52aded29d4e5c222c38b Mon Sep 17 00:00:00 2001 From: Jake Laderman Date: Thu, 19 Sep 2024 12:22:53 -0400 Subject: [PATCH] add clickable urls to notifications --- assets/package.json | 2 +- .../cd/clusters/ClusterUpgradeFlyover.tsx | 14 ------------- .../components/notifications/Notification.tsx | 9 ++++---- assets/src/utils/textWithUrls.tsx | 21 +++++++++++++++++++ assets/yarn.lock | 10 ++++----- 5 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 assets/src/utils/textWithUrls.tsx diff --git a/assets/package.json b/assets/package.json index 20fa9e547b..262ffdd9d4 100644 --- a/assets/package.json +++ b/assets/package.json @@ -46,7 +46,7 @@ "@nivo/pie": "0.87.0", "@nivo/radial-bar": "0.87.0", "@nivo/tooltip": "0.87.0", - "@pluralsh/design-system": "3.67.2", + "@pluralsh/design-system": "3.68.0", "@react-hooks-library/core": "0.6.0", "@saas-ui/use-hotkeys": "1.1.3", "@tanstack/react-virtual": "3.0.1", diff --git a/assets/src/components/cd/clusters/ClusterUpgradeFlyover.tsx b/assets/src/components/cd/clusters/ClusterUpgradeFlyover.tsx index beef4564a5..e68ea87c3f 100644 --- a/assets/src/components/cd/clusters/ClusterUpgradeFlyover.tsx +++ b/assets/src/components/cd/clusters/ClusterUpgradeFlyover.tsx @@ -419,21 +419,7 @@ export function ClusterUpgradeFlyover({ header={`Upgrade Plan for ${cluster?.name}`} open={open} onClose={onClose} - portal - size="large" minWidth={920} - actions={ - - } >
- {notification.text} + {renderTextWithUrls(notification.text ?? '')}
{clamped && (