Closed Bug 156687 Opened 22 years ago Closed 22 years ago

[RFE] Priority setting for Tasks

Categories

(Calendar :: Sunbird Only, enhancement)

x86
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ajbu, Assigned: mikeypotter)

Details

Attachments

(3 files)

oeIICalTodo/oeIICalEvent in CVS now has a 'priority' attribute, so it can be 
linked to the frontend.

I found the following code in calendarToDoDialog.xul:

                    <!-- Priority -->    
                    <row align="center" collapsed="true">
                        <hbox class="field-label-box-class" pack="end">
                            <label value="&newtodo.priority.label;"/>
                        </hbox>
                        <menulist>
                          <menupopup>
                              <menuitem label="1" value="1"/>
                              <menuitem label="2" value="2"/>
                              <menuitem label="3" value="3"/>
                              <menuitem label="4" value="4"/>
                              <menuitem label="5" value="5"/>
                          </menupopup>
                        </menulist>
                    </row>


The RFC defines priority as between 1 and 9, 1 the highest priority.
The tree-level priority scheme with HIGH/MEDIUM/LOW settings seems to be more 
useful to me.
This defines that 'low' is mapped on a PRIORITY between 1 and 4, PRIORITY=5 
means 'medium', and a value frorm 6 to 9 is used for 'high'

This could give something like:
                          <menupopup>
                              <menuitem label="&newtodo.priority.low.label;" 
value="9"/>
                              <menuitem 
label="&newtodo.priority.medium.label;" value="5"/>
                              <menuitem label="&newtodo.priority.high.label;" 
value="1"/>
                          </menupopup>
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Adds new properties to tasks — — Splinter Review
- Priorities: Menulist with None, Low, Medium, High
Not sure about the None(no priority is set), might be dropped and use Medium as
default.

- Percent complete: Can set a % between 0 and 100. Setting 100 checks the
completed checkbox

- Categories: Menulist with default categories from categories.properties. Code
to edit the categories list not yet complete.

- Status: Status property is also stored, depending on completed/percent
compete status.
I'll check this in. The only comment I have is that I absolutely hate the use of
min-width in XUL elements, and also that I didn't think it was a valid XUL
attribute, it should be style="min-width: 120px;" (again though, I absolutely
dispise the use of min width, since it can mess up system with really small fonts).
Status: NEW → ASSIGNED
Did forget the properties.
Attached patch patch for default categories — — Splinter Review
When importing events that already have categories, those get lost because the
current categories field is a fixed list. Patch adds the existing category to
the list and selects it.
Also fixes a value I had changed for debugging
Checked into cvs.
This is all checked in, marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
[RFE] is deprecated in favor of severity: enhancement.  They have the same meaning.
Severity: normal → enhancement
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: colint → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: