Skip to content

feat: show events and tasks together with a bottom switch - #114

Merged
LeanBitLab merged 1 commit into
mainfrom
feat/events-tasks-switch
Nov 24, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
feat/events-tasks-switch

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Events and Tasks can now both be on. They share one block in the widget, and a small arrow button pinned to the bottom-left flips between them (Events first).

  • Settings: turning one on no longer turns the other off.
  • Widget: the Events/Tasks block is a ViewFlipper with a page each (tasks use their own text_task_* lines). The flip is a vertical squash/open animation. The arrow points down on the Events page and up on the Tasks page. The button only shows when both are on.
  • Tapping the button broadcasts ACTION_TOGGLE_EVENTS_PAGE to AwidgetProvider, which saves events_page per widget and sends a partial EVENTS_PAGE update (absolute setDisplayedChild, so replayed updates stay correct). Calendar/task change updates write to their own page.
  • Tapping the block opens Tasks.org while the tasks page shows, otherwise it refreshes (as before).
  • All 11 widget layouts updated by script.

Verified: full testDebugUnitTest (new EventsTasksSwitchTest renders the real layout: switch visibility, page index, separate line ids, partial update), lintDebug, check_strings.py. On a device with Tasks.org installed: both on shows the switch, taps flip the page and arrow in both directions. Not captured: the flip animation itself (it is vertical squash/open, same in both directions because widget animations cannot reverse).

@LeanBitLab
LeanBitLab merged commit 92ac810 into main Nov 24, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the feat/events-tasks-switch branch November 24, 2026 13:30
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.

1 participant