feat(widget): scrap 'At a glance', add Today/Up next/Lists/Week

'At a glance' predated the Tasks widget's M3 Expressive redesign and
only duplicated a subset of what Tasks already shows (today's tasks),
so it's gone rather than patched up. In its place, four widgets that
each do something Tasks structurally can't:

- Today: a progress ring for done vs. still-open-today tasks
- Up next: the single nearest due task, as a countdown
- Lists: a shortcut tile per list, with its own open count
- Week: a seven-day strip of per-day task counts

Shared data lives in WidgetStats.kt (pure, unit-tested); the config
activity is now kind-aware per widget provider, and the task-row
building blocks (AgendaTaskRow, the row mapper) are shared rather than
duplicated. Needs the floret-kit bump for WidgetProgressRing/WidgetTile
/WidgetCheckButton.
This commit is contained in:
makiolaj committed 2026-10-02 18:19:02 +02:00
1 parent 7b1b8bb33e
commit bf29c0e2c4
31 files changed
+1593 -412

No files matched your search

+34 -6
View File
@@ -783,11 +783,39 @@
<string name="widget_config_row_color_neutral_hint">Every row uses the same tonal fill</string>
<string name="widget_config_row_color_by_list">By list</string>
<string name="widget_config_row_color_by_list_hint">Each row is tinted with its list\'s own colour</string>
<string name="widget_glance_label">At a glance</string>
<string name="widget_glance_description">Your next task, or a quick way to add one</string>
<string name="widget_glance_no_tasks">Nothing due today</string>
<plurals name="widget_glance_overdue_count">
<item quantity="one">%1$d overdue</item>
<item quantity="other">%1$d overdue</item>
<string name="widget_today_label">Today</string>
<string name="widget_today_description">A progress ring for today\'s tasks</string>
<string name="widget_today_all_done">All done</string>
<string name="widget_today_nothing_due">Nothing due today</string>
<plurals name="widget_today_progress_cd">
<item quantity="one">%1$d of %2$d done</item>
<item quantity="other">%1$d of %2$d done</item>
</plurals>
<string name="widget_up_next_label">Up next</string>
<string name="widget_up_next_description">Your single nearest due task</string>
<string name="widget_up_next_empty">Nothing due</string>
<string name="widget_up_next_soon">Soon</string>
<string name="widget_up_next_tomorrow">Tomorrow</string>
<plurals name="widget_up_next_in_hours">
<item quantity="one">in %1$d h</item>
<item quantity="other">in %1$d h</item>
</plurals>
<plurals name="widget_up_next_in_days">
<item quantity="one">in %1$d d</item>
<item quantity="other">in %1$d d</item>
</plurals>
<plurals name="widget_up_next_overdue_hours">
<item quantity="one">%1$d h overdue</item>
<item quantity="other">%1$d h overdue</item>
</plurals>
<plurals name="widget_up_next_overdue_days">
<item quantity="one">%1$d d overdue</item>
<item quantity="other">%1$d d overdue</item>
</plurals>
<string name="widget_lists_label">Lists</string>
<string name="widget_lists_description">A shortcut tile per list, with its open count</string>
<string name="widget_lists_empty">No lists to show</string>
<string name="widget_lists_config_title">Lists to show</string>
<string name="widget_week_label">Week</string>
<string name="widget_week_description">A seven-day strip of task counts</string>
</resources>