Closed fungjj92 closed 5 years ago
I have a monthly survey filled with the first colony listed as A
and the second as C
, but in prefililng subsequent surveys the order is reversed:
Apart from the reversal, other behavior seems correct.
Ready for a full look.
Thanks for taking a look! Updated.
Taking another quick look to ensure it still works.
Overview
Adds autofill using info from the most recent completed monthly survey.
Connects #463
Demo
Completed surveys:
Autofilled surveys in id order:
Notes
There was an existing console warning about un/controlled inputs. There's a new console warning about requiring the
month_year
field onlastMonthlySurvey
in some components that I haven't figured out how to clean up 🤔I rolled in #517
Testing Instructions
[x] Run migrations
[x] Successfully submit a monthly survey on an apiary without monthly surveys Start w a blank form
[x] Submit a subsequent monthly survey and see the hive and colony name info autofill, but change the autofilled info
[x] See that subsequent monthly surveys use the more recent month data
[x] Check the network tab that the opening any type of survey only sends the expected requests
[x] Check that monthly form submissions work in Safari and IE11
Connects #463, #517