The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add optional buttons that open links on informational notifications
Long Hoang23aac10423df
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsxindex 86cfec34ec1..5faf18fe99e 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx@@ -11,7 +11,7 @@ import {ServiceUpgrade,ViolatedLimit,} from '@supabase/shared-types/out/notifications'-import { IconArrowRight, IconExternalLink } from 'ui'+import { IconArrowRight, IconExternalLink, Button } from 'ui'import Link from 'next/link'export const formatNotificationText = (@@ -146,7 +146,26 @@ export const formatNotificationText = (</div>)} else if (notification.data.name === NotificationName.ProjectInformational) {- return <p className="text-sm">{notification.data.message}</p>+ const buttons = notification.data.linked_buttons ?? []+ return (+ <>+ <p className="text-sm">{notification.data.message}</p>{' '}+ {buttons.map((button) => {+ return (+ <a href={button.url} target="_blank">+ <Button+ as="span"+ type="default"+ className="mr-2 mt-2 mb-2"+ icon={<IconExternalLink size={12} strokeWidth={2} />}+ >+ {button.text}+ </Button>+ </a>+ )+ })}+ </>+ )} else {return (<p className="text-sm">