Adds state storage and frontend APIs that wrap backend endpoint calls #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds two Zustand state stores. One that stores the user's UUID as session state, and the other that will be used to store more general application state that must reside on the frontend.
It also adds a frontend API that makes calls to the backend endpoints using Axios for user logging in/out and the full Organizations CRUD API.
GitHub Issue: N/A
Changes
Screenshots / Videos Showing UI Changes (if applicable)
N/A
Testing Strategy
Concerns
The Zustand store doesn't currently survive a page refresh. This needs to be fixed for the store to be really useful. I haven't been able to figure this out yet in spite of spending quite a bit of time trying. It may be most helpful to reach out to the Zustand community for some guidance.
I'm not happy with the error handling of returned errors by the backend when calling Organization entity endpoints. This is just a limitation of my lack of experience in writing good Typescript.
Some of this code is a somewhat less than ideal early version meant to set a vision and rapidly iterate on it in tandem with an evolving backend.