Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(ui): individual notification enbeutification (#3312)
teo117e1454f44a
diff --git a/js/app/packages/core/component/Notifications.tsx b/js/app/packages/core/component/Notifications.tsxindex 4eabd95140..45b15a1b36 100644--- a/js/app/packages/core/component/Notifications.tsx+++ b/js/app/packages/core/component/Notifications.tsx@@ -1,19 +1,11 @@-import { globalSplitManager } from '@app/signal/splitLayout';-import { NotificationRenderer } from '@core/component/NotificationRenderer';-import type { Entity } from '@core/types';-import { compareDateDesc, formatDate } from '@core/util/date';-import { useSplitNavigationHandler } from '@core/util/useSplitNavigationHandler';-import {- NOTIFICATION_LABEL_BY_TYPE,- type NotificationSource,- type UnifiedNotification,-} from '@notifications';-import { openNotification } from '@notifications/notification-navigation';-import { cn } from '@ui';+import type { Entity as EntityRef } from '@core/types';+import { compareDateDesc } from '@core/util/date';+import { NotificationRow } from '@entity';+import type { NotificationSource } from '@notifications';import { createMemo, For, Show } from 'solid-js';export type NotificationsProps = {- entity: Entity;+ entity: EntityRef;notificationSource: NotificationSource;};@@ -23,89 +15,27 @@ export function Notifications(props: NotificationsProps) {props.notificationSource.notificationsByEntity()[`${props.entity.type}@${props.entity.id}`] ?? [];- return entityNotifications.sort((a, b) => {- return compareDateDesc(a.created_at, b.created_at);- });+ return [...entityNotifications].sort((a, b) =>+ compareDateDesc(a.created_at, b.created_at)+ );});- const handleNotificationClick = async (notification: UnifiedNotification) => {- const splitManager = globalSplitManager();- if (!splitManager) return;-- openNotification(notification, splitManager);- await props.notificationSource.markAsRead(notification);- };-return (- <div class="flex flex-col">- <Show- when={notifications().length > 0}- fallback={- <div class="py-8 text-ink-muted text-sm text-center">- No notifications found- </div>- }- >- <For each={notifications()}>- {(notification) => {- const isUnread = !notification.viewed_at;- const navHandlers = useSplitNavigationHandler(() =>- handleNotificationClick(notification)- );-- return (- <button- class={cn(- 'w-full p-2 pb-3 border-b border-edge-muted hover:bg-hover text-left',- isUnread ? 'bg-surface-hover' : 'bg-surface'- )}- {...navHandlers}- >- <div class="flex justify-start items-center gap-2 mb-4 font-mono text-ink-muted text-xs uppercase">- <div- class={cn(- 'size-2',- isUnread ? 'bg-accent' : 'bg-ink-extra-muted'- )}- />- <div>- {- NOTIFICATION_LABEL_BY_TYPE[- notification.notification_metadata.tag- ]- }- </div>- <div class="grow" />- <div>- {formatDate(notification.created_at ?? new Date(0))}- </div>- </div>-- <div class="flex flex-col gap-2 ml-4">- <NotificationRenderer- notification={notification}- mode="full"- />- </div>-- <Show when={!notification.done}>- <div class="mt-2 pt-2 border-t border-edge-muted ml-4">- <button- class="text-accent text-xs hover:text-accent-hover"- onClick={(e) => {- e.stopPropagation();- props.notificationSource.markAsDone(notification);- }}- >- Mark as done- </button>- </div>- </Show>- </button>- );- }}- </For>- </Show>- </div>+ <Show+ when={notifications().length > 0}+ fallback={+ <div class="py-8 text-ink-muted text-sm text-center">+ No notifications found+ </div>+ }+ >+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <div class="divide-y divide-ink-muted/8">+ <For each={notifications()}>+ {(notification) => <NotificationRow notification={notification} />}+ </For>+ </div>+ </div>+ </Show>);}diff --git a/js/app/packages/entity/src/extractors-notification/index.ts b/js/app/packages/entity/src/extractors-notification/index.tsindex 88bd8e8026..8041d58ec4 100644--- a/js/app/packages/entity/src/extractors-notification/index.ts+++ b/js/app/packages/entity/src/extractors-notification/index.ts@@ -4,6 +4,8 @@ export { NotificationContent } from './notification-content';export { NotificationCount } from './notification-count';export { NotificationDescription } from './notification-description';export { NotificationIcon } from './notification-icon';+export type { NotificationRowProps } from './notification-row';+export { NotificationRow } from './notification-row';export { NotificationSender } from './notification-sender';export { NotificationSenderIcon } from './notification-sender-icon';export {diff --git a/js/app/packages/entity/src/extractors-notification/notification-content.tsx b/js/app/packages/entity/src/extractors-notification/notification-content.tsxindex e96249cd7c..dcefe3b288 100644--- a/js/app/packages/entity/src/extractors-notification/notification-content.tsx+++ b/js/app/packages/entity/src/extractors-notification/notification-content.tsx@@ -22,7 +22,9 @@ interface NotificationContentProps {singleLine?: boolean;}-function DocumentMentionPill(props: { notification: UnifiedNotification }) {+export function DocumentMentionPill(props: {+ notification: UnifiedNotification;+}) {const notificationSource = useGlobalNotificationSource();const { markAsDone } = useNotificationActions({notification: props.notification,@@ -212,27 +214,42 @@ export function NotificationContent(props: NotificationContentProps) {return '';};+ const singleDocMention = () => {+ if (!props.notification) return null;+ if (props.notification.notification_metadata.tag !== 'document_mention') {+ return null;+ }+ return props.notification as UnifiedNotification;+ };+return (<Showwhen={props.stack?.type === 'document_mention'}fallback={- <Show when={content()}>- {(text) => (- <Show- when={text().trim()}- fallback={- <span class="italic text-ink-disabled">Attached items</span>- }- >- {(trimmedContent) => (- <StaticMarkdown- markdown={trimmedContent()}- theme={unifiedListMarkdownTheme}- singleLine={props.singleLine ?? true}- />+ <Show+ when={singleDocMention()}+ fallback={+ <Show when={content()}>+ {(text) => (+ <Show+ when={text().trim()}+ fallback={+ <span class="italic text-ink-disabled">Attached items</span>+ }+ >+ {(trimmedContent) => (+ <StaticMarkdown+ markdown={trimmedContent()}+ theme={unifiedListMarkdownTheme}+ singleLine={props.singleLine ?? true}+ />+ )}+ </Show>)}</Show>- )}+ }+ >+ {(n) => <DocumentMentionPill notification={n()} />}</Show>}>diff --git a/js/app/packages/entity/src/extractors-notification/notification-row.tsx b/js/app/packages/entity/src/extractors-notification/notification-row.tsxnew file mode 100644index 0000000000..5fed81985a--- /dev/null+++ b/js/app/packages/entity/src/extractors-notification/notification-row.tsx@@ -0,0 +1,396 @@+import { useGlobalNotificationSource } from '@app/component/GlobalAppState';+import { globalSplitManager } from '@app/signal/splitLayout';+import { ContextMenuContent, MenuItem } from '@core/component/Menu';+import { toast } from '@core/component/Toast/Toast';+import type { NotificationType } from '@core/types';+import { buildSimpleEntityUrl } from '@core/util/url';+import CheckIcon from '@icon/regular/check.svg';+import { ContextMenu } from '@kobalte/core/context-menu';+import {+ getChannelNotificationParams,+ openNotification,+ type UnifiedNotification,+} from '@notifications';+import { Button, cn } from '@ui';+import { type JSX, Match, Show, Switch } from 'solid-js';+import { Layout } from '../core/Layout';+import type { EntityData } from '../types/entity';+import { isNotificationUnread } from '../utils/notification';+import { useNotificationActions } from './notification-actions';+import {+ DocumentMentionPill,+ NotificationContent,+} from './notification-content';+import { NotificationDescription } from './notification-description';+import { NotificationIcon } from './notification-icon';+import { NotificationSenderIcon } from './notification-sender-icon';+import { NotificationTimestamp } from './notification-timestamp';++function getNotificationUrl(notification: UnifiedNotification): string {+ const { params } = getChannelNotificationParams(notification);+ return buildSimpleEntityUrl(+ { type: notification.entity_type, id: notification.entity_id },+ params+ );+}++/**+ * Per-type content renderer for a single, unstacked notification.+ *+ * Mirrors `NotificationContent` for the stacked case but specializes a few+ * types that benefit from non-text layouts (document mentions become a pill,+ * email gets subject + snippet, task assignment gets the task name).+ */+function NotificationRowContent(props: {+ notification: UnifiedNotification;+ singleLine?: boolean;+}) {+ const tag = (): NotificationType =>+ props.notification.notification_metadata.tag;++ return (+ <Switch+ fallback={+ <NotificationContent+ notification={props.notification}+ singleLine={props.singleLine}+ />+ }+ >+ <Match when={tag() === 'document_mention'}>+ <div class="pt-1">+ <DocumentMentionPill notification={props.notification} />+ </div>+ </Match>+ <Match+ when={(() => {+ const m = props.notification.notification_metadata;+ return m.tag === 'new_email' ? m.content : undefined;+ })()}+ >+ {(content) => (+ <span class="ph-no-capture truncate min-w-0 text-xs text-ink-muted/80">+ <span class="text-ink">{content().subject}</span>+ <Show when={content().snippet}>+ <span class="text-ink-extra-muted"> — {content().snippet}</span>+ </Show>+ </span>+ )}+ </Match>+ <Match+ when={(() => {+ const m = props.notification.notification_metadata;+ return m.tag === 'task_assigned' ? m.content.taskName : undefined;+ })()}+ >+ {(taskName) => (+ <span class="ph-no-capture truncate min-w-0 text-xs text-ink">+ {taskName()}+ </span>+ )}+ </Match>+ <Match when={tag() === 'channel_invite'}>+ <span class="text-xs text-ink-muted/80 italic">+ to join the channel+ </span>+ </Match>+ <Match when={tag() === 'invite_to_team'}>+ <span class="text-xs text-ink-muted/80 italic">to join the team</span>+ </Match>+ <Match when={tag() === 'call-started'}>+ <span class="text-xs text-ink-muted/80 italic">+ started a call you can join+ </span>+ </Match>+ </Switch>+ );+}++export type NotificationRowVariant = 'compact' | 'expanded';++export interface NotificationRowProps {+ notification: UnifiedNotification;+ entity?: EntityData;+ onClick?: (e: PointerEvent | MouseEvent | KeyboardEvent) => void;+ /** Override the content slot (e.g. to show a fully custom body). */+ content?: JSX.Element;+ /**+ * Whether the "Mark done" affordance is available. Defaults to true except+ * for `call-started`, which has no meaningful "done" state.+ */+ showMarkDone?: boolean;+ /**+ * Visual variant. Both variants share the same fonts, colors, icon sizes,+ * indicator, hover affordances, and mark-done behavior — they differ only+ * in how content is laid out.+ *+ * - `compact` (default): single line, content truncated to one line.+ * Designed for dense lists (right-panel notifications card, soup).+ * - `expanded`: same one-line header with content below as multi-line+ * markdown aligned under the description. For stand-alone display+ * (bell popover, inbox detail, toast).+ */+ variant?: NotificationRowVariant;+ class?: string;+}++interface BodyProps {+ notification: UnifiedNotification;+ unread: boolean;+ canMarkDone: boolean;+ onMarkAsDone: () => void;+ contentOverride?: JSX.Element;+ class?: string;+}++// Shared building blocks — every variant renders the SAME indicator, icon,+// sender icon, description, timestamp, and mark-done button. The variants+// only differ in how those pieces are arranged on the page.++function UnreadDot(props: { unread: boolean }) {+ return (+ <span+ class={cn('size-1.5 rounded-full shrink-0', {+ 'bg-accent': props.unread,+ 'bg-transparent': !props.unread,+ })}+ />+ );+}++function HeaderLeading(props: {+ notification: UnifiedNotification;+ unread: boolean;+}) {+ return (+ <>+ <UnreadDot unread={props.unread} />+ <NotificationIcon+ notification={props.notification}+ class="size-3.5 shrink-0 text-ink-muted/60"+ />+ <NotificationSenderIcon notification={props.notification} size="sm" />+ <span+ class={cn(+ 'ph-no-capture truncate min-w-0 text-xs text-ink',+ props.unread && 'font-medium'+ )}+ >+ <NotificationDescription notification={props.notification} />+ </span>+ </>+ );+}++function HeaderTrailing(props: {+ notification: UnifiedNotification;+ canMarkDone: boolean;+ onMarkAsDone: () => void;+}) {+ return (+ // h-5 locks this slot to the mark-done button's height so swapping+ // between the timestamp and the button on hover does not change the row+ // height. justify-end keeps the timestamp right-aligned within the slot.+ <div class="shrink-0 ml-auto h-5 flex items-center justify-end">+ <span+ class={cn('text-ink-extra-muted text-xs tabular-nums', {+ 'group-hover/notif:hidden': props.canMarkDone,+ })}+ >+ <NotificationTimestamp notification={props.notification} />+ </span>+ <Show when={props.canMarkDone}>+ <Button+ onClick={(e) => {+ e.stopPropagation();+ props.onMarkAsDone();+ }}+ tooltip="Mark done"+ class="rounded text-ink-muted hover:text-accent hover:bg-accent/10 hidden group-hover/notif:grid p-0 place-items-center size-5"+ >+ <CheckIcon class="size-3" />+ </Button>+ </Show>+ </div>+ );+}++// Indent under the description: indicator(6) + gap(10) + icon(14) + gap(10) ++// sender-icon(16) + gap(10) = 66px ≈ pl-[3.625rem]. Keep in sync if the row+// gap or icon sizes change.+const CONTENT_INDENT = 'pl-[3.625rem]';++function CompactBody(props: BodyProps) {+ return (+ <Layout+ class={cn(+ 'group/notif @container/notif-row flex items-center gap-2.5 px-3 py-2 hover:bg-ink-muted/[0.06] min-w-0 overflow-hidden cursor-pointer',+ props.class+ )}+ >+ <HeaderLeading notification={props.notification} unread={props.unread} />+ {/*+ The content slot truncates to one line. At narrow widths it collapses+ to "X...", which reads worse than just dropping it — the description+ ("Gabriel mentioned you") + timestamp already tell the story. Hide+ below the container's md breakpoint.+ */}+ <span class="hidden @md/notif-row:flex flex-1 min-w-0 ph-no-capture truncate text-xs text-ink-muted/60">+ {props.contentOverride ?? (+ <NotificationRowContent+ notification={props.notification}+ singleLine+ />+ )}+ </span>+ <HeaderTrailing+ notification={props.notification}+ canMarkDone={props.canMarkDone}+ onMarkAsDone={props.onMarkAsDone}+ />+ </Layout>+ );+}++function ExpandedBody(props: BodyProps) {+ return (+ <Layout+ class={cn(+ 'group/notif flex flex-col px-4 py-3 hover:bg-ink-muted/[0.06] min-w-0 overflow-hidden cursor-pointer',+ props.class+ )}+ >+ <div class="flex items-center gap-2.5 min-w-0">+ <HeaderLeading+ notification={props.notification}+ unread={props.unread}+ />+ <span class="flex-1" />+ <HeaderTrailing+ notification={props.notification}+ canMarkDone={props.canMarkDone}+ onMarkAsDone={props.onMarkAsDone}+ />+ </div>+ <div+ class={cn(+ 'ph-no-capture min-w-0 text-xs text-ink-muted/80 pt-2 break-words',+ CONTENT_INDENT+ )}+ >+ {props.contentOverride ?? (+ <NotificationRowContent notification={props.notification} />+ )}+ </div>+ </Layout>+ );+}++/**+ * A single, unstacked notification row.+ *+ * Comes in two variants:+ * - `compact` (default): one-line row used in dense lists (right-panel+ * notifications card). Mirrors `NotificationStackRow` layout.+ * - `full`: header + body + multi-line content used when each notification gets+ * its own card (bell popover, inbox detail). Replaces the old+ * `NotificationRenderer mode="full"` rendering.+ *+ * Both variants share click handling, the context menu, and the mark-done+ * affordance — opt out with `showMarkDone={false}`.+ */+export function NotificationRow(props: NotificationRowProps) {+ const notificationSource = useGlobalNotificationSource();+ const unread = () => isNotificationUnread(props.notification);+ const canMarkDone = () =>+ props.showMarkDone !== false &&+ (props.notification.notification_metadata.tag as NotificationType) !==+ 'call-started';++ const { markAsDone, markAsRead } = useNotificationActions({+ notification: props.notification,+ });++ const handleClick = async (e: PointerEvent | MouseEvent | KeyboardEvent) => {+ const splitManager = globalSplitManager();+ if (!splitManager) return;++ e.stopPropagation();+ const entity = props.entity;+ const entityOverride = {+ fileType: entity && 'fileType' in entity ? entity.fileType : undefined,+ subType: entity && 'subType' in entity ? entity.subType : undefined,+ };+ await openNotification(+ props.notification,+ splitManager,+ e.shiftKey,+ entityOverride+ );+ await notificationSource.markAsRead(props.notification);+ props.onClick?.(e);+ };++ const handleMarkAsDone = () => {+ markAsDone();+ };++ const handleMarkAsRead = async () => {+ await markAsRead();+ };++ const handleCopyLink = async () => {+ const url = getNotificationUrl(props.notification);+ await navigator.clipboard.writeText(url);+ toast.success('Link copied to clipboard');+ };++ const bodyProps = (): BodyProps => ({+ notification: props.notification,+ unread: unread(),+ canMarkDone: canMarkDone(),+ onMarkAsDone: handleMarkAsDone,+ contentOverride: props.content,+ class: props.class,+ });++ return (+ <ContextMenu>+ <ContextMenu.Trigger class="size-full">+ <div+ onClick={handleClick}+ role="button"+ tabIndex={0}+ onKeyDown={(e) => {+ if (e.key === 'Enter' || e.key === ' ') {+ e.preventDefault();+ handleClick(e);+ }+ if (e.key === 'e' && canMarkDone()) {+ e.preventDefault();+ e.stopPropagation();+ handleMarkAsDone();+ }+ }}+ >+ <Switch fallback={<CompactBody {...bodyProps()} />}>+ <Match when={props.variant === 'expanded'}>+ <ExpandedBody {...bodyProps()} />+ </Match>+ </Switch>+ </div>+ </ContextMenu.Trigger>+ <ContextMenu.Portal>+ <div onClick={(e) => e.stopPropagation()}>+ <ContextMenuContent class="text-xs text-ink-muted">+ <Show when={canMarkDone()}>+ <MenuItem text="Mark Done" onClick={() => handleMarkAsDone()} />+ </Show>+ <MenuItem text="Mark Read" onClick={handleMarkAsRead} />+ <MenuItem text="Copy Link" onClick={handleCopyLink} />+ </ContextMenuContent>+ </div>+ </ContextMenu.Portal>+ </ContextMenu>+ );+}diff --git a/js/app/packages/entity/src/index.ts b/js/app/packages/entity/src/index.tsindex da74eb004f..45c6e152b5 100644--- a/js/app/packages/entity/src/index.ts+++ b/js/app/packages/entity/src/index.ts@@ -9,6 +9,11 @@ export { InlineEntity } from './composed/InlineEntity';export { ListEntity, ListLayoutProvider } from './composed/ListEntity';export { default as DebugEntityView } from './debug/DebugEntityView';export { Entity } from './entity';+export { NotificationRow } from './extractors-notification';+export type {+ NotificationRowProps,+ NotificationRowVariant,+} from './extractors-notification/notification-row';export {getSnippetHit,isHitSnippetComplete,diff --git a/js/app/packages/notifications/components/Playground.tsx b/js/app/packages/notifications/components/Playground.tsxindex 2c218f47a9..0f23fa871b 100644--- a/js/app/packages/notifications/components/Playground.tsx+++ b/js/app/packages/notifications/components/Playground.tsx@@ -3,6 +3,7 @@ import { createConfiguredChannelMarkdownEditor } from '@channel/Input';import { MarkdownShell } from '@core/component/LexicalMarkdown/builder/MarkdownShell';import { NotificationRenderer } from '@core/component/NotificationRenderer';import { formatDate } from '@core/util/date';+import { NotificationRow } from '@entity';import { Button } from '@ui';import {type Component,@@ -343,6 +344,7 @@ function NotificationList(props: {function NotificationDetail(props: {notification: UnifiedNotification;+ siblings: UnifiedNotification[];onTest: (notification: UnifiedNotification) => void;}) {return (@@ -370,57 +372,90 @@ function NotificationDetail(props: {</div><section class="mb-10">- <h3 class="text-lg font-semibold text-ink mb-4">Preview Mode</h3>- <div class="p-4 bg-surface rounded-xl border border-edge-muted">- <div class="flex items-start gap-3">- <div- class={`size-2 mt-1 shrink-0 ${- !props.notification.viewed_at- ? 'bg-accent'- : 'bg-ink-extra-muted'- }`}- />- <div class="flex-1 min-w-0">- <NotificationRenderer- notification={props.notification}- mode="preview"- />- </div>+ <h3 class="text-lg font-semibold text-ink mb-2">Compact Row</h3>+ <p class="text-xs text-ink-muted mb-4">+ One-line variant used in the right-panel notifications card. Hover for+ the mark-done button; right-click for the context menu.+ </p>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <NotificationRow notification={props.notification} />+ </div>+ </section>++ <section class="mb-10">+ <h3 class="text-lg font-semibold text-ink mb-2">Notifications Card</h3>+ <p class="text-xs text-ink-muted mb-4">+ What the right-panel card looks like when several notifications of+ this type land on the same entity.+ </p>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <div class="divide-y divide-ink-muted/8">+ <For each={props.siblings.slice(0, 5)}>+ {(n) => <NotificationRow notification={n} />}+ </For></div></div></section><section class="mb-10">- <h3 class="text-lg font-semibold text-ink mb-4">Full Mode</h3>- <div- class={`p-6 rounded-xl border border-edge-muted ${- !props.notification.viewed_at ? 'bg-surface-hover' : 'bg-surface'- }`}- >- <div class="flex justify-start items-center gap-3 mb-4 font-mono text-ink-muted text-xs uppercase">- <div- class={`size-2 ${- !props.notification.viewed_at- ? 'bg-accent'- : 'bg-ink-extra-muted'- }`}- />- <div class="font-medium">- {- NOTIFICATION_LABEL_BY_TYPE[- props.notification- .notification_event_type as keyof typeof NOTIFICATION_LABEL_BY_TYPE- ]- }+ <h3 class="text-lg font-semibold text-ink mb-2">Expanded Row</h3>+ <p class="text-xs text-ink-muted mb-4">+ Same header as compact, but the content moves below and renders as+ multi-line markdown aligned under the description.+ </p>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <NotificationRow+ notification={props.notification}+ variant="expanded"+ />+ </div>+ </section>++ <section class="mb-10">+ <h3 class="text-lg font-semibold text-ink mb-2">+ Expanded Row · no mark-done+ </h3>+ <p class="text-xs text-ink-muted mb-4">+ Same variant with <code>showMarkDone={false}</code> — the+ check button is suppressed and the timestamp stays put on hover.+ </p>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <NotificationRow+ notification={props.notification}+ variant="expanded"+ showMarkDone={false}+ />+ </div>+ </section>++ <section class="mb-10">+ <h3 class="text-lg font-semibold text-ink mb-2">+ Both variants side by side+ </h3>+ <p class="text-xs text-ink-muted mb-4">+ Same notification in both variants — fonts, colors, indicator, icon,+ sender, and mark-done affordance are identical; only the content+ layout differs.+ </p>+ <div class="flex flex-col gap-4">+ <div>+ <div class="text-[10px] font-mono uppercase text-ink-extra-muted tracking-wider mb-1.5">+ compact+ </div>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <NotificationRow notification={props.notification} /></div>- <div class="grow" />- <div>{formatDate(props.notification.created_at)}</div></div>- <div class="ml-5">- <NotificationRenderer- notification={props.notification}- mode="full"- />+ <div>+ <div class="text-[10px] font-mono uppercase text-ink-extra-muted tracking-wider mb-1.5">+ expanded+ </div>+ <div class="rounded-lg border border-ink-muted/8 bg-ink-muted/[0.025] overflow-hidden">+ <NotificationRow+ notification={props.notification}+ variant="expanded"+ />+ </div></div></div></section>@@ -676,6 +711,7 @@ function PlaygroundContent() {{(notification) => (<NotificationDetailnotification={notification()}+ siblings={selectedNotifications()}onTest={handleTestNotification}/>)}