Closed Bug 107432 Opened 23 years ago Closed 23 years ago

Message|Label: can't unlabel a message

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: laurel, Assigned: ssu0262)

References

Details

Using oct29 commercial trunk build

Trying to undo a selected message's label assignment (assigning no label)
doesn't work. (Logged a bug 107423 about the checkmark display being incorrect
for the label menu on a selected message.) Regardless of whether there's a
checkmark appropriate to the current label assignment of the selected message,
selecting that same assignment to Undo/Set No Lable doesn't do anything.  The
assignment will stay.  Note: if changing to a different label assignment, the
label does indeed appear to change.

1.  Open Inbox or other mail folder, shown label column for thread pane.
2.  Select a message, Message|Label and select a label assignment, say "2" (no
current UI to change label text, current default is label 1-5).  Note the chosen
label does appear in the label column.
3.  Select the labeled message again (if not already selected), Message|Label
--> select  the same label again, "2".  Note nothing happens, message still has
same label assignment.

Result:  label assignment unchanged

Expected:  message reset to no label assignment, label is undone
QA Contact: esther → laurel
labels -> ssu
Assignee: sspitzer → ssu
There's one more thing to add to this:

The label in the menu is unselected, but the messagelist still shows the last
selected label.
this will be fixed by bug 81292
Status: NEW → ASSIGNED
Depends on: 81292
*** Bug 111184 has been marked as a duplicate of this bug. ***
Question (it's testplan writing time):  How will we handle "unlabeling" a
multiple message selection if the selected messages have varied labels already
applied?  Spec only covers single message selection type of situation.
Select multiple messages and then select "None" from the Label menu to remove 
labels for all messages.
http://www.mozilla.org/mailnews/specs/labels/images/Label4.gif
Sorry, I didn't focus (duh) on the None in the menu mock-up, I read the textual
part just above it.
So, are we going to have both ways of unlabeling -- by setting to the same label
(causing unchecked label menu item) and/or None?
Since its a group of mutually exclusive items (only one item can be selected per 
message at one time), its seems appropriate to me to select "None" to removed 
the label. Selecting the already checked label wouldn't do anything. 

Similar to Sort by. You can only sort by one method. Selecting the same sort 
method doesn't removed it. You have to pick another mutually exclusive sort 
option.

If this was a list of independent items, like the View Show/Hide menu items, 
selecting an already checked menu item would turn it off.

So, I guess Labels menu should use option buttons (circles) instead of check 
marks.

That seem appropriate?
Yes, I didn't like the checkmark idea too much.  The spec had me confused
because it talks about one thing and the image shows another.
Sorry about that. If everyone is ok with the behavior described in comment #8, I 
will correct the spec appropriately. Sean, you ok with this?
Target Milestone: --- → mozilla0.9.7
I had thought that the best way was to not have a checks or radio button next to
the Labels menu items.

If multiple messages were selected, and each message had a different label, how
is the menu to show this state?  This would probably require a 3 state type of
check or radio button, making it more complex than is really necessary.

Take a look at the way it is currently is on the trunk builds.  It has no checks
or radio buttons next to each label menu items.  Basically, selecting a specific
label will 'set' the label regardless if it's already set or not.

To clear label(s) from message(s), simply highlight the message(s) in question
and select the None label.

I think this is a cleaner way of implementing the labels in the menus (IMHO). 
If there's a better way of implementing this, let's file a new bug.  Tthis bug
talks about not being able to 'unlabel' a message, which is fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Sean, yes, you are correct, we agreed not to display the checkboxes or radio 
buttons in front of the menu items. 

The Labels menu items should Behave like radio buttons though, not checkboxes. 
Meaning, the user picks "None" to remove a Label (radio button behavior), 
instead of selecting the current label to remove the label (checkbox behavior).
OK using commercial trunk build:
dec12, win98 and linux rh6.2
dec13, mac OS X
Status: RESOLVED → VERIFIED
*** Bug 117554 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.