Skip to main content

migration_state

Function migration_state 

Source
pub fn migration_state(
    migrated: bool,
    ledger_phase: i64,
    dissolved: bool,
    is_owner: bool,
    unlocked: bool,
) -> &'static str
Expand description

The UI state ladder for a v1 community’s migration row, in priority order. Pure so the ordering is testable: in_progress MUST outrank dissolved, because the owner’s own carrier self-fold seals v1 while the flip is still pending — exactly the window the Resume affordance exists for. A ledger row only ever exists on the wizard’s own account.