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

FLAG-1154: update dashboard sentences for natural forest #4884

Open
wants to merge 3 commits into
base: feat/FLAG-1155--natural-forest-widget
Choose a base branch
from

Conversation

wri7tno
Copy link
Collaborator

@wri7tno wri7tno commented Nov 12, 2024

Overview

With Natural Forest epic, the dashboard sentences need to be updated, this PR address that.

Demo

If applicable: screenshots, gifs, etc.

Notes

If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.

Testing

  • Include any steps to verify the features this PR introduces.
  • If this fixes a bug, include bug reproduction steps.

getLoss(params),
getLoss({ ...params, forestType: 'plantations' }),
getLoss({ ...params, forestType: 'primary_forest' }),
]).then(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to this day I really don't know why this function is invoking 3 times getExtent and getLoss with different params,
also I ignore if they are used in a specific page besides the dashboard

emissions: 0,
},
primaryLoss: {},
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the dashboard sentences only require the following:

  • totalArea
  • extent
  • totalLoss: {
    area,
    year,
    emissions,
    }

hence I left the others with 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant