UsbMaintenanceGate

data class UsbMaintenanceGate(val show: Boolean = false, val eraseRefusal: UsbMaintenanceRefusal? = null, val showBootloaderUpgrade: Boolean = false)(source)

Which maintenance affordances the Ready state should show, precomputed by the ViewModel.

Follows the showBootloaderWarning precedent: the screen stays dumb and the decision stays unit-testable.

Constructors

Link copied to clipboard
constructor(show: Boolean = false, eraseRefusal: UsbMaintenanceRefusal? = null, showBootloaderUpgrade: Boolean = false)

Properties

Link copied to clipboard

Non-null when erase is shown but cannot run; the reason is displayed and the action disabled.

Link copied to clipboard

Whether the maintenance section appears at all.

Link copied to clipboard

Whether a bootloader-upgrade action is offered. Absent (not refused) when no image is mapped for the board — an unmapped board is a coverage gap, not a safety decision the user can act on.