is_fake() front end implementation proposal #557
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.
Pull Request
Description
IS_FAKE. Could you advise how this gets set to access theis_fake()environment we built in theuk-pv-national-gsp-api?useEffect()callback, androuteConfigarray are then used to define the routing behaviour and key/value lookups. All of this is then returned via specified divs, tooltips, and toggle behaviour.This is my current proposal for how to integrate my implementation in the frontend from last year's
is_fake()work from theuk-pv-national-gsp-apirepo. But, my knowledge of TypeScript is still developing, so any feedback is most desirable, so that we can begin the work of integrating this into the frontend!Fixes #
openclimatefix/uk-pv-national-gsp-api#367
How Has This Been Tested?
This hasn't been tested due to not having the required
auth0credentials to test locally with yarn.If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?
No changes to data processing
Checklist:
Not yet. But, happy to update documentation once changes are approved.
Not yet. But also happy to write the test cases once we've settled on the correct implementation.