Repository navigation
feat: add a calendar provider for the next meeting and today's agenda - #25
Merged
Merged
Conversation
This was referenced Oct 20, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
A "next meeting" widget needs a script around
icalbuddytoday. It can't tell "no events" from "no access", it has to parse text for times and links, and it only updates when it polls. Fixes #18.Changes
calendarprovider reads EventKit (NativeMetrics.swift). Settings:calendars(calendar names, all by default),lookahead(hours, 24),soonandnow(whole minutes, 15 and 5).fieldstitle,start,end,minutes,phase(none,later,soon,now,live),linkandaccess(granted,denied,notDetermined);values.remainingwithtargetsone minute ahead, so a 60-second linearprogressoverlay shrinks smoothly;lists.todayfor an agenda popup.linkis the first Meet, Zoom or Teams HTTPS URL in the event's URL, location or notes. The pattern ends a link at the first character outside a fixed URL-safe set, sojoinCommand(open '<link>') never carries a quote or other shell syntax from event text.meetingCountdown,meetingLink), so they are tested without EventKit.EKEventStoreChangedthrough the existing provider refresh (BarStore). It stays a polled native provider; it doesn't need Register data sources behind one interface, including event-driven ones #17's event-driven sources.Resources/Info.plistgains onlyNSCalendarsFullAccessUsageDescription.Testing
swift test: 105 passed. NewProviderTestscover phase boundaries, minutes and the next-update delay,remainingand its target, and link extraction against quotes,$(), backticks, pipes and look-alike hosts.StableBar --validateaccepts the README example and{"type":"calendar"}, and rejects a fractionalsoon.Known gaps:
com.apple.security.personal-information.calendarsentitlement, so they would be denied Calendars access. CI builds are ad-hoc signed and unaffected.startandendshow only the time, and calendars are matched by name.Merging
One commit, so any merge method keeps it in the changelog.
Claude Opus 5.5 via Claude Code