YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: align meeting notification card sizes and states (#7760)
Louis Beaumont47be786122f9
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.test.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.test.tsxindex bbc49e6d7..54c0e2b29 100644--- a/apps/screenpipe-app-tauri/app/notification-panel/page.test.tsx+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.test.tsx@@ -169,6 +169,16 @@ describe("meeting join notification delivery", () => {expect(bridge.execute).toHaveBeenCalledWith(expect.objectContaining({ type: "meeting_join", url: meeting.actions[0].url, screen_detail: { boundTo: "prewarm_pending" } }), expect.anything());expect(screen.queryByRole("button", { name: "Notification options" })).toBeNull();});+ it("dismisses immediately while the join action is still running", async () => {+ let finish!: () => void;+ bridge.execute.mockImplementationOnce(() => new Promise<void>((resolve) => { finish = resolve; }));+ render(<NotificationPanelPage />);+ await deliver(meeting);+ fireEvent.click(screen.getByRole("button", { name: "Join and take notes with HD screen recording" }));+ await waitFor(() => expect(bridge.hide).toHaveBeenCalledTimes(1));+ expect(screen.queryByRole("region", { name: "Meeting starting" })).toBeNull();+ await act(async () => finish());+ });it("shows capture failure only after closing the join card", async () => {bridge.execute.mockImplementationOnce(async (_action, context) => context.onScreenDetailError());render(<NotificationPanelPage />);diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsxindex d3330a850..084a521ba 100644--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx@@ -38,6 +38,7 @@ import { NotificationActionButton } from "@/components/notification-action-buttoimport { isNotificationFeedbackEligible } from "@/lib/ai-feedback";import { NotificationFeedback } from "@/components/notification-feedback";import { MeetingJoinNotification } from "@/components/meeting-join-notification";+import { isMeetingNotificationCard } from "@/lib/notifications/meeting-join";import { showNotificationPanel } from "@/lib/hooks/use-notification-panel";import { useGT } from "gt-react";@@ -49,6 +50,7 @@ interface NotificationPayload {body: string;actions: NotificationAction[];autoDismissMs?: number;+ overlayScale?: number;pipe_name?: string;source_session_id?: string;source_message_id?: string;@@ -152,6 +154,7 @@ export default function NotificationPanelPage() {...notificationAnalyticsProperties(payload, "toast"),});+ let alreadyDismissed = false;try {// New typed action dispatch (pipe notifications)if (actionObj?.type) {@@ -176,6 +179,12 @@ export default function NotificationPanelPage() {}return;}+ if (actionObj.type === "meeting_join") {+ // The native overlay closes as soon as a join choice is clicked.+ // Match that feedback while the browser-backed action completes.+ await hide("action");+ alreadyDismissed = true;+ }let screenDetailFailed = false;await executeNotificationAction(actionObj, {onScreenDetailError: () => { screenDetailFailed = true; },@@ -183,7 +192,7 @@ export default function NotificationPanelPage() {sourceId: payload?.id,sourceUrl: payload?.source_url,});- await hide("action");+ if (!alreadyDismissed) await hide("action");if (screenDetailFailed) {await showNotificationPanel({id: "meeting-screen-detail-failed", type: "warning",@@ -275,7 +284,7 @@ export default function NotificationPanelPage() {});}- await hide("action");+ if (!alreadyDismissed) await hide("action");},[payload?.type,@@ -450,8 +459,9 @@ export default function NotificationPanelPage() {return null;}- if (payload.actions.some((action) => action.type === "meeting_join" && action.url)) {+ if (isMeetingNotificationCard(payload.actions)) {return <MeetingJoinNotification key={payload.id} {...payload}+ scale={payload.overlayScale ?? 1}onAction={handleAction} onDismiss={() => void hide("explicit")}onMouseEnter={() => { hoveredRef.current = true; }}onMouseLeave={() => { hoveredRef.current = false; }} />;diff --git a/apps/screenpipe-app-tauri/components/meeting-join-notification.test.tsx b/apps/screenpipe-app-tauri/components/meeting-join-notification.test.tsxindex d43ac5434..2edeb2027 100644--- a/apps/screenpipe-app-tauri/components/meeting-join-notification.test.tsx+++ b/apps/screenpipe-app-tauri/components/meeting-join-notification.test.tsx@@ -11,9 +11,29 @@ const actions: NotificationAction[] = [{ id: "join", type: "meeting_join", label: "join and take notes", url: "https://meet.google.com/example", deeplinkUrl: "screenpipe://meeting/42", primary: true },{ id: "hd", type: "api", url: "/capture/hd/start", method: "POST", body: { boundTo: "prewarm_pending" }, label: "+ HD" },];+const openNoteActions: NotificationAction[] = [+ { id: "open-live-notes", action: "open-live-notes", type: "deeplink", label: "open note", url: "screenpipe://meeting/42", primary: true },+ { id: "record-hd", action: "record-hd", type: "api", label: "open note + HD", url: "/capture/hd/start", method: "POST", body: { meetingId: 42 }, deeplinkUrl: "screenpipe://meeting/42" },+];const props = { title: "meeting starting in 1 min", body: "Weekly team sync", actions, onDismiss: vi.fn() };describe("shared desktop join card", () => {+ it("keeps the shared footprint, scaled geometry, and action surface with or without HD", () => {+ const { container, rerender } = render(<MeetingJoinNotification {...props} onAction={vi.fn()} />);+ const card = screen.getByRole("region", { name: "Meeting starting" });+ expect(card).toHaveStyle({ width: "460px", height: "124px" });+ const controls = container.querySelector(".meeting-join-controls");+ expect(controls).toHaveStyle({ borderRadius: "6px", background: "rgb(235, 235, 235)" });++ for (const scale of [1, 1.5, 2]) {+ rerender(<MeetingJoinNotification {...props} scale={scale} onAction={vi.fn()} />);+ expect((container.firstElementChild as HTMLDivElement).style.transform).toBe(`scale(${scale})`);+ }+ rerender(<MeetingJoinNotification {...props} actions={[actions[0]]} onAction={vi.fn()} />);+ expect(container.querySelector(".meeting-join-controls")).toHaveStyle({+ borderRadius: "6px", background: "rgb(235, 235, 235)",+ });+ });it("joins normally in one click without starting HD", async () => {const onAction = vi.fn().mockResolvedValue(undefined);render(<MeetingJoinNotification {...props} onAction={onAction} />);@@ -41,6 +61,29 @@ describe("shared desktop join card", () => {expect(screen.queryByText("join + HD")).toBeNull();expect(meetingJoinChoices([actions[0], { ...actions[1], url: "/unrelated" }])?.hd).toBeNull();});+ it("keeps the HD choice visible while truncating a long join label", () => {+ const longLabel = "join and take notes for the quarterly planning meeting";+ render(<MeetingJoinNotification {...props}+ actions={[{ ...actions[0], label: longLabel }, actions[1]]} onAction={vi.fn()} />);+ const joinButton = screen.getByRole("button", { name: longLabel });+ expect(joinButton.style.minWidth).toBe("0");+ expect(joinButton.style.flexGrow).toBe("1");+ expect(joinButton.querySelector("span")).toHaveStyle({ overflow: "hidden", textOverflow: "ellipsis" });+ expect(screen.getByRole("button", { name: "Join and take notes with HD screen recording" })).toBeInTheDocument();+ });+ it("uses the same scaled card for detected meetings and preserves open-note actions", async () => {+ const onAction = vi.fn().mockResolvedValue(undefined);+ const { container, rerender } = render(<MeetingJoinNotification {...props}+ title="meeting detected" actions={openNoteActions} scale={1.5} onAction={onAction} />);+ expect(screen.getByRole("region", { name: "Meeting detected" })).toHaveStyle({ width: "460px", height: "124px" });+ expect((container.firstElementChild as HTMLDivElement).style.transform).toBe("scale(1.5)");+ await act(async () => fireEvent.click(screen.getByRole("button", { name: "open note + HD" })));+ expect(onAction).toHaveBeenCalledWith(openNoteActions[1]);+ rerender(<MeetingJoinNotification {...props} title="meeting detected"+ actions={[openNoteActions[0]]} onAction={onAction} />);+ expect(screen.getByRole("button", { name: "open note" })).toBeInTheDocument();+ expect(screen.queryByRole("button", { name: "open note + HD" })).toBeNull();+ });it.each([["https://meet.google.com/example", "googleMeet"], ["https://us02web.zoom.us/j/1", "zoom"],["https://teams.microsoft.com/l/meetup-join/1", "teams"], ["https://example.webex.com/meet/test", "webex"],diff --git a/apps/screenpipe-app-tauri/components/meeting-join-notification.tsx b/apps/screenpipe-app-tauri/components/meeting-join-notification.tsxindex 8b358dd2d..151057169 100644--- a/apps/screenpipe-app-tauri/components/meeting-join-notification.tsx+++ b/apps/screenpipe-app-tauri/components/meeting-join-notification.tsx@@ -7,26 +7,44 @@ import { useRef, useState } from "react";import { Video, X } from "lucide-react";import { useGT } from "gt-react";import type { NotificationAction } from "@/lib/notifications/actions";-import { meetingJoinChoices, meetingProvider } from "@/lib/notifications/meeting-join";+import {+ meetingJoinChoices,+ meetingOpenNoteChoices,+ meetingProvider,+} from "@/lib/notifications/meeting-join";++const MEETING_JOIN_CARD_WIDTH = 460;+const MEETING_JOIN_CARD_HEIGHT = 124;interface Props {title: string;body: string;actions: NotificationAction[];+ scale?: number;onAction: (action: NotificationAction) => Promise<void>;onDismiss: () => void;onMouseEnter?: () => void;onMouseLeave?: () => void;}-/** Shared Windows/Linux join card; mirrors the native macOS split control. */+/** Shared meeting card for join reminders and detected-meeting open-note alerts. */export function MeetingJoinNotification(props: Props) {const ui = useGT();+ const scale = props.scale ?? 1;const busy = useRef(false);const [pending, setPending] = useState(false);- const choices = meetingJoinChoices(props.actions);- if (!choices) return null;- const provider = meetingProvider(choices.join.url!);+ const joinChoices = meetingJoinChoices(props.actions);+ const openNoteChoices = joinChoices ? null : meetingOpenNoteChoices(props.actions);+ if (!joinChoices && !openNoteChoices) return null;+ const actionChoices = joinChoices+ ? [+ { action: joinChoices.join, label: joinChoices.join.label || ui("join and take notes"), provider: meetingProvider(joinChoices.join.url!) },+ ...(joinChoices.hd ? [{ action: joinChoices.hd, label: ui("join + HD"), provider: null }] : []),+ ]+ : [+ { action: openNoteChoices!.openNote, label: openNoteChoices!.openNote.label || ui("open note"), provider: null },+ ...(openNoteChoices!.hd ? [{ action: openNoteChoices!.hd, label: openNoteChoices!.hd.label || ui("open note + HD"), provider: null }] : []),+ ];const join = async (action: NotificationAction) => {if (busy.current) return;busy.current = true;@@ -40,14 +58,30 @@ export function MeetingJoinNotification(props: Props) {cursor: pending ? "wait" : "pointer", display: "flex", alignItems: "center", gap: 7,whiteSpace: "nowrap" as const,};+ const actionButtonStyle = (index: number) => ({+ ...buttonStyle,+ minWidth: 0,+ flex: index === 0 && actionChoices.length > 1 ? "1 1 0" : "0 1 auto",+ });return (- <section aria-label={ui("Meeting starting")} aria-busy={pending}+ <div style={{ width: MEETING_JOIN_CARD_WIDTH, height: MEETING_JOIN_CARD_HEIGHT,+ transform: `scale(${scale})`, transformOrigin: "top left" }}>+ <section aria-label={ui(joinChoices ? "Meeting starting" : "Meeting detected")} aria-busy={pending}onMouseEnter={props.onMouseEnter} onMouseLeave={props.onMouseLeave}- style={{ boxSizing: "border-box", width: "100%", height: "100%", minHeight: 124,+ style={{ boxSizing: "border-box", width: MEETING_JOIN_CARD_WIDTH, height: MEETING_JOIN_CARD_HEIGHT,background: "#000", color: "#f2f2f2", border: "1px solid #6b6b6b", borderRadius: 8,padding: 14, display: "flex", flexDirection: "column", gap: 8,fontFamily: '"IBM Plex Mono", monospace' }}>- <style>{`.meeting-join-controls button:focus-visible { outline: 2px solid #4285f4; outline-offset: -3px; border-radius: 5px; }`}</style>+ <style>{`+ .meeting-join-action, .meeting-join-dismiss { transition: background-color 150ms ease, color 150ms ease; }+ .meeting-join-action:hover:not(:disabled) { background: #d9d9d9 !important; }+ .meeting-join-action:active:not(:disabled) { background: #c9c9c9 !important; }+ .meeting-join-action:disabled { opacity: .58; cursor: wait; }+ .meeting-join-action:focus-visible { outline: 2px solid #111; outline-offset: -3px; border-radius: 5px; }+ .meeting-join-dismiss:hover { color: #f2f2f2 !important; background: #ffffff1a !important; }+ .meeting-join-dismiss:focus-visible { outline: 2px solid #f2f2f2; outline-offset: -2px; border-radius: 5px; }+ @media (prefers-reduced-motion: reduce) { .meeting-join-action, .meeting-join-dismiss { transition: none; } }+ `}</style><div style={{ display: "flex", alignItems: "flex-start", gap: 10, minWidth: 0 }}><Video size={20} fill="currentColor" aria-hidden="true" style={{ color: "#bfbfbf", marginTop: 3, flexShrink: 0 }} /><div style={{ flex: 1, minWidth: 0 }}>@@ -56,22 +90,21 @@ export function MeetingJoinNotification(props: Props) {display: "-webkit-box", WebkitLineClamp: 2, WebkitBoxOrient: "vertical", overflow: "hidden" }}>{props.body}</div></div><button type="button" aria-label={ui("Dismiss notification")} onClick={props.onDismiss}- style={{ background: "transparent", border: 0, color: "#999", padding: 4, cursor: "pointer" }}><X size={16} /></button>+ className="meeting-join-dismiss"+ style={{ background: "transparent", border: 0, color: "#999", padding: 4, cursor: "pointer", borderRadius: 5 }}><X size={16} /></button></div>- <div className="meeting-join-controls" style={{ alignSelf: "flex-end", marginTop: "auto", display: "flex", alignItems: "center", borderRadius: 6, background: "#ebebeb", maxWidth: "100%" }}>- <button type="button" disabled={pending} onClick={() => void join(choices.join)} style={buttonStyle}>- {provider ? <img src={`/images/meeting-providers/${provider}.png`} width={18} height={18} alt="" /> : <Video size={18} fill="currentColor" aria-hidden="true" />}- {choices.join.label || ui("join and take notes")}- </button>- {choices.hd && <>- <span aria-hidden="true" style={{ width: 1, height: 20, flexShrink: 0, background: "#00000026" }} />- <button type="button" disabled={pending} onClick={() => void join(choices.hd!)} style={buttonStyle}- aria-label={ui("Join and take notes with HD screen recording")}- title={ui("Join and take notes with HD screen recording: more frequent screenshots for smoother replay. Uses more storage.")}>- {ui("join + HD")}+ <div className="meeting-join-controls" style={{ alignSelf: "flex-end", marginTop: "auto", display: "flex", alignItems: "center", borderRadius: 6, background: "#ebebeb", maxWidth: "100%", minWidth: 0 }}>+ {actionChoices.map(({ action, label, provider }, index) => <div key={action.id || action.action || index} style={{ display: "contents" }}>+ {index > 0 && <span aria-hidden="true" style={{ width: 1, height: 20, flexShrink: 0, background: "#00000026" }} />}+ <button type="button" className="meeting-join-action" disabled={pending} onClick={() => void join(action)} style={actionButtonStyle(index)}+ aria-label={joinChoices && index === 1 ? ui("Join and take notes with HD screen recording") : undefined}+ title={joinChoices && index === 1 ? ui("Join and take notes with HD screen recording: more frequent screenshots for smoother replay. Uses more storage.") : label}>+ {index === 0 && (provider ? <img src={`/images/meeting-providers/${provider}.png`} width={18} height={18} alt="" /> : <Video size={18} fill="currentColor" aria-hidden="true" />)}+ <span style={{ minWidth: 0, overflow: "hidden", textOverflow: "ellipsis" }}>{label}</span></button>- </>}+ </div>)}</div></section>+ </div>);}diff --git a/apps/screenpipe-app-tauri/lib/notifications/meeting-join.ts b/apps/screenpipe-app-tauri/lib/notifications/meeting-join.tsindex 2290154e0..f86a51f40 100644--- a/apps/screenpipe-app-tauri/lib/notifications/meeting-join.ts+++ b/apps/screenpipe-app-tauri/lib/notifications/meeting-join.ts@@ -28,3 +28,20 @@ export function meetingJoinChoices(actions: NotificationAction[]) {hd: capture ? { ...join, id: capture.id || "join-hd", screen_detail: capture.body } : null,};}++export function meetingOpenNoteChoices(actions: NotificationAction[]) {+ const openNote = actions.find((action) =>+ (action.id === "open-live-notes" || action.action === "open-live-notes") &&+ action.type === "deeplink" && action.url?.startsWith("screenpipe://meeting")+ );+ if (!openNote) return null;++ const hd = actions.find((action) => action.type === "api" &&+ action.url === "/capture/hd/start" && action.method === "POST" &&+ action.body && typeof action.body === "object" && !Array.isArray(action.body));+ return { openNote, hd: hd ?? null };+}++export function isMeetingNotificationCard(actions: NotificationAction[]) {+ return meetingJoinChoices(actions) !== null || meetingOpenNoteChoices(actions) !== null;+}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs b/apps/screenpipe-app-tauri/src-tauri/src/commands.rsindex 62982e784..d6d405a66 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/commands.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/commands.rs@@ -4074,7 +4074,46 @@ pub(crate) fn notification_belongs_to_overlay(notification_type: Option<&str>) -matches!(notification_type, Some("meeting"))}-/// Join cards share a compact landscape surface on every platform.+/// Join and open-note cards share the same logical bounds on every surface.+const MEETING_CARD_WIDTH: f64 = 460.0;+const MEETING_CARD_HEIGHT: f64 = 124.0;++fn shortcut_overlay_scale(size: &str) -> f64 {+ match size {+ "large" => 2.0,+ "medium" => 1.5,+ _ => 1.0,+ }+}++fn meeting_notification_card_size(scale: f64) -> (f64, f64) {+ (+ MEETING_CARD_WIDTH * scale,+ MEETING_CARD_HEIGHT * scale,+ )+}++#[cfg(test)]+fn meeting_join_notification_size(scale: f64) -> (f64, f64) {+ meeting_notification_card_size(scale)+}++fn meeting_notification_card_payload(payload: &str, scale: f64) -> String {+ let Ok(mut value) = serde_json::from_str::<serde_json::Value>(payload) else {+ return payload.to_owned();+ };+ if let Some(object) = value.as_object_mut() {+ object.insert("overlayScale".to_owned(), serde_json::json!(scale));+ }+ serde_json::to_string(&value).unwrap_or_else(|_| payload.to_owned())+}++#[cfg(test)]+fn meeting_join_notification_payload(payload: &str, scale: f64) -> String {+ meeting_notification_card_payload(payload, scale)+}++#[cfg(any(test, target_os = "windows"))]fn notification_is_meeting_join(payload: &str) -> bool {serde_json::from_str::<serde_json::Value>(payload).ok()@@ -4090,9 +4129,57 @@ fn notification_is_meeting_join(payload: &str) -> bool {})}+fn notification_is_meeting_card(payload: &str) -> bool {+ let Ok(value) = serde_json::from_str::<serde_json::Value>(payload) else {+ return false;+ };+ let Some(actions) = value.get("actions").and_then(|v| v.as_array()) else {+ return false;+ };+ let has_join = actions.iter().any(|action| {+ action.get("type").and_then(|v| v.as_str()) == Some("meeting_join")+ && action+ .get("url")+ .and_then(|v| v.as_str())+ .is_some_and(|url| !url.is_empty())+ });+ let has_open_note = actions.iter().any(|action| {+ let id = action+ .get("id")+ .or_else(|| action.get("action"))+ .and_then(|v| v.as_str());+ action.get("type").and_then(|v| v.as_str()) == Some("deeplink")+ && id == Some("open-live-notes")+ && action+ .get("url")+ .and_then(|v| v.as_str())+ .is_some_and(|url| url.starts_with("screenpipe://meeting"))+ });+ has_join || has_open_note+}+#[cfg(test)]mod meeting_join_notification_tests {- use super::notification_is_meeting_join;+ use super::{notification_is_meeting_card, notification_is_meeting_join};++ #[test]+ fn meeting_join_panel_uses_shared_logical_bounds() {+ let expected = [+ ("small", 460.0, 124.0),+ ("medium", 690.0, 186.0),+ ("large", 920.0, 248.0),+ ];+ for (size, width, height) in expected {+ let scale = super::shortcut_overlay_scale(size);+ assert_eq!(super::meeting_join_notification_size(scale), (width, height));+ let payload = super::meeting_join_notification_payload(+ r#"{"id":"meeting","actions":[]}"#,+ scale,+ );+ let value: serde_json::Value = serde_json::from_str(&payload).unwrap();+ assert_eq!(value["overlayScale"].as_f64(), Some(scale));+ }+ }#[test]fn meeting_join_uses_typed_action_instead_of_localized_copy() {@@ -4106,6 +4193,12 @@ mod meeting_join_notification_tests {assert!(!notification_is_meeting_join(r#"{"actions":[{"type":"meeting_join","url":""}]}"#));+ assert!(notification_is_meeting_card(+ r#"{"actions":[{"id":"open-live-notes","action":"open-live-notes","type":"deeplink","url":"screenpipe://meeting/42"}]}"#+ ));+ assert!(!notification_is_meeting_card(+ r#"{"actions":[{"id":"open-live-notes","type":"deeplink","url":"screenpipe://activity"}]}"#+ ));}}@@ -4210,6 +4303,8 @@ pub(crate) async fn deliver_notification_panel(// The pill speaks up for its own alerts wherever it is native. Windows has// no native standalone panel, so only the overlay branch applies and// anything the pill refuses falls through to the webview panel below.+ let meeting_card = notification_is_meeting_card(&payload);+ #[cfg(target_os = "windows")]let meeting_join = notification_is_meeting_join(&payload);#[cfg(target_os = "windows")]{@@ -4244,7 +4339,7 @@ pub(crate) async fn deliver_notification_panel(return Ok(NotificationDelivery::ShownOnOverlay);}- if !meeting_join && native_notification::is_available() {+ if !meeting_card && native_notification::is_available() {info!("Using native SwiftUI notification panel");if native_notification::show(&payload) {// Emit event so the main window can save notification history + PostHog analytics@@ -4256,11 +4351,25 @@ pub(crate) async fn deliver_notification_panel(}}- let (window_width, window_height) = if meeting_join {- (460.0, 124.0)+ let overlay_scale = if meeting_card {+ let size = crate::store::SettingsStore::get(&app_handle)+ .unwrap_or_default()+ .unwrap_or_default()+ .shortcut_overlay_size;+ shortcut_overlay_scale(&size)+ } else {+ 1.0+ };+ let (window_width, window_height) = if meeting_card {+ meeting_notification_card_size(overlay_scale)} else {(340.0, 380.0)};+ let panel_payload = if meeting_card {+ meeting_notification_card_payload(&payload, overlay_scale)+ } else {+ payload.clone()+ };// Position at top-right of the screen where the cursor islet (x, y) = {@@ -4317,7 +4426,7 @@ pub(crate) async fn deliver_notification_panel(.set_size(tauri::LogicalSize::new(window_width, window_height)).map_err(|e| e.to_string())?;let _ = window.set_position(tauri::Position::Logical(tauri::LogicalPosition::new(x, y)));- let _ = app_handle.emit_to(label, "notification-panel-update", &payload);+ let _ = app_handle.emit_to(label, "notification-panel-update", &panel_payload);// On macOS, skip window.show() — it calls makeKeyAndOrderFront which// steals focus from the user's current app. Use orderFront: on the@@ -4460,7 +4569,7 @@ pub(crate) async fn deliver_notification_panel(// Wait for webview to mount React and register event listeners before emittinglet app_clone = app_handle.clone();- let payload_clone = payload.clone();+ let payload_clone = panel_payload;tokio::spawn(async move {tokio::time::sleep(std::time::Duration::from_secs(2)).await;info!("Emitting notification-panel-update event");diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swiftindex d1a6073aa..d3b0a24cf 100644--- a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift+++ b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder.swift@@ -207,6 +207,7 @@ struct OverlayNotificationAction: Identifiable, Equatable {let label: Stringlet primary: Boollet payload: String+ let isMeetingJoin: Boollet meetingProvider: MeetingJoinProvider?let screenDetailBody: String?}@@ -219,12 +220,15 @@ struct OverlayNotification: Equatable {let body: Stringlet actions: [OverlayNotificationAction]let autoDismissMs: Int?- let isMeetingJoin: Bool+ let isMeetingCard: Bool++ static let meetingCardWidth: CGFloat = 460+ static let meetingCardHeight: CGFloat = 124func size(scale: CGFloat) -> NSSize {NSSize(- width: (isMeetingJoin ? 460 : kBaseNotificationW) * scale,- height: (isMeetingJoin ? 124 : kBaseNotificationH) * scale+ width: (isMeetingCard ? Self.meetingCardWidth : kBaseNotificationW) * scale,+ height: (isMeetingCard ? Self.meetingCardHeight : kBaseNotificationH) * scale)}@@ -232,18 +236,19 @@ struct OverlayNotification: Equatable {actions.first { $0.screenDetailBody != nil }}- /// Both visible meeting buttons join in one click. The screen-detail variant- /// replaces the standalone capture action while preserving its eligibility.+ /// Meeting choices share one light surface. The optional screen-detail+ /// variant replaces the standalone capture action while preserving eligibility.var displayActions: [OverlayNotificationAction] {- guard isMeetingJoin, let detailAction = screenDetailAction,- let join = actions.first(where: { $0.meetingProvider != nil })+ guard actions.contains(where: { $0.isMeetingJoin }), let detailAction = screenDetailAction,+ let join = actions.first(where: { $0.isMeetingJoin })else { return actions }let combined = joining(join, captureScreenDetail: true)return actions.map { action inguard action.id == detailAction.id else { return action }return OverlayNotificationAction(id: action.id, label: uiText("join + HD"), primary: false,- payload: combined.payload, meetingProvider: combined.meetingProvider,+ payload: combined.payload, isMeetingJoin: combined.isMeetingJoin,+ meetingProvider: combined.meetingProvider,screenDetailBody: nil)}@@ -251,7 +256,7 @@ struct OverlayNotification: Equatable {/// Compose capture and joining into one dispatch, with capture starting first.func joining(_ action: OverlayNotificationAction, captureScreenDetail: Bool) -> OverlayNotificationAction {- guard captureScreenDetail, action.meetingProvider != nil,+ guard captureScreenDetail, action.isMeetingJoin,let body = screenDetailAction?.screenDetailBody,let bodyData = body.data(using: .utf8),let detail = try? JSONSerialization.jsonObject(with: bodyData),@@ -263,7 +268,8 @@ struct OverlayNotification: Equatable {let json = String(data: updated, encoding: .utf8) else { return action }return OverlayNotificationAction(id: action.id, label: action.label, primary: action.primary,- payload: json, meetingProvider: action.meetingProvider, screenDetailBody: nil+ payload: json, isMeetingJoin: action.isMeetingJoin,+ meetingProvider: action.meetingProvider, screenDetailBody: nil)}@@ -298,6 +304,7 @@ struct OverlayNotification: Equatable {label: label,primary: (action["primary"] as? Bool) ?? false,payload: payload,+ isMeetingJoin: action["type"] as? String == "meeting_join",meetingProvider: action["type"] as? String == "meeting_join"? MeetingJoinProvider.from(url: action["url"] as? String ?? ""): nil,@@ -319,7 +326,13 @@ struct OverlayNotification: Equatable {body: (root["body"] as? String) ?? "",actions: actions,autoDismissMs: autoDismiss,- isMeetingJoin: rawActions.contains { $0["type"] as? String == "meeting_join" }+ isMeetingCard: rawActions.contains { action in+ if action["type"] as? String == "meeting_join" { return true }+ let actionID = (action["id"] as? String) ?? (action["action"] as? String)+ return actionID == "open-live-notes"+ && action["type"] as? String == "deeplink"+ && (action["url"] as? String)?.hasPrefix("screenpipe://meeting") == true+ })}}@@ -1670,6 +1683,8 @@ private struct DockStatusCell<Content: View>: View {@available(macOS 13.0, *)private struct OverlayNotificationView: View {@ObservedObject private var uiLocalization = UILocalization.shared+ @State private var hoveredMeetingAction: String?+ @State private var hoveringDismiss = falselet notification: OverlayNotificationlet scale: CGFloatlet onAction: (OverlayNotificationAction) -> Void@@ -1685,8 +1700,8 @@ private struct OverlayNotificationView: View {var body: some View {Group {- if notification.isMeetingJoin {- meetingJoinContent+ if notification.isMeetingCard {+ meetingCardContent} else {compactContent}@@ -1697,13 +1712,14 @@ private struct OverlayNotificationView: View {.overlay(RoundedRectangle(cornerRadius: s(8)).stroke(Color.white.opacity(0.42), lineWidth: 1))}- private var meetingJoinContent: some View {+ private var meetingCardContent: some View {VStack(alignment: .leading, spacing: s(8)) {HStack(alignment: .top, spacing: s(10)) {Image(systemName: "video.fill")- .font(.system(size: 16 * scale, weight: .medium))+ .font(.system(size: 20 * scale, weight: .medium)).foregroundColor(.white.opacity(0.75))- .frame(height: s(24))+ .frame(width: s(20), height: s(24))+ .padding(.top, s(3))VStack(alignment: .leading, spacing: s(4)) {Text(notification.title).font(Brand.swiftUIMonoFont(size: 14 * scale, weight: .semibold))@@ -1722,28 +1738,28 @@ private struct OverlayNotificationView: View {}HStack(spacing: s(8)) {Spacer(minLength: 0)- meetingJoinActions+ meetingCardActions}}.padding(s(14))}- /// Two immediate actions share one light surface. HD remains one click,- /// and its label explicitly includes joining rather than a recording toggle.+ /// Action choices share a light surface and keep each notification's label+ /// and dispatch payload intact.@ViewBuilder- private var meetingJoinActions: some View {- if let join = notification.actions.first(where: { $0.meetingProvider != nil }),- let detailID = notification.screenDetailAction?.id,- let detail = notification.displayActions.first(where: { $0.id == detailID }) {- ForEach(orderedActions.filter { $0.id != join.id && $0.id != detailID }) { action in- Button(action.label) { onAction(action) }- .buttonStyle(.plain)- .foregroundColor(.white.opacity(0.88))- }- HStack(spacing: 0) {- Button(action: { onAction(join) }) {+ private var meetingCardActions: some View {+ let displayActions = orderedActions+ HStack(spacing: 0) {+ ForEach(Array(displayActions.enumerated()), id: \.element.id) { index, action in+ if index > 0 {+ Rectangle()+ .fill(Color.black.opacity(0.15))+ .frame(width: 1, height: s(20))+ .accessibilityHidden(true)+ }+ Button(action: { onAction(action) }) {HStack(spacing: s(7)) {- if let provider = join.meetingProvider {+ if index == 0, let provider = action.meetingProvider {if let image = provider.image {Image(nsImage: image).resizable()@@ -1753,39 +1769,36 @@ private struct OverlayNotificationView: View {.accessibilityHidden(true)} else {Image(systemName: "video.fill")- .font(.system(size: 16 * scale))+ .font(.system(size: 18 * scale)).frame(width: s(18), height: s(18)).accessibilityHidden(true)}+ } else if index == 0 {+ Image(systemName: "video.fill")+ .font(.system(size: 18 * scale))+ .frame(width: s(18), height: s(18))+ .accessibilityHidden(true)}- Text(join.label)+ Text(action.label)+ .lineLimit(1)+ .truncationMode(.tail)}.padding(.horizontal, s(12)).frame(height: s(36))+ .background(hoveredMeetingAction == action.id ? Color.black.opacity(0.08) : Color.clear).contentShape(Rectangle())}- Rectangle()- .fill(Color.black.opacity(0.15))- .frame(width: 1, height: s(20))- .accessibilityHidden(true)- Button(action: { onAction(detail) }) {- Text(detail.label)- .padding(.horizontal, s(12))- .frame(height: s(36))- .contentShape(Rectangle())- }- .help(uiText("Join and take notes with HD screen recording: more frequent screenshots for smoother replay. Uses more storage."))- .accessibilityLabel(uiText("Join and take notes with HD screen recording"))+ .onHover { hovered in hoveredMeetingAction = hovered ? action.id : nil }+ .help(action.isMeetingJoin && notification.screenDetailAction?.id == action.id+ ? uiText("Join and take notes with HD screen recording: more frequent screenshots for smoother replay. Uses more storage.")+ : action.label)}- .font(Brand.swiftUIMonoFont(size: 13 * scale, weight: .medium))- .foregroundColor(.black)- .buttonStyle(.plain)- .background(Color.white.opacity(0.92))- .clipShape(RoundedRectangle(cornerRadius: s(6)))- .fixedSize()- } else {- actionButtons}+ .font(Brand.swiftUIMonoFont(size: 13 * scale, weight: .medium))+ .foregroundColor(.black)+ .buttonStyle(.plain)+ .background(Color.white.opacity(0.92))+ .clipShape(RoundedRectangle(cornerRadius: s(6)))}private var compactContent: some View {@@ -1836,12 +1849,12 @@ private struct OverlayNotificationView: View {}}Text(action.label)- .font(Brand.swiftUIMonoFont(size: (notification.isMeetingJoin ? 12 : 9) * scale, weight: .medium))+ .font(Brand.swiftUIMonoFont(size: (notification.isMeetingCard ? 12 : 9) * scale, weight: .medium)).lineLimit(1)}.foregroundColor(action.primary ? .black : .white.opacity(0.88))- .padding(.horizontal, s(notification.isMeetingJoin ? 10 : 8))- .frame(height: s(notification.isMeetingJoin ? 34 : 22))+ .padding(.horizontal, s(notification.isMeetingCard ? 10 : 8))+ .frame(height: s(notification.isMeetingCard ? 34 : 22)).background(action.primary? Color.white.opacity(0.92)@@ -1851,7 +1864,7 @@ private struct OverlayNotificationView: View {.contentShape(RoundedRectangle(cornerRadius: s(6)))}.buttonStyle(.plain)- .help(notification.isMeetingJoin && action.id == notification.screenDetailAction?.id+ .help(notification.isMeetingCard && action.id == notification.screenDetailAction?.id? uiText("Join and take notes with more frequent screen capture for smoother replay. Uses more storage."): action.label).fixedSize()@@ -1861,12 +1874,15 @@ private struct OverlayNotificationView: View {private var dismissButton: some View {Button(action: onDismiss) {Image(systemName: "xmark")- .font(.system(size: (notification.isMeetingJoin ? 11 : 8) * scale, weight: .semibold))+ .font(.system(size: (notification.isMeetingCard ? 11 : 8) * scale, weight: .semibold)).foregroundColor(.white.opacity(0.55))- .frame(width: s(notification.isMeetingJoin ? 24 : 14), height: s(notification.isMeetingJoin ? 24 : 22))+ .frame(width: s(notification.isMeetingCard ? 24 : 14), height: s(notification.isMeetingCard ? 24 : 22))+ .background(hoveringDismiss && notification.isMeetingCard ? Color.white.opacity(0.10) : Color.clear)+ .clipShape(RoundedRectangle(cornerRadius: s(5))).contentShape(Rectangle())}.buttonStyle(.plain)+ .onHover { hoveringDismiss = $0 }.accessibilityLabel(uiText("dismiss notification"))}}diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder_tests.swift b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder_tests.swiftindex 8e8c23ef0..f9093ac1a 100644--- a/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder_tests.swift+++ b/apps/screenpipe-app-tauri/src-tauri/swift/shortcut_reminder_tests.swift@@ -557,15 +557,19 @@ private func testMeetingJoinNotification() {expect(false, "valid join notification was rejected")return}- expect(meeting.isMeetingJoin, "localized join action needs the larger card")+ expect(meeting.isMeetingCard, "localized join action needs the larger card")expect(meeting.autoDismissMs == 30000, "join timeout must be preserved")let action = try! JSONSerialization.jsonObject(with: Data(meeting.actions[0].payload.utf8)) as! [String: Any]expect(action["type"] as? String == "meeting_join", "join action type changed")expect(action["url"] as? String == "https://meet.google.com/example", "join URL changed")let ordinary = OverlayNotification.parse(json.replacingOccurrences(of: "meeting_join", with: "deeplink"))!- expect(!ordinary.isMeetingJoin, "non-join alert must remain compact")+ let withoutHD = OverlayNotification.parse(json.replacingOccurrences(of: "/capture/hd/start", with: "/unrelated"))!+ expect(!ordinary.isMeetingCard, "non-meeting alert must remain compact")for scale: CGFloat in [1, 1.5, 2] {let size = meeting.size(scale: scale)+ expect(size.width == 460 * scale, "join card width must stay 460 logical points at scale \(scale)")+ expect(size.height == 124 * scale, "join card height must stay 124 logical points at scale \(scale)")+ expect(size == withoutHD.size(scale: scale), "join-only and join-plus-HD cards must share bounds")expect(size.width > ordinary.size(scale: scale).width, "join card needs more text width")expect(size.height >= 3 * ordinary.size(scale: scale).height, "join card needs room for separate actions")let y = overlayAttachmentY(pill: NSRect(x: 500, y: 1030, width: 22, height: 16), height: size.height, gap: 4, stacked: 150, disclosureDown: true, visible: visible, edgeInset: 4)@@ -634,6 +638,11 @@ private func testJoinScreenDetailChoice() {expect(withoutHD.screenDetailAction == nil, "unrelated API action must not become a capture setting")expect(withoutHD.displayActions == withoutHD.actions, "ineligible notifications must keep their actions")expect(withoutHD.joining(withoutHD.actions[0], captureScreenDetail: true) == withoutHD.actions[0], "capture cannot be added without the offered HD action")+ let unknownProvider = OverlayNotification.parse(json.replacingOccurrences(of: "meet.google.com", with: "meet.example.com"))!+ expect(unknownProvider.actions[0].isMeetingJoin && unknownProvider.actions[0].meetingProvider == .other, "unknown destinations must retain their join action")+ let unknownHD = unknownProvider.displayActions[1]+ let unknownPayload = try! JSONSerialization.jsonObject(with: Data(unknownHD.payload.utf8)) as! [String: Any]+ expect(unknownPayload["screen_detail"] != nil, "unknown meeting providers must keep the HD join choice")expect(notification.joining(notification.actions[1], captureScreenDetail: true) == notification.actions[1], "non-join actions must stay unchanged")}diff --git a/crates/screenpipe-overlay-win/src/layout.rs b/crates/screenpipe-overlay-win/src/layout.rsindex f0312495f..dad896b16 100644--- a/crates/screenpipe-overlay-win/src/layout.rs+++ b/crates/screenpipe-overlay-win/src/layout.rs@@ -63,6 +63,8 @@ pub const BASE_NOTIFICATION_W: f32 = 340.0;/// leaves a ~3pt gutter instead of the ~8pt of dead air a 44pt row used to/// have. Keeps the toast in the same density family as the 30pt dock.pub const BASE_NOTIFICATION_H: f32 = 34.0;+pub const BASE_MEETING_CARD_W: f32 = 460.0;+pub const BASE_MEETING_CARD_H: f32 = 124.0;pub const RESTING_OPACITY: f32 = 0.50;/// Room around the content for the drop shadow. Layered windows composite the@@ -237,11 +239,13 @@ pub fn compute(state: &OverlayState) -> Layout {));}if state.notification.is_some() {- blocks.push((- Block::Notification,- BASE_NOTIFICATION_W * s,- BASE_NOTIFICATION_H * s,- ));+ let (notification_w, notification_h) = state+ .notification+ .as_ref()+ .filter(|n| n.is_meeting_card)+ .map(|_| (BASE_MEETING_CARD_W * s, BASE_MEETING_CARD_H * s))+ .unwrap_or((BASE_NOTIFICATION_W * s, BASE_NOTIFICATION_H * s));+ blocks.push((Block::Notification, notification_w, notification_h));}let content_w = blocks.iter().map(|b| b.1).fold(0.0f32, f32::max);@@ -396,6 +400,40 @@ pub fn notification_action_rects(state: &OverlayState, r: Rect, s: f32) -> Vec<(let Some(n) = state.notification.as_ref() else {return Vec::new();};+ if n.is_meeting_card {+ let pad = 14.0 * s;+ let button_height = 36.0 * s;+ let max_group_width = (r.w - pad * 2.0).max(0.0);+ let ordered = n.ordered_actions();+ let mut widths: Vec<f32> = ordered+ .iter()+ .take(crate::notification::MAX_ACTIONS)+ .map(|a| (a.label.chars().count() as f32 * 7.8 + 24.0) * s)+ .collect();+ let total: f32 = widths.iter().sum();+ if total > max_group_width && total > 0.0 {+ let factor = max_group_width / total;+ for width in &mut widths {+ *width *= factor;+ }+ }+ let mut x = r.right() - pad - widths.iter().sum::<f32>();+ let y = r.bottom() - pad - button_height;+ return widths+ .into_iter()+ .enumerate()+ .map(|(i, width)| {+ let control = if i == 0 {+ Control::NotificationAction0+ } else {+ Control::NotificationAction1+ };+ let rect = Rect::new(x, y, width, button_height);+ x += width;+ (control, rect)+ })+ .collect();+ }let pad = 10.0 * s;let dismiss_w = 14.0 * s;let btn_h = 22.0 * s;diff --git a/crates/screenpipe-overlay-win/src/notification.rs b/crates/screenpipe-overlay-win/src/notification.rsindex 19989cc25..7b4a97946 100644--- a/crates/screenpipe-overlay-win/src/notification.rs+++ b/crates/screenpipe-overlay-win/src/notification.rs@@ -41,6 +41,9 @@ pub struct Notification {pub title: String,pub body: String,pub actions: Vec<NotificationAction>,+ /// Meeting alerts use the shared 460×124 card rather than the compact row.+ #[serde(default)]+ pub is_meeting_card: bool,/// Dismiss itself after this many ms. `None` means it waits for the user.pub auto_dismiss_ms: Option<u32>,}@@ -100,6 +103,26 @@ pub fn parse(json: &str) -> Result<Notification, Refusal> {.cloned().unwrap_or_default();+ let is_meeting_card = raw_actions.iter().any(|action| {+ let kind = action.get("type").and_then(|v| v.as_str());+ if kind == Some("meeting_join") {+ return action+ .get("url")+ .and_then(|v| v.as_str())+ .is_some_and(|url| !url.is_empty());+ }+ let action_id = action+ .get("id")+ .or_else(|| action.get("action"))+ .and_then(|v| v.as_str());+ kind == Some("deeplink")+ && action_id == Some("open-live-notes")+ && action+ .get("url")+ .and_then(|v| v.as_str())+ .is_some_and(|url| url.starts_with("screenpipe://meeting"))+ });+let mut actions = Vec::with_capacity(raw_actions.len());for raw in &raw_actions {let Some(action) = raw.as_object() else {@@ -153,6 +176,7 @@ pub fn parse(json: &str) -> Result<Notification, Refusal> {.unwrap_or_default().to_string(),actions,+ is_meeting_card,auto_dismiss_ms,})}diff --git a/crates/screenpipe-overlay-win/src/render.rs b/crates/screenpipe-overlay-win/src/render.rsindex 85079df92..db714f73b 100644--- a/crates/screenpipe-overlay-win/src/render.rs+++ b/crates/screenpipe-overlay-win/src/render.rs@@ -56,6 +56,48 @@ fn fits(width: f32, font_size: f32) -> usize {(width / (font_size * MONO_ADVANCE)).floor().max(0.0) as usize}+fn notification_body_lines(text: &str, max_chars: usize, max_lines: usize) -> Vec<String> {+ if max_chars == 0 || max_lines == 0 {+ return Vec::new();+ }+ let mut lines = Vec::new();+ let mut line = String::new();+ for word in text.split_whitespace() {+ let candidate = if line.is_empty() {+ word.to_owned()+ } else {+ format!("{line} {word}")+ };+ if candidate.chars().count() <= max_chars {+ line = candidate;+ } else {+ if !line.is_empty() {+ lines.push(line);+ if lines.len() == max_lines {+ break;+ }+ }+ line = ellipsize(word, max_chars);+ }+ }+ if lines.len() < max_lines && !line.is_empty() {+ lines.push(line);+ }+ if lines.len() == max_lines {+ let consumed: usize = lines+ .iter()+ .map(|part| part.split_whitespace().count())+ .sum();+ if consumed < text.split_whitespace().count() {+ if let Some(last) = lines.last_mut() {+ let marked = format!("{last}…");+ *last = ellipsize(&marked, max_chars);+ }+ }+ }+ lines+}+/// App icon shown on the resting chip, same mark as the tray and the dock.const APP_ICON_PNG: &[u8] =include_bytes!("../../../apps/screenpipe-app-tauri/src-tauri/icons/32x32.png");@@ -685,6 +727,10 @@ impl Renderer {let Some(n) = state.notification.as_ref() else {return;};+ if n.is_meeting_card {+ self.draw_meeting_notification(rt, state, r, s);+ return;+ }self.shadow(rt, r, 2.0 * s, 0.8);self.fill(rt, r, black(0.94));@@ -774,6 +820,107 @@ impl Renderer {unsafe { rt.DrawRectangle(&d2d_rect(r.inset(0.5, 0.5)), &brush, 1.0, None) };}+ fn draw_meeting_notification(+ &self,+ rt: &ID2D1RenderTarget,+ state: &OverlayState,+ r: Rect,+ s: f32,+ ) {+ let Some(n) = state.notification.as_ref() else {+ return;+ };+ self.shadow(rt, r, 8.0 * s, 0.8);+ self.fill_round(rt, r, 8.0 * s, black(1.0));++ let pad = 14.0 * s;+ let title_x = r.x + pad + 30.0 * s;+ let title_right = r.right() - pad - 30.0 * s;+ let title_width = (title_right - title_x).max(20.0 * s);+ self.icon(+ rt,+ ICON_VIDEO,+ 18.0 * s,+ Rect::new(r.x + pad, r.y + pad, 24.0 * s, 24.0 * s),+ white(0.75),+ );+ self.mono_text(+ rt,+ &ellipsize(&n.title, fits(title_width, 14.0 * s)),+ 14.0 * s,+ DWRITE_FONT_WEIGHT_SEMI_BOLD,+ Align::Leading,+ Rect::new(title_x, r.y + pad, title_width, 18.0 * s),+ white(0.95),+ );+ if !n.body.is_empty() {+ let body_width = (title_right - title_x).max(20.0 * s);+ let lines = notification_body_lines(&n.body, fits(body_width, 12.0 * s), 2);+ for (index, line) in lines.iter().enumerate() {+ self.mono_text(+ rt,+ line,+ 12.0 * s,+ DWRITE_FONT_WEIGHT_NORMAL,+ Align::Leading,+ Rect::new(+ title_x,+ r.y + pad + (20.0 + index as f32 * 15.0) * s,+ body_width,+ 15.0 * s,+ ),+ white(0.60),+ );+ }+ }++ let actions = notification_action_rects(state, r, s);+ if let (Some((_, first)), Some((_, last))) = (actions.first(), actions.last()) {+ let bar = Rect::new(first.x, first.y, last.right() - first.x, first.h);+ self.fill_round(rt, bar, 6.0 * s, white(0.92));+ let ordered = n.ordered_actions();+ for ((control, rect), action) in actions.iter().zip(ordered.iter()) {+ if state.hovered_control == Some(*control) {+ self.fill_round(rt, *rect, 5.0 * s, black(0.08));+ }+ let text_pad = 8.0 * s;+ self.mono_text(+ rt,+ &ellipsize(&action.label, fits(rect.w - text_pad * 2.0, 13.0 * s)),+ 13.0 * s,+ DWRITE_FONT_WEIGHT_NORMAL,+ Align::Center,+ *rect,+ black(1.0),+ );+ }+ for pair in actions.windows(2) {+ let x = pair[0].1.right();+ self.fill(+ rt,+ Rect::new(x, bar.y + 8.0 * s, 1.0, bar.h - 16.0 * s),+ black(0.15),+ );+ }+ }++ let dismiss = Rect::new(r.right() - pad - 24.0 * s, r.y + pad, 24.0 * s, 24.0 * s);+ self.icon(+ rt,+ ICON_CLOSE,+ 11.0 * s,+ dismiss,+ white(+ if state.hovered_control == Some(Control::NotificationDismiss) {+ 0.9+ } else {+ 0.55+ },+ ),+ );+ self.stroke_round(rt, r, 8.0 * s, 1.0, white(0.42));+ }+// MARK: live meeting transcriptfn draw_transcript(&self, rt: &ID2D1RenderTarget, state: &OverlayState, r: Rect, s: f32) {diff --git a/docs/pr-assets/notification-overlay-ux/after-large.png b/docs/pr-assets/notification-overlay-ux/after-large.pngnew file mode 100644index 000000000..8c1e8aabdBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/after-large.png differdiff --git a/docs/pr-assets/notification-overlay-ux/after-medium.png b/docs/pr-assets/notification-overlay-ux/after-medium.pngnew file mode 100644index 000000000..737bdd9a7Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/after-medium.png differdiff --git a/docs/pr-assets/notification-overlay-ux/after-small.png b/docs/pr-assets/notification-overlay-ux/after-small.pngnew file mode 100644index 000000000..62af8ad98Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/after-small.png differdiff --git a/docs/pr-assets/notification-overlay-ux/before.png b/docs/pr-assets/notification-overlay-ux/before.pngnew file mode 100644index 000000000..62af8ad98Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/before.png differdiff --git a/docs/pr-assets/notification-overlay-ux/focus-dismiss.png b/docs/pr-assets/notification-overlay-ux/focus-dismiss.pngnew file mode 100644index 000000000..791f2f335Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/focus-dismiss.png differdiff --git a/docs/pr-assets/notification-overlay-ux/focus-hd.png b/docs/pr-assets/notification-overlay-ux/focus-hd.pngnew file mode 100644index 000000000..93f273509Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/focus-hd.png differdiff --git a/docs/pr-assets/notification-overlay-ux/focus-join.png b/docs/pr-assets/notification-overlay-ux/focus-join.pngnew file mode 100644index 000000000..ecb45e4bdBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/focus-join.png differdiff --git a/docs/pr-assets/notification-overlay-ux/hover-dismiss.png b/docs/pr-assets/notification-overlay-ux/hover-dismiss.pngnew file mode 100644index 000000000..3f73bfa44Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/hover-dismiss.png differdiff --git a/docs/pr-assets/notification-overlay-ux/hover-hd.png b/docs/pr-assets/notification-overlay-ux/hover-hd.pngnew file mode 100644index 000000000..0edd21fccBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/hover-hd.png differdiff --git a/docs/pr-assets/notification-overlay-ux/hover-join.png b/docs/pr-assets/notification-overlay-ux/hover-join.pngnew file mode 100644index 000000000..e01f1c46bBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/hover-join.png differdiff --git a/docs/pr-assets/notification-overlay-ux/join-only.png b/docs/pr-assets/notification-overlay-ux/join-only.pngnew file mode 100644index 000000000..a33dadba7Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/join-only.png differdiff --git a/docs/pr-assets/notification-overlay-ux/long-label.png b/docs/pr-assets/notification-overlay-ux/long-label.pngnew file mode 100644index 000000000..3d0766eacBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/long-label.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-focus-dismiss.png b/docs/pr-assets/notification-overlay-ux/open-note-focus-dismiss.pngnew file mode 100644index 000000000..590733738Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-focus-dismiss.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-focus-hd.png b/docs/pr-assets/notification-overlay-ux/open-note-focus-hd.pngnew file mode 100644index 000000000..2fa60728fBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-focus-hd.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-focus-primary.png b/docs/pr-assets/notification-overlay-ux/open-note-focus-primary.pngnew file mode 100644index 000000000..61d056de1Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-focus-primary.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-hover-dismiss.png b/docs/pr-assets/notification-overlay-ux/open-note-hover-dismiss.pngnew file mode 100644index 000000000..03407b58aBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-hover-dismiss.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-hover-hd.png b/docs/pr-assets/notification-overlay-ux/open-note-hover-hd.pngnew file mode 100644index 000000000..5f2b6ccefBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-hover-hd.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-hover-primary.png b/docs/pr-assets/notification-overlay-ux/open-note-hover-primary.pngnew file mode 100644index 000000000..956ec707aBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-hover-primary.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-large.png b/docs/pr-assets/notification-overlay-ux/open-note-large.pngnew file mode 100644index 000000000..bf14d4ac5Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-large.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-long-label.png b/docs/pr-assets/notification-overlay-ux/open-note-long-label.pngnew file mode 100644index 000000000..42e586cc0Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-long-label.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-medium.png b/docs/pr-assets/notification-overlay-ux/open-note-medium.pngnew file mode 100644index 000000000..0cd3b6ef0Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-medium.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-only.png b/docs/pr-assets/notification-overlay-ux/open-note-only.pngnew file mode 100644index 000000000..8937a28c7Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-only.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-pending.png b/docs/pr-assets/notification-overlay-ux/open-note-pending.pngnew file mode 100644index 000000000..7fdff76e6Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-pending.png differdiff --git a/docs/pr-assets/notification-overlay-ux/open-note-small.png b/docs/pr-assets/notification-overlay-ux/open-note-small.pngnew file mode 100644index 000000000..549556cdbBinary files /dev/null and b/docs/pr-assets/notification-overlay-ux/open-note-small.png differdiff --git a/docs/pr-assets/notification-overlay-ux/pending-disabled.png b/docs/pr-assets/notification-overlay-ux/pending-disabled.pngnew file mode 100644index 000000000..6db14bd43Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/pending-disabled.png differdiff --git a/docs/pr-assets/notification-overlay-ux/unknown-provider.png b/docs/pr-assets/notification-overlay-ux/unknown-provider.pngnew file mode 100644index 000000000..97eabd7d9Binary files /dev/null and b/docs/pr-assets/notification-overlay-ux/unknown-provider.png differ