Skip to content

support pull to sync, save sort order and double tap to change sort direction in task lists#18

Merged
brokenpip3 merged 6 commits into
mainfrom
better-task-list
Jun 2, 2026
Merged

support pull to sync, save sort order and double tap to change sort direction in task lists#18
brokenpip3 merged 6 commits into
mainfrom
better-task-list

Conversation

@brokenpip3
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds task-list UX improvements on Android by introducing pull-to-sync, persisting task sort preferences (order + direction), and surfacing sync status in the UI.

Changes:

  • Persist sort order and sort direction in settings, and apply them in TaskViewModel.
  • Add pull-to-refresh style sync trigger to the task list and display transient sync status text.
  • Update unit tests/mocks and add an instrumentation test for the task list pull gesture.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
android/config/detekt/detekt.yml Relaxes TooManyFunctions thresholds for classes/interfaces.
android/app/src/test/kotlin/com/brokenpip3/fatto/WaitingTasksFilterTest.kt Updates repository mocks to include new sort settings flows.
android/app/src/test/kotlin/com/brokenpip3/fatto/TaskSortTest.kt Updates repository mocks to include new sort settings flows.
android/app/src/test/kotlin/com/brokenpip3/fatto/BlockedTasksFilterTest.kt Updates repository mocks to include new sort settings flows.
android/app/src/main/kotlin/com/brokenpip3/fatto/vm/TaskViewModel.kt Adds sort direction + persistence hooks; adds sync cooldown and sync status message state.
android/app/src/main/kotlin/com/brokenpip3/fatto/ui/tasklist/TaskListScreen.kt Implements nested-scroll pull-to-sync trigger; shows sort direction icon and sync status message.
android/app/src/main/kotlin/com/brokenpip3/fatto/data/TaskRepository.kt Exposes sort order/direction state + setter pass-throughs to settings.
android/app/src/main/kotlin/com/brokenpip3/fatto/data/SettingsRepository.kt Stores sort order/direction in encrypted shared preferences and exposes them as StateFlows.
android/app/src/androidTest/kotlin/com/brokenpip3/fatto/ui/tasklist/PullToRefreshSyncTest.kt Adds a Compose UI test covering a pull-down gesture on the task list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@brokenpip3 brokenpip3 merged commit d38bfc8 into main Jun 2, 2026
7 checks passed
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