CCALI / a2jauthor

CALI A2JAuthor document automation authoring and viewing platform
https://www.a2jauthor.org
Other
4 stars 1 forks source link

Refactor legacy JQuery code to CanJS #87

Open mikemitchel opened 4 years ago

mikemitchel commented 4 years ago

Currently Author uses the Global namespace to share state and functionality between components. CanJS is often crosswired into this global state management to keep the CanJS app level state in sync. We need to systematically work our way through the Author tabs, refactoring that code into easily sharable and re-usable components that only care about the App level state.

Some ideas & previous lessons learned: 1) refactor only!!! resist temptation to add/improve code or features 2) Look at the Main About tab as example of partial refactor to CanJS 3) Possibly allow dual global/canjs code to exist, moving to module imports where able and iterate over this (example, tlogic) 4) Move replaced code into Archive folder to prevent legacy code from making things work from the shadows - we want code to fail so it can be fixed 5) Add tests as needed to help solidify the new code

Pre-Requisites

Tabs