Skip to content

Preserve Google per-event colors through calendar sync - #133

Open
Leesam wants to merge 1 commit into
jherforth:mainfrom
Leesam:per-event-google-colors
Open

Preserve Google per-event colors through calendar sync#133
Leesam wants to merge 1 commit into
jherforth:mainfrom
Leesam:per-event-google-colors

Conversation

@Leesam

@Leesam Leesam commented Aug 5, 2026

Copy link
Copy Markdown

Google's API returns colorId on individually recolored events, but fetchGoogleEvents kept only three fields from each item and discarded it, so every event rendered in its calendar's color.

Resolve colorId to a hex at sync time via the /colors endpoint (cached 24h) and store it in the existing raw_data column, then surface it as event_color from getCachedEvents. Clients prefer event_color and fall back to source_color, so events left on a calendar's default color are unchanged. No schema migration needed.

Disclosure: written with AI assistance (Claude), tested by me on my own OMV/Docker install.

image

Google's API returns colorId on individually recolored events, but
fetchGoogleEvents kept only three fields from each item and discarded it,
so every event rendered in its calendar's color.

Resolve colorId to a hex at sync time via the /colors endpoint (cached
24h) and store it in the existing raw_data column, then surface it as
event_color from getCachedEvents. Clients prefer event_color and fall
back to source_color, so events left on a calendar's default color are
unchanged. No schema migration needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant