Closed will-moore closed 3 years ago
Works as described in the PR header. Tested on multi-z image with > 2000 ROIs on different z planes. https://merge-ci.openmicroscopy.org/web/webclient/?show=image-140172 (user-3)
Couple of RFEs, which might or might not be dealt with in this PR, I think up to @will-moore
Thanks:
Now we load only ROIs with Rectangles for the crop dialog. That should fix RFE 1) above.
Now we load only ROIs with Rectangles for the crop dialog. That should fix RFE 1) above.
@will-moore thank you , the RFE 1) above fix works as expected, it seems that it even nicely keeps the loaded rectangles there when repeated Crop dialog usage is done.
I have one more RFE Re: teh ROI Edit dialog. The info about the ROIs to be loaded could be on the top, not on the bottom (the bottom is actually not seen at first, only when you scroll there). This would spare the user to wonder "where are my ROIs ?" because they did not load them all as they do not know there are not all loaded by default.
Thus This bit
Could be here ?
I guess we could immediately show them ALL on the image, but we'd need a way to distinguish those that are actually added to the image (and can be edited) and those that merely could be added from OMERO.
I think so, but probably something for a different PR.. ?
This pull request has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/omero-figure-and-multiple-rois/48030/5
@pwalczysko Re: https://github.com/ome/omero-figure/pull/422#issuecomment-772433994 I don't think you'd be disappointed that it hadn't loaded all your ROIs, since you wouldn't know that some were missing until you scroll to the bottom of the list to check that they're not there - and then you'd see "Load more..." ?
To me, it makes sense for a simple "Load more..." to go at the end of the list like:
Load more...
Whereas for more complex pagination controls it makes sense to put at the top of the list:
Prev page
| Next page
| Page 1
2
3
Showing Page 1 / 3:
I'll try and see how it looks...
since you wouldn't know that some were missing
You very possibly know your ROIs from iviewer or another viewer, even very probably I would say ? I guess you come to Figure with at least a partially pre-concieved idea about which ROIs to add and why, this would make sense to me...
But as a whole, I definitely do not see the RFE as a blocker, if too difficult to implement or looks bad, then we can leave it.
Yes, you know your ROIs, but how would you know that they haven't all loaded when you can only see:
You have to scroll down to find your ROIs, then when you get to the bottom you'll see the Load More...
button.
Moving the controls to the top is certainly a bit more work, since this involves a different UI and a bit of a redesign etc.
Moving the controls to the top is certainly a bit more work, since this involves a different UI and a bit of a redesign etc.
aha, thanks. I think we should leave it then as it is.
Hmm - Actually, I hate to think of a case where I have thousands of ROIs, I add one more in iviewer, then I want to find it in figure, I'd want to jump to the last page, which could be painful. So I'm just going to do pagination - won't take too long...
Done. To test:
In the screenshot I temporarily limited the page size to 100 since the image didn't have > 500 ROIs.
Tested the last commit (pagination) with
Worked as expected. Couple of minor RFEs in order of improtance:
Could the dropdown manu with the page list show what page I am corrently on ? This could be done with a tick mark, as is usual in other apps, see screenshot 1 below (which is unfortunately highlighted as 4., cannot do anything about it, sorry).
What is "Export Options" as tooltip on the dropdown menu next to "Next" button ? Does not sound very helpful. Maybe replace with "Select page" see screenshot 2 below.
If there is only one ROI page, the widget with Next and Prev and dropdown should not be shown at all.
That should address those 3 issues:
That should address those 3 issues:
* show current page on drop-down list * Fix tooltip (copy and paste error) * Don't show pagination controls unless needed (> 1 page)
Can confirm the fix, nice behaviour now. Ready to merge fmpov.
Fixes #334
Adds support for loading ROIs by page in the main
Edit ROIs
dialog, as well as theCrop
dialog.To test ROIs dialog...
Edit ROIs
dialog and load ROIs from OMEROAdd
button for a ROI.To test Crop dialog...
Load More...
button. This should load more and the be hidden when no more to load.