Skip to content

FIREFLY-1880: Enable uploads and pinning spectra in spherex#1875

Merged
kpuriIpac merged 1 commit intodevfrom
FIREFLY-1880-enable-spectra-spherex
Nov 5, 2025
Merged

FIREFLY-1880: Enable uploads and pinning spectra in spherex#1875
kpuriIpac merged 1 commit intodevfrom
FIREFLY-1880-enable-spectra-spherex

Conversation

@kpuriIpac
Copy link
Contributor

@kpuriIpac kpuriIpac commented Nov 4, 2025

Tickets: FIREFLY-1880 , FIREFLY-1878

IFE PR: https://github.com/IPAC-SW/irsa-ife/pull/447

  • Passing in viewerId to dispatchPlotImage is the crucial fix here to ensure the spectrum cutouts don't show up in the Pinned Images tab as well when you upload new images.
    • Because uploads uses our default viewerId (DEFAULT_FITS_VIEWER_ID), and if we don't pass in the custom viewerId to dispatchPlotImage for ImageTableRowViewer, it'll also default to the default viewerId.

@kpuriIpac kpuriIpac added this to the 2025.5 milestone Nov 4, 2025
@kpuriIpac kpuriIpac self-assigned this Nov 4, 2025
@kpuriIpac kpuriIpac added the bug label Nov 4, 2025
@kpuriIpac kpuriIpac requested a review from robyww November 4, 2025 18:35
wpRequest.setRotateNorth(true);
dispatchPlotImage({
plotId, wpRequest,
viewerId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it is a good think you spent some time with my ImageTableRowViewer PR! good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this is what was causing the spectrum cutouts showing up in the Pinned Images tab as well! spent longer than I thought I would trying to catch this hah.



function BadgeLabel({labelStr}) {
export function BadgeLabel({labelStr}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you are now exporting this component why don't you change the name to something more specific. Such as ImagePinnedBadgeLabel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I had initially changed it to ImageBadgeLabel and then changed it back to BadgeLabel but then just imported it as ImageBadgeLabel (because there's already a BadgeLabel for charts as well). I think I'll change the Chart one's name to ChartBadgeLabel as well.

@kpuriIpac kpuriIpac force-pushed the FIREFLY-1880-enable-spectra-spherex branch from c419890 to 4caa984 Compare November 5, 2025 23:49
@kpuriIpac kpuriIpac merged commit d74abdb into dev Nov 5, 2025
@kpuriIpac kpuriIpac deleted the FIREFLY-1880-enable-spectra-spherex branch November 5, 2025 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants