p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

(Mobile) Catch sketch errors and prevent navigation to sketch view

Open ghalestrilo opened this issue 4 years ago • 1 comments

Nature of issue?

  • Existing feature enhancement

Feature enhancement details:

Right now, when the user presses the Play icon, to the right of the header on the <MobileIDEView />, the app navigates to MobileSketchView, where the user is finally notified of the error. This is bad UX - what we want to do is prevent this navigation if there are errors.

ghalestrilo avatar Jul 21 '20 21:07 ghalestrilo

Relevant files: /client/modules/IDE/reducers/console.js /client/modules/IDE/components/Console.jsx, the .map((consoleEvent) => { ... } loop has a method value, which notifies errors.

ghalestrilo avatar Jul 21 '20 21:07 ghalestrilo