Conversation
There was a problem hiding this comment.
Looks good - left minor comments in code (sorry for nitpicking)
Two probably important things from ticket that I notice missing are:
- Copy icon button next to job id.
- the "query" field in Parameters should be easier to find. This can be done either by moving the "query" to the top of parameters key-value pairs or by giving the query value a different font color (maybe 'primary' aka blue or 'success' aka green?) or by doing both.
| const duration = executionDuration ? executionDuration + 's' : ''; | ||
| const dateProps = {width: '18em', justifyContent:'space-between'}; | ||
| return ( | ||
| <Stack direction='row' spacing={2}> |
There was a problem hiding this comment.
| <Stack direction='row' spacing={2}> | |
| <Stack direction='row' spacing={4}> |
The space-between key and value pairs is more than 16px in some cases in first column. So the horizontal spacing of second column from the first column should be more. From a quick hacking through dev-tools, 32px seems to provide a good visual grouping between the two columns.
| actualRt = Math.round((endTime - startTime) / 1000) + 's'; | ||
| } | ||
| const duration = executionDuration ? executionDuration + 's' : ''; | ||
| const dateProps = {width: '18em', justifyContent:'space-between'}; |
There was a problem hiding this comment.
haven't we decided to use rem throughout firefly where possible instead of em? I can only think of need of em for font sizing to maintain some proportion from parent.
| label = label ? label + ':' : '\u00A0'; | ||
| value = value ? String(value) : '\u00A0'; |
There was a problem hiding this comment.
have you tried using ' ' here instead?
I tend to avoid using raw unicode characters where possible for readability.
There was a problem hiding this comment.
' ' doesn't work. It treats it as plain text.
robyww
left a comment
There was a problem hiding this comment.
Could you detect a select statement and do some simple formatting like we do with the ADQL panel.
You would have to parse apart the select, columns, and from. There are some utils functions buried in TAP (makeColsLines())
I think it would look better and me more skimable.
|
I updated the test instance with the suggested changes. Let me know what you think. |
jaladh-singhal
left a comment
There was a problem hiding this comment.
Thanks for updating it. Looks great.
Left 2 cosmetic change suggestions to make it even more polished (feel free to ignore if you don't like them). Incorporating them will make the dialog look like this (from dev tools hacking):

On a side note, the ADQL block in this dialog is not theme responsive - in dark mode, it still stays light (unlike ADQL examples in TAP ADQL panel)
| const hrefs = results?.map((r) => r.href); | ||
| const hasMoreSection = hrefs || parameters || errorSummary || aux; | ||
| return ( | ||
| <Stack spacing={.5} p={1} sx={sx}> |
There was a problem hiding this comment.
| <Stack spacing={.5} p={1} sx={sx}> | |
| <Stack spacing={1} p={1} sx={sx}> |
Looks tight, JobInfoDetails, TAPDetails, etc. already have their children with 0.5 vertical space (at least visually). To make these visual groups separate, consider using higher vertical spacing.
| return ( | ||
| <Stack spacing={0}> | ||
| <KeywordBlock label='ADQL QUERY'/> | ||
| <PrismADQLAware text={adql} sx={{marginBlock: '-8px'}}/> |
There was a problem hiding this comment.
| <PrismADQLAware text={adql} sx={{marginBlock: '-8px'}}/> | |
| <PrismADQLAware text={adql} sx={{marginBlock: '-8px', fontSize: 'fontSize.sm'}}/> |
Everyone else using sm font size in this compact panel except this Prism block
There was a problem hiding this comment.
Did you mean fontSize: var(--joy-fontSize-sm)? Using fontSize.sm didn’t work for me.
There was a problem hiding this comment.
Oh, I got confused. The right syntax should be fontSize: 'sm' - sx should recognize it. If not, then the var should work as you mentioned.
8027d6e to
ad74c95
Compare
Ticket: https://jira.ipac.caltech.edu/browse/FIREFLY-1327
Implemented as described in the ticket, with two exceptions:
Test: https://fireflydev.ipac.caltech.edu/firefly-1327-jobinfo-dialog/firefly/
Submit a few TAP or IRSA Catalog searches, then go to
Job Monitorand click the Job Info (i-icon) to view details.