Skip to content

FIREFLY-1833: Fix Python client functions don't switch to Results tab if any other tab is selected#1906

Merged
jaladh-singhal merged 1 commit intodevfrom
FIREFLY-1833-tab-switch
Feb 5, 2026
Merged

FIREFLY-1833: Fix Python client functions don't switch to Results tab if any other tab is selected#1906
jaladh-singhal merged 1 commit intodevfrom
FIREFLY-1833-tab-switch

Conversation

@jaladh-singhal
Copy link
Copy Markdown
Member

@jaladh-singhal jaladh-singhal commented Feb 4, 2026

Fixes FIREFLY-1833

This was a two part problem:

  1. The Menu tabs were not syncing up with the layoutInfo in the store esp when results are available. Added an effect in Menu to listen to layoutInfo.dropdown and update the selected tab when results view.
  2. dropdownHandler doesn't update layoutInfo.dropdown with recent payload correctly because view: undefined used for Results view gets ignored when merging objects and the new state has old view.

Testing

Point to this firefly server: https://fireflydev.ipac.caltech.edu/firefly-1833-tab-switch/firefly

Follow the instructions in the ticket. Also try other fc.show_* methods (can use reference guide notebook for testing). The menu tab should switch to "Results" if not already there as the method gets executed.

@jaladh-singhal jaladh-singhal added this to the 2026.1 milestone Feb 4, 2026
@jaladh-singhal jaladh-singhal self-assigned this Feb 4, 2026
@jaladh-singhal jaladh-singhal added bug UI Client side UI changes not related to any of the visualizers labels Feb 4, 2026
Copy link
Copy Markdown
Contributor

@robyww robyww left a comment

Choose a reason for hiding this comment

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

Looks good.

I am most concerned about checking the menu state before calling the dispatch. I think if you do that it is ready to go.

Always glad to see more documentation.

Comment thread src/firefly/js/ui/Menu.jsx Outdated
Comment thread src/firefly/js/templates/common/MainPanel.jsx
Comment thread src/firefly/js/core/LayoutCntlr.js
Comment thread src/firefly/js/core/LayoutCntlr.js
Copy link
Copy Markdown
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

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

Tested and confirmed it works as described. The code looks good.

@jaladh-singhal jaladh-singhal force-pushed the FIREFLY-1833-tab-switch branch from 3ceeb10 to 3cb7bc1 Compare February 5, 2026 00:14
@jaladh-singhal jaladh-singhal merged commit 1978275 into dev Feb 5, 2026
@jaladh-singhal jaladh-singhal deleted the FIREFLY-1833-tab-switch branch February 5, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug UI Client side UI changes not related to any of the visualizers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants