Closed Bug 293201 Opened 19 years ago Closed 16 years ago

Need to filter better in the agenda view

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: shaver, Unassigned)

Details

Attachments

(1 file)

If nothing else, selecting all calendars, current view, or single calendars.
Attached patch part 1- turn on tasks option — — Splinter Review
Right now the menu-option to filter All/Events/Tasks doesn't do anything.  This
patch makes it active.	Doing so requires adding getOccurrencesBetween to
calTodo.js.  I basically did a copy+paste of the calEvent version, with a few
changes to handle the fact that tasks don't always have due/entryDates.

I also modified the agendaTree to look for a task's dueDate instead of
entryDate, because the lightning task dialog doesn't offer an entryDate option.
Attachment #196939 - Flags: first-review?(dmose)
Comment on attachment 196939 [details] [diff] [review]
part 1- turn on tasks option

Looks good; just a few nits.  Thanks for the patch.

> agendaTreeView.findPeriodForItem =
> function findPeriodForItem(item)
> {
>-    var start = item.startDate || item.entryDate;
>+    var start = item.startDate || item.dueDate;
>+    if(!start) 
>+        return null;

Add a space before the parens, if you would.

>+agendaTreeView.updateFilter =
>+function updateAgendaFilter(menulist) {
>+    if (menulist.selectedItem.value)
>+        this.filterType = menulist.selectedItem.value
>+    else
>+        this.filterType = 'all';

Is it really possible for this function ever to be called with
menulist.selectedItem.value unset?  If so, please add braces around both
clauses; if not, it should be possible to shorten this function by 60%.  :-)

>+    this.refreshCalendarQuery();
>+};

Please add an explicit return here.

r=dmose with this stuff addressed
Attachment #196939 - Flags: first-review?(dmose) → first-review+
Comment on attachment 196939 [details] [diff] [review]
part 1- turn on tasks option

patch checked in.  leaving bug open to add calendar filtering as well.
Unfortunately, I do not have cycles to work on Calendar stuff these days (just as it's getting to the good part!), so I am a bad owner for these bugs.  To delete the tragically-large chunk of bugspam, search for gregorianabdication.
Assignee: shaver → nobody
QA Contact: shaver → lightning
Now there are two view filters in Today Pane:
1)Tasks&Events<->Tasks<->Events
2)All<->Events<->Tasks (This is only for agenda)

When you select Events in 1st filter and Tasks in 2nd filter you can see tasks. It  is really strange and confusing. Maybe the first filter should be renamed
Is this bug still required? In current Lightning 0.9pre builds only events are displayed in the agenda section of the today pane. Selecting the calendars that are displayed is already being worked on in Bug 412800.
(In reply to comment #6)
> Is this bug still required? In current Lightning 0.9pre builds only events are
> displayed in the agenda section of the today pane. Selecting the calendars that
> are displayed is already being worked on in Bug 412800.

Stefan, I agree. What is the correct resolution?
Resolving as INVALID per comment#6 and comment#7.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: