Monitoring Tools

The app itself

Typed number fields

Every numeric setting is typed, never picked from a row of presets. One reusable control, UI/NumberField.cs, is used on every page and window.

#What it does

  • A label, a subtitle saying what the setting does and its default, a text box, minus and plus steppers and an optional unit (s, min, %, items).
  • Type a value and press Enter, or move focus away, to commit. Up and Down step by one step, Page Up and Page Down by ten, Escape puts the last good value back.
  • A value that is not a number, is not whole where a whole number is needed, or is outside the allowed range is refused. A message under the box says why (for example "Not changed: enter a whole number from 5 to 1000.") and the stored value stays as it was.
  • A setting whose consumer rounds anyway (Text size, steps of 10) rounds a typed value to the nearest step and says so.
  • Where a slider remains (humour levels, speaking rate, stroke width) a compact typed box sits beside it and each follows the other.

#Settings converted

SettingWhereBoundsStep
Toast durationClipboard, setup wizard1 to 600 s0.5
History sizeClipboard5 to 1000 items5
Sound volumeClipboard0 to 100 %5
Network check everyNetwork1 to 3600 s1
Alert afterNetwork1 to 20 checks1
Public IP check everyNetwork1 to 1440 min1
Text sizeAppearance, Make a look90 to 150 %10 (rounds)
Reminder intervalModes5 to 1440 min5
Ollama keep-aliveOllama chat0 to 1440 min (0 unloads at once)1
PNG export sizeTools1 to 3 times1
New locks stay unlocked forSafety0 to 1440 min (0 until the app closes)1
Stay unlocked forLock wizard0 to 1440 min1
Authenticator digitsSafety6 to 81
Authenticator periodSafety1 to 3600 s1
English and Cantonese humourLanguage (beside slider)1 to 51
Speaking rateLanguage (beside slider)0.5 to 2.0 times0.1
Stroke widthDrawing board (beside slider)1 to 48 px1

The command palette entries for toast duration, network check interval, volume and reminder interval open the page where the field sits.

#Not converted

  • The Minecraft page memory choice (another worker owns that page).
  • Tray snooze buttons (15 m, 1 h, 4 h): an action, not a stored setting.
  • Red, green and blue sliders in the drawing board colour dialog: a hex box sits beside them.
  • The appearance editor steppers already take typed numbers.

#Verification

Self-test checks "number fields: ..." walk every page and setup step (no choice offers only numeric presets), drive the history size by typing, steppers and keys, and check decimals, rounding and slider pairs.

View this article's Markdown source on GitHub

Suggested articles

All The app itself articles