feat(calendar): add vdirsyncer and local vdir calendar support - #4034
Open
xela-zone wants to merge 1 commit into
Open
feat(calendar): add vdirsyncer and local vdir calendar support #4034xela-zone wants to merge 1 commit into
xela-zone wants to merge 1 commit into
Conversation
- Add vdir_reader module with recursive depth-bounded collection discovery - Support vdir metadata files (displayname, color, order) and X-WR-CALNAME fallback - Add 'path' field to CalendarConfig::Account with validation for vdir/local accounts - Wire inotify monitoring and debounced refresh on the main poll loop - Add local (vdir) provider option in settings popup GUI - Add unit tests in tests/vdir_reader_test.cpp
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
Adds support for local
vdirandvdirsyncercalendar directories to Noctalia's calendar service:vdir_readermodule: Depth-bounded recursive collection discovery capable of resolving nested folder hierarchies (e.g.~/. local/share/calendars/<account>/<collection>/).displayname,color,order) andX-WR-CALNAMEproperties with fallback to folder names..icsfile creations, modifications, and deletions with a 300ms debouncedirectly on the main poll loop.
Local (vdir)provider option and directory path picker/validator in Settings → Services → Calendar.tests/vdir_reader_test.cpp.Motivation
I personally already have my caldav synced using vdirsync, to allow one syncing tool to work with multiple tools, such as khard or even someone using a local only calender app.
Testing
tests/vdir_reader_test.cppcovering:<account>/<collection-uuid>/)..git/), temporary directories (.tmp), and non-directory files.displayname,color, andorderfiles, plus collection sorting byorder.X-WR-CALNAMEFallback: Extracting calendar titles directly from.icsfile headers when nodisplaynamefile is provided..icsevents from discovered collections with proper mapping of IDs, summaries, calendar names, and colorassignments.
Manual Coverage
Screenshots / Videos
Checklist
CONTRIBUTING.md.just formatwith clang-format v22+ installed, or this PR has no code changes.assets/translations/en.json, or this PR adds no new user-facing strings.Additional Notes
written by gemini / antigravity, reviewed and lead by a human