Skip to content

Commit 01a85f2

Browse files
authored
Firefly-1033, 1035: Merge pull request #1246 from Caltech-IPAC/FIREFLY-1033-FIREFLY-1035
Firefly-1033, 1035
2 parents 67cfdbe + 15ac3b5 commit 01a85f2

File tree

7 files changed

+61
-39
lines changed

7 files changed

+61
-39
lines changed

docs/release-notes.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99

1010
## Version 2022.2
11+
- 2022.2.1 (April 2022)
12+
- docker tag: `latest`, `2022.2`, `2022.2.1`
1113
- 2022.2 - (July 2022)
12-
- docker tag: `latest`, `2022.2`, `2022.2.0`
14+
- docker tag: `2022.2.0`
1315

1416
### _Notes_
1517
#### This release has notable UI, Infrastructure, and API enhancements
@@ -34,6 +36,16 @@
3436
- Fixed: WAVE_TAB: The algorithm is producing incorrect results [Firefly-989](https://github.com/Caltech-IPAC/firefly/pull/1224)
3537
- Multiple table related bugs
3638

39+
40+
##### _Patches 2022.2_
41+
- 2022.2.1
42+
- Added IPAC Logo to version dialog([Firefly-1037](https://github.com/Caltech-IPAC/firefly/pull/1225))
43+
- Stretch dropdown shows checkbox if stretch selected ([Firefly-1029](https://github.com/Caltech-IPAC/firefly/pull/1225))
44+
- Fixed: TAP column table showing filters ([PR](https://github.com/Caltech-IPAC/firefly/pull/1244))
45+
- Fixed: Cube planes all change stretch ([Firefly-1038](https://github.com/Caltech-IPAC/firefly/pull/1225))
46+
47+
48+
3749
##### _Pull Requests in this release_
3850
- [All Bug Fixes](https://github.com/caltech-ipac/firefly/pulls?q=is%3apr+milestone%3a2022.2+label%3abug)
3951
- [All PRs](https://github.com/caltech-ipac/firefly/pulls?q=is%3apr++milestone%3a2022.2+)
@@ -77,6 +89,7 @@
7789
##### _Patches 2022.1_
7890
- 2022.1.1
7991
- Fixed: Not packaging proprietary data correctly ([IRSA-4570,IRSA-4571](https://github.com/Caltech-IPAC/firefly/pull/1209))
92+
8093

8194

8295
## Version 2021.4 (December 2021)

src/firefly/js/metaConvert/ImageDataProductsUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function replotImageDataProducts(activePlotId, imageViewerId, tbl_id, reqAry, th
237237
dispatchPlotImage(
238238
{
239239
plotId:threeCPlotId, viewerId:imageViewerId, wpRequest:plotThreeReqAry, threeColor:true,
240-
pvOptions: {userCanDeletePlots: true, menuItemKeys:{imageSelect : false}},
240+
pvOptions: {userCanDeletePlots: false, menuItemKeys:{imageSelect : false}},
241241
attributes: { tbl_id }
242242
});
243243
}

src/firefly/js/ui/VersionInfo.jsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,28 +86,21 @@ function VersionInfoFull() {
8686
);
8787
}
8888

89-
9089
const Acknowledgement= () => (
91-
<div style={{padding:'10px 5px 3px 5px', width:600, fontSize:'smaller'}}>
92-
<span>
93-
Firefly development at&nbsp;
94-
</span>
90+
<div style={{padding:'10px 5px 3px 5px', width:520, fontSize:'85%', lineHeight:1.3}}>
91+
Firefly development by&nbsp;
9592
<a href='https://ipac.caltech.edu' target='ipac-window'>IPAC</a>
96-
<span>
93+
&nbsp;at&nbsp;
94+
<a href='https://www.caltech.edu' target='caltech-window'>Caltech</a>
9795
&nbsp;has been supported by NASA, principally through&nbsp;
98-
</span>
9996
<a href='https://irsa.ipac.caltech.edu' target='ipac-window'>IRSA</a>
100-
<span>
10197
, and by the National Science Foundation, through the&nbsp;
102-
</span>
10398
<a href='https://www.lsst.org/' target='rubin-window'>Vera C. Rubin Observatory</a>
104-
<span>
10599
. Firefly is open-source software, available on&nbsp;
106-
</span>
107100
<a href='https://github.com/Caltech-IPAC/firefly' target='github-window'>GitHub</a>
108-
<span> and </span>
101+
&nbsp;and&nbsp;
109102
<a href='https://hub.docker.com/repository/docker/ipac/firefly' target='dockerhub-window'>DockerHub</a>
110-
<span>.</span>
103+
.
111104
</div>
112105

113106
);

src/firefly/js/visualize/WebPlot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function getInitZoomLevel(viewDim, req, dataWidth, dataHeight, pixelScaleDeg) {
614614
case ZoomType.TO_WIDTH:
615615
return width / dataWidth;
616616
case ZoomType.ARCSEC_PER_SCREEN_PIX:
617-
return pixelScaleDeg / req.getZoomArcsecPerScreenPix();
617+
return pixelScaleDeg / req.getZoomArcsecPerScreenPix()*3600;
618618
case ZoomType.LEVEL:
619619
case ZoomType.STANDARD:
620620
default:

src/firefly/js/visualize/rawData/RawDataOps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ function clearLocalStretchData(plot) {
212212
}
213213

214214
function isNoisyImage(plot) {
215+
if (isNaN(plot?.webFitsData?.[Band.NO_BAND.value]?.largeBinPercent)) return false;
215216
return (!isThreeColor(plot) && plot.webFitsData[Band.NO_BAND.value].largeBinPercent>.03);
216217
}
217218

src/firefly/js/visualize/ui/ColorBandChooserPopup.jsx

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {InputGroup} from '../../ui/InputGroup.jsx';
1111
import {ListBoxInputField} from '../../ui/ListBoxInputField.jsx';
1212
import DialogRootContainer from '../../ui/DialogRootContainer.jsx';
1313
import {PopupPanel} from '../../ui/PopupPanel.jsx';
14-
import {showInfoPopup} from '../../ui/PopupUtil.jsx';
14+
import {INFO_POPUP, showInfoPopup} from '../../ui/PopupUtil.jsx';
1515
import {getMultiViewRoot,dispatchUpdateCustom, getViewer} from '../MultiViewCntlr.js';
16-
import {dispatchShowDialog, dispatchHideDialog} from '../../core/ComponentCntlr.js';
16+
import {dispatchShowDialog, dispatchHideDialog, isDialogVisible} from '../../core/ComponentCntlr.js';
1717
import {Band, allBandAry} from '../Band.js';
1818

1919

@@ -38,35 +38,46 @@ function ColorBandChooserPanel ({viewerId, bandData, dataId}) {
3838
const options= Object.keys(threeOp).map( (k) => ({value:k, label:threeOp[k].title}));
3939
options.push({value:'NONE', label:'Disable'});
4040

41-
var redVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.RED));
42-
var greenVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.GREEN));
43-
var blueVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.BLUE));
41+
const {threeColorVisible}= getViewer(getMultiViewRoot(), viewerId)?.customData[dataId];
42+
43+
let redVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.RED));
44+
let greenVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.GREEN));
45+
let blueVal= Object.keys(threeOp).find( (k) => Boolean(threeOp[k].color===Band.BLUE));
4446
if (!redVal) redVal= 'NONE';
4547
if (!greenVal) greenVal= 'NONE';
4648
if (!blueVal) blueVal= 'NONE';
4749

4850
return (
49-
<FieldGroup groupKey={'WHICH_BANDS'} keepState={false}>
50-
<div style={{padding:'10px 10px 5px 15px'}}>
51-
<InputGroup labelWidth={50}>
52-
<ListBoxInputField initialState= {{ value: redVal,
53-
tooltip: 'Select Red band', label : 'Red:' }}
51+
<FieldGroup groupKey={'WHICH_BANDS'} keepState={false} style={{display:'flex', flexDirection:'column', alignItems:'center' }}>
52+
<div style={{padding:'10px 5px 5px 5px'}}>
53+
<div style={{display:'flex', flexDirection:'column', justifyContent:'space-around', height:60}}>
54+
<ListBoxInputField labelWidth={40}
55+
initialState= {{ value: redVal, tooltip: 'Select Red band', label : 'Red:' }}
5456
options={options} fieldKey={Band.RED.key} />
5557

56-
<ListBoxInputField initialState= {{value: greenVal,
57-
tooltip: 'Select Green band', label : 'Green:' }}
58+
<ListBoxInputField labelWidth={40}
59+
initialState= {{value: greenVal, tooltip: 'Select Green band', label : 'Green:' }}
5860
options={options} fieldKey={Band.GREEN.key} />
5961

60-
<ListBoxInputField initialState= {{value: blueVal,
61-
tooltip: 'Select Blue band', label : 'Blue:' }}
62+
<ListBoxInputField labelWidth={40}
63+
initialState= {{value: blueVal, tooltip: 'Select Blue band', label : 'Blue:' }}
6264
options={options} fieldKey={Band.BLUE.key} />
63-
</InputGroup>
65+
66+
</div>
67+
</div>
68+
<div style={{display:'flex', justifyContent:'space-around', margin: '7px 5px 10px 3px' }}>
69+
<CompleteButton
70+
style={{padding : '12px 0 5px 5px'}}
71+
text={`${threeColorVisible?'Update':'Show'} Three Color`}
72+
onSuccess={(request) => update3Color(request,bandData, viewerId, dataId)}
73+
closeOnValid={true}
74+
dialogId='ColorBandChooserPopup' />
75+
76+
{threeColorVisible && <CompleteButton
77+
style={{padding : '12px 0 5px 5px'}} text={'Hide Three Color'}
78+
onSuccess={(request) => hideThreeColor(viewerId, dataId)}
79+
closeOnValid={true} dialogId='ColorBandChooserPopup' />}
6480
</div>
65-
<CompleteButton
66-
style={{padding : '12px 0 5px 5px'}}
67-
onSuccess={(request) => update3Color(request,bandData, viewerId, dataId)}
68-
closeOnValid={false}
69-
dialogId='ColorBandChooserPopup' />
7081

7182
</FieldGroup>
7283
);
@@ -110,6 +121,11 @@ function validate(request) {
110121
return {valid:true};
111122
}
112123

124+
function hideThreeColor(viewerId, dataId) {
125+
const v= getViewer(getMultiViewRoot(), viewerId);
126+
dispatchUpdateCustom(viewerId,{...v.customData, [dataId]:{...v.customData[dataId], threeColorVisible:false}});
127+
}
128+
113129

114130
function loadThreeColor(request, bandData, viewerId, dataId) {
115131
const v= getViewer(getMultiViewRoot(), viewerId);

src/firefly/js/visualize/ui/TriViewImageSection.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function onActiveTable (layoutInfo, action) {
215215
let {coverageLockedOn, showCoverage, showMeta, metaDataTableId} = images;
216216

217217
const showFits= shouldShowFits();
218-
showImages= showFits||coverageLockedOn;
218+
showImages= showFits;
219219

220220
if (!tbl_id) {
221221
images = {showMeta: false, showCoverage: false, showFits, metaDataTableId: null};
@@ -243,9 +243,8 @@ function onActiveTable (layoutInfo, action) {
243243
showImages = true;
244244
} else {
245245
showCoverage = false;
246-
showImages= showFits||coverageLockedOn;
246+
showImages= showFits;
247247
}
248-
249248
if (anyHasMeta) {
250249
metaDataTableId = isMetaDataTable(tbl_id) ? tbl_id : findFirstMetaTable(tblList);
251250
showMeta = true;

0 commit comments

Comments
 (0)