phetsims / models-of-the-hydrogen-atom

"Models of the Hydrogen Atom" is an educational simulation in HTML5, by PhET Interactive Simulations at the University of Colorado Boulder.
GNU General Public License v3.0
2 stars 3 forks source link

Redesign the UI for selecting absorption wavelengths. #31

Closed pixelzoom closed 2 weeks ago

pixelzoom commented 2 years ago

Related to #1 (design refresh) and https://github.com/phetsims/scenery-phet/issues/211 (wavelength slider)...

We currently do not have a wavelength slider that supports UV/IR wavelengths. UV is essential for MOTHA, and that enhancement will be made in https://github.com/phetsims/scenery-phet/issues/211.

The Java vesion of wavelength slider had some additional functionality that appeared in the Java version of MOTHA. The slider track (spectrum) could be decorated with vertical lines that denote the absorption wavelengths. Here's what that looks like in the Java version of MOTHA. Note the vertical black lines at the left end of the spectrum - those are the absorption wavelengths.

screenshot_78

As I noted in https://github.com/phetsims/scenery-phet/issues/211#issuecomment-157863752 on 11/18/2015, I've never felt that this is a particularly effective way of denoting the absorption wavelengths. And this also gets low marks for usability -- it's very difficult to select specific wavelengths, they're all bunched together. That's a bit sad, since setting specific absorption wavelengths is an important part of making things happen in this sim.

So... Can we come up with a better UI for this in the design refresh? Assigning to the design team for brainstorming. I'll be needing this functionality by early September 2022, so high prioroity to get the discussion going.

pixelzoom commented 2 years ago

7/14/2022 design meeting:

Of all of the "design" issues, this one is highest priority, so keeping it labeled as "high-priority".

arouinfar commented 1 year ago

Unassigning myself until work resumes on this sim.

pixelzoom commented 1 month ago

Some work on this was done in the design doc, and implemented in https://github.com/phetsims/models-of-the-hydrogen-atom/issues/35. There is now an "Absorption Wavelengths" info button. It opens a dialog, from which absorption wavelengths can be selected. @arouinfar and I also discussed displaying the associated transition next to the wavelength display whenever an absorption wavelength is set. It would be nice to mock this up, but I suspect that I might have it implemented before that happens :)

pixelzoom commented 1 month ago

I did indeed implement the Absorption Wavelengths dialog (test drive in main). But I did not implement a means of selecting wavelengths in that dialog, because I ran into many design questions.

Big questions:

Less big questions:

Assigning to @DianaTavares and @arouinfar to get the design discussion going.

DianaTavares commented 3 weeks ago

Today's Design meeting: CM presented the Absorption design implemented in the simulation: image

image

I am working in the mockups!

pixelzoom commented 3 weeks ago

Add a label next to the NumberDisplay when the wavelength is set to an n-transition, e.g. n 1 → 6

The NumberDisplay lives inside of a NumberControl (where I can't determine its position), so it's pretty much impossible to decorate a NumberControl in this way (without resorting to awful hacks). So for now, I put the transition above the NumberControl. We can run this by the team, but I think that I actually like this better. For example:

screenshot_3461
arouinfar commented 3 weeks ago

So for now, I put the transition above the NumberControl. We can run this by the team, but I think that I actually like this better. For example:

Looks great @pixelzoom!

DianaTavares commented 3 weeks ago

Fist idea!:

image

Absorption and emission panels, that last one as an info button in the Spectrometer. To fit the Absortion panel, I have to move all the play areas to the center, but now that I see the notes:

Turn it into a panel and put it on top of the legend/light source

Then I will mock up that better.

pixelzoom commented 3 weeks ago

Hold off on the mockups @DianaTavares. I've run into some problems with the approach the we discussed in yesterday's design meeting. Too complicated to try to describe here (it has to do with switching between models, and between white/monochromartic), and we'll need to discuss again.

In the meantime, there is one "Absorption/Emission" non-modal dialog. It's movable, and opened via a checkbox below the light controls. Screenshot:

screenshot_3470
DianaTavares commented 3 weeks ago

ok, I will stop designing, and look for a space to meet next Monday. I was trying this (a panel): image

pixelzoom commented 3 weeks ago

That looks like an AccordionBox. AccordionBox can be collapsed, but it never totally disappears.

pixelzoom commented 3 weeks ago

Also, for this bit in the above mockup:

screenshot_3474

We cannot put anything in the title bar of an AccordionBox. So the Info button cannot live there.

DianaTavares commented 2 weeks ago

In today's design meeting with @arouinfar, @pixelzoom, @Nancy-Salpepi and @kathy-phet , we decided to continue with the idea of only one panel, Absorption/Emission, that is draggable: image

@pixelzoom will continue working in the implementation.

Now this issue is the same as #32, can we close one of the issues?

pixelzoom commented 2 weeks ago

Thanks @DianaTavares. I think we can close both this issue and #32. When the sim is feature complete, we can reevaluate and (if needed) open a new issue for any changes that we'd like to make.