Hello-World-Software-Studios / calculator

Carpenter's tool for wall layout
0 stars 1 forks source link

Move state out of calculator and into project manager #33

Closed ecumene closed 3 years ago

JPM709 commented 3 years ago

mostly done. still buggy but works. Ill close the issue once I'm sure it works 100%

ecumene commented 3 years ago

Let's try moving list of measurements from the back end to the front end so we don't have to fetch it which simplifies this:

  1. Delete the studs table
  2. Change the walls table to have a wallLength, which determines the actual length of the wall. This should be stored as metric in the database and converted if needed on the front end.
  3. Include the walls in your GET /projects/{id}
JPM709 commented 3 years ago

state has been successfully lifted up to parent. had a problem with the callback I passed down. next task is to move it to front end

JPM709 commented 3 years ago

calculating the list is done on the front end now, working as expected.