ayoub chahid

Lab Booking, under the hood

What I built, how it compares with what was there before, and the numbers.

Back to the dissertation story.

The stack

PartWhat it uses
WebsiteVue.js and Element UI, with Konva.js for the room maps
ServerDjango REST Framework, with logins kept in secure cookies (JWT)
DatabasePostgreSQL 13, with pg_trgm so search copes with typos
EmailMailjet, plus a button to resend an email (once every 5 minutes)
HostingDocker Compose (Nginx, Django with Gunicorn, PostgreSQL and a scheduler), online through a Cloudflare Tunnel

Two labs in one system

At first the system only knew about the robotics lab. I added the VR lab, so both now share one system, but each lab only sees its own equipment and rooms. I also added a lab manager account for each lab, who can run their own lab without seeing the other one.

A home page for each person

The old home page was a dashboard of numbers that meant little to most people. Now the home page depends on who you are: students get a search bar, shortcuts and their own bookings, and staff see anything that's waiting for them, like requests to approve.

A simpler booking form

Booking used to mean one date and time picker with a spinning list of hours, minutes and seconds, and it was easy to pick the wrong time. Now there are separate boxes for the date and the time, in half-hour steps, and the end can't be set before the start. The rules for each item, like the longest you can book it for, are shown before you book instead of after.

Grouping identical equipment

The lab often has several of the same thing, for example 4 of the same robot. Before, each of the 4 was saved as a separate piece of equipment, so the list showed 4 rows that looked exactly the same.

Now all 4 are saved under one model and shown as a single card that says how many are free. You can still open the card to see each robot on its own, with its barcode and where it's kept. Across the robotics lab, this took the list from 64 entries down to 19.

Entries in the robotics lab's equipment list
BeforeAfter
Entries
Before: 64After: 19
6419

Repeating bookings

  • You can repeat a booking every week or every month. It follows the same standard calendar apps use for repeating events (RFC 5545).
  • Each date is saved as its own booking, and they're all linked together, so each one can be approved and checked for clashes like a normal booking.
  • If any of the dates clashes with someone else's booking, none of them are booked, the same as in Google Calendar.
  • While you set it up, you can see how many bookings it will make and between which dates.

Search that copes with typos

Before, you had to type the exact name of an item to find it. Now search uses PostgreSQL's trigram matching (pg_trgm), so it still finds the right thing with a typo, and items can have other names people know them by. Suggestions with small pictures appear as you type.

Availability and room maps

To see when something was free, you used to look at one day at a time, up to a week ahead. Now a strip shows two weeks at once, with the booked times marked. The room maps were photos that looked stretched, so I replaced them with drawn maps where each area is coloured to show whether its equipment is free.

Help

There was no help in the system before. I wrote 21 short articles on common tasks, and each person only sees the ones that apply to their type of account.

Faster pages

The booking list used to make about 100 separate database lookups every time it loaded. I changed it to two.

Database lookups to load the booking list
BeforeAfter
Booking list
Before: 100After: 2
1002

How I measured it

I used three methods, and I only acted firmly on things that came up more than once.

  • An interview with the lab manager about how the lab was run and what wasn't working. Seven main points came out of it, and each one led to a change.
  • An anonymous survey, answered by 10 of the 26 users. It gave a usability score and comments on what to improve.
  • Think-aloud sessions, where three people did the same 12 tasks on the old and the new version while saying what they were thinking. I timed each task and counted the mistakes.
Survey usability score (SUS, the System Usability Scale, out of 100)
People who had made a booking
Score: 75
75
Industry average
Score: 68
68
Everyone
Score: 66.75
66.75
People who had only looked around
Score: 57.5
57.5
What people asked for most in the survey
Repeating bookings
Mentions: 4
4
A clearer room map
Mentions: 4
4
A less crowded home page
Mentions: 3
3
Working better on phones
Mentions: 3
3
Help for first-time users
Mentions: 2
2
Search by name
Mentions: 2
2

Results

I gave people the same tasks on the old version and on the new one.

Time per task
BeforeAfter
Book a computer for an afternoon
Before: 134 sAfter: 44 s
134 s44 s
Find a free 4-hour slot next week
Before: 93 sAfter: 35 s
93 s35 s
Find a robot on the room map
Before: 92 sAfter: 37 s
92 s37 s
Find how many of one camera the lab has
Before: 83 sAfter: 17 s
83 s17 s
Do something on the home page
Before: 49 sAfter: 15 s
49 s15 s
Usability score per person (SUS, out of 100)
BeforeAfter
Person 1
Before: 42.5After: 72.5
42.572.5
Person 2
Before: 55After: 82.5
5582.5
Person 3 (me, for comparison)
Before: 72.5After: 92.5
72.592.5
Average
Before: 56.7After: 82.5
56.782.5
How easy the tasks felt (out of 7)
BeforeAfter
Average across tasks
Before: 3.39After: 6.13
3.396.13

What could come next

I've finished at Cardiff, so these are the next steps I'd suggest to whoever takes the system on:

  • Make a first booking part of every new lab member's introduction, so more people start using it.
  • Put QR codes on the equipment that link straight to its page.
  • Let people add their bookings to Google Calendar or Outlook.
  • Make it work better on phones.
  • Let people sign in with their Cardiff University account.
  • Let people ask their own questions in the help section.

Back to the dissertation story, or see the equipment showcase.