The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Joshen/fe 3685 show a timestamp for failed restart messages in the (#47274)
Joshen Lim74ddbc74530a
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsxindex 1b03c5a8b23..7be2209813b 100644--- a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx@@ -1,5 +1,6 @@import { ChevronLeft, X } from 'lucide-react'import { Badge } from 'ui'+import { TimestampInfo } from 'ui-patterns'import type { AdvisorItem } from './AdvisorPanel.types'import {@@ -20,16 +21,9 @@ interface AdvisorPanelHeaderProps {export const AdvisorPanelHeader = ({ selectedItem, onBack, onClose }: AdvisorPanelHeaderProps) => {const displayTitle = selectedItem ? getAdvisorPanelItemDisplayTitle(selectedItem) : undefinedconst secondaryText = selectedItem ? getAdvisorItemSecondaryText(selectedItem) : undefined- const metadataText = selectedItem- ? (secondaryText ??- (selectedItem.createdAt ? formatItemDate(selectedItem.createdAt) : undefined))- : undefined- // Only capitalize date strings (e.g. "a few seconds ago"); entity strings- // like "public.users" must not be case-altered.- const metadataCapitalize =- selectedItem !== undefined &&- secondaryText === undefined &&- selectedItem.createdAt !== undefined+ const createdAt = selectedItem?.createdAt++ const metadataCapitalize = selectedItem !== undefined && secondaryText === undefinedreturn (<div className="border-b px-4 py-3 flex items-center gap-3">@@ -43,13 +37,19 @@ export const AdvisorPanelHeader = ({ selectedItem, onBack, onClose }: AdvisorPan<div className="flex items-center gap-2 overflow-hidden flex-1"><div className="flex-1 flex flex-col"><span className="heading-default">{displayTitle}</span>- {metadataText && (+ {selectedItem?.source !== 'notification' && secondaryText ? (<spanclassName={`text-xs text-foreground-light${metadataCapitalize ? ' capitalize-sentence' : ''}`}>- {metadataText}+ {secondaryText}</span>- )}+ ) : createdAt ? (+ <TimestampInfo+ className="w-fit capitalize-sentence"+ utcTimestamp={createdAt}+ label={formatItemDate(createdAt)}+ />+ ) : null}</div>{selectedItem && (<Badge variant={severityBadgeVariants[selectedItem.severity]}>diff --git a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsxindex d0ecf76f504..8952da6e26f 100644--- a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx+++ b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx@@ -40,13 +40,17 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio<Linktitle={organization.name}href={`/org/${organization.slug}/general`}- className="text-link"+ className="text-sm text-link">{organization.name}</Link>)}{project !== undefined && (- <Link title={project.name} href={`/project/${project.ref}`} className="text-link">+ <Link+ title={project.name}+ href={`/project/${project.ref}`}+ className="text-sm text-link"+ >{project.name}</Link>)}