Closed Bug 593795 Opened 14 years ago Closed 13 years ago

Need warning for moving cards via the message header if the cards exist in a list

Categories

(Thunderbird :: Message Reader UI, defect)

defect
Not set
normal

Tracking

(blocking-thunderbird5.0 beta1+)

RESOLVED FIXED
Thunderbird 5.0b1
Tracking Status
blocking-thunderbird5.0 --- beta1+

People

(Reporter: standard8, Assigned: mconley)

References

Details

(Keywords: dataloss, Whiteboard: [affects l10n])

Attachments

(7 files, 9 obsolete files)

35.52 KB, image/png
Details
48.54 KB, image/png
Details
39.45 KB, image/png
Details
21.09 KB, image/png
Details
18.52 KB, patch
bwinton
: review+
bwinton
: ui-review+
Details | Diff | Splinter Review
18.27 KB, image/png
Details
57.05 KB, image/png
Details
Follow-up to bug 456167.

We need a warning if cards exist in a mailing list and the user then attempts to move the card to a different address book.

Currently, that moving will cause the link to the mailing list to be lost without warning.
Flags: blocking-thunderbird-next?
OS: Mac OS X → All
Hardware: x86 → All
blocking-thunderbird5.0: --- → ?
Flags: blocking-thunderbird-next?
blocking-thunderbird5.0: ? → alpha4+
Whiteboard: [affects l10n]
The full fix for this would be to make mailing lists capable of referencing contacts in other address books, but that's a bit complicated for 3.3.

Therefore the option suggested by Blake and myself is this:

- If the card is contained within a mailing list (within that address book), then disable the address book switching option on the Edit Contact pop-up within the message header pane.

- Add a small bit of text below the address book switching option that states something along the lines of 'this card is contained within mailing lists and cannot be moved'.
Whiteboard: [affects l10n] → [affects l10n][has proposed UI]
Attached patch Skeleton patch (obsolete) — Splinter Review
This does the detection for whether or not a card is in a mail list, and disables the list box appropriately.

On Mac, at least, this will need some css so that the list looks disabled.

There's still a string to be added in as well.
Assignee: nobody → mconley
Attached patch Patch v1 (obsolete) — Splinter Review
Here's my first run at a solution.

I'm open to suggestions on the wording of the warning.  I can imagine some languages (German comes to mind) where that sentence could get pretty long.

I've also updated the CSS to make the e-mail address readable, because it was mostly invisible before.  See the attached screenshots to see what I mean.  I couldn't find a bug for that one, so I thought I'd take care of that here - hope that's OK.
Attachment #529992 - Attachment is obsolete: true
Attachment #530091 - Flags: review?(mbanner)
Also, did you want me to try to put together some tests for this?
Is the warning enough?  Or should we find a way to style the drop-down to look more disabled?
(In reply to comment #6)
> Also, did you want me to try to put together some tests for this?

Yes please.
Attached patch Patch v2 - now with tests (obsolete) — Splinter Review
Alright, added a couple of Mozmill tests for this.

I brought over a few testing functions I had originally written for bug 422845.  I'll make that bug depend on this and re-base, since this patch needs the quickness.
Attachment #530091 - Attachment is obsolete: true
Attachment #530425 - Flags: ui-review?(bwinton)
Attachment #530425 - Flags: review?(mbanner)
Attachment #530091 - Flags: review?(mbanner)
Sorry for the bugspam.  Some unnecessary cruft in that last patch, which I've removed.

I'll give this a closer look tomorrow before I set the review flags.
Attachment #530425 - Attachment is obsolete: true
Attachment #530425 - Flags: ui-review?(bwinton)
Attachment #530425 - Flags: review?(mbanner)
Whiteboard: [affects l10n][has proposed UI] → [affects l10n][has proposed UI][needs styling]
Attached patch Patch v4 (obsolete) — Splinter Review
Attachment #530432 - Attachment is obsolete: true
Attachment #531109 - Flags: review?(mbanner)
Attachment #531109 - Flags: ui-review?(bwinton)
Comment on attachment 531109 [details] [diff] [review]
Patch v4

Review of attachment 531109 [details] [diff] [review]:
-----------------------------------------------------------------

I feel like I want the dialog to be a little wider on OSX, so that the "You cannot change the address book because this contact is in one or more mailing lists." text doesn't look like it's poking out the sides.  Or maybe we just want to change the text to something a little shorter, like "You can't change the address book because the contact is in a mailing list."…

Next, the text in the address book should also probably be a disabled-grey if possible, or better might be to replace the dropdown with a label.

Finally, the Name/Email/Address Book labels should be right-aligned.

But, ui-r=me with those changes.

Thanks,
Blake.
Attachment #531109 - Flags: ui-review?(bwinton) → ui-review+
Attached patch Patch v5 (obsolete) — Splinter Review
Hm - I don't have a Mac to work on here at UDS, so while I can try to blindly implement those changes, I can't really test them. :/

I've updated the warning text to the shorter version that Blake suggested.

Also, a note on why I removed the editContactTextbox[readonly="true"] - notice how in the attachment 530092 [details], the readonly e-mail address is almost entirely invisible (ignore the part I blocked out manually - notice how "mike" and ".com" are almost completely unreadable.

So I removed that CSS so that it could be more readable - see attachment 530093 [details].
Attachment #531109 - Attachment is obsolete: true
Attachment #531289 - Flags: review?(mbanner)
Attachment #531109 - Flags: review?(mbanner)
I'm currently looking at the Mac stuff, I've also got a few other changes that I'm trying out as well (including even shorter text ;-) ), should have a patch up in an hour or so.
Attached image Possible reworking on Mac (obsolete) —
Attached image With the longer text
Attached patch Patch v6 (obsolete) — Splinter Review
I've done a few tweaks to the patch:

- The description for the warning is now displayed as part of the grid. Hence it only shows in the second column.
- The text is for the description is stored in the dtd and hence we don't need to be copying the string around all the time.
- Provided theming for Mac and Windows.
- Added end-alignment for the main labels.

I'm currently reviewing the test code and pushing this to try server.
Attachment #531289 - Attachment is obsolete: true
Attachment #531299 - Attachment is obsolete: true
Attachment #531289 - Flags: review?(mbanner)
Attached patch Patch v7 (obsolete) — Splinter Review
Uses GrayText rather than grey.
Attached patch Patch v8Splinter Review
Ok, this fixes an issue with the buttons getting shrunk on linux (we've added a vbox around the buttons which means they seem to work better when the new description gets wrapped).

It has my r+ for the bits Mike's done.
Attachment #531304 - Attachment is obsolete: true
Attachment #531316 - Attachment is obsolete: true
Attachment #531378 - Flags: ui-review?(bwinton)
Attachment #531378 - Flags: review?(bwinton)
Attached image Windows screenshot
Attached image Linux screenshot
Comment on attachment 531378 [details] [diff] [review]
Patch v8

Review of attachment 531378 [details] [diff] [review]:
-----------------------------------------------------------------

For the UI-Review, on Mac the alignment is all over the place, and I would like to see that cleaned up (but I would be okay with part of that happening in a followup bug).  Other than that, I'm pretty happy with the UI.

And nothing jumped out at me for the review either, so I'll call it r=me, too.

Thanks,
Blake.
Attachment #531378 - Flags: ui-review?(bwinton)
Attachment #531378 - Flags: ui-review+
Attachment #531378 - Flags: review?(bwinton)
Attachment #531378 - Flags: review+
Blocks: 656113
Landed with a minor change to the alignment on Mac.

Filed bug 656113 on fixing the alignments up completely later.

Checked in: http://hg.mozilla.org/comm-central/rev/10b8d5efa321
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [affects l10n][has proposed UI][needs styling] → [affects l10n]
Target Milestone: --- → Thunderbird 3.3a4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: