precision-sustainable-ag / dst-selector

https://covercrop-selector.org
MIT License
3 stars 1 forks source link

Integrate updated user history api #620

Closed YazidZidane closed 5 months ago

YazidZidane commented 6 months ago

Behavior when updating state, location or region: When there's an imported history, and then select a different state on Landing page, or select a different location on Location page, or select a different region in the region dropdown, there will be a popup warning that this will create a new history record. If click create new, the current state will be removed and the page will jump back to Landing page to create new. If click cancel, the current history will not be affected.

What's currently saved in the history: mapData, addressData, consent, field

mikahpinegar commented 6 months ago

Your review app has been deployed and is available at 'http://48.216.178.82:80'.

Learn More about how to test and provide feedback for the app.

mikahpinegar commented 6 months ago

Your review app has been deployed and is available at 'http://48.216.178.82:80'.

Learn More about how to test and provide feedback for the app.

mikahpinegar commented 5 months ago

Your review app has been deployed and is available at 'http://,48.216.178.82,:,80,'.

Learn More about how to test and provide feedback for the app.

mikahpinegar commented 5 months ago

Your review app has been deployed and is available at 'http://48.216.178.82:80'.

Learn More about how to test and provide feedback for the app.

mikahpinegar commented 5 months ago

can we reuse the modal from the seeding rate calculator? i think it looks busy having the history buttons below the state selection in the landing page

mikahpinegar commented 5 months ago

also on login the app crashes for me

HistorySelect.js:117 Uncaught TypeError: Cannot read properties of undefined (reading 'map')
    at HistorySelect (HistorySelect.js:117:1)
    at renderWithHooks (react-dom.development.js:16305:1)
    at updateFunctionComponent (react-dom.development.js:19588:1)
    at beginWork (react-dom.development.js:21601:1)
    at beginWork$1 (react-dom.development.js:27426:1)
    at performUnitOfWork (react-dom.development.js:26557:1)
    at workLoopSync (react-dom.development.js:26466:1)
    at renderRootSync (react-dom.development.js:26434:1)
    at recoverFromConcurrentError (react-dom.development.js:25850:1)
    at performSyncWorkOnRoot (react-dom.development.js:26096:1)