project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Autofill select fields in monthly surveys #516

Closed fungjj92 closed 5 years ago

fungjj92 commented 5 years ago

Overview

Adds autofill using info from the most recent completed monthly survey.

Connects #463

Demo

Screen Shot 2019-06-10 at 5 13 51 PM Screen Shot 2019-06-12 at 1 52 47 PM

Completed surveys: Screen Shot 2019-06-12 at 5 43 00 PM

Autofilled surveys in id order: Screen Shot 2019-06-12 at 5 42 54 PM

Notes

There was an existing console warning about un/controlled inputs. There's a new console warning about requiring the month_year field on lastMonthlySurvey in some components that I haven't figured out how to clean up 🤔

Screen Shot 2019-06-10 at 5 23 44 PM

I rolled in #517

Testing Instructions

Connects #463, #517

rajadain commented 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:

2019-06-11 11 43 54

rajadain commented 5 years ago

Apart from the reversal, other behavior seems correct.

fungjj92 commented 5 years ago

Ready for a full look.

fungjj92 commented 5 years ago

Thanks for taking a look! Updated.

rajadain commented 5 years ago

Taking another quick look to ensure it still works.