-
Notifications
You must be signed in to change notification settings - Fork 4
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
Distance Ranges: Add new ranges for described distance (changed title) #88
Comments
In the above commits I hopefully added the qualitative value text alert changes when the distances are not shown. Please review. |
Thoughts about current version that @terracoda and I discussed this evening morning:
|
The qualitative distance sounds really good! I identified 4 issues over in the GFL REGULAR repo which also exist in BASICS:
In addition there are 1 more issue that only exist in BASICS for the qualitative distance descriptions:
Again, great work @zepumph! |
@zepumph, I verified |
@zepumph, I have updated the ranges in Table Distance Regions Names in the BASICS design document. While testing, I noticed we have an extra region name, "not so far from". When you implement the new ranges can you remove "not so far from"? |
@zepumph, top priority for interviews, please address the 2 remaining checkboxes in comment
I checked off the third checkbox as I have added the new single-value regions, "Farthest from" and "Closest to" and updated the ranges in table, see previous comment. For now, ignore comment #88 (comment). Do do nothing about the silent regions. |
The two checkboxes above have been implemented now. |
Note, I posted a new issue for the first checkbox about "vectors". |
@zepumph, this issue is somewhat related to issues #94, #100, #101 which toggle quantitative distance with qualitative distance descriptions in the PDOM. I think it is best to implement the new ranges for the described qualitative distance, and then work on the how the quantitative and qualitative values toggle in the PDOM when the Distance checkbox is checked and unchecked which is covered in #94, #100, and #101 . |
@terracoda I'm a little confused, I thought that these had already been done. Is there something more you want here? Currently the ranges are implemented as follows (matching what I see currently in the design doc): if ( distance === 9.6 ) {
return 0;
}
if ( distance >= 9.0 ) {
return 1;
}
if ( distance >= 7.6 ) {
return 2;
}
if ( distance >= 6.1 ) {
return 3;
}
if ( distance >= 4.6 ) {
return 4;
}
if ( distance >= 3.1 ) {
return 5;
}
if ( distance >= 2.0 ) {
return 6;
}
if ( distance >= 1.4 ) {
return 7;
}
if ( distance <= 1.3 ) {
return 8;
} with index values returned accessing these lists (0 indexed so 0 is the first item). const RELATIVE_DISTANCE_STRINGS = [
farthestFromString,
extremelyFarFromString,
veryFarFromString,
farFromString,
notSoCloseToString,
closeToString,
veryCloseToString,
extremelyCloseToString,
closestToString
];
const DISTANCE_STRINGS = [
farthestString,
extremelyFarString,
veryFarString,
farString,
notSoCloseString,
closeString,
veryCloseString,
extremelyCloseString,
closestString
]; |
@zepumph, you are absolutely correct the new ranges are implemented, apologies. They are perfect in BASICS! A range has no more than 3 default key presses which I find super nice. Could you clarify the difference between the 2 sets of distance strings above. Assuming they are literal representations, you need to use the full string including the preposition "to" or "from" in the scene summary. Actually, I'll go ahead and close this issue and comment over in #100 where this information is more relevant! |
The new ranges for distance are implemented beautifully, closing! |
I have already identified several places in PDOM where the distance value will be hidden when the Distance checkbox is not checked (@terracoda to add a list here)
I still need to work out, however, how the Distance checkbox will affect the
aria-valuetext
of the position/distance sliders.I will work this out in the design doc and then update this issue. Mentioning you, @zepumph, as heads-up as you familiarize yourself with this sim.
The text was updated successfully, but these errors were encountered: