The iMIP bar should work well when users are not using Calendar
Categories
(Calendar :: E-mail based Scheduling (iTIP/iMIP), enhancement)
Tracking
(Not tracked)
People
(Reporter: pmorris, Assigned: pmorris)
References
Details
Attachments
(2 files, 9 obsolete files)
|
7.83 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
|
20.64 KB,
patch
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1617786 +++
Following up on bug 1617786, in light of further conversations with Alessandro, regarding the IMIP bar that appears above an email message ("this message contains an invitation..."), :
-
IMIP bar should be shown by default even when calendars are disabled, for discoverability of calendar features. In this case the message should be something like "All calendars are disabled, enable one to handle invitations." Provide a button to open the calendar tab.
-
Users should have a way to opt out of seeing the IMIP bar, both in general but specifically for the case where they have all calendars disabled. For example the "More" menu button should offer an option to "Do not show me this kind of message again".
-
If all calendars are disabled and then the user enables a calendar, then the IMIP bar should appear again until/unless the user opts out of seeing it as described above.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
- Adds an imip bar state for when all calendars are disabled (calendar component deactivated).
- Adds an 'open calendar' button for that imip bar state and the imip bar state where all the enabled calendars are read-only.
- Adds a "don't show this" option to the imip bar "More" menu
- Adds the more menu to those two imip bar states.
- When calendar component is activated after it has been deactivated, the imip bar is shown again.
- Everything should work correctly when multiple windows are open (since the main window and message windows can have imip bars in them).
| Assignee | ||
Comment 2•6 years ago
•
|
||
This is WIP. I thought it would be worth it to remove and add observers rather than flipping and checking a pref. But it turns out you need the pref anyway to know what to do when new windows are opened, so you have to update both. So now I'm not convinced this is worth it. Curious what you think, Geoff.
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
•
|
||
Same as previous version except for updated imip-bar.svg to icon32.svg per Alessandro's review in comment 3 and also a few improved variable names for window objects in imip-bar.js.
| Assignee | ||
Comment 5•6 years ago
|
||
Just rebased on new version of part1.
| Assignee | ||
Comment 6•6 years ago
|
||
Moves the iMIP bar below the message headers and makes other style changes from Alessandro's review above in comment 3.
I adjusted the bottom border color to match the similar notifications that appear in this position (e.g. remote content warning). I haven't checked that on windows, but I assume it is similar to linux and the same change will make sense on both.
Those other notifications also have an animation where they drop in (notification.animation style in m-c). I tried adding that transition style to the iMIP bar but it did not work, so skipping that for now. At some point it would be worth exploring converting the iMIP bar so it is a <notification> like the others, for better consistency. (Maybe after XUL -> HTML transition is done.)
Flagging Geoff for review since it is calendar, and Alessandro since these changes address his review.
| Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
| Assignee | ||
Comment 8•6 years ago
|
||
Thanks, and good call. Now using ThreeDShadow in those two places.
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Another thought: it's not at all obvious how to enable a calendar, even having been taken to the calendar tab. Probably something for another whole bug, but just pointing it out because it's relevant to what's happening here.
Comment 11•6 years ago
|
||
I would see someone trying to add an appointment or invite and not having an active calendar being lead down a wizard to add one, not presented with an error message or having he calendar tab open. The wizard is probably something for another bug, but I think anything here should be done as an interim measure until something better can be offered.
Comment 12•6 years ago
|
||
+<!ENTITY calendarproperties.enabled.label "Enable this calendar">
Should also capitalize.
| Assignee | ||
Comment 13•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #10)
Another thought: it's not at all obvious how to enable a calendar, even having been taken to the calendar tab. Probably something for another whole bug, but just pointing it out because it's relevant to what's happening here.
Indeed, this is on the radar. I met with Alessandro about the details today and have opened bug 1621130 for the immediate step. We discussed some other improvements that will help that will go under another meta bug about improving the calendar list UI.
| Assignee | ||
Comment 14•6 years ago
|
||
(In reply to Matt from comment #11)
I would see someone trying to add an appointment or invite and not having an active calendar being lead down a wizard to add one, not presented with an error message or having he calendar tab open. The wizard is probably something for another bug, but I think anything here should be done as an interim measure until something better can be offered.
Yeah, there is room for something like this eventually after we put this first step in place. One option would be to show a list of calendars, like in a drop down menu or popup doorhanger dialog, that lets you select a calendar to enable, inline, without having to go to the calendar tab. Or as you say open a 'create calendar' dialog/wizard if/when we support no calendars existing.
| Assignee | ||
Comment 15•6 years ago
|
||
Thanks for the review(s). This addresses the comments. After some discussion on matrix, the strings I've gone with here are:
- "This message contains event information. Enable a calendar to handle it."
- "Don't show me these messages"
Avoiding "invitations" because the messages could contain canceled event notification, counter proposals, etc. Avoiding "don't ask" because we're not asking a question just making a statement. We use "me" elsewhere in similar cases, so using it here for consistency.
| Assignee | ||
Comment 16•6 years ago
|
||
Removing the observers when they aren't needed is the more thorough way to go here, but the increase in complexity (since you need a pref anyway) might not be worth it.
| Assignee | ||
Comment 17•6 years ago
|
||
No changes here, just rebased.
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Ha, I see Magnus disagrees with me about the "Enable this Calendar" capitalisation. Leave it how it is then, I guess. I still think it looks weird.
| Assignee | ||
Comment 22•6 years ago
|
||
Thanks for the reviews. This is the same as the previous version but with "Don't show me these messages" in lower case.
(In reply to Geoff Lankow (:darktrojan) from comment #18)
This means that if the user disables all calendars then the messages are
shown, even if the user had previously opted out. I think this is okay but I
felt like I should point it out.
Hm, I don't think that statement, as written, is accurate. When all calendars are disabled and a user enables a calendar, then the imip bar will start appearing again, even if the user opted out of it before. (I assume that's what you meant.) That's the expected behavior, from discussions with aleca and as described at the top of the bug.
Basically, whenever a user starts using calendars we want to be sure to show the imip bar for discoverability of that functionality, even if they may have to opt out again if they don't want to see the imip bar. It's likely if they went from not using calendar to using calendar they will also want to use the imip bar, or at least should be offered the chance to start doing so (again).
Is this really the best we've got to open the calendar tab? (Apparently, yes
it is.) Wow, that sucks.
Agreed.
Lower-case C. I can see that other stuff nearby has capitals on every word,
but IMO that's wrong too. This just looks weird and so does "Enable This
Calendar".
Yeah, I had lowercase "Enable this calendar" at first (and prefer that). I capitalized "Calendar" based on Magnus' feedback (as you saw). So I've left it at "Enable this Calendar", which I guess is at least more consistent with the capitalization used elsewhere on that view in the dialog.
| Assignee | ||
Comment 23•6 years ago
|
||
| Assignee | ||
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
"Enable this Calendar" is a strange mix of capitalizion, we usually only lowercase prepositions and such.
| Assignee | ||
Comment 26•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #25)
"Enable this Calendar" is a strange mix of capitalizion, we usually only lowercase prepositions and such.
Okay, now with "Enable This Calendar" then.
Comment 28•6 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/44f5cf16dec6
Make the iMIP bar work when calendar component is deactivated. r=darktrojan
https://hg.mozilla.org/comm-central/rev/506be393d5ef
Improve iMIP bar position and appearance. r=aleca, r=darktrojan
Updated•6 years ago
|
Comment 29•6 years ago
|
||
Yay for moving the iMIP bar down! It really was in the wrong place where it was.
Updated•6 years ago
|
Description
•