evothings / evothings-studio

Evothings Studio
http://www.evothings.com/
Apache License 2.0
53 stars 33 forks source link

Higlight currently active app #147

Closed ghost closed 8 years ago

ghost commented 8 years ago

Background:

The currently active app is the last one on which RUN was clicked. When saving/updating files in the folder of this app, it automatically reloads.

In some situations it can be confusing which app currently is active, so the idea is to highlight the active app in the Workbench UI.

Furthermore, when clicking COPY or NEW, the UI presents the new app, but it does not become active until RUN is clicked. If one forgets to click RUN, live reload on file save will not work for the new app, which can be confusing. A solution is to set the active app to the new app when doing COPY or NEW.

Tasks:

ghost commented 8 years ago

It turns out to be tricky to automatically select the active app on NEW and COPY. The problem is that sending RELOAD (reloading the active app on save) reloads the app from the current URL. A new URL needs to be set in the Viewer for the new app, and this is used by clicking RUN.

To make it clear that you should click RUN, instructions have been updated to clearly say this, in dialog boxes for NEW and COPY, and on the Getting Started screen.

Also, the active app is now highlighted in the UI, the remind of which app is currently active.

Updates are found in these commits: https://github.com/evothings/evothings-studio/commit/f31386b8a8be8e19ad0e5e19b69da429d03057eb https://github.com/evothings/evothings-studio/commit/8788cfa0d74c2ab8c63f43241102097efb04e8de