Skip to content

Firefly-1995: support a image view proxy#1941

Merged
robyww merged 1 commit intodevfrom
FIREFLY-1995-proxy
Apr 21, 2026
Merged

Firefly-1995: support a image view proxy#1941
robyww merged 1 commit intodevfrom
FIREFLY-1995-proxy

Conversation

@robyww
Copy link
Copy Markdown
Contributor

@robyww robyww commented Apr 20, 2026

Firefly-1995: support a image view proxy

  • Also Fixes: Firefly-1993 - cutouts seem misrepresented
  • Also Fixes: Firefly-1996 - parsing cerntain type of targets cause crash, improved parsing

Testing

@robyww robyww added this to the 2026.1 milestone Apr 20, 2026
@robyww robyww requested a review from jaladh-singhal April 20, 2026 21:52
@robyww robyww self-assigned this Apr 20, 2026
Copy link
Copy Markdown
Member

@jaladh-singhal jaladh-singhal left a comment

Choose a reason for hiding this comment

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

This is great, I tested the SPHEREx app.

There's buggy edge case: if you have plot IDs with no plot view but only proxy, then it doesn't render them in MultiImageViewer. The mix of plot view and proxy works fine. See my first comment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this doesn't let MultiImageViewer render if there is an array of IDs with no PlotView (id in plotViewAry) but Proxy (id in plotProxyAry).

Maybe we should define a getPlotProxy() and || it here

activePlotId: null,
plotViewAry : [], //there is one plot view for every ImageViewer, a plotView will have a plotId
plotGroupAry : [], // there is one for each group, a plot group may have multiple plotViews
plotProxyAry : [], //there is one plot view for every ImageViewer, a plotView will have a plotId
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this comment needs to explain plot proxy, not plot view

Comment on lines +117 to +123
export function ImageViewerProxy({fromWorkingTask=false, ...props}){
return fromWorkingTask
? <ImageViewerWorkingTaskTask {...props}/>
: <ImageViewerMessageProxy {...props}/>;
}

export function ImageViewerMessageProxy({plotId,message,children}){
Copy link
Copy Markdown
Member

@jaladh-singhal jaladh-singhal Apr 21, 2026

Choose a reason for hiding this comment

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

I feel like we are overusing proxy here - it's fine in state logic. I found it hard to follow here. Maybe consider renaming:

  • ImageViewerProxy -> ImageViewerPlaceholder (placeholder for proxy entity or a working task)
  • ImageViewerMessageProxy -> ImageViewerProxyMessage (proxy entity that has a message)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok, I think I had it name something like that before.

@robyww robyww force-pushed the FIREFLY-1995-proxy branch from 88513ee to ba31dea Compare April 21, 2026 22:45
Copy link
Copy Markdown
Member

@jaladh-singhal jaladh-singhal left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. It's working now!

@robyww robyww force-pushed the FIREFLY-1995-proxy branch from ba31dea to 5954118 Compare April 21, 2026 23:02
 - fixed: Firefly-1993 - cutouts seem misrepresented
 - fixed: Firefly-1996 - parsing cerntain type of targets cause crash, improved parsing
 - inclues response to feedback
@robyww robyww force-pushed the FIREFLY-1995-proxy branch from 5954118 to 0ae6f7f Compare April 21, 2026 23:03
@robyww robyww added bug multi-ticket This PR implements multiple Jira tickets labels Apr 21, 2026
@robyww robyww merged commit 1d3e009 into dev Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug enhancement multi-ticket This PR implements multiple Jira tickets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants