NASA-IMPACT / veda-ui

Frontend for the Dashboard Evolution project
Other
19 stars 4 forks source link

[VEDA2 Refactor] Exploration - Data layer scaffolding #802

Open sandrahoang686 opened 7 months ago

sandrahoang686 commented 7 months ago

Description: As part of the refactor work for veda-ui v2, we should decouple data sources from components by creating a data layer as part of the new core ui logic library which can be consumed at the instance level to be then fed into new feature components. We should define how this data layer structure would look like for example should it be a library or should we introduce the Context API Provider / Consumer model to also effectively manage global state?

Acceptance Criteria:

Resources: https://miro.com/app/board/uXjVN6lkBnc=/ Virtual modules from VEDA Architect document

hanbyul-here commented 7 months ago

The current architect document has a section about virtual modules: Virtual modules from VEDA Architect document

sandrahoang686 commented 7 months ago

Also worth mentioning, we currently use jotai (state management library) across the exploration components. We should decide whether or not we should keep using it or is it worth implementing the context api ourselves. Personally, from limited use already, I do like it as it looks like we dont have to implement a reducer to update state but whoever takes this ticket on, should explore more.

sandrahoang686 commented 5 months ago

Spoke with @hanbyul-here here and we agreed to keep managing state with Jotai