Skip to content

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Oct 10, 2025

Fixes:

  • Fixed DICOM files without W/L metadata tags not using auto windowing
  • Runtime config window/level now correctly takes precedence over DICOM metadata

Tests:

  • Added e2e test verifying runtime config takes precedence over DICOM W/L tags
  • Added e2e test for DICOM files without W/L metadata using auto windowing
  • Added waitForLoadingIndicator helper to page object
  • Set VITE_SHOW_SAMPLE_DATA=true for e2e test commands

Refactor:

  • Extracted windowing helpers to clarify default config priority chain (runtime config → DICOM → image stats)

Break down computeDefaultConfig into smaller functions to make the priority chain clearer (runtime config > DICOM > stats). Extract minMaxToWidthLevel utility to DRY up width/level calculation.
Adds test to verify that runtime config window/level values take
precedence over DICOM metadata. Also adds waitForLoadingIndicator
helper to page object and sets VITE_SHOW_SAMPLE_DATA=true for e2e tests.
Copy link

netlify bot commented Oct 10, 2025

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit a3a6485
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/68ee4f33000af900080b1016
😎 Deploy Preview https://deploy-preview-801--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.

Adds test for DICOM files without window/level metadata tags to ensure
they use auto windowing based on image statistics (1900/1050 for
minimal.dcm) instead of defaulting to incorrect values.

Tests the fix from commit 3004b94.
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.

1 participant