Skip to content

fix(dicom-tag-browser): Prevent long series names from overlapping - OHIF-2406#5809

Merged
jbocce merged 9 commits intoOHIF:masterfrom
GhadeerAlbattarni:fix/dicom-tag-browser-long-series-name
Feb 17, 2026
Merged

fix(dicom-tag-browser): Prevent long series names from overlapping - OHIF-2406#5809
jbocce merged 9 commits intoOHIF:masterfrom
GhadeerAlbattarni:fix/dicom-tag-browser-long-series-name

Conversation

@GhadeerAlbattarni
Copy link
Copy Markdown
Collaborator

@GhadeerAlbattarni GhadeerAlbattarni commented Feb 10, 2026

Context

Fixes #5702

This PR fixes long series names overlapping in DICOM Tag Browser series selector.

Changes && Results

Added SelectValue component with label content to enable proper text display

Screenshot 2026-02-10 at 6 27 25 PM

Testing

  1. Open a study that has long series name (e.g. StudyInstanceUIDs=1.3.6.1.4.1.14519.5.2.1.5099.8010.217836670708542506360829799868 )
  2. Open the Dicom tag bowser for the series that has long name
  3. Verify series names are truncated with ellipsis (...) in the select field

Checklist

PR

  • My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • OS: macOS 10.15.4
  • Node version: v22.12.0
  • Browser: Chrome 83.0.4103.116

Greptile Overview

Greptile Summary

Fixed long series names overlapping in the DICOM Tag Browser select field by wrapping the display content in a SelectValue component. The SelectTrigger component has [&>span]:truncate styling which applies truncation to child spans, and SelectValue (which is SelectPrimitive.Value from @radix-ui/react-select) renders as a span element, enabling proper ellipsis truncation for text overflow.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is minimal (only 8 lines modified), follows the correct pattern documented in the codebase's own showcase examples, and properly uses the UI library's components. The fix leverages existing CSS truncation styling already present in SelectTrigger, making it a clean and idiomatic solution
  • No files require special attention

Important Files Changed

Filename Overview
extensions/default/src/DicomTagBrowser/DicomTagBrowser.tsx Added SelectValue wrapper to enable proper text truncation for long series names in the select field, fixing the overlap issue

(5/5) You can turn off certain types of comments like style here!

… select

  Used SelectValue to properly display and truncate long series names in the DICOM Tag Browser.
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 10, 2026

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit 179bd5a
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/6994e171c5e61200086560e0

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Comment thread tests/DicomTagBrowserSeriesSelect.spec.ts Outdated
Copy link
Copy Markdown
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

The fix looks good. The tests needs a little work.

… pattern

- Add DicomTagBrowserPageObject for reusable test interactions
- Create assertBoundingBoxIsContainedWithin utility for geometry checks
- Moved the test into DicomTagBrowser.spec.ts
Comment thread tests/DicomTagBrowser.spec.ts Outdated
Comment thread tests/DicomTagBrowser.spec.ts Outdated
Comment thread tests/DicomTagBrowser.spec.ts Outdated
Comment thread tests/utils/fixture.ts Outdated
Comment thread tests/pages/DicomTagBrowserPageObject.ts Outdated
Copy link
Copy Markdown
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

I love the changes you made. We are almost there.

@jbocce
Copy link
Copy Markdown
Collaborator

jbocce commented Feb 13, 2026

Consider updating your branch with master.

Comment thread tests/pages/DicomTagBrowserPageObject.ts Outdated
Comment thread tests/DicomTagBrowser.spec.ts
Comment thread tests/DicomTagBrowser.spec.ts Outdated
Copy link
Copy Markdown
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

Just a small change left!

@jbocce jbocce changed the title fix(dicom-tag-browser): Prevent long series names from overlapping fix(dicom-tag-browser): Prevent long series names from overlapping - OHIF-2406 Feb 17, 2026
@GhadeerAlbattarni
Copy link
Copy Markdown
Collaborator Author

Thanks for your comments Joe :)

@jbocce jbocce merged commit cca1a86 into OHIF:master Feb 17, 2026
7 checks passed
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.

[Bug] Long series name overlaps in DICOM Tag Browser

2 participants