Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AOI code cleanup #1248

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft

AOI code cleanup #1248

wants to merge 40 commits into from

Conversation

AliceR
Copy link
Member

@AliceR AliceR commented Nov 7, 2024

Related Ticket: #1093

Description of Changes

While debugging the AOI for some of the bugs we are seeing, I did some cleanup around the code, just to streamline it a bit and make it easier to follow. I have some more thoughts in my local stash, but not yet committed. Since I am seeing more people touching AOI code, e.g. #1245, I want to open this as a draft for increased visibility.

Notes & Questions About Changes

It might not ever be merged, debugging is still in progress

Validation / Testing

sandrahoang686 and others added 30 commits September 10, 2024 15:06
… library, and get to render in nextJs instance
**Related Ticket:** #1156 

### Description of Changes
- The main reason the data selector modal was not working is ~ again ~
link-related components error. I made it use `linkProperties` props.
- I also moved `LinkProperties` type to `types/veda` 

### Notes & Questions About Changes
I will inline-comment

### Validation / Testing
- Build the library from this branch
- Use the built asset with this branch (of Next instance) :
https://github.com/developmentseed/next-veda-ui/tree/data-selector-modal-test
**Related Ticket:** #1155
#1172

Related Next.js PR:
developmentseed/next-veda-ui#7

### Description of Changes

- Fixed the map controls so that they work in the Next.js instance
- Resolve issue with the Analyses Message display
- Attempted to address the React mount error mentioned in
#1172

### Notes & Questions About Changes
_{Add additonal notes and outstanding questions here related to changes
in this pull request}_

### Validation / Testing
1. Verify that the AOI controls and Analyses Message work as expected in
both veda-ui and the Next.js instance
2. Verify that adding, deleting a single drawn area, or deleting all
drawn areas works without issues
3. Ensure that analyses execute as expected
**Related Ticket:** #1158

### Description of Changes
The PR fixes `date-fns` imports which are breaking in Next.js, probably
due to how Next.js handles ESM and CommonJS module imports.

Next.js PR with explanation of the core issue:
developmentseed/next-veda-ui#8

### Notes & Questions About Changes
_{Add additonal notes and outstanding questions here related to changes
in this pull request}_

### Validation / Testing
_{Update with info on what can be manually validated in the Deploy
Preview link for example "Validate style updates to selection modal do
NOT affect cards"}_
hanbyul-here and others added 10 commits October 30, 2024 14:51
**Related Ticket:** #1220

### Description of Changes
This PR is WIP, opening in case it helps anybody. (That says, please
don't spend time reviewing the changes in this PR yet, but it will be
really helpful if you can validate that this branch can run with Next
instance with stability.)

### Notes & Questions About Changes
I've noticed E&A still doesn't run with stability in Next instance. I
traced down all the possible errors that I can spot. That includes
#### Fixed in this PR
- export useAtom hook for timelinedataset (to remove the possibility of
more than one jotai instances)
- LinkProperties problem 
- MapboxDraw not added to the map yet when its method is called
- Date value that gets fed to atom is not valid - this was because our
polyfill for Array.last was not getting exported

#### Not fixed in this PR yet

- TimelineDatasetAtom still depends on veda faux module datasets 

I put temporary work-arounds for unsolved problems to validate that
those are the errors that can interrupt Next instance.

### Validate & Test
Please test this branch with `test-branch` Next branch :
https://github.com/developmentseed/next-veda-ui/tree/test-branch - It
will still lack of some functionalities, but hopefully the e&a page
doesn't return abrupt errors anymore.
Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 17361f3
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/672cf244c51eae0008f2ebed
😎 Deploy Preview https://deploy-preview-1248--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Base automatically changed from 902-ea-breakout to main November 14, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants