You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Open
KameronKerger opened this issue
Mar 8, 2023
· 4 comments
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.
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:
Go to 'tracts above'
Click on 'census tracts'
See error
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):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Currently it seems that TA_PERC_FE (one of the many BE signals) is being used to render the side panel paragraphs. I may have misspoke in some earlier thread stating it was TA_PERC.
It seems that TA_PERC_FE exists as a value of null or [0,1] inclusive. The rendering logic uses three states of TA_PERC_FE, namely:
TA_PERC_FE = null
TA_PERC_FE = 0
TA_PERC_FE > 0
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:
TA_PERC_FE = null
TA_PERC_FE = 0
0 < TA_PERC_FE < .99
TA_PERC_FE >= .99
Also as an FYI, to remove the floating point errors we were getting (long time ago), we are processing TA_PERC_FE into percentTractIsTribal before sending it to the rendering logic:
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.
Let's chat tomorrow.
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: