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
| Part | What it uses |
|---|---|
| Website | Vue.js and Element UI, with Konva.js for the room maps |
| Server | Django REST Framework, with logins kept in secure cookies (JWT) |
| Database | PostgreSQL 13, with pg_trgm so search copes with typos |
| Mailjet, plus a button to resend an email (once every 5 minutes) | |
| Hosting | Docker 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.
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.
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.
Results
I gave people the same tasks on the old version and on the new one.
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.





