Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

Gmail favorite preview: Arc's empty card also without mail to list

Victor874e1ca27dd8
diff --git a/Sources/Cra/UI/Sidebar/GmailPreviewCard.swift b/Sources/Cra/UI/Sidebar/GmailPreviewCard.swift
index 655efe6..0247976 100644
--- a/Sources/Cra/UI/Sidebar/GmailPreviewCard.swift
+++ b/Sources/Cra/UI/Sidebar/GmailPreviewCard.swift
@@ -22,9 +22,10 @@ final class GmailPreviewCard {
CraCEFRuntime.fetchURL(feed, headers: nil, profilePath: profilePath) { status, _, _, body in
MainActor.assumeIsolated {
guard let self, let tile, self.tile === tile, tile.window != nil else { return }
- // Signed out: Gmail answers with its sign-in page, and Arc shows nothing.
- guard status == 200, let inbox = GmailPreview.parse(body) else { return }
- self.show(inbox, by: tile)
+ // Arc shows its "exhale" card whenever it has no unread mail to list, signed out
+ // included (seen on a space with no Google sign-in, 7 Nov 2026).
+ let inbox = status == 200 ? GmailPreview.parse(body) : nil
+ self.show(inbox ?? GmailPreview.Inbox(unread: 0, mails: []), by: tile)
}
}
}
diff --git a/docs/arc-parity.md b/docs/arc-parity.md
index 18e9c5e..e47afed 100644
--- a/docs/arc-parity.md
+++ b/docs/arc-parity.md
@@ -34,8 +34,8 @@ or Arc-only service), per CONTRIBUTING.md.
| Restore windows from previous session | Settings ▸ Advanced | done | Settings ▸ Advanced; off keeps the window in use last. |
| Block Cookie Banners | Settings ▸ General | done | Settings ▸ Privacy; hides the common consent managers' banners (CookieBanners), off by default as in Arc. |
| Archive Little Arcs after | Settings ▸ Links (6 hours default) | done | Settings ▸ Tabs ▸ Links; a Little Window left alone that long closes into the archive. |
-| Previews (Gmail, Calendar on Favorites) | Settings ▸ General ▸ Previews Settings… | partial | Gmail done: hovering a Gmail favorite shows its unread mail from Gmail's Atom feed (the space's own sign-in), Arc's card and empty state measured on Victor's Arc. Calendar not measured: Victor has no Calendar favorite. |
-| Join Meeting ⌃⌘J | Shortcuts | missing | Needs Calendar previews, which couldn't be measured (no Calendar favorite in Victor's Arc). |
+| Previews (Gmail, Calendar on Favorites) | Settings ▸ General ▸ Previews Settings… | partial | Gmail done: hovering a Gmail favorite shows its unread mail from Gmail's Atom feed (the space's own sign-in), Arc's card and empty state measured on Victor's Arc. Arc shows the empty card when it has no mail to list, signed out too. Calendar not measured: the Victor space has no Google sign-in, so Arc has no events to preview. |
+| Join Meeting ⌃⌘J | Shortcuts | missing | Needs Calendar previews, which need a space signed in to Google Calendar to measure. |
| Troubleshooting menu | Help ▸ Troubleshooting: Record Trace, Open Task Manager, Reveal Arc Data, Copy Arc Info | done | Export Diagnostics…, Open Task Manager (Chrome's), Reveal Cra Data, Copy Cra Info; Record Trace is Arc-internal. |
| Help menu | Getting Started, Release Notes, Contact the Team, Visit Help Center, Restore Data | partial | |
| Ad blocker upsell card, Sync, Account, Membership card, Share Arc, Sign Out, Send to Dia, Share Space | | *skip* | Account/cloud. |
@@ -161,4 +161,4 @@ in this sweep (Essential Shortcuts window, Library pages).
## Left for later, and why
-- Calendar previews and Join Meeting: Arc shows them for a Google Calendar favorite, which Victor's Arc doesn't have.
+- Calendar previews and Join Meeting: Arc shows them for a Google Calendar favorite in a space signed in to Google; Victor's Arc has neither (checked 7 Nov: calendar.google.com shows the signed-out landing page). Signing in to his accounts is his to do.