Skip to main content

Module providers

Module providers 

Source
Expand description

The providers screen: the model services a person added, what each one offers, and the two context figures that are never the same number.

Three things make this screen what it is.

Nothing goes out unasked. Opening the page reads a file and touches no network. Every request leaves only because the person pressed the thing that sends it, and the address it will go to stands on the page above that button, before it goes.

The key file is named out loud. Not in a footnote: a line of its own says where the key is written and that a backup of the home folder carries it in plain text, so that nobody shares a backup and their key together without knowing.

Both windows are shown. What the model’s own record claims and what this server was measured giving, side by side, because they are often an order of magnitude apart and a coding agent whose instructions are silently thrown away looks stupid for no visible reason. When the measured window is small the page says so plainly and says what the person can do about it on their own machine — guidance QCode prints and never something QCode does to them.

Structs§

Draft
A provider being written down.
Editor
A lineup as it is being written.
Lineups
The lineups dialog, while it is open.
Providers
The providers screen’s state.

Enums§

Busy
What the screen is waiting for, so a button that has been pressed shows the work and takes no second press.
Msg
Everything that can happen on the providers screen.
Notice
The last thing that happened, kept as a value so that the view is the only place that turns it into a sentence.
Problem
What stopped a provider being added, apart from its wording.
Refusal
What stopped a lineup being saved, apart from its wording.

Constants§

BASE_FIELD
The name of the address field.
KEY_FIELD
The name of the key field.
TAG_FIELD
The name of the tag field, which the focus and the error summary use.

Functions§

entry
The control that takes the keyboard when the screen opens, once there is one: the list, or on an empty screen its one button.
hints
The keys of the providers screen that are not in the keymap, for the key list.
trial_of
The request the trial would send, for anything that needs to name it outside this module.
update
Applies a providers screen message.
view
Draws the screen: the providers, with the add dialog or the lineups dialog over them.