You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added caching for downloaded calendar events to improve performance and offline access.
- Increased response size limit for calendar data from 48 KB to 512 KB.
- Improved sync process to handle full calendar downloads and cache management.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 5a793751-f7ba-4b5a-8c8d-270d7698c6db
Commits
Reviewing files that changed from the base of the PR and between 87e452e and 64dbf6b.
Files selected for processing: 1
Apps/Calendar/manifest.properties
Walkthrough
The Calendar app adds Agenda and Month pages, with month navigation and a selected-day agenda. Synchronization requests full-calendar and upcoming-range event lists independently. The app stores both lists in a local cache and loads matching cached data at startup. Settings changes generate a new cache identity and invalidate displayed calendar data.
Merge Risk: Moderate · previous review 87e45
The update adds a month view, upcoming agenda, and offline cache, but some events can still be shown on the wrong days or omitted. Specific cases include events spanning time zones, recurring events with UTC exclusions, and recurring events crossing daylight-saving changes. The agenda can also be presented as complete after its synced window has begun to lapse. An interrupted cache write can also leave no offline cache. Address the main date-handling and coverage issues before merging.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Update Calendar to v0.4.0" is a short, specific statement. The changeset bumps the Calendar manifest from 0.3.0 to 0.4.0. It also adds the main feature set in that release: a month view, a …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Update Calendar to v0.4.0" is a short, specific statement. The changeset bumps the Calendar manifest from 0.3.0 to 0.4.0. It also adds the main feature set in that release: a month view, a selected-day view, and local caching of CalDAV events. The title names the app and the release. It does not name the main feature change, so it covers only part of the work. It is not misleading, and it is not vague or generic.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 11
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: e81c1c44-85ee-4ba5-802f-46a07d73b52d
Commits
Reviewing files that changed from the base of the PR and between ea2aac5 and 6b669c9.
Files selected for processing: 5
Apps/Calendar/README.md
Apps/Calendar/main/Source/CalendarApp.cpp
Apps/Calendar/main/Source/CalendarApp.h
Apps/Calendar/main/Source/main.cpp
Apps/Calendar/manifest.properties
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
A successful upcoming refresh builds all Agenda cards here. Line 964 then deletes and rebuilds them after the cache write. Use a single final rebuild so the coverage check still runs after cache I/O without constructing every card twice.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 6ac5474b-9a0d-4aaa-8803-d5634c969f44
Commits
Reviewing files that changed from the base of the PR and between 6b669c9 and 2bd26cb.
Files selected for processing: 7
Apps/Calendar/main/Source/CalendarApp.cpp
Apps/Calendar/main/Source/CalendarApp.h
Apps/Calendar/main/Source/CalendarData.h
Apps/Calendar/main/Source/CalendarIcs.cpp
Apps/Calendar/main/Source/CalendarSync.cpp
Apps/Calendar/main/Source/CalendarSync.h
Apps/Calendar/manifest.properties
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The build errors are due to breaking changes that I pushed in the SDK. Sorry about that! It won't affect your app, but it affected the other apps.
If you get the latest code from the main branch, the pipelines should succeed.
Could you add 1 or more screenshots with app changes? It helps me visualise it better before the code review. Thanks!
Avoid the second full copy of both event lists during caching.
Lines 640-641 copy the displayed event lists into the cache vectors. The displayed lists stay live, and the caller keeps the copies alive until calendarSaveCache returns. Peak event memory during caching is therefore about double the displayed size. On a device with limited heap, that peak can cause an allocation failure. The 512 KiB response limit does not bound this peak, because it applies to the downloaded body only.
Remove the duplicate allocation. Write the cache without copying both full lists first, while keeping the settings-generation check that protects the save.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 84c0458e-26e2-40d0-bf89-9ce16097feec
Commits
Reviewing files that changed from the base of the PR and between 2bd26cb and 87e452e.
Files selected for processing: 7
Apps/Calendar/main/Source/CalendarApp.cpp
Apps/Calendar/main/Source/CalendarApp.h
Apps/Calendar/main/Source/CalendarData.h
Apps/Calendar/main/Source/CalendarIcs.cpp
Apps/Calendar/main/Source/CalendarSync.cpp
Apps/Calendar/main/Source/CalendarSync.h
Apps/Calendar/manifest.properties
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Great improvements and I love seeing the actual calendar view!
With regards to the event list:
The events are wrapped in what looks like a custom button. What happens when you click it?
If it's not clickable, the lvgl_card_create() is the correct pattern for this.
The text colour might not provide enough contrast for people with visual impairment
With regards to the calendar view:
The numbers for the days don't provide enough contrast for people with visual impairment.
I'd avoid using the red highlight and instead use the theme's secondary colour. (lv_theme_get_color_secondary())
If you'd rather have me merge the pull request as-is for now, I'm fine with that too. I can wait for a later iteration from you, and I also don't mind iterating on the design myself later. Just let me know!
Yeah the events are not clickable, I'll look into that.
If it's ok with you, merging right now would be best for me. I will work on it in the next couple of days.
As always thanks for the feedback.
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
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.
Adds a browsable month view
Local caching for the CalDAV calendar.
Sync downloads the full calendar, refreshes the app’s in-memory event lists, and saves the cache for later launches.
Sync button moved to the system bar
The separate upcoming agenda continues to show the next 30 days, including server-expanded recurring events.
Summary by CodeRabbit