Skip to content

Design: Guides

Timo Sariwating edited this page Nov 27, 2026 · 3 revisions

Status: first version built (2026-11-27, commit b50991a). Issue #210. Not built yet: the "Write guides" permission (only an admin edits now), guides on the machine pages, and drag to reorder (steps move with up/down buttons).

Guides are step-by-step instructions for the machines in a space, such as "Changing the filament on the MINI" or "Changing the tape on the DYMO". Each step holds one action, with a large photo and, where needed, a warning.

This first part covers guides only. Trainings, exams and certificates come later (see Later).

The data

Guide

  • title;
  • the machines it is for;
  • a cover photo;
  • difficulty: five levels, shown as a bar of five blocks;
  • author and last editor;
  • the steps, in order.

Step

  • title, for example "Hotend PTFE tube installation";
  • the lines, in order;
  • photos: one large photo with thumbnails of the others.

Line

  • a short text, with only bold, italic and links;
  • one style, which is one of:
    • a colour: black, red, orange, yellow, green, light_blue, blue, violet;
    • an icon: caution or note;
  • a level: 0, or 1 for a sub-line indented under the line above.

Photo markings (arrows, circles, a zoomed inset) are drawn into the photo itself. They are not stored as separate data. Each marking's colour matches the line it belongs to. For example, the green line "Allen key 2 mm" has a green arrow pointing at that key in the photo.

How a guide looks

The guide's front page: the cover photo, the difficulty bar, the Begin button and the machines it is for.

A step, desktop:

  • Header: a bar with the number and title ("22. Hotend PTFE tube installation"), and on the right Contents (jump to a step) and Full screen (key F).
  • Left: the lines.
    • A colour line has a filled hexagon in its colour. black is a plain step with no marking in the photo.
    • A caution line is all red, with a warning triangle, and usually opens in bold.
    • A note line has an ⓘ icon and plain text.
    • A level-1 line is indented one step.
  • Right: the large photo, with thumbnails below it. Clicking a thumbnail shows that photo large.
  • Bottom right: first step, previous step, Next and last step.

A step, phone:

  • the photo first, with its thumbnails, then the lines;
  • at the bottom, fixed: the step buttons and "Step 3 of 27".

How to write a guide:

  • Step 1 is "Introduction": what the guide does, plus a note if parts may differ.
  • Step 2 is "Tools needed": one line per tool with its own colour, and the same colour on that tool in the photo.
  • A warning sits on the step where it applies, not at the top of the guide.
  • One action per line. A line that needs a detail gets a level-1 line under it.

In our house style: the page sits in the hub shell, with cards, the cut corner and our fonts, per House Style. The eight line colours and the caution red are not house or status colours. They are the marking colours: fixed values that stay the same in light and dark mode, so a line always matches the arrows in its photo. The hexagon bullet is how a reader links a line to its marking.

The editor

The editor is in the hub. It looks like the guide itself, so you see what you make.

  • Left: the list of steps. Drag to reorder, plus "Add step" and "Remove step".
  • The step being edited:
    • Title.
    • Lines: each has a text field (with only bold, italic and link) and a style picker with the eight colours, caution and note. A button indents the line to level 1 or back. Drag to reorder; Enter starts a new line in the same style.
    • Photos: upload or take a photo on a phone, drag to reorder, and pick which is shown large.
  • The guide itself: title, machines, cover photo and difficulty.
  • Draft and published: a guide is a draft until Publish. Editing a published guide makes a new draft, and the old version stays visible until the new one is published. The page shows who last edited it.

Photo markings, first version: the editor does not draw markings. You mark photos before uploading, for example with the phone's own markup tool.

Photo markings, later: a simple marking tool in the editor, with arrows, circles and a zoomed inset, in the eight line colours. It saves a new marked photo and keeps the original, so marks can be redone.

Who may edit: a permission in Space → Permissions ("Write guides"). Reading needs no extra permission for members of the space.

Where guides live

  • Per space. Each space has its own guides.
  • On the machine pages. A guide names the machines it is for, and a machine page lists its guides.
  • Photos are stored by the hub with the guide. They belong to the guide and do not appear in Files.
  • Line text is cleaned on save to allow only bold, italic and links (crate ammonia). Photos get their thumbnails with crate image.

Code

  • crates/guides in the Maker Connect repository holds the data model, the input checks and the HTML for a step. It has no dependencies on the hub, so it can become its own project later without a rewrite.
  • The hub holds storage (Postgres), photos, the pages, the editor and permissions.

Later (not now)

From #210:

  • PDF export ("Download guide as PDF").
  • Languages: one guide in several languages.
  • Comments per guide.
  • Trainings: a series of guides.
  • Lessons with a short online exam: a few questions, a pass mark, and a retry after a wait.
  • Certificates: what a finished training gives. Each is valid for a set period or without end, with a reminder before it runs out.
  • Practical sign-off by a supervisor, for example for the laser. An exam alone is not enough there.
  • A machine that requires a certificate: without a valid one, Start is greyed out with "Training X needed".

Rule for later: a certificate never grants a permission by itself. Permissions stay in Space → Permissions. A certificate is only a condition the hub checks.

Clone this wiki locally