Upgrade main calendar views to use CalFilterMixin instead of CalendarViewRefreshJob
Categories
(Calendar :: Calendar Frontend, enhancement)
Tracking
(thunderbird_esr91 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | wontfix |
People
(Reporter: darktrojan, Assigned: darktrojan)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 2 obsolete files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
In bug 1727711 I built a new component for getting events from the calendars to the UI. I connected it to the Today Pane agenda, and it's been there long enough now that I'm confident it's good. In this bug I'll connect it to the main calendar views (day, week, multi-week, month).
Assignee | ||
Comment 1•3 years ago
|
||
This ties the calendar views to the calendars via CalFilterMixin instead of via CalendarViewRefreshJob and fixes a few related oddities along the way.
Some changes to calFilter were necessary to enable showing only incomplete tasks without causing a bit mess.
Some changes to CalFilterMixin were made so that tests can get a Promise which resolves when a view has finished loading items. This will be improved in a following patch.
Assignee | ||
Comment 2•3 years ago
|
||
The Promise introduced in the last patch should reject if something causes the view to be invalid while it is still loading. This could happen if the date of the view changes or a refresh is forced.
Depends on D139251
Assignee | ||
Comment 3•3 years ago
|
||
I've decided I don't like the abbreviated name CalendarFilterMixin. And we should use private members to avoid cluttering subclasses and potentially causing issues.
Depends on D139252
Assignee | ||
Comment 4•3 years ago
|
||
We don't use this file. It's just lying around, not referenced anywhere.
Assignee | ||
Comment 5•3 years ago
|
||
To use calFilter on the main calendar views, we need to be able to specify whether or not completed tasks are included.
However we need to preserve the old functionality until we can replace the task lists.
Depends on D139446
Assignee | ||
Comment 6•3 years ago
|
||
I've added a Promise which resolves when all items from all calendars have loaded, or rejects if the loading becomes invalid by the parameters changing. This will help speed up tests by removing an arbitrary wait time on each view load.
I renamed it from CalFilterMixin to CalendarFilterMixin as that seems a better fit. And all of the private members are now properly private to avoid cluttering up subclasses.
Depends on D139447
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/45455c783e96
Remove unused calIDecoratedView. r=john.bieling
Assignee | ||
Comment 8•3 years ago
|
||
I knew that would happen. :-(
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/d4a1a26aad21
Improve calFilter for new uses. r=henry
https://hg.mozilla.org/comm-central/rev/91720fcc1778
Improve CalFilterMixin for new uses. r=henry
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c48d5def07a6
Drop showDaysOutsideMonth in CalendarMonthBaseView. r=henry
Assignee | ||
Comment 12•3 years ago
|
||
One of these days I'm going to learn about the leave-open keyword and when to use it.
Assignee | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Assignee | ||
Comment 14•3 years ago
|
||
The item type filter was matching all tasks, even if we only wanted incomplete tasks.
Assignee | ||
Updated•3 years ago
|
Comment 15•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/0c4ad7b846e2
Fix calendar filter handling of tasks that change completion status. r=henry
Updated•3 years ago
|
Description
•