Skip to content

Seating Layout Preview

Michael Ball edited this page Sep 8, 2026 · 2 revisions

Seating Layout Preview

A scratchpad for room spreadsheets, at /layouts/preview, linked as Layout Preview in the header for any signed-in user. Load a room file, see how it renders, build a new layout and export it. Nothing on this page is saved to an exam.

Loading a room

Either upload one room tab of the master room sheet, or select the range in the sheet and paste it straight in — columns may be separated by commas or tabs. Load example fills the box with rows A–B of Soda 306.

The format is the one the room import already accepts: row and seat name the seat (A + 1 → A1), optional x/y move where it is drawn, a blank row/seat with a count describes movable seats, and every other column is a flag that is on when the cell says TRUE.

Loading a room CSV

Columns: attributes vs. layouts

Column names are lowercased on import. A column is a seat attribute if its name is one the app knows:

Group Columns
Handedness lefty, righty
Condition broken, damaged, unusable
Placement & use aisle, front, back, center, corner, window, table, power, walkingrow, movable, reserved, restricted, dsp

Every other column is a layout — a named set of seats, such as AlternateSeating1, 2/3 Seating, 2050VLSB or CS61C_SP26_ALT3. Layouts keep the spelling from the file and are listed first in the highlight dropdown.

To add an attribute, add it to SEAT_ATTRIBUTES in server/services/core/layout_preview.py. Until then a column with that name is treated as a layout.

Reading the chart

Pick a layout or attribute from Highlight seats belonging to and the chart shows which seats are in it.

Highlighting a layout

Marking Meaning
Berkeley Blue In the current selection
Light grey Not in it
Red with a slash broken, damaged or unusable
Gold ring Hovered or focused
L Lefty desk. Righty desks and desks that work either way are unlabelled
Gold dot Restricted use: dsp, reserved, restricted, walkingrow or movable

Hover a seat for its name and attributes. The legend lists every column in the file with a live count.

Legend

Building a layout

New layout selects the whole room and shows the name field. From there:

  • click a seat to add or remove it
  • Select all, Clear, Invert, Deselect broken
  • right-click a seat to toggle its attributes — mark a chair broken, flag a seat as DSP

Per-seat attribute menu

Export CSV writes the file back out with its original columns, your edits, and one new column named after the layout. Import that file as a room and the new layout is selectable like any other.

Editing and exporting

Clone this wiki locally