lonely-lockley / archinsight

Simplicity in Code, Power in Design
https://archinsight.org
GNU Affero General Public License v3.0
51 stars 5 forks source link

TABS #63

Closed lonely-lockley closed 7 months ago

lonely-lockley commented 9 months ago

We gonna need them!!!

It's not clear for the users which file is opened now and in playground they can loose all code written when switch between file which is a common scenario of learning - you want to see working example and write your own code

lonely-lockley commented 9 months ago

At a glance, this feature seems to be very simple: just move the editor and viewer components into a tabbed container and migrate current project/file logic into a tab. A new event will be needed to track tab switching. This will be similar to open/close evens: it must save source, so it gets visible for tranlator service, but must not call editor and svg clear events.

lonely-lockley commented 9 months ago

The most complicated part will probably be tracking changes in browser local storage