Skip to content

Update Calendar to v0.4.0 - #78

Merged
KenVanHoeylandt merged 11 commits into
TactilityProject:mainfrom
julieff:Calendar
Nov 21, 2026
Merged

KenVanHoeylandt merged 11 commits into
TactilityProject:mainfrom
julieff:Calendar

Conversation

@julieff

@julieff julieff commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor
  • 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

  • New Features
    • Added Month, selected-day, and 30-day Agenda views, with month navigation, event markers, and selected-day event details.
    • Calendar events are cached locally and loaded when the app opens. Sync refreshes full-calendar and upcoming events, which can update independently.
    • Calendar data refreshes when connection settings change, preventing results from previous settings from appearing.
    • Added a message when cached upcoming events no longer cover the current period.
  • Documentation
    • Updated setup instructions to describe full-calendar syncing and local caching.

- 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.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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.

Comment thread Apps/Calendar/main/Source/CalendarApp.h Resolved
Comment thread Apps/Calendar/manifest.properties Resolved
@julieff julieff changed the title Update Calendar to v0.3.2 Update Calendar to v0.4.0 Nov 20, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

Nitpick comments: 1

Apps/Calendar/main/Source/CalendarApp.cpp: 1

609-609: Trivial · Performance & Scalability · Quick win

Rebuild Agenda once per completed sync.

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.

@julieff

julieff commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Tested on T-Deck plus and Tab5.

@KenVanHoeylandt

KenVanHoeylandt commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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!

Signed-off-by: Julia <juliaforgac@mailbox.org>
@julieff

julieff commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author
  • Moved the sync button to the system bar and added bottons to change between pages (uses lvgl-window-manager-module)
  • The sync message disappears after 5 seconds to have more space to ui
screenshot 2026-11-21 18-47-21
  • Added a new "month view"
  • If a day has an event it shows up as a dot next to the day number
screenshot 2026-11-21 18-47-44
  • If you select a day form the "month view" you get a page with agenda for the day
screenshot 2026-11-21 18-47-56

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

Nitpick comments: 1

Apps/Calendar/main/Source/CalendarApp.cpp: 1

640-641: Trivial · Stability & Availability · Poor tradeoff

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.

Signed-off-by: Julia <juliaforgac@mailbox.org>
Removed 'with local cache' from short description.

Signed-off-by: Julia <juliaforgac@mailbox.org>

@KenVanHoeylandt KenVanHoeylandt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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!

@julieff

julieff commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Hi,

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.

@KenVanHoeylandt

Copy link
Copy Markdown
Contributor

Thanks! I'm merging it.

@KenVanHoeylandt
KenVanHoeylandt merged commit b19dcad into TactilityProject:main Nov 21, 2026
44 checks passed
@julieff
julieff deleted the Calendar branch November 22, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants