A server row is one choice in the list of Seed servers. It shows the server by its host name, explains it in a second line, and carries a checkmark when it is the one the app is using. The rows together behave as a radio group.
Kind: inline part. It is not a named component in code. It is written four times inside MeServerScreen: the presets and the custom row at me.contract L334-L351, the saved rows at L356-L362.
Used by
Screen | How |
|---|---|
Two preset rows, one row for an unsaved custom server in use, and one row per saved server |
No other screen draws this exact row. The radio rows for providers and models on the New agent sheet use the same checkmark idea with a single line, see Provider and model rows.
Variants
Variant | Title | Second line | Checkmark | Swipe |
|---|---|---|---|---|
Preset: public | "hyper.media" | "The public Seed network" | when in use | none |
Preset: testing | "dev.hyper.media" | "For testing" | when in use | none |
Custom, in use and not saved | the host | the full address | always | none |
Saved | the host | the full address, for example "https://gabo.es" | when in use | Delete, which forgets the server |
The custom row exists so that the server in use is always visible and checked, even if it was set some other way and is neither a preset nor in the saved list.
Anatomy
Part | Contract | Detail |
|---|---|---|
Row |
| A full width button row in a grouped list. Saved rows add |
Labels |
| Two lines of text, 2 points apart |
Title |
| Body size, label colour. The host with |
Second line |
| A description for presets, the full address for the others |
Checkmark |
| Only on the row in use. Teal, see Color and tokens and Symbols and icons |
Group |
| Labelled "Server" for the presets and "Saved servers" for the saved list |
The checkmark is hidden from assistive technology because the row already reports itself as a checked or unchecked radio button. See Accessibility.
States
State | Effect |
|---|---|
In use | Checkmark shown, |
Not in use | No trailing element |
Tapped | Becomes the server at once, with a |
Saved row swiped | Removed from the list. If it was in use, "hyper.media" becomes checked |
There is no disabled or loading state. A row only exists for a server that is a preset or has already passed the check made by the "Another server" field.
Rules for use
Use this shape for picking exactly one of a short list of named things, where each needs a line of explanation.
Title is the human name (the host). The machine form (the URL) is the second line, never the title.
One checkmark per screen. Two groups may share one selection, as the presets and saved servers do.
Do not add a chevron: a radio row acts, it does not navigate. See Buttons and actions.
Offer swipe to delete only on rows the person added.
Why it looks this way
It is the system's single choice list. A trailing checkmark in a grouped list is how iOS Settings shows one of several. Writing role="radio" lets the platform and VoiceOver treat it that way. See Leave it unsaid.
Hosts before URLs. People know "hyper.media", not "https://hyper.media". This mirrors how identities are shown by name, see Names, not identifiers and Identity rows.
The only colour is the tint. The checkmark uses brand, the app's teal, which is also the colour of every other "selected" or "tappable" signal. Inferred from the token's use across the contracts.
Presets cannot be removed. Only saved rows have delete=, so the two known servers are always one tap away.
Related
Parent: Inline parts. Similar parts: Provider and model rows, Directory row (also a trailing tinted checkmark).
Not the same thing: the "Server" row on Me, a link row with symbol:link that shows the current host and opens this screen.
Patterns: Lists, Refresh, haptics and progress.
How it is built: Me: screens and components, Me: sources and import logic.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime