Conversation
41c2af3 to
cf5a5a3
Compare
loitly
left a comment
There was a problem hiding this comment.
The UI still needs some polishing, which is expected. Moving the logic to the server side is a good improvement. I think we should talk offline to fully flesh out what the new interface should look like.
@robyww should review the multiProduct changes.
src/firefly/html/alertviewer.html
Outdated
| <title>Alert Viewer</title> | ||
|
|
||
| <script> | ||
| var pOpts = window.firefly && window.firefly.options || {}; |
| }}> | ||
|
|
||
| {/* Top: tables */} | ||
| <Box sx={{display: 'flex', flex: '1 1 0%', gap: 1, p: 1, overflow: 'hidden', minHeight: 0, minWidth: 0, |
There was a problem hiding this comment.
Why is Box with display=flex used throughout? Would it be easier to use Stack?
| isFromURL={true} | ||
| canDragDrop={false} | ||
| fileAnalysis={onLoading} | ||
| uploadParams={{analyzerId: 'alert'}} //triggers server alert analyzer |
There was a problem hiding this comment.
Not exactly what I had in mind, but I could be wrong. Let's talk offline.
| onChange: (ev) => onUrlChange(ev, viewProps, fireValueChange), | ||
| value: viewProps.displayValue, | ||
| onUrlAnalysis: (value) => doUrlAnalysis(value, fireValueChange, fileType, viewProps.fileAnalysis) | ||
| onUrlAnalysis: (value) => doUrlAnalysis(value, fireValueChange, fileType, viewProps.fileAnalysis, viewProps.uploadParams) |
There was a problem hiding this comment.
I think it could be done without having to change FileUpload.
ab8e867 to
ddc105d
Compare
ddc105d to
97be20a
Compare
|
@kpuriIpac I brought up the test. The alert tab does not appear to be enabled. |
@robyww can you try again? it's still working for me: https://fireflydev.ipac.caltech.edu/firefly-1935-alert-viewer/firefly/alertviewer |
robyww
left a comment
There was a problem hiding this comment.
(Mostly UI feedback with a couple of code comments. I will look at the code more on Monday.)
UI Feedback:
- I think you should use the DockLayoutPanel for the three views. I think it is pretty each to use since it does layout this way by default. See line 67 of
ResultsPanel.jsx - pad the right side table down so it better aligns with the left side table
- remove
Scroll Images: Create a prompt onMultiViewStandardToolbarto disable this features. The toolbar get all the props passed to MultiImageViewer.
| ? {flex: '1 1 0%', minHeight: 0, height: '100%', maxWidth: '100%', overflow: 'hidden'} | ||
| : {width: '100%', height: '100%'}; |
There was a problem hiding this comment.
I am surprise this change was necessary.
| )} | ||
| </Box> | ||
|
|
||
| <Box sx={{flex: '1 1 0%', overflow: 'hidden', minHeight: 0, minWidth: 0}}> |
There was a problem hiding this comment.
also I wee you adding minHeight:0, minWidth: 0. I don't see why this is necessary.
|
|
||
| return ( | ||
| <Stack width={1} alignItems='center'> | ||
| <Stack ml={0} mt={4} spacing={3} sx={{position: 'relative'}}> |
There was a problem hiding this comment.
why ml=0?
also since youu are declaring a sx you should put the style in there.
| viewerId={ALERT.IMG_VIEWER} | ||
| insideFlex={true} | ||
| forceRowSize={1} | ||
| Toolbar={MultiViewStandardToolbar} |
There was a problem hiding this comment.
add the prop for MultiViewStandardToolbar here
Ticket: https://jira.ipac.caltech.edu/browse/FIREFLY-1935
AlertAnalyzer, then returns the parts (2 tables and 3 images) back to client as JSONAlertUploadPanelviewerIdand only one call toMultiImageViewerfor images nowtodo) ready to accept Alert IDs as well. This should be pretty easy to enable once we have working examples of Alert IDs (and the service to call with those IDs).Test build: Alert Viewer: https://fireflydev.ipac.caltech.edu/firefly-1935-alert-viewer/firefly/alertviewer