codeburn/mac/Sources/CodeBurnMenubar
Resham Joshi 57aa744343
feat(menubar): ask for a GitHub star once after the third open (#1827)
This mirrors #1826 for the macOS menubar app. From the third time the popover opens, a small card asks for a GitHub star with the same copy as the desktop: Enjoying CodeBurn?, one muted line saying a star would mean a lot and keeps the project free and open, and Not now and Star on GitHub buttons, with Star on GitHub as the default action.

The menubar already had a one-line star strip at the bottom of the popover, shown from the very first launch with an X to hide it. This replaces that strip in the same slot and the same tinted style as the update banner above it, so there is still only one star ask. There is no GitHub mark in the menubar bundle, so the card has no mark, and the old SF Symbol star is gone.

Opens are counted in UserDefaults under codeburn.starNudgeOpens, counted in the click handler that shows the popover. Either button sets codeburn.starNudgeDone and removes the card at once; closing the popover without pressing a button leaves no flag, so it shows again on the next open. Anyone who already closed the old strip (codeburn.starBannerDismissed) is not asked again. Nothing checks whether a star was given. The strings are in all six catalogs, using the same translations as the desktop, and the two strings only the old strip used are removed.

Verified with xcrun swiftc -typecheck over the whole module and over the new StarNudgeTests together with the module, both clean. The new test and the full suite were not run locally; macOS Menubar CI runs swift build, swift test (including the localization catalog and coverage checks) and the packaging script on this PR. Not checked in a running app yet.
2026-11-02 15:46:37 +01:00
..
Data fix(cursor): unwrap Cursor 3.27 safe-storage sessions (#1802) 2026-10-30 22:32:51 +01:00
Resources feat(menubar): ask for a GitHub star once after the third open (#1827) 2026-11-02 15:46:37 +01:00
Security fix: stop a stuck cursor, pick the right Claude session file, skip the Kimi blob walk 2026-09-14 03:42:39 -07:00
Theme fix(menubar): make the quota warning legible and name the window it means 2026-09-13 06:29:21 -07:00
Views feat(menubar): ask for a GitHub star once after the third open (#1827) 2026-11-02 15:46:37 +01:00
AppStore.swift fix(cursor): unwrap Cursor 3.27 safe-storage sessions (#1802) 2026-10-30 22:32:51 +01:00
AppVersion.swift Normalize menubar version display 2026-05-11 11:21:39 -07:00
CapacityDockController.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
CapacityDockMotion.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockPlacement.swift fix(menubar): keep Capacity Dock hover alive after app deactivation (#1170) 2026-08-29 18:42:27 +02:00
CapacityDockPointerUpdateCoalescer.swift Fix Capacity Dock pointer coalescing and dismissal 2026-09-01 16:51:00 +05:30
CodeBurnApp.swift feat(menubar): ask for a GitHub star once after the third open (#1827) 2026-11-02 15:46:37 +01:00
CurrencyState.swift devin: price sessions from tokens, drop the ACU rate (#1469) 2026-09-17 16:57:30 +02:00
Localization.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
MenubarRemoteCommand.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
MenubarScope.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
MenubarSecondRow.swift desktop and menu bar: six-language localization (#1493) 2026-09-19 03:25:46 -07:00
ProviderIcon.swift Grok Bot: sessions, estimated spend and the weekly allowance on all three surfaces (#1462) 2026-09-16 21:17:48 +02:00
QuotaRefreshDecision.swift Force a quota refresh when a window rolls over 2026-09-13 13:49:46 -07:00
RefreshCadence.swift menubar: skip unchanged background refreshes, 120s AC idle cadence, utility QoS for tick spawns (#703) (#704) 2026-07-16 15:11:25 -07:00
SessionCountLabel.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
SettingsWindowPlacement.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
SingleInstanceGuard.swift 0.9.25 round 2: fixes found testing the built apps (#1517) 2026-09-21 13:53:45 +02:00
StatusItemContextMenuPolicy.swift test(mac): lock status-item context menu policy (#802) 2026-07-24 19:27:25 +07:00
StatusItemPlacementPolicy.swift menubar: keep retrying parked status item on a persistent menu bar (#1461) 2026-09-16 18:46:13 +02:00