From b63a2e4231d27f61eae952d2febab36489e773a5 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Mon, 13 Jul 2026 17:38:32 -0400 Subject: [PATCH] fix(desktop): sync sidebar update card copy with global installing state (#1827) Signed-off-by: Will Pfleger Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 --- .../features/settings/SidebarUpdateCard.tsx | 12 +++-- desktop/tests/e2e/sidebar.spec.ts | 49 +++++++++++++++++++ 2 files changed, 56 insertions(+), 5 deletions(-) diff --git a/desktop/src/features/settings/SidebarUpdateCard.tsx b/desktop/src/features/settings/SidebarUpdateCard.tsx index 4cba748a5..0d09d3570 100644 --- a/desktop/src/features/settings/SidebarUpdateCard.tsx +++ b/desktop/src/features/settings/SidebarUpdateCard.tsx @@ -21,7 +21,7 @@ export function SidebarUpdateCompactCard({ onDismiss, testId = "sidebar-update-card-compact", }: SidebarUpdateCompactCardProps) { - const { installAndRelaunch } = useUpdaterContext(); + const { installAndRelaunch, status } = useUpdaterContext(); const [isUpdatePending, setIsUpdatePending] = React.useState(false); const updatePendingRef = React.useRef(false); const updateFrameRef = React.useRef(null); @@ -62,21 +62,23 @@ export function SidebarUpdateCompactCard({ }); }, [installAndRelaunch]); + const pending = isUpdatePending || status.state === "installing"; + return (