Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tree growth timeline component to capture page #1764

Open
dadiorchen opened this issue Feb 29, 2024 · 2 comments
Open

Add tree growth timeline component to capture page #1764

dadiorchen opened this issue Feb 29, 2024 · 2 comments

Comments

@dadiorchen
Copy link
Collaborator

dadiorchen commented Feb 29, 2024

On the capture page, like this one http://localhost:3000/v2/captures/0c2d6e3a-d02a-4edf-bcdc-893e1f7a4817?bounds=-122.51961708068849,38.35888785866677,-122.50416755676271,38.37096777260178

Image

we need to add a new tree growth component under the picture of the capture, with all the captures matched to the same tree.

Image

Can reuse the component we used in this page:

Image

https://map.treetracker.org/wallets/9e143717-b34b-4e53-b810-6668d371adda/tokens/fbeefadc-edb2-41ce-9f44-2c1ac6aed2d0?bounds=36.48280620574952,-0.2044053510145395,36.4982557296753,-0.18899883327178638

To fetch the data, we need to use the /v2/trees/{tree_id}/captures endpoint:

https://github.com/Greenstand/treetracker-query-api/blob/8e838839cc07c4dbfc761f7345d3540b2cd294fc/docs/api/spec/query-api.yaml#L255-L272

Please use the integration test by Cypress to mock the data and pass the test for this feature.

@khalatevarun
Copy link
Contributor

@dadiorchen i request to share the mock data of the captures api since the api is current returning 404

@ha0min ha0min mentioned this issue Jun 27, 2024
14 tasks
@ha0min
Copy link

ha0min commented Jun 27, 2024

Hi @dadiorchen, please guide me how to mock the caputres page data so that I could add the component to the page. The current component designed is in PR #1787.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🌱 Backlog
Development

No branches or pull requests

3 participants