-
Notifications
You must be signed in to change notification settings - Fork 16
Firefly-91: Add centering drop down menu #831
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
Conversation
- Center on target - Center on image - Add drop down - Modified for brief target panel / cleaned up target panel - Added recent cascade - CompleteButton will now optionally respond to enter - 10 Recent targets saved as a preference - added start up option support - added watcher to center image on table row
The centering dropdown menu looks good and works well. I may not understand all functions of the dropdown menu well, here are a few questions,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so cool! I've played with it and didn't find any problem. I really liked the recent position too!
I've tried the 'pan by row' on a table catalog, and it's awesome!
Great job!!!
The image will only move if the new target in outside of 90% of the screen.
'center on target' is not grayed out if you entered a target, you probably did not. 'center on image' is always grayed out for image since it does not makes sense for HiPS.
It could, we can ask the scientist. |
8423242
to
ea092d6
Compare
Otherwise, this looks really good! |
@cwang2016 wrote:
HiPS maps may come with an initial position and FOV that is used as the default. It would be nice to offer the user the ability to go back to that point through this new menu. (I can't recall, does the master "reset" button do that when used on a HiPS image?) |
@robyww wrote:
What is this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this is wonderful progress.
I cannot approve it for release until we've decided what to do about the "fiducial region" issue and the "click on catalog symbol on image" behavior mentioned elsewhere in this review. I suggest we discuss this in person tomorrow (Tuesday July 2nd) if enough people are available.
horizontal={false} key={'center-search-target'} | ||
onClick={() => dispatchRecenter({plotId})} /> | ||
|
||
<ToolbarButton text='Center on Image' tip='Center on the image' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "Center Image" with tooltip "Center image in display frame" would be grammatically and UX-ish better than "Center on Image".
The full sentence for "Center on Target" (which is fine!) would be something like "Center the selected image on (some) target". By parallel construction, then, it "feels like" "Center on Image" is saying something like "Center the selected image on (some) image". Every time I read it I find my brain saying "on what image?", and even though the answer is obvious on reflection, I think it still creates some friction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just let me know what the tip should be and I will set it to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as in the first sentence above. The rest of the comment was a rationale.
<FieldGroup style={{display:'flex', fontSize:'10pt', padding:'5px 0 0 0'}} | ||
groupKey='TARGET_DROPDOWN' validatorFunc={null} keepState={true}> | ||
<TargetPanel groupKey={'target-move-group'} labelWidth={80} | ||
label={'Center On:'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I can do this in a couple of hours I will, but this probably needs to be a separate ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK- I can get the basic functionality working. I will use our existing symbols though. We can enhance it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Just for the record, @robyww went even further and created an actual Firefly "marker" from the entered position.)
<DropDownVerticalSeparator useLine={true}/> | ||
|
||
|
||
<ToolbarButton text='Center on Target' tip='Center on search target' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to come to this with a blank slate, I found it confusing to think about what the user will understand as a/the "target" or even "search target". It is very easy to imagine a user thinking of what they typed in the "Center On..." field as a "target".
What is really is, I think, is the name or coordinates most recently used in an image or catalog search, is that right? Let's see if we can think of a way to make that clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just let me know what the text should be and I will set it to that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not have an actionable suggestion for now. We can address this in a future ticket if the CCB-D has a good idea.
const dropDown= ( | ||
<SingleColumnMenu> | ||
|
||
<ToolbarButton text='Pan by table row' tip='Center selected images position of the highlighted row' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks to me like the original specification that there be a "fiducial region" of the displayed image within which no panning would occur was not, in the end, followed.
I still think this is important to avoid excessive panning and even possibly confusing behavior.
It is also pretty important, now that I'm playing with this, for no panning to occur in response to clicking on the displayed mark on the image for a table row. This produces an unsettling effect, plays poorly with "lock by click", and makes the UX very sensitive to whether the user hits the symbol exactly or just off by a little.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On FITS or zoomed in HiPS not panning occurs if the object object in with in 90% of the displayed area. Zoom out hips do pan. I think this makes a little more sense.
However, I did not test clicking on the image or HiPS. I agree that in that case is should never jump. I am fixing that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CCB-D agrees, after experience with the tool, that we should abandon the idea of the "fiducial region". The behavior of "pan to table row" should be to move the image only when necessary to make the selected row's symbol visible.
The reset button moves HiPS to the original position and size. |
I don't think I understand this one.
OK- I think it makes sense to clear it. I will do that.
Yes, I think going blank makes most sense. |
- optionally a marker when center request - clear the target panel - click on point without the image jumping - recent position tool tips now have more information - tool tip and title for some dropdowns - images re-centers only if point off the image Off Ticket: - Make HipsUtil smarter about computing the max hips depth - fixed dropdown opening in visible area, when too far right
c5097ad
to
78148cd
Compare
Firefly-91: Add centering drop down menu
to test:
https://irsawebdev9.ipac.caltech.edu/firefly-91-center-dropdown/firefly/