bcgov / nr-spar

SPAR app from FDS (Forestry Digital Services)
https://www2.gov.bc.ca/gov/content/industry/forestry/managing-our-forest-resources/tree-seed/seed-planning-use/spar
Apache License 2.0
1 stars 0 forks source link

fix: mock forest client front end #1190

Closed craigyu closed 1 month ago

craigyu commented 1 month ago

Forest client is down without a definite time to be up again. Mocking the FC api return values on the front-end to unblock dev works.

The TODO comments is there for use to easily find the code that needs to be restored once FC is up. I thought about having an env var on the front-end similar to back-end that can mock return data on the fly, but i don't think it's necessary.

You might see something like this but it's expected and can be ignored, the purpose of this small PR is to enable devs to gain access to all the pages.

image


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in: