Skip to content

fix: improve probabilistic SEG legend usability (#409) - #410

Open
igoroctaviano wants to merge 7 commits into
masterfrom
fix/409-collapsible-seg-legend
Open

fix: improve probabilistic SEG legend usability (#409)#410
igoroctaviano wants to merge 7 commits into
masterfrom
fix/409-collapsible-seg-legend

Conversation

@igoroctaviano

Copy link
Copy Markdown
Collaborator

Summary

Fixes #409.

Companion to dicom-microscopy-viewer#275.

  • Depends on dicom-microscopy-viewer@1023019 (fix/409-collapsible-seg-legend) via GitHub so the in-viewport fractional SEG / parametric-map legend:
  • Documents the behavior in the README

Notes

  • Merge / release dmv#275 first (or keep this PR pointed at the git SHA until a published release is available).

Test plan

  • pnpm install builds dmv dist/ via prepare
  • pnpm test — 5 suites / 39 tests passed
  • Load a study with multiple fractional SEGs; confirm legend is absent until a segment is shown in the right panel
  • Toggle segments from the right panel; confirm legend checkboxes match
  • Toggle from the legend; confirm right-panel switches update
  • Collapse the legend; confirm only the compact header remains
  • Hide the last visible overlay; confirm the legend disappears

Bump dicom-microscopy-viewer to the slim#409 fix so the probabilistic
SEG/parametric-map legend is collapsible, hidden when no overlay is
visible, and stays in sync with right-panel visibility toggles.
@deepsource-io

deepsource-io Bot commented Aug 5, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 0f4c725...9b5cb03 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Aug 7, 2026 3:14p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

Drop --ignore-scripts on PR workflows so prepare can emit dist/, clean
allowBuilds, and point at the refreshed fix/409-collapsible-seg-legend tip.
The post-merge tip failed webpack during prepare (missing
dataLoader.worker.min.js). Keep workflows without --ignore-scripts and
pin 1023019, which still includes the collapsible legend fix.
run: pnpm install --frozen-lockfile --ignore-scripts
# Dependency build scripts are gated by allowBuilds in pnpm-workspace.yaml.
# The git-hosted dicom-microscopy-viewer needs its prepare script to build dist/.
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
# Dependency build scripts are gated by allowBuilds in pnpm-workspace.yaml.
# The git-hosted dicom-microscopy-viewer needs its prepare script to build dist/.
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --ignore-scripts
# Dependency build scripts are gated by allowBuilds in pnpm-workspace.yaml.
# The git-hosted dicom-microscopy-viewer needs its prepare script to build dist/.
run: pnpm install --frozen-lockfile
Pull in the babel include: context fix so prepare succeeds when pnpm
builds the git dependency inside a store path containing node_modules.
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 9b5cb03):

https://idc-external-006--pr410-fix-409-collapsible-qv2zq2pc.web.app

(expires Fri, 14 Aug 2026 15:16:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 88aacecd98ba54d2f9c8d201a9444e43d1ad8307

Compose marks the app started before nginx is listening, so a bare
curl right after `up -d` flakes. Match the DICOMweb poll pattern.
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

Improve usability of the probabilistic SEG legend

2 participants