Closed Nancy-Salpepi closed 1 year ago
... I think it'd be an improvement and it's probably an easy fix.
FYI, not an easy fix. Probably 30-45 minutes to make the background rectangle resize, or to totally reimplement it as something that automatically resizes (probably a Panel with VBox content). And since this is in the Macro screen, whatever I do will need to be patched into both ph-scale 1.6 and ph-scale-basics 1.6, which is another 15-20 minutes.
@arouinfar do you still want me to proceed?
I spent ~1 hour on this tonight. My work is saved in the patch below. I didn't commit because (a) I have many questions, and (b) I want to do this in 1 commit that can be cherry-picked.
@arouinfar please contact me on Slack to discuss at your earliest convenience.
My questions:
I'm doubting the validity of this change request. Is the pH indicator useful when the NumberDisplay is hidden? Is the highlighting of the indicator still meaningful when no value is shown? Does the indicator even look OK when it resizes around the tiny 'pH' label? (It looks ludicrous to me.)
I'm pushing back on the timing of this change request. Has anyone actually asked for this, or is this hypothetical? And is this the kind of change that we should be making during an RC?
Would it be better to uninstrument pHMeterNode.pHIndicatorNode.numberDisplay.visibleProperty
, and wait until someone asks for this?
If we were going to design a pH meter whose NumberDisplay could be hidden, would it look like this? I doubt it.
The pH indicator becomes highlighted (gets a black and white stroked border) when pH=7. And this method of highlighting is what makes this component complicated to resize. Is this highlight useful? Does anyone even notice? Is it still useful if the NumberDisplay is hidden? Could we do something different to emphasize "neutral pH", like change the color of the NumberDisplay background?
@pixelzoom thanks for looking into this. After reviewing your comments, I don't think it's something we need to do. I thought the lack of dynamic layout was an oversight.
I'm doubting the validity of this change request. Is the pH indicator useful when the NumberDisplay is hidden? Is the highlighting of the indicator still meaningful when no value is shown? Does the indicator even look OK when it resizes around the tiny 'pH' label? (It looks ludicrous to me.)
I think the original idea is that clients may want students to read the value from the scale rather than the exact value from the display to support measurement-oriented goals. I honestly forgot about the highlight that is displayed when the pH = 7 (more on that later). If the indicator simply got shorter, it would probably look fine. I'm guessing it gets narrower with dynamic layout, and I can see how that would look ridiculous.
I'm pushing back on the timing of this change request. Has anyone actually asked for this, or is this hypothetical? And is this the kind of change that we should be making during an RC?
Hypothetical, but it seemed like the issue was an oversight with dynamic layout. I didn't realize it wasn't a standard panel. In this case, no, it's not a change we need to make during RC.
Would it be better to uninstrument
pHMeterNode.pHIndicatorNode.numberDisplay.visibleProperty
, and wait until someone asks for this?
Let's leave it as-is.
If we were going to design a pH meter whose NumberDisplay could be hidden, would it look like this? I doubt it.
Probably not, no.
The pH indicator becomes highlighted (gets a black and white stroked border) when pH=7. And this method of highlighting is what makes this component complicated to resize. Is this highlight useful? Does anyone even notice? Is it still useful if the NumberDisplay is hidden? Could we do something different to emphasize "neutral pH", like change the color of the NumberDisplay background?
I think the "neutral" label that appears in the beaker when the pH is exactly 7 is far more noticeable than the highlight on the pH indicator. The highlight is very subtle, and it's something I've overlooked.
👍🏻 Thanks @arouinfar.
Test device MacBook Air (m1 chip)
Operating System 13.1
Browser safari/chrome/FF
Problem description For https://github.com/phetsims/qa/issues/872 and https://github.com/phetsims/qa/issues/873, when setting macroScreen.view.pHMeterNode.pHIndicatorNode.numberDisplay.visibleProperty to false, the pH "box" looks unnecessarily big.
From slack: Nancy Salpepi 11:54 AM This is my LAST pH scale question!!!!! If I set phScaleBasics.macroScreen.view.pHMeterNode.pHIndicatorNode.numberDisplay.visibleProperty to false, should the box get smaller? Amy Rouinfar 12:00 PM Oh good find. Yeah, it should probably get smaller. 12:01 But I also think it's a somewhat silly customization 12:02 I guess the thought is that clients may want students to read the value from the scale instead of the display
Nancy Salpepi 12:02 PM that is what i was thinking it was for…..should I make an issue about it or let it go?
Amy Rouinfar 12:03 PM Please make an issue 12:04 I think it'd be an improvement and it's probably an easy fix.