feat: Add Todoist sync, matugen theming, and fix the todo list loader - #4
Merged
Conversation
…te paths for script execution
Todoist
- New TodoistService + scripts/todoist_sync.py: offline-first two-way sync
against Todoist API v1 (rest/v2 and sync/v9 are both 410 Gone). Work done
offline is queued and replayed; Todoist wins on conflict.
- Fix the todo list rendering empty: the loader used SplitParser, which
delivers one line per callback, so a pretty-printed todo.json made the
first callback receive "[", JSON.parse throw, and the list fall back to an
empty "General" tab while the data sat intact on disk. Uses StdioCollector
now, and a corrupt file keeps what is on screen rather than blanking it.
- Fix task identity being lost: rows were rebuilt as bare {task, completed},
dropping todoist_id, so one checkbox click would have made the next sync
push a duplicate of the whole tab. Deletes now leave a tombstone (without
one the next pull resurrects the task) and edits mark themselves dirty.
- Keep locally-completed tasks that Todoist has closed: /tasks returns active
tasks only, so "absent" would otherwise read as "deleted".
Theming
- matugen generates the palette to ~/.cache/zenith/colors.json; Colors.qml
watches it, so the bar and menus recolour in place with no restart.
- zenith-theme.sh generates its own matugen config (the missing
~/.config/matugen/config.toml was why theming silently did nothing), and
stages -> validates -> installs so a bad template can no longer leave
Hyprland with an unparseable scheme.
Repo hygiene
- Untrack app_usage.json and events.json; .gitignore alone never untracks.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
No description provided.