Tuesday, April 22, 2014

I, Spammer

Averaged over the year, our Assignment Calculator web app sends about 500 email messages a month. I know this off the top of my head because thanks to some file system maintenance last Friday, the Assignment Calculator's email function is working properly for the first time in almost 14 months. Which means that in the wee hours of Saturday morning, the Assignment Calculator sent the approximately seven thousand messages that had been queuing up.

Seven.

Thousand.

Oops.

We messed up. If you are one of the people we first let down by failing to send promised notifications and then annoyed by flooding you with useless email, I hope you'll accept my apology on behalf of the Libraries.

Sadly, our only recourse to apologize directly to the over 700 users we spammed with much-delayed notifications is to email them again, which we did promptly once we realized what had happened.

We're asking ourselves some hard questions raised by this incident. Namely:

  1. Why were we unaware that these messages were not being delivered? (The standard convention of piping cron errors to /dev/null is the immediate answer.)
  2. How can we ensure that we're notified in future if this or similar jobs fail?
  3. What is the future of this application, considering:
    • We've likely broken faith fairly spectacularly with anyone who tried to use the app over the past year, and
    • Despite being broken for over a year, we got no such reports from users.
We'll be discussing these issues internally in the Web Development department and with the Web Presence Management Group. If you have questions or concerns, please feel free to comment here or get in touch directly.

Friday, March 14, 2014

Making Single Sign-On, well, "Single"

Here's a common scenario:


Yep, that's the login screen.
A member of the UofM community, we'll call her "Alice," wakes up in the morning and checks email... That requires logging into the familiar blue UofM login screen. She types her username & password and is sent on her way to read her waiting messages.

A few minutes later Alice visits our website https://www.lib.umn.edu intent on looking over her list of checked out items and maybe registering for a workshop.  She still sees a "Sign in" link at the top despite logging into email just a moment earlier.

Alice clicks the "Sign in" link on our website, her browser window refreshes a couple of times and she's suddenly signed in. "Wait, I thought we had a single sign-on at this university. Why did I have to click "Sign in"? She didn't need to type her password again, at least.


"Hmm, I just signed in. Ok, whatever." *click*

If Alice had been required to sign in before ever visiting our website, this wouldn't be a problem.  We could have just redirected her browser a couple of times before landing on the Libraries' homepage, collect login credentials if needed, and she'd be all set, but since we want users to be able do almost everything on our site without logging in, it's more complicated.




"Finally...I thought this was supposed
to be single-sign-on."
I won't bore you with the technical details of the UofM's central authentication system to explain why the situation is this way, or how it differs from what we had a few years ago (I started to, and deleted it when it reached three paragraphs), but suffice it to say it's inconvenient for our users and that bugs me tremendously.

We can do better.


I mentioned it might be possible to just redirect the browser a few times before landing on the homepage and be logged in.  Well, that's certainly possible and it works well even. But when our web design team undertook the Libraries' site redesign last fall, one of the driving principles behind the work was that the new homepage must be fast. Not just fast, but the fastest of any CIC library. according to Google's PageSpeed Insights metrics.

Delaying the homepage load for up to two seconds for users on campus or even three to four seconds for users off of the campus networks while login status is verified is out of the question. So how can we guarantee users who have already logged in elsewhere in UofM services get logged in here without slowing down the experience?

Ok, now a little more technical.

In order to know whether or not Alice has logged into any UofM systems, our web server needs to  communicate with the central server and check her status. However, our server still has no idea that it's Alice looking at the screen. Our server generally isn't allowed to know Alice has logged into her email (that could enable all sorts of security problems between unrelated websites), so her browser has to briefly visit a URL the central login service to see if her earlier login is still valid. If it is, she is sent back to our website, validated for our server too (and if not, she'll get the login screen again). All told, the web browser will be redirected four to six times in this communication, and it takes a few seconds.

We don't want to do any of that in the web browser window where Alice is already viewing https://www.lib.umn.edu. After all, so much effort went into making it load quickly.  Instead, the Libraries' website will create a hidden window, invisible really, to load the URL communicating with the central login service. All those redirects take place out of sight, while Alice is presumably scrolling the page or scanning for the "My Account" link she came to find.

After a second or two, if the central login service responds that she has a valid session, our web server suddenly gains some knowledge about her: her name, her UofM Internet ID, library barcode number, among other things.  Armed with this data, the invisible window's landing place is on a URL which completes her login to the Libraries' website, updating some info about her in our database, and gathering some statistics for the Student Success Project, among others; all the same things occur now which would have occurred if she manually clicked the "Sign in" link.
Magic! Though less chaotic than pictured...

The last thing the hidden window accomplishes is to communicate what it knows about Alice back up to the screen she was viewing.  When that data has been received, the "Sign in" link disappears, and Alice's username (mine, pictured) fades in place of it, along with the relevant "My account" and "Sign out" links in a dropdown menu. It's now as if she'd been logged in all along, and she didn't need to do a thing. She'll remain logged in until her central credentials expire a couple of hours later.

What do we get out of this?

Since most of our website is accessible to the public, without requiring any authentication, you're probably wondering at this point why any of this matters. Why not just require users who need to be signed in to sign in, and not worry about those who don't need it right now.  Well, we can get much better statistics on E-Journal and Database usage, affinity strings, and generally valuable data from signed in users which is unavailable to us otherwise.

Plus, with the visual feedback of a user's Internet ID appearing on the screen, we hope it will send our site visitors the positive message that "we know who you are, and we can meet your needs here."

Wait, I don't see this on the site yet.

Right now, the auto-login feature is only available on our development website. We want to spend a little longer putting it through its paces since it has a lot of "moving parts". Hopefully we will be able to put it onto the live website early this spring.

Thursday, January 2, 2014

Redesign status update

Been a while since we last rapped at ya.

It's not because we haven't been busy. Quite the opposite. We reached a point in November where it was time to cease prototyping our redesign at our /beta site and begin implementing the design on our development server. Unfortunately, it's much more difficult to make our work visible to you when we're working on our development server. We've been giving demos to the Web Presence Management Group, but seeing as how we're a little over a week from our launch date, it seemed only right to provide a more public picture of where we're at.


The biggest challenge we've had in the past couple of months has been to graft our speedy hand-crafted prototype design onto our Drupal 6 CMS. Drupal serves us well as a system for delegating content creation and maintenance, but speedy it ain't. We ended up with a hybrid solution. Our home page remains largely bespoke code, using many of the latest and greatest tricks to speed load times and optimize performance across devices. We leverage Drupal only on secondary pages, where we've created a custom theme using the same assets, styles, scripts, and responsive design logic as our home page.


In effect, we've gained remarkable speed on our home page, but have lost the ability to use Drupal to publish content to the home page. Instead, we're building the home page by hand, and using some clever asynchronous publishing to get current info like hours and workshops onto the home page without bootstrapping Drupal. We feel strongly that these tradeoffs are worthwhile. Over 50% of pageviews on our site are of our home page. The next most-frequently viewed page garners just two percent of page views, and it's the default browser home page in most of our computer labs. Minute improvements to the home page, fractions of a second, can accumulate into huge gains for our users. If our home page had loaded a half-second faster, we would have saved our users over 135 hours over the course of fall semester 2013. We're hoping to meet or exceed this savings with the redesigned site in spring semester 2014.


But what about those secondary pages? The ones driven by Drupal? They're looking pretty great. We've completely restyled our subject guides and our A-Z list for greater scan-ability, and to be touch-friendly. Along the way, we've simplified More Info pages for electronic resources, and accounted for changes as a result of our move from Aleph to Alma, and from MNCAT Classic to MNCAT Discovery. We'll have even more to show you soon.




Tuesday, November 19, 2013

Redesign prototype: v0.4.0

The responsive homepage has seen a lot of attention: prototyping, feedback and iteration... which is very important, but it is just one page. Let's move along.

For release v0.4.0 we're introducing the responsive wrapper for our site's secondary pages. We'll use the canonical "About us" page as our example.

 

Before

After

< Desktop | Mobile >

Design Notes

It's a lot like the old design, because the old design is a classic. Why break what works? We're also keeping the large horizontal image across the top of the page to help personalize the space.

As responsive design goes, between the "desktop" and "mobile" views above, you'll see the site content rearrange itself by priority. The local "About Us" navigation is the least important block, so it is pushed to the bottom of the page in the mobile view. The third-column (Wendy's picture) is supplemental information, so it is moved immediately below the main content.

The "Facts & Figures" section of the page spans the full width of the second and third columns. This helps to illustrate how we'll have full control of the number of columns we want to use within this design when necessary. When this content folds into the mobile view, it stacks each fact on top of each other in one single column.

 

Content Reflow

Desktop Layout: Three Columns

Left
Navigation
Middle
Main content
Right
Additional material

Mobile Layout: Single Column

Middle
Main content
Additional material
Navigation

 

Next steps

It's time to move our design work into Drupal (our content management system). Gabe and Jen are leading the conversion of these design prototypes into a formal Drupal theme. We'll keep you posted as progress continues.

 

Feedback

Please have a good look at our redesigned About Us page, and feel welcome (encouraged even) to share your opinion with the redesign team. All feedback is greatly appreciated.

Thanks! - Eric

Thursday, October 3, 2013

Redesign prototype: v0.3.0

We're excited to release v0.3.0 of our homepage design today. Please take a good look and come back here for some details on what has been updated.

Design Changes

We're quite thankful for all of the great feedback we have received. Many changes to the design are a direct response to your concerns and suggestions. If you've given us feedback, thank-you!

Header updates

New "Libraries" typeface
Gone with the handwriting/script font, in with the much calmer, sleeker sans-serif. In this change we've also shortened from University Libraries to just Libraries, as Libraries is mobile-width-optimized.
Navigation
The navigation has been shifted to the right of the page grid, helping to separate itself from the main heading, and draw more visual importance.
Search
Many people said the search box was hidden within the header of the previous designs. Here, we've moved search entirely into the "main" section of the page.

Body updates

Resources
Having emphasized mobile-first development techniques from the start, the desktop view in the previous designs felt neglected. Here we have helped to frame the main section of the page better by adding a left-handed resources panel.
From Our Collections
We heard a lot of questions about the array of Stephen King books in the previous design iterations. We had always intended to use that space to promote new/important/unique items from special collections and the archives, so this version does just that.

Speed improvements

Since this site is mobile-first, we need to work within realistic mobile bandwidth speeds. The best way to do that is to continue to work hard to reduce the page's overall weight, and to trim the number of HTTP requests.

I have a few more engineering tricks up my sleeve for fine-tuning our page weight and then afterwards creating the illusion of faster page speed. Until the design comes farther along, I'm happy to wait here.

Site Page Size # of HTTP requests
Current Production 979KB 96
Beta v0.1.0 861KB 42
Beta v0.2.0 659KB 23
Beta v0.3.0 417KB 18

What's next?

We will continue to slowly iterate over pieces of the "main" section of the homepage which still need focus, but the biggest next step will be including some sample child pages in the next release. WPMG has also begun our user-testing phases, so there will be plenty of patron-based feedback to weave into the design as well.

Feedback!

Feedback is critical to making this project a success. Please continue to submit feedback on the design and the direction of the work with every release. If you haven't submitted feedback yet, please consider starting today.

Friday, September 27, 2013

(Re)designing for Accessibility

As we move forward with our responsive design efforts, and the notion of making our site accessible everywhere, we would be remiss (not to mention irresponsible) to not also focus our efforts on making our content accessible for everyone.

Earlier this year, the Computer Accommodations Program conducted a scan of our current site, using a combination of HiSoftware Compliance Sheriff, the WAVE 5 web accessibility service, and their own expertise in the field. One result of this scan was the identification of the top three accessibility issues found across our site:
  1. Control has no LABEL and no TITLE attribute

    Our forms weren't constructed in a manner that allowed them to be easily navigated or used by users reliant on screen readers or text to speech applications. This is something we addressed from the very beginning of our redesign efforts, and have continued to fine-tune for not just the inclusion of labels, but the creation of more meaningful labels for patrons using alternative means of accessing the site. 

  2. Page does not use headers according to specification

    Our pages primarily used headers (aka, the htags, h1, h2, etc.) as design elements, rather than as structural elements for page content, creating problems for screen readers and screen magnification, as well as text to speech applications. This is something we continue to fine-tune as we go. The h tags should ideally be used almost like an outline. Early iterations of the design were incomplete in this regard, but we have since focused greater attention on this. We will also be including guidelines to help content creators do the same as we move forward in documenting our pattern libraries.

  3. Low contrast on some page elements

    Users with low vision or color deficient users would encounter issues on some areas of the site, particularly in the account sign in section. To address this, we've completely revamped the sign in area, and to make sure our style choices provide the necessary levels of contrast for ease of legibility.
We are dedicated to working closely with both the Computer Accommodations Program and directly with our users throughout our iterations to make sure we're continuing down the right path for a presentation that gets users the content they need, no matter where or how they access it. At the outset of the original scan, our homepage was scored by the Compliance Sheriff at 63. Our current prototype ranks at 81. This is just the beginning.

Friday, September 13, 2013

Redesign prototype: v0.2.0

Improvements

Welcome to v0.2.0! You'll see some of the design / information architecture changes quickly, but at this point in the project there's more work going on under-the-hood. For this iteration, let's talk briefly about some of the tools we're using to make the new homepage. After I nerd-out a bit, we'll chat design.

Technology

Colophon

  • HTML5 / CSS3 / JS
  • Bootstrap 3.0
  • Font Awesome
  • Google WebFonts
  • Yeoman / Grunt / Bower

We're committed to web standards, so it shouldn't come as a surprise we're using HTML5 / CSS3 / JavaScript (jQuery) to build this new site. And, as we're pursing a responsive design, we're leveraging the lovely and newly released Bootstrap 3.0 framework to provide us simple tools to build a site optimized for all kinds of devices.

Likely you are familiar with web fonts (we're using Google Fonts), and using font-based icons (Font Awesome), but I suspect few of you are familiar with: Yeoman, Grunt and Bower. These guys are a flight of tools to assist in scaffolding a project, running common tasks/chores and declaring code dependencies.

For our purposes, Grunt is far and away the star of the show. Using Grunt, we've written code to concatenate and minify our CSS and JS files, optimize our images using OptiPNG, pngquant, jpegtran and gifsicle, and fingerprint our assets so browers will cache everything super efficiently -- this helps load our page quick.

Speed Optimization

Someday, I'll write a few blog posts specifically focusing on performance. For now, I'd just like to point out we've shaved 202KB and 19 HTTP requests in this new design iteration. The importance of this work is fairly obvious: when you send a smaller site across the wire, using fewer requests, it loads faster.

Site Page Size # of HTTP requests
Current Production 979KB 96
Beta v0.1.0 861KB 42
Beta v0.2.0 659KB 23

Design

Following "mobile first" principles, the design of the mobile and tablet views of the site are pretty well baked already. We'll continue to improve those views during user-testing, but we're happy with how the site loads and feels on mobile devices. However, the overly "boxy" nature of mobile design carried itself a little too far into the desktop view, making the desktop homepage feel gray and nondescript.

We've begun work on the desktop view to put our face and personality back front and center. We want to create a friendly and welcoming desktop experience that helps convey the importance of our collections and staff to campus.

You'll notice we've reserved space for a featured highlight and given it top-left prominance in the design. The "My Account" box now drops beneath the highlight, making it quickly accessible, but lowering its importance in the design to better reflect that feature's historical usage trends.

We've elevated the "Top Databases" list, which will help users who frequently visit the library website to gain access to these resources. Our Google Analytics data shows a very common path through the site from the homepage to the alphabetical databases/indexes lists, which this feature should help improve the user experience for users of these resources.

Lastly, we've added Jon Jeffryes atop the "Today" box, to wrap the hours, events and workshops with our "face", better suggesting staff make these important things happen. The links to contact a librarian are front-and-center now, which will allow patrons to more easily obtain our help. Under this box, we're reserving room for advertising tools and services.

Upcoming: Version 0.3.0

For the next design iteration, we'll be looking to:

  1. Optimize accessibility
  2. Heavily incorporate patron feedback
  3. Finalize our acceptance testing framework