Skip to content

Ui Refinement Ux15

Chris Sutton edited this page Dec 2, 2026 · 1 revision

Published documentation mirror. Edit the source through a repository PR. See Project status.

UX15 — Storage capacity information and visual separation

UX14.1 is accepted (257 PASS; nine hosted checks on 7a702a0; manual review and merge reported). UX15 adds a free-space readout beside each permanent directory status. The wide layout has a one-pixel theme-matched separator and 16 logical pixels of spacing on either side; compact layouts stack with a horizontal line.

Behavior

  • The existing selection, automatic persistence, icon colors and manager restart semantics remain unchanged. No approval, refresh or Save button returns.
  • Available space means filesystem blocks available to an ordinary user, measured via fstatvfs on the selected directory. Display decimal MB (whole, truncated) and GB (two decimal places), localized for readability. A zero rounded display does not itself mean that the drive is full.
  • A separate read-only subprocess uses stdin for the path and emits at most a bounded numeric capacity response. No probing of unset/invalid selections. Results are accepted only for the current selection generation. Failures show unavailable, not zero; measurements never modify selection state or preferences.
  • Sample when a valid selection changes, when Settings becomes visible, and roughly every ten seconds while visible. Otherwise sample once per minute while the desktop is running. There is no sample loop when both paths are unset. At most one capacity subprocess runs per model, with a three-second deadline. Capacity probes do not disable selection controls or trigger manager restarts. Measurements are informational and not promises of future write space.
  • The global footer displays a persistent operational warning when a selected drive is low, critically low, full, or cannot be measured. Low: available at or below 10% of total or 1 GB; critical: at or below 1% or 100 MB; full: zero available bytes. Warnings clear on recovery or clearing the selection. A saved path refused at startup remains configured and reports unavailable until revalidated by ordinary selection/startup. No alert ledger event, system notification, or threat verdict is implied. The manager's existing storage capacity supervision, audit events, quota and reserve checks remain in force.
  • If both locations are on one filesystem, both readouts refer to the same available pool, not separate allocations. Filesystem compatibility remains unchanged: ext4, XFS, Btrfs and F2FS writers; other recognized filesystem types require operational writer work. Capacity is for selected directories, not a guarantee that an active writer has successfully reopened its store.

Qualification

Native tests exercise bounded numeric parsing, malformed/overflow refusal, exact thresholds and distinction between low capacity and actual zero available bytes. The rendered fixture checks both readouts on supported filesystems, unavailable results otherwise, separator presence, and clearing without stale capacity. The Python fixture checks native capacity responses against filesystem metadata and refuses unsafe links. Existing selection persistence and fixture invariance remain mandatory. The consolidated runner retains the 682 CTests and five-run per-preset cap, adds the UX15 source verifier (117 total), and expects 258 gates.

Manual review: select both supported locations; confirm readouts match the host approximately, remain readable in dark/light themes, refresh without icon or path reset, disappear on clearing, and appear again after restart. Resize the window and enlarge accessibility text; confirm divider and controls fit. Do not fill a production drive to test warnings. Thresholds are tested with synthetic capacities. Actual full-volume/disconnection and end-to-end alert presentation on a low-capacity volume require separate disposable qualification.

Clone this wiki locally