From 68bdaaac33620cc879657bcd68ba7fab212f5b15 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 4 Nov 2026 12:41:37 +0100 Subject: [PATCH] fix: hold the offline notice until the welcome tips are closed, also when they show in the reading pane --- components/mail/mail-app.tsx | 5 ++--- .../ui/__tests__/first-start-notice.test.tsx | 15 +++++++++++++++ components/ui/first-start-notice.tsx | 10 +++++++--- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/components/mail/mail-app.tsx b/components/mail/mail-app.tsx index bdc888cfc..e89c23cec 100644 --- a/components/mail/mail-app.tsx +++ b/components/mail/mail-app.tsx @@ -109,7 +109,7 @@ import type { Attachment, SendEmailResult } from "@/lib/jmap/types"; import type { IJMAPClient } from "@/lib/jmap/client-interface"; import { peekListAttachments, requestListAttachments, type ListAttachmentSource, type LoadListAttachments } from "@/lib/list-attachments"; import { useSearchHistoryStore } from "@/stores/search-history-store"; -import { useWelcomeBannerDue, WelcomeBanner } from "@/components/ui/welcome-banner"; +import { WelcomeBanner } from "@/components/ui/welcome-banner"; import { FirstStartNoticeBar } from "@/components/ui/first-start-notice"; import { NavigationRail } from "@/components/layout/navigation-rail"; import { AppMain } from "@/components/layout/app-landmarks"; @@ -262,7 +262,6 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { const linkSegments = useLiteLinkSegments('mail', routeSegments); const t = useTranslations(); // First-start notices wait until the welcome tips are closed: one thing at a time. - const welcomeDue = useWelcomeBannerDue(); // The page skeleton the gates below draw: the same one the server sent. const skeletonLabels = useSkeletonLabels(); const tNotifications = useTranslations('notifications'); @@ -5781,7 +5780,7 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { unless an enabled plugin registered tabs via api.tabs.set. */} {!isScheduledView && } {!emptyPaneBesideList && } -