Interaction elements¶
DomusVox uses a small, fixed set of controls, and each one always looks and behaves the same, in the setup assistant, the Hallway View and every package. When a new screen needs a choice, pick the element from this table instead of inventing a new one. If none fits, add it here first (decision D46).
Every element works with touch, mouse, keyboard and screen reader, has a visible label, a touch target of at least 44 px on touch screens (36 px with a mouse) and does not rely on colour alone.
| Element | Use it for | How it looks and behaves | Built from |
|---|---|---|---|
| Main button | The one step forward on a screen ("Continue", "Yes, this is my house") | Filled in the accent colour, at most one per screen or framed area, at the end; disabled with a visible reason while something is missing | button.setup__primary |
| Secondary button | Everything else that does something ("Back", "Continue later", "Undo") | Outlined; a pressed state only for toggles (aria-pressed) |
button.toggle |
| Link | Going somewhere: another page, a step of the assistant, a website outside | Underlined text in the accent colour, never a frame; a link that leaves DomusVox says where it goes | a href |
| Header bar | Knowing where one is and getting anywhere (Layout) | On every page: name, Home · Workbench as framed tabs (D54), the current one on a soft fill, the Display menu on the right | AppHeader |
| Views | The views of an area (floor plan, list, 3D; set up, check a scan) | Links in a column next to the work area, on a phone in a row above it; the current one marked like in the header bar | ViewsNav |
| Views tree | Going straight to a part of a view: a floor of the floor plan or of 3D, a step of the setup | Under a small "Views" title; the parts of a view indented below it, held together by a line; an arrow button (aria-expanded, Enter or Space) folds them away and back, kept on the device; parts are links (aria-current="location", for steps "step"), parts not reached yet are plain text; on narrow screens only the views show and the page keeps its own floor or step choice |
ViewsNav with sub |
| Menu | A few settings that belong together and are rarely changed (Display: language, appearance, text size, look) | A framed line with an arrow pointing down; the panel opens below with plain rows in groups under small grey headings, the chosen row with a tick (as in Ablago), on narrow screens as a sheet from the bottom; closes with Escape or a tap elsewhere | details.menu |
| Label | Marking something that cannot be pressed ("early", "from the scan", the state of a window) | Small, a soft fill, no frame, so it never looks like a button | span with a soft background |
| Choice in view | One choice from up to four short options that matter on this screen ("The whole house" or "An apartment") | Radio buttons in a framed group with the question as its title | fieldset.setup__choices with radios |
| Choice list | One choice from a longer list, or when the usual answer is already chosen ("Is this your house?") | Closed, it shows the question and what is chosen, with an arrow; opened, the options as radio buttons; choosing closes it again | ChoiceList |
| Multiple choice list | Any number of options from a list ("Do other buildings belong to your plot?") | Like the choice list, with checkboxes; closed, it lists what is ticked, or "none"; stays open while ticking | ChoiceList multiple |
| Checkbox | A single yes or no ("The house has a basement") | Box with the statement next to it | label.setup__check |
| Segmented switch | A mode that changes what another control does ("What a tap adds: window, door, balcony") | A row of buttons, the active one pressed; where several rows stand together, each has a visible title in front ("Floor", "Look") | .segmented with aria-pressed |
| Number field | A count or a size ("Floors above ground", metres) | Label in words with the unit, a hint below for estimates; only valid values are taken over | input type=number in label.setup__field |
| Text field | Free words ("Name of building 2", the address) | Label above or beside; never a placeholder instead of a label | input type=text |
| Fold-out section | Optional help or detail ("What is sent where?", "Suggest from a photo") | Closed by default, one line saying what is inside, with an arrow in front: pointing right while closed, down while open | details/summary |
| Advanced section | Settings almost nobody needs, for tinkerers ("Advanced: data sources") | A fold-out section at the end of the screen, closed by default, starting with "Advanced:"; the defaults work without ever opening it, and a reset brings them back | details.setup__advanced |
| Drawing | Seeing where things are (map of buildings, front view of a side, floor plan) | Always next to a list or fields that do the same, so nothing needs the drawing; a dashed line (the parcel) gets a sentence below the drawing, and the sides with their windows and doors are listed in words at the end | svg role=img plus the list |
| Editable drawing | Placing things by finger (windows and doors on a side) | A tap on empty space adds, a tap on a thing chooses it (thick dashed outline, and the status says what is chosen), dragging moves it; buttons below do the same (move, one floor up or down, wider, narrower, delete, choose next), and every change can be undone | svg role=img with pointer events plus .setup__edit buttons |
| Orientation map | Showing which part is meant (which side of the house to look at) | A small map, north up, the part drawn thick, where to stand as a dot with the view towards it; a sentence next to it says the same | SideMap, svg role=img |
| Table | Several things of the same kind with a few facts each (the rooms of a floor with area, doors, windows) | One row per thing, its name as row header, numbers right-aligned; one "Change" button per row opens the actions right below that row (rename, scan again, remove); on a phone each row becomes two lines | table.setup__table |
| Status message | What just happened or is happening ("Finding your house…", "Suggested: windows 4") | Text in a status region right at the control that started it, read out by screen readers; no pop-ups. While it works, the control says so ("Working …") and cannot be pressed twice | role=status next to the control |
| Problem | Something that needs the person ("Please give every ticked building a name") | Text next to the step it concerns, in words, with what to do | p.setup__error |
| Step | One task per screen in a guided flow | Heading gets the focus, progress "Step 2 of 5", Back and Continue later always there | setup assistant |
| Step list | Seeing where one is in a guided flow and going back to any step reached | The steps in order; the current one bold, reached ones as links, later ones as plain text until the earlier answers are there; a step to look at again after an earlier change says "please check" | nav.setup__steps |
Rules¶
- Links go somewhere, buttons do something. A button never just opens another page, and a link never changes anything.
- A frame means it can be pressed. Labels, states and notes have no frame, so nothing that only shows something looks like a button.
- At most one filled main button per screen or framed area; everything else that acts is outlined.
- A button that cannot be used yet either looks faded (there is nothing to do yet) or says next to it why not and what helps.
- The language and display options (appearance, text size) look the same and sit in the same place on every page.
- Feedback appears where the person looked last: at the button they pressed, not at the bottom of the page.
- Show what is there as soon as it is there; slower sources fill in later, with a short note that more is coming.
- Undo instead of "Are you sure?" dialogs. No pop-up dialogs at all where a step can be undone.
- "Start over" deletes everything entered, not just the step, says so where it was pressed and offers Undo.
- Never ask what DomusVox can find out itself; show the assumption and let the person correct it.
- A drawing is never the only way: every tap target has an equivalent field, list or button.
- Words before symbols: icons only next to text, never instead of it.
- Language: the first of the browser's languages that DomusVox speaks, otherwise English. The language buttons on every page override it, and the choice then holds on all pages.
- Facts DomusVox guesses (the street side, the floors) are shown as a choice list with the guess already chosen, so correcting them is one tap away.
- Things that look different are shown, not only named: roof shapes with a small picture, the gable direction with a small map; always next to the words.
- Floors are a list from the bottom up, one choice list per level (full floor, attic lived in or not, top loft), suggested from the data.
- A new version announces itself at the top of the page with a "Reload" button, so nobody needs a forced reload. The Hallway View on the wall reloads by itself once nobody has used it for a minute.
- Assistant and settings are one: the guided flow is the first run; once all steps are done, the same page is called "Your home" and every step opens again from the step list. Changing an earlier step keeps what later steps added (rooms, devices) wherever it still fits.
- New elements need an entry here, an accessibility check in the end-to-end tests and both languages.
Colours and lines¶
Calm by default: the house and its states stand out, the frame around them does not. The values live as tokens at the top of packages/wall/src/styles.css; no page sets its own colours.
| Token | Use |
|---|---|
--bg |
Ground of the page, a light grey-blue |
--surface |
Cards, header bar, fields and buttons, white |
--line |
Fine separating lines that cannot be pressed (header bar, divider) |
--border |
Frame of everything that can be pressed or typed in, at least 3:1 against the surface (WCAG 1.4.11) |
--frame |
Width of that frame: 1px, 2px in high contrast |
--accent |
Dark blue: only the main button, links and the current place (area, view, pressed choice) |
--accent-soft |
Soft fill of the current place and of pressed buttons |
--attention-*, --ok-*, --open-* |
States: something to do before leaving, all fine, open window or door |
--active-*, --room-lit |
A light that is on, and the room it lights |
- Only one filled button in the accent per screen (the main action); pressed toggles get the soft fill with an accent frame, not the full accent.
- States are told by words as well as colour; colour only helps to find them.
- One button for everything: white with a fine frame, bold text. Only the main action of a screen is filled in the accent (
.primary). Pressed choices get the soft accent fill. Deleting looks like every button and turns red on hover and focus. Status colours never colour a button; a light that is on shows the soft light colour of its room and says "On". - Cards and panels that cannot be pressed get a fine
--line, not the control frame. - Selections on maps and drawings (the chosen building, band or room) use
--select-bgand--select-line, not a status colour. - Text as in Ablago: 14 px body, headings 24, 17 and 15 px; text size Small, Normal and Large (0.9, 1 and 1.15 times, as in Ablago). Buttons and fields are 36 px high with a mouse and 44 px on touch screens.
- Appearance as in Ablago: Automatic (by device), Light, Dark and High contrast, all with the same tokens and their own values. High contrast is light with stronger values (black text, darker frames, 4 px card rounding, 3 px focus ring, underlined links) and keeps 2px frames and the full fill for pressed buttons.
- The result of a button stands as a soft row right below it, in one of four tones (good, info, warning, bad), as in Ablago (
Result).
The values follow Ablago's tokens (web/src/tokens.css in motom001/dms, Apache-2.0), adapted to the larger targets on the wall.
Several of these rules follow the building-block guide of Ablago, a document app by the same developer (help.ablago.app), so both apps feel alike. They are adapted to DomusVox, not copied.