Lightning Calendar Month View Hacks

With an hour or so of downtime during the Calendar Face 2 Face meeting this week I started a little CSS hacking of the Lightning Calendar extension.  My goal was to change improve the visual effect of the month view into more of a heat map than a listing of all your events for the month.  I believe the month view should only be answering the question, “What days am I busy, what days am I free?”, while avoiding answering every other possible question.

Old Calendar Month View

Here’s a screenshot of a day in the current month view.  There are dark drop shadows for each event listed, as well a (visually alarming) alarm bell for every event that has an alarm.  The borders are thick 2px lines with a dark color that overwhelms the board.

Effectively there is a lot of visual noise happening with all the different background and dark border shading that makes the view always appear somewhat cluttered.

Current Month Day View

Current Full Month View

Drawing the Eye

When you start shading the the areas of the calendar in a darker shade than they were before you can begin to see the visual effect created and where they eyes are drawn to.  Places and things that aren’t as important as others.

Plus the extra visual information that is provided in some of the shading isn’t always necessary in the month view.  For example, off month days are now indicated by a lighter shade of font color in the date text instead of a dark background color that makes them look important instead of additional.

Calendar Month Hack

In this screenshot of a single day in the new hacked month view you can see that the borders of days changed to a very light 1px color and the date numbering has been lighted up as well.  I put in a slight background shade for the top border as well to give it some separation (not completely necessary).  The colors and stacking of events in a day provides the necessary separation that the dark border colors were giving before.

In general everything has been flattened so the visual effect is about the colors of the calendar events drawing your eyes to the areas they exist in the most, while the empty parts of the calendar look much more open.

Designer code can be had at bug 430382 and you can see a full month view patch screenshot from there as well.

Next Steps

Start changing the timed events such that they don’t look so visually loud on the board.  Time events, ones that range for a certain time during the day, should appear to be less than an all day event on the visual landscape.

Further Improvements

The text for calendar events is obviously much too verbose.  You can see in the above screenshot that 08:30 AM could easily be changed into 8:30 and still provide the same information while taking less space.

Christian has much more work done for Improved Events and Tasks as well as others areas, all of which need to be merged.

Calendar Face to Face

I’ve been out in Hamburg, Germany for the past couple days at this years Calendar Face to Face meeting which has been going very well.

Thunderbird and Calendar teams

I did make my overnight trip and spent my first two days up in Copenhagen doing some touring around and checking out the nightlife.

Copenhagen Canal
Busy Canal in Copenhagen

While currently very expensive for me and it seems likely even more expensive for their residents. Copenhagen is definitely a place I could come back to visit again.

Christiana Entrance
Christiana Entrance

Mac Address Book… try Thunderbird Nightly

The latest Thunderbird Trunk Builds are built to integrate into the Mac Address Book and we need some testing, so stop watching bug 203927 for builds.

1. Grab an Official Mac (Universal binary) from the nightly build

2. Enable the Address Book via the config editor (sorry you have to do this)

Open Preferences / Options and go to the tab Advanced -> General
Click: [Config Editor...]

Create the following: (from bug 397811)

"ldap_2.servers.osx.description" -> "System Address Book"
"ldap_2.servers.osx.dirType"     -> 3
"ldap_2.servers.osx.uri"         -> "moz-abosxdirectory:///"

3. Restart Thunderbird

4. Try out using your System Address Book integrated into Thunderbird

5. File some bugs or hop on the dev.apps.thunderbird news group to ask about issues

Some Know Issues

Updates

These pref entries have to be created as they don’t already exist, see comments below

bug 397811 has landed in the nightly Thunderbird releases, look for this menu.

Travel, Work and Other Updates

Travel

I’ll be heading out to Hamburg April 18-23rd with David and others for the Calendar project face-to-face meeting.  It will be great to meet Christian in person now that we’ve been talking on the phone discussing possible Calendar and Thunderbird changes.  I’m excited to make a quick overnight trip up to Copenhagen as I’ve never travelled there before.

Work

It’s great to see that Mark has started work with us. There’s lots to be done, especially on the address book, work that Joshua has developed in the Great Addressbook Rewrite.  I’ve started compiling some research of other addressbook / contacts systems so we can have some ideas of what current implementaitons do.

Other

As I got back home really late after Friday, well into Saturday morning, I didn’t end up doing much on Saturday.  So in my recovery time I poked around with my bugzilla link grabber extension and added a little AJAX to it.  And thus I feel buzzword compliant!

Note the lovely screenshot of the bugzilla info inlined at the bottom.  It might be nicer to create those elements as hovers to the bug links so they don’t take up space in the email but appear on mouse over of a bug link.

I just picked out a few things from the bug like bug number, status, number of comments, the title and the last comment text.  Other information might be a bit better, but it’s all available.

I did this by using the XMLHTTPRequest to the bugzilla bugs XML version (just add “&ctype=xml” to the url) and then running the result through XPath.  There’s a bit of a problem with the XML version as it gives you all the attachments as well as all the comments so things can be a bit slow when there are a lot of large attachments in a bug.

Anyway, not bad for a quick couple hour hungover hack.

Designer Code!!! eeek!!!

The code for all this is up on github in the ajax branch, check it out.

Who knew email didn’t have to be static!

Extending Bugzilla Links in Thunderbird

I took a couple hours… ok most of the day yesterday to fix a little issue that’s been bothering me for a while.

Bugzilla links inside email messages.  I get countless messages where people reference bug 426175 but then don’t link to the bug.  The other option is for the person to include the link in the email which is ugly and pushes the flow around https://bugzilla.mozilla.org/show_bug.cgi?id=426175 because there is a large link inside the text.

Despite emails not being HTML mail, for whatever reasons, I still want bugs to be linked in a reasonable manner when I’m looking at my mail.  I couldn’t find an existing solution, though there likely is one hiding somewhere.  So I started a new extension to solve my problem.

The Bugzilla Link Grabber Thing

I’m not good with names, another reason I probably shouldn’t have kids.  (Offspring of Bryan Clark Jr.)

Here is a typical message that contains a mix of bugzilla urls and shorthand bug mentions.  You can see the urls are long and a bit ugly, while the short hand link mentions (even though this example mentions the same bug) are not linked to the bug itself.

Before you view any mail the extension takes the long bugzilla urls and converts them into the shorthand form.  It also linkifies any shorthand bugs into working urls.

Right now the extension only understands mozilla bugzilla and gnome bugzilla because that’s all I have accounts for.  But others could be added and I was hoping to have a preferences dialog that allows you to add alternate bugzillas (see TODO).  But otherwise it works great.

For xpi downloads, source, TODO, and more details take a look at the Bugzilla Link Grabber wiki page.

Fixing things

If you’re interested in this working for your copy of bugzilla or see some bugs in the code, don’t ask, please dive right in and fix things. Don’t forget to grab the STEEL extension or this one won’t work.  Also it only works on thunderbird nightly builds right now; but maybe that’s something you can fix.

I put the extension source up at github, sorry if that’s not your RCS of choice.  Anybody who creates patches to fix one of the TODO items is welcome to one of my remaining invites to github.  I don’t really have anything else to give…

aboot

This is the blog personality of Bryan Clark. I'm a designer in a world of open source. This blog reflects mostly writing about Design, Open Source, Economics, Beer, Wine, and Dogs. There's more information about me on this site or you can contact me directly at clarkbw@gmail.com.

scategories