Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review UI issues from Mustafa #182

Closed
jakearchibald opened this issue Oct 2, 2018 · 2 comments
Closed

Review UI issues from Mustafa #182

jakearchibald opened this issue Oct 2, 2018 · 2 comments
Assignees
Milestone

Comments

@jakearchibald
Copy link
Collaborator

#172 (comment)

@jakearchibald jakearchibald added this to the V1 milestone Oct 2, 2018
@developit
Copy link
Collaborator

From @mustafa-x:

A couple of points;

  • The toggle button needs to alternate the icon (should be in the sketch file) and perhaps colour so it feels more like a switch
  • we need a better preloader, because it isn't clear that the image is loading.
  • I think the buttons would look better in the same black perhaps as the settings. Maybe we should dial down the blue for the divider as well.
  • found a bug where if I kept changing the image file type before it was process it would flag this error;
screen shot 2018-09-27 at 4 27 09 pm
  • It would be nice for a way to hide all of the UI, maybe a shortcut key perhaps or button, in photoshop, pressing tab allows you to do this so all panels hide from view. - tried to download an image but flagged an error, would let me download afterwards though;
screen shot 2018-09-27 at 4 36 05 pm
  • here is the error message from console;
    index.tsx:208 Error: RuntimeError: float unrepresentable in integer range
    RuntimeError: float unrepresentable in integer range
    at /wasm-function[398]:1480
    at /wasm-function[368]:3781
    at /wasm-function[186]:33
    at /wasm-function[194]:3585
    at /wasm-function[367]:320
    at /wasm-function[365]:192
    at /wasm-function[339]:119
    at /wasm-function[340]:182
    at /wasm-function[282]:20
    at dynCall_viiiii_9 (eval at (820fb28865f383a11a55.worker.js:1), :4:12)
    at /wasm-function[398]:1480
    at /wasm-function[368]:3781
    at /wasm-function[186]:33
    at /wasm-function[194]:3585
    at /wasm-function[367]:320
    at /wasm-function[365]:192
    at /wasm-function[339]:119
    at /wasm-function[340]:182
    at /wasm-function[282]:20
    at dynCall_viiiii_9 (eval at (820fb28865f383a11a55.worker.js:1), :4:12)
    at Object.deserialize (comlink.es6.js:33)
    at u (comlink.es6.js:148)
    at comlink.es6.js:53
    t.source.i.encoderState.e.encoderState.updateImage.catch.e @ index.tsx:208
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4
    imagequant.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ imagequant.js:4
    imagequant.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ imagequant.js:4
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4
    imagequant.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ imagequant.js:4
    imagequant.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ imagequant.js:4
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4
    imagequant.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ imagequant.js:4
    imagequant.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ imagequant.js:4
    mozjpeg_enc.js:4 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
    (anonymous) @ mozjpeg_enc.js:4
    mozjpeg_enc.js:4 falling back to ArrayBuffer instantiation
    (anonymous) @ mozjpeg_enc.js:4

@developit
Copy link
Collaborator

toggle button: which one, "toggle background"?

preloading UI: I was thinking a spinner for each side? or we could just use a brightly coloured indeterminate progressbar hugging the top of the viewport. I threw one together here:
http://jsfiddle.net/developit/nz1robh3/

black buttons: agreed. the UI with all dark buttons would resemble a darkroom, which seems pretty fitting. For the divider, would you want to keep it blue toned, or just move it to straight gray? we actually built it out as grey and it's manually restyled here to be blue.

bugs: both bugs should be gone once we land worker termination. the download bug was just a result of the earlier bug you mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants