Skip to content

fix(data-browser): expand the panel of newly loaded data - #1010

Open
ShivaBollam07 wants to merge 1 commit into
Kitware:mainfrom
ShivaBollam07:fix/expand-panel-of-loaded-data
Open

ShivaBollam07 wants to merge 1 commit into
Kitware:mainfrom
ShivaBollam07:fix/expand-panel-of-loaded-data

Conversation

@ShivaBollam07

Copy link
Copy Markdown

Fixes #233

Problem

The data browser only expanded panels when hasAnonymousImages or the list of patients changed. Loading another non-DICOM image, or a new study for a patient that is already listed, changes neither, so a panel the user had collapsed stayed collapsed and the new data was not visible. The watcher also pushed keys that were already in panels.

Fix

Watch the loaded non-DICOM image IDs and the volumes of each patient instead, and expand the matching panel when new ones appear. A key is only added if it is not already open, and the sample data panel is still closed once data is loaded.

Testing

  • Added src/components/__tests__/DataBrowser.spec.ts: a patient panel is collapsed and a second study of that patient is loaded. Fails on main (expected [] to deeply equal [ 'patient' ]), passes with the change.
  • npx vitest --run: 195 files / 2067 tests pass; eslint, prettier --check and vue-tsc --noEmit clean.
  • Not checked in the browser.

@netlify

netlify Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 1bad09b
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6ae765b8030fbcdfe17bfaf4
😎 Deploy Preview https://deploy-preview-1010--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PaulHax
PaulHax force-pushed the fix/expand-panel-of-loaded-data branch 2 times, most recently from 0f15f60 to e5e942b Compare November 1, 2026 15:14
The panels were only opened when the set of patients or the presence of non-DICOM images
changed, so loading another image or a new study for an existing patient left a collapsed
panel collapsed. Open the panel whenever new images or volumes appear, without adding
duplicate keys.
@PaulHax
PaulHax force-pushed the fix/expand-panel-of-loaded-data branch from e5e942b to 1bad09b Compare November 1, 2026 16:15

This branch has not been deployed

No deployments
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.

Open Panel when closed with data and loaded new data

1 participant