A thorny problem… How to keep the workout builder feeling like and ‘app’ with drag and drop functionality and not save button. So a series of listeners are needed to keep track of what the user is doing. So far so good…
But now we have a modal detail page to added detail to an individual exercise within a workout. It turned out that keeping everything in synch and aligned with the database was not a trivial task!
But in P2 270421 it all works and some of the sludges I thought might be needed (like a Done button right in the middle of the Workout Builder) turned out to not be required. Very pleased with this.
The trade off is possibly performance – there is a fuck load of IO to the database… Hopefully though as it is low volume of data and probably something that is not done that often… I might get away with it??