Skip to content

The network context menu is now closed on mouse-down events -- CW-697#530

Closed
chrtannus wants to merge 10 commits into
1.0.7from
fix/CW-697
Closed

The network context menu is now closed on mouse-down events -- CW-697#530
chrtannus wants to merge 10 commits into
1.0.7from
fix/CW-697

Conversation

@chrtannus

@chrtannus chrtannus commented Apr 29, 2026

Copy link
Copy Markdown
Member

I don't think this is the most elegant solution, but after several other failed attempts, this workaround works just fine.
I really don't understand why the MUI Menu component is not closed automatically.

@maxkfranz I think it may be something related to cytoscape.js, because the other menus (in the menu bar) also have the same issue if you click the cytoscape canvas (they do close when clicking the other sections of the UI). So maybe cytoscape is stealing the events?

Issue: CW-697

d2fong and others added 9 commits March 9, 2026 11:29
Fix inverted reverse-colors logic, remove false success on error report
branches, add NDEx summary filtering, shallow copy attributes to prevent
mutation, remove unused imports, and remove render-time log spam.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fetchNdexSummaries returns NetworkSummary[] with required externalId,
so the undefined checks were dead code. Keep only the size threshold
filter as suggested in review.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix stale workspace state in useDeleteCyNetwork by reading fresh store state after deletion
- Remove unused ListItemButton import from ListEditor
- Include nodeCount/edgeCount in updateNetwork summary update to prevent stale counts
- Replace Number.parseInt with Number() in NumberEditor to preserve decimal values
- Simplify MergeDialog createNetworkSummary using spread instead of field-by-field copy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address Copilot review: Number('') === 0 would silently overwrite values
when clearing the input. Now uses event.target.valueAsNumber (NaN for
empty/invalid input, skipped), and truncates for Integer/Long types
while preserving decimals for Double.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: address PR #505 review comments (items 13-17)
Context:
JIRA ticket CW-667 reported that checkboxes were not working for service apps. Specifically, once a checkbox was checked or if it had a default value of 'true', it could not be unchecked in the UI.

Bug:
The bug was in . The 'checked' prop of the Checkbox component was using a logical OR operator:
`parameter.value === 'true' || parameter.defaultValue === 'true'`
This meant that if the property had a default value of 'true', the checkbox would always be rendered as checked, regardless of the user's interaction (which updates `parameter.value`).

Fix:
The fix uses the nullish coalescing operator to prioritize the user-specified `value`, falling back to `defaultValue` if `value` is undefined (initial state):
`(parameter.value ?? parameter.defaultValue) === 'true'`
This ensures that if a user unchecks the box (setting `value` to 'false'), the UI correctly reflects the unchecked state.
fix(CW-667): fix service app checkbox checked state logic
@chrtannus chrtannus requested review from d2fong and maxkfranz April 29, 2026 16:34
@chrtannus chrtannus self-assigned this Apr 29, 2026
@netlify

netlify Bot commented Apr 29, 2026

Copy link
Copy Markdown

Deploy Preview for voluble-rugelach-5a3809 failed. Why did it fail? →

Name Link
🔨 Latest commit c4c04ed
🔍 Latest deploy log https://app.netlify.com/projects/voluble-rugelach-5a3809/deploys/69f233160b5e700008496c1d

@maxkfranz

Copy link
Copy Markdown
Member

@maxkfranz I think it may be something related to cytoscape.js, because the other menus (in the menu bar) also have the same issue if you click the cytoscape canvas (they do close when clicking the other sections of the UI). So maybe cytoscape is stealing the events?

IIRC, it has to prevent propagation on some events, but we could revisit this.

Another option may be to cy.on('tapstart', closeMenus)

@d2fong d2fong changed the base branch from development to 1.0.7 April 30, 2026 19:24
@d2fong

d2fong commented Apr 30, 2026

Copy link
Copy Markdown
Member

Merging this to the 1.0.7 branch

@d2fong

d2fong commented Apr 30, 2026

Copy link
Copy Markdown
Member

Moving to #533

@d2fong d2fong closed this Apr 30, 2026
@d2fong d2fong deleted the fix/CW-697 branch July 9, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants