kubesail / pibox-host

8 stars 0 forks source link

Update flow in iOS #22

Closed pastudan closed 1 year ago

pastudan commented 1 year ago
  1. Before update started. Current /update-status output should look like:

    {
        "downloadInProgress": false
    }
  2. User taps "update". The app UI should show download percentage. The /update-status output (query in a loop, with maybe ~200ms pause in between)

    {
        "downloadInProgress": true,
        "downloadSize": 105682612,
        "percentDownloaded": 0.75
    }
  3. After done downloading, updater is currently extracting files. This part takes the longest, and percent download might look hung if we just say "100%". Maybe we can instead say "Installing update...". The /update-status output:

    {
        "downloadInProgress": true,
        "downloadSize": 105682612,
        "percentDownloaded": 1
    }
  4. Download is done. Now say "You are up to date!"

    {
        "downloadInProgress": false
    }
pastudan commented 1 year ago

@AndrewDennistoun outlined the desired update flow above