-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rois pagination #422
Rois pagination #422
Conversation
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. |
@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 |
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: #422 (comment) To me, it makes sense for a simple "Load more..." to go at the end of the list like:
Whereas for more complex pagination controls it makes sense to put at the top of the list:
I'll try and see how it looks... |
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 |
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... |
Tested the last commit (pagination) with
Worked as expected.
|
That should address those 3 issues:
|
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.