codeburn/mac/Sources
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
..
CodeBurnMenubar feat(menubar): ask for a GitHub star once after the third open (#1827) 2026-11-02 15:46:37 +01:00