Sync state

Ghost User requested to merge am-sync into master

Closes #3 (closed).

The syncing icon has these states, and can have 3 colors (red, yellow, green) depending on which state we're in:

export const STATUS = {
  CANTCONNECT: 'CANTCONNECT', // Can't connect to Parity's api
  CLOCKNOTSYNC: 'CLOCKNOTSYNC', // Local clock is not sync
  DOWNLOADING: 'DOWNLOADING', // Currently downloading Parity
  GOOD: 'GOOD', // Everything's fine
  NOINTERNET: 'NOINTERNET', // No network connection
  OTHER: 'OTHER', // Unknown state, might have a payload
  RUNNING: 'RUNNING', // Currently try to launch Parity
  SYNCING: 'SYNCING' // Obvious
};

A demo:

ezgif com-video-to-gif 1

(Note the speed of the light sync 8))

@brianflanagan: in some of those states above, we could show an overlay, a "how to fix" message, or disable some buttons.

Merge request reports