On this branch, a new framework for handling queries in React is introduced: "React Query". An additional "API" to use fetch local state files was implemented, together with a new script to compile the state files into an index that is used by the API.
Request-handling is thus improved by "React Query" as it provides advanced flags, caching and auto-refreshing upon change from the data-source. This will eventually simplify the implementation of real-time analysis of SDLB runs, and benefit the overall stability of the app.
The possibility to now use local state files without relying on json-server as a fake backend helps simplifying the local installation for the developers.
Next steps
Add comment and documentation
Create an auto-setup script in order to simplify the local installation of the UI
Debug error related to React Query (i.e. sometimes the UI crashes because the flag "isLoading" is false, but the flag "isFetching" is true => but the UI doesn't know that)
Summary
On this branch, a new framework for handling queries in React is introduced: "React Query". An additional "API" to use fetch local state files was implemented, together with a new script to compile the state files into an index that is used by the API.
Request-handling is thus improved by "React Query" as it provides advanced flags, caching and auto-refreshing upon change from the data-source. This will eventually simplify the implementation of real-time analysis of SDLB runs, and benefit the overall stability of the app.
The possibility to now use local state files without relying on json-server as a fake backend helps simplifying the local installation for the developers.
Next steps