App patterns

Starboard's own patterns: page topics, the update list, places and service logos, the dashboard, show once, a wizard in a slide-out and folding sections.

Page topics

A long page of settings cut into topics, one shown at a time. The tabs come from the page's own sections, so a page with four or more sections gets them and a short one does not. It is not Tabs, which show the parts of one thing in one panel.

Names and apps

The name of this server, and the apps on it.

Appearance

Theme, text size and spacing.

Download hours

When downloads may run.

Alerts

What Starboard tells you, and how.

Rules

  • This is the standard for a page with more than one topic: an "On this page" jump list is not used for separate topics, only for one long document such as a help article or release notes. Four or more sections make tabs; a page may ask for fewer. Each tab is a plain noun in sentence case, the section's own heading, in the order people do things.
  • Each tab has an address (#section-id), set when it is chosen without a history step, so links, reload and help links open it. The first tab opens when there is none; the last tab used is not remembered.
  • A hidden panel is out of the reading order and runs nothing until opened. An action that needs a confirmation is a button inside its tab, never a tab.
  • Left and Right move between tabs, Home and End go to the first and last. Only the selected tab is in the Tab order. Tab goes from the selected tab into its panel.
  • Tabs are at least 24px high with space around them, and wrap onto a second line on a phone: never scroll, never past the page edge. The browser's find reaches only the open tab, so a page that must be searched whole is a document.
  • From 768px wide and 640px tall the tabs stay under the header; --topic-tabs-h (set by the page's script) is their height, so the page keeps what has focus clear of them.

Classes

  • .topic-tabs, .topic-tabs__tab, .topic-off, .settings-sections (one gap of 32px; 40px on a .page--settings page), .page--settings (full width, text no wider than 75 characters).
  • Styles-only part page-topics.

Data lists

One layout for every list that is a table: plug-ins, updates, the catalogue, backups, keys, people and queues. Even columns from a documented set, rows of one height, every cell on the middle line, status chips that never wrap, versions that line up, and actions at the right, all the compact control height. The hover, chosen, focus, rule and header colours are the same --list-* tokens everywhere. On a screen under 721px wide each row stacks into a card.

List with status, version and actions

Plug-ins with their update: one row for each, with a filter instead of a second list.

Your plug-ins and their updates
Plug-inStatusVersionActions
Picture shrinkerBy TheMightyTRexUK
ActiveUpdate available
1.0.0Latest 1.1.0
Audio descriptionBy TheMightyTRexUK, Jellyfin only
ActiveUp to date
1.1.0
NotificationsBy TheMightyTRexUK
InactiveUp to date
1.0.0

Selectable rows

A tick in the name cell; a chosen row takes aria-selected="true" and the chosen colour. Pair it with a selection bar.

Updates you can choose
Plug-inStatusVersionActions
Picture shrinker1.0.0 to 1.1.0
Update available
1.0.0Latest 1.1.0
Watch statisticsNeeds new permissions
Update availableNew permissions
1.0.0Latest 1.1.0

List with a description (catalogue)

The name with its description (it wraps, never cut), what it adds, its version and one action. One table for each group, with the same columns.

Recommended

Recommended plug-ins
Plug-inWhat it addsVersionActions
Disk forecast RecommendedWhen each disk fills at the rate it has been filling over the last month.
A dashboard card that says when each disk will fill. Replaces nothing.
1.0.0
StylesTwenty-one accessible styles for Display, checked for contrast.
More styles in Display. The styles that come with Starboard stay.
1.3.0
Added

Summary (key and value)

What will be set up
SettingAnswerChange
Media serverJellyfin
UpdatesEach night, in quiet hours

Expandable rows

Backups with details
BackupStatusDateActions
Weekly backupSettings and plug-ins
Copied
28 Nov, 03:00

Empty and loading

Empty list
NameStatusActions

No plug-ins yet

Add one from the catalogue.

Loading list
NameStatusActions

Rules

  • A real table, always with a caption (visually hidden is fine) and column headings. Several tables one after another use the same <colgroup>.
  • Columns come from one set: col-name (no class, takes the rest), col-tick 3rem, col-state 12rem, col-version 6rem, col-date 11rem, col-number 7rem, col-action 9rem (one button), col-actions 13rem, col-actions--wide 19rem, col-label 14rem.
  • The first cell is the row heading (th scope="row"): the picture, the name (a link when it opens a page) and one line under it, cut with an ellipsis with the whole text in its title. Anything a person needs to decide by wraps instead (.list-name__sub--wrap).
  • Status is a chip with an icon and words, never wrapped, one under another in .list-status. A version is .list-version, left-aligned in numbers of equal width, with the newer one under it.
  • Actions are at the right, one row, every button .btn--compact (32px), 44px on a phone. A button that is not for every row is left out of that row, never empty.
  • One hover, chosen, focus, rule and header colour: --list-hover-bg, --list-selected-bg, --list-edge, --list-rule, --list-head-bg. No zebra stripes. A page never sets its own: tools/check_lists.py fails when it does.
  • A filter such as Needs an update is filter chips over the list, not a second list. The row count is said politely after a change.

Classes

  • .table-wrap[data-stack] > .table.table--fixed.table--list (.table--summary), .list-name (__tick keeps the pictures in line on rows with no tick, __text, __main, __sub, __sub--wrap), .list-status (__note), .list-version (__new), .list-actions (__row), .list-detail, .list-empty, .table-wrap--scroll (a sticky header in a list that scrolls). Script: button[data-list-expand]. Part data-list. This replaces .updates-table.

Places and service logos

Where something goes, such as the places backups are copied to. Each place has a logo, a name, a switch and the state of its last copy; the tiles under the list add another kind of place.

  • Google Drive

    Backups folder, keeps the newest 5.

    Copied today at 03:00

  • Disk 2

    On this server, another disk.

    Could not copy The disk is full.

Add a place

Rules

  • The state of the last copy is an icon, a bold word and the tone's colour, never colour alone. Use a .chip when the state sits in a title.
  • A brand's logo is one colour (the text colour), so it reads in every theme; its name always sits beside it, so the logo is hidden from a screen reader.
  • Third-party marks identify that service only and stay their owner's trademark. They are CC0 artwork from simpleicons.org, in service-logos.svg (Google Drive, OneDrive, Dropbox, Backblaze B2, Amazon S3 and WebDAV), copied as icons/services.svg in Starboard. Never recolour one, crop it or put words on it.

Classes

  • .places, .place, .place__head, __text, __title, __switch, .place-logo, .place-logo__img, .place-state (data-tone), .tested, .place-adds, .place-add, .place-add__text. Styles-only part places.

Dashboard grid and cards

The Home page: a 12-column grid of cards in preset sizes (small 3 columns, medium 4, half 6, wide 8, full 12). Two columns on a phone, with a small card taking one. A person can resize and move the cards in Edit dashboard.

Storage

Nearly full

86% used

Watch statistics

42 hours watched this week

On TV now

  • Evening news 19:00 to 19:30
  • The Glass Harbour 19:30 to 20:30

Quick links

Rules

  • A card is a .card.has-band in a grid: use the band for the logo, the name and a state chip. A small card keeps the chip's icon and hides its words from sight, not from a screen reader.
  • Cards are in reading order, which is their order on screen; Move up and Move down are buttons, so the order never depends on dragging.
  • A card's size is a select, so it is keyboard and voice friendly.
  • The bar in a guide card is thinner (4px) than the waiting bar, because it is a clock, not a task.

Classes

  • .dash-grid, .dash-card with --small, --medium, --half, --wide, --full; .dash-card__head, __title, __tools; .dash-links; .dash-edit, .dash-edit__row; .dash-stat; .guide-card (__item, __num); .spark-card (__item, __line, __words). Styles-only part dashboard.

Show once

A secret the app shows one time: a first password, an API key, recovery codes or a backup key. The value can be selected in one go; Copy and Download sit under it; a notice says it will not appear again.

Backup encryption key

example-key-Q7w2-9F4d-not-real
Starboard shows this key once.

Keep it somewhere safe. Without it, nobody can open your backups.

Recovery codes

  • 4f9k-2m7q
  • 8d3x-1b6w
  • 7t5n-9c2e
  • 2h8v-6y4p

Rules

  • Say once, in the notice and in the heading, that the value will not appear again, and what to do with it.
  • Give both Copy and Download as a file. Never put the value in the page address, a toast or the log.
  • The value is text (selectable, readable by a screen reader), in the monospace face. Closing the page or slide-out discards it.
  • For a secret that stays in a field and can be shown again, use Secret field.

Classes

  • .show-once, .show-once__label, .show-once__value, .show-once__actions, .recovery-codes (in the core).

Wizard in a slide-out

A short job in three steps or fewer that does not need a whole page, such as switching the media server. It keeps the rules of Wizard: one question to a step, Back and Next in the foot, nothing changes until the last step, and what will happen is said in words.

Rules

  • A wide slide-out (.side-panel--wide). The progress is one muted line, "Step 1 of 3", before the step's heading; a job that takes time also shows a bar (.wizard-progress) and its count (.wizard-job).
  • The foot holds Next (primary, which names the next thing on the last step), Back and Cancel. Focus moves to the step's heading when the step changes, and the step's result is announced in a live region.
  • What moves and what cannot is a .plain-list with a state chip on each item, in words.
  • A job of more than three steps is a page wizard, not a slide-out.

Classes

  • .panel-wizard, .panel-wizard__count, .wizard-job (__head, __words, __count), .plain-list (core). Styles-only part slide-out-wizard.

Folding sections with tables

A plug-in's screen with several long tables: each is a section that folds, with a switch on the right of its head to turn the whole section on or off.

Channels
NameNumber
Harbour One1
Harbour Two (off)2

Rules

  • The head is one button with aria-expanded; its panel follows. A wide table scrolls inside its section at phone width, never the page.
  • An off row is muted and says so in words.

Classes

  • .fold-tools, .folds, .fold, .fold__head, __title, __toggle, __name, __switch, __panel. Styles-only part folds.