Make the default "Home" calendar disabled on first run
Categories
(Calendar :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: pmorris, Assigned: pmorris)
References
Details
Attachments
(1 file, 3 obsolete files)
20.18 KB,
patch
|
pmorris
:
review+
|
Details | Diff | Splinter Review |
During bug 1589005 we decided that we want the default "Home" calendar to be disabled on first run. A patch for that was uploaded to that bug, but the calendar tests need more work, so I've opened this bug for finishing this.
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Can you give a bit of background. So someone starts TB out of the box, opens the calendar tab and can't create an event because the default calendar is disabled? You know that the left sidebar showing the calendars can be collapsed, so then it's hard to tell what's going on.
Assignee | ||
Comment 2•5 years ago
|
||
So, this is one piece of a larger picture. The eventual goal is for there to be no calendar set up until a user sets one up, which gives them the option of whether they want to use a local or networked calendar. (Some users may not want a local calendar, given the widespread use of networked calendars these days.) So this is an intermediate step that moves us closer to that goal. (TB 78 is not that far away.)
The new account central (bug 1589005) and similar improvements will guide users towards setting up existing calendar accounts, and there will be a message in the calendar tab to alert them that all calendars are disabled (bug 1621130), and also the revamped calendar list (bug 1621135) will make it more obvious how to enable calendars and add new calendars.
The collapsible side bar is worth considering, maybe the "all calendars are disabled" message shouldn't be in that sidebar.
Comment 3•5 years ago
|
||
In the Calendar tab the Calendar List can be collapsed in the Calendar Pane so no calendars will be showing by clicking the ">" which is normally pointing down to show the list, or hidden completely by using View > Calendar > Calendar Pane and remove the check mark for Calendar List. This also hides the arrow.
The Calendar Pane can be disabled using these steps.
- The user also needs to be in the Calendar tab.
- From the Menu bar or button select View > Calendar > Calendar Pane and remove the check mark for Calendar Pane.
Which I'm sure is a known procedure.
I don't see how either of those could be disabled with a first run of Thunderbird with only a Home calendar that is disabled.
Testing the current 76.0a1 with the Home calendar disabled using Properties, the Calendar menu items are not available from the View menu item. The calendar would have to to be enabled.
First run does mean a new profile. No?
Calendar sidebar does mean Calendar Pane. Right?
Assignee | ||
Comment 4•5 years ago
|
||
The idea in bug 1621135 is for the "calendar pane" (toggled with the ">") to no longer be toggle-able. Similarly I'd assume it makes sense to not let it be hidden either via the view menu.
The "calendar sidebar" is the whole sidebar that includes the minimonth and the calendar pane/list. You can drag to resize that sidebar and dragging it smaller will lead to it being completely hidden. I think that's what Jorgk is concerned about.
Nothing would be hidden on first run, so the user would have to hide things and then forget that they hid them and/or forget what was hidden for this to be an issue. First run does mean a new profile.
Assignee | ||
Comment 5•5 years ago
|
||
After trying enabling the "Home" calendar before all tests, I decided it was better to modify the tests to create a new calendar to use and then delete it when they are done. That's more future-proof. This involves using some existing mozmill-style code, so requesting feedback for that, the overall approach, and anything else.
I thought I had all the tests passing locally, but there's more to do, as it looks like at least browser_import.js
is failing in this try run.
(Windows build failures are because I goofed and started an artifact build before windows builds were done.)
Comment 6•5 years ago
|
||
I got a better Try run eventually. It seems using artifact on Try is now busted in more than one way so I went without.
It certainly looks like browser_import.js
is broken and maybe browser_timezones.js
, but that could be because of the earlier failure.
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Okay, the import test and timezones test should be fixed now. Also removed unused utility functions for enabling/disabling calendars. Added some reject()
calls in import code. Just started try run:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=4234e3d90c120a303c7c710846b152a082f1498a
Assignee | ||
Comment 9•5 years ago
|
||
Fixes timezone test failures. (In the teardown function if we delete the calendar first then there are no events for observers to try to update when you clear the timezone pref, and then they can't cause errors trying to update things that aren't there because we are in the tear down process.)
Comment 10•5 years ago
|
||
Assignee | ||
Comment 11•5 years ago
|
||
Addresses comments from the review. Modified test passes locally.
Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/fb7372b0b4f7
Let default 'Home' calendar be disabled on first run. r=darktrojan
Updated•5 years ago
|
Description
•