docs: permission problem badge + ignore .worktrees#95
Merged
Conversation
368e1e5 to
3ced142
Compare
Adds drawExclamationBadge() mirroring MenuBarIcon.drawExclamationBadge and a new menu-bar-permission.gif output (idle waveform + red "!" overlay) so the documentation image can be regenerated deterministically alongside the other menu bar GIFs.
Explains the red exclamation badge that overlays active menu bar icons when Microphone, Screen Recording, or Accessibility is denied or broken: - README: new "Permission problem badge" section with image, meaning of each permission state, and the "toggle off/on in System Settings" fix for the broken (TCC out of sync) case. - architecture-macos.md: new "Permission health check + badge overlay" section covering PermissionHealthCheck, AppState re-checks on app activation, MenuBarIcon.image(permissionOverlay:), and the interaction with BadgeKind.compute and notification dedup.
3d48431 to
1d94298
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/architecture-macos.md: new "Permission health check + badge overlay" subsection coveringPermissionHealthCheck, the re-check on app activation,MenuBarIcon.image(permissionOverlay:), and the interaction withBadgeKind.computeand notification dedupscripts/generate_menu_bar_gifs.swiftwithdrawExclamationBadge()(mirrored fromMenuBarIcon.drawExclamationBadge) and amenu-bar-permission.gifoutput so the doc image is reproducible.worktrees/directoryTest plan
swift scripts/generate_menu_bar_gifs.swiftregenerates all GIFs includingdocs/menu-bar-permission.gifdocs/architecture-macos.mdrenders correctly on GitHub