feat(calendar): add Google Calendar widget#886
Open
tylertylerday wants to merge 5 commits intoamnweb:mainfrom
Open
feat(calendar): add Google Calendar widget#886tylertylerday wants to merge 5 commits intoamnweb:mainfrom
tylertylerday wants to merge 5 commits intoamnweb:mainfrom
Conversation
Author
Surface the next upcoming event(s) from one or more Google Calendars in the bar, with a left-click that joins Meet/Zoom/Teams meetings or falls back to the calendar event page. Tooltip lists the next N events (default 3) merged across all configured calendars. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cx_Freeze bundles googleapiclient as .pyc inside library.zip but does not include the discovery_cache JSON data files. With the default static_discovery=True, build() looks for the missing calendar.v3.json and raises UnknownApiNameOrVersion instead of falling back to the network. Force network discovery so the widget works in both dev and packaged installs.
The initial Google Calendar widget commit imported from core.widgets.services.google_calendar.auth and .auth_dialog but never committed those files, leaving the PR with a broken import on remote. Adding them now in their original form so the feature builds end-to-end.
…d sign-in Round out the Google Calendar widget with the in-progress polish that was sitting unstaged: - Popup menu (event_count, blur, round_corners, alignment, direction) rendered as a PopupWidget with per-event rows that join meetings or open the event page on click. - Notification dot painted on the icon when an event is live or imminent, configurable corner/colour/margin/threshold via notification_dot. - tooltip_event_count config (default 1) lists the next N upcoming events in the hover tooltip, joined with blank lines. - URL-based sign-in flow: instead of auto-launching the default browser (which can hit Google's "Something went wrong" page when an existing Google session conflicts), the auth dialog now surfaces the authorisation URL with Copy/Open buttons so it can be pasted into an incognito or alternate browser. - Refactored OAuth helpers and dialog into their own service module so the widget file stays focused on rendering. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
e1fa9fd to
2a5248b
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
hangoutLink→conferenceData.entryPoints[]→ regex overlocation+description); falls back to opening the event page in Google Calendar.calendar_ids), and the hover tooltip shows the next N events (default 3).docs/widgets/(Widget)-Calendar.md; credentials/token paths are configurable.loading/ok/empty/setup/error+ meeting kind +upcoming/live/ended) make it easy to style per state.Adds three runtime deps to
pyproject.toml:google-api-python-client,google-auth-oauthlib,google-auth-httplib2.Test plan
token.json, fetches events on next tickprimary+ a shared calendar appear sorted by start timetooltip_event_counteventshide_when_empty: truecorrectly hides the widget when there are no upcoming eventsuv sync) — widget should emit a clear setup error rather than crash🤖 Generated with Claude Code