Flarum (2.x)
    Preparing search index...

    What is happening, while it happens.

    This panel is the product. An update that works but shows a spinner is the thing being replaced — the complaint that started all of this was not "it failed", it was "the status has been showing running for a while and I don't know what is going on". So every piece of state the server knows is on screen: which phase, which item of how many, every line of the log, how long since anything moved, and which driver is turning the handle.

    It also never advertises progress it has not been told about. When a poll comes back saying another driver holds the run, that is shown as exactly that rather than as a stalled bar.

    Hierarchy (View Summary)

    Index
    abandonedSaid: string | null = null

    The run whose abandoned packages the live region has already announced.

    following: string | null = null

    The run the loop is following, so a new one starts with a clean slate.

    lastStatus: number | null = null

    The HTTP status of the last failed drive, so the panel can be specific.

    misses: number = 0

    Consecutive failed polls. A host hiccup is not a failed update.

    outcome: PollOutcome = ...

    What the last failure means and what to do next — see runState.pollOutcome.

    pollAlert: { clear: () => void; handler: (e: RequestError) => void } = ...

    One alert for a run of failed polls, not one per poll.

    polling: boolean = false
    rollingBack: boolean = false
    watching: boolean = false

    True once we have fallen back to reading progress instead of driving it.