Skip to content

Fix missing "All tasks complete" empty state when sorted manually (fixes #63)#66

Merged
opatry merged 1 commit intomainfrom
63-in-manual-order-with-completed-tasks-no-remaining-the-empty-state-all-tasks-complete-is-not-displayed
Oct 15, 2024
Merged

Fix missing "All tasks complete" empty state when sorted manually (fixes #63)#66
opatry merged 1 commit intomainfrom
63-in-manual-order-with-completed-tasks-no-remaining-the-empty-state-all-tasks-complete-is-not-displayed

Conversation

@opatry
Copy link
Copy Markdown
Owner

@opatry opatry commented Oct 15, 2024

Description

The Map<DateRange?, List<TaskUIModel>> wasn't appropriate to check for empty list.
Need to reason about values.flatten() to be accurate.

All completed tasks are currently represented by mapOf(null to emptyList()) which isn't empty.

Checklist

  • I have read the CONTRIBUTING guide
  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing

@opatry opatry changed the title Fix missing "All tasks complete" empty state when sorted manually Fix missing "All tasks complete" empty state when sorted manually (fixes #63) Oct 15, 2024
@opatry opatry merged commit 5c611f4 into main Oct 15, 2024
@opatry opatry deleted the 63-in-manual-order-with-completed-tasks-no-remaining-the-empty-state-all-tasks-complete-is-not-displayed branch October 15, 2024 18:00
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.

In manual order, with completed tasks & no remaining, the empty state "All tasks complete" is not displayed

1 participant