-
Notifications
You must be signed in to change notification settings - Fork 42
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
There is a bug in the panel text logic regarding tracts that should be identified as disadvantaged due to tribal overlap and the completely surrounded logic #2195
Comments
@KameronKerger and @sampowers-usds, I had one ear on today's stand up when you both were discussing this error. Currently it seems that It seems that
Given that we want to do some new things when TA_PERC_TA = .99 or 1, it sounds like maybe the states need to be modified to the following:
Also as an FYI, to remove the floating point errors we were getting (long time ago), we are processing if (TA_PERC_FE >= 0) {
percentTractIsTribal = parseFloat(TA_PERC_FE*100).toFixed())
else {
percentTractIsTribal = null
} If we want to add this state, it might take some time to integrate and test, unless it supersedes all other rendering of the paragraphs. Currently adjacency has the highest rank in the rendering logic. |
Thinking about this a little more, the above design will allow us to render different logic in the added state. However, in this case it seems we don't want to show the entire first paragraph when we have adjacency and tribal area percentage is .99 or 1. We might be able to do this outside the rendering logic and not show the component if a certain case is satisfied. |
hi @vim-usds - we just need to update the logic for displaying the text paragraphs in the side panel. the signals are all fine. |
discuss this bug with partner team |
Describe the bug
The fact that the tract is identified as disadvantaged due to tribal overlap (100% or 99% rounded to 100%) should supersede the logic to display if it is completely surrounded. See the two screenshots below.
https://screeningtool.geoplatform.gov/en/#12.14/43.08083/-75.75447
https://screeningtool.geoplatform.gov/en/#10.8/43.1168/-75.7339
For tracts like these, it should only show the second paragraph:
The lands of Federally Recognized Tribes that cover 100% of this tract are considered disadvantaged.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Don't show the first paragraph or the extra part that is shown for tracts that are completely surrounded.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: