Skip to content

Conversation

@SmartCodeJunctionInfinity

Context

SmartCarePlus and other embedded OHIF deployments need tighter UI control over the Study Browser sidebar:

  • Some workflows require hiding the header/filter bar entirely (kiosk, radiologist-only layouts, or embedded viewers).
  • Some apps need to override or remove default action icons.
  • In restricted studyMode setups, showing multiple study tabs creates confusion and mis-clicks.

This PR adds lightweight configuration hooks to support these use cases without affecting default behavior.


Changes & Results

✅ New customizations

  1. studyBrowser.hideHeader

    • Boolean flag to toggle the visibility of the Study Browser header + filter bar.
  2. studyBrowser.actionIcons

    • Allows overriding the default header action icons.
    • Can also be set to an empty array to hide all buttons.
  3. Primary-only tab filtering

    • When studyMode === "primary", the Study Browser automatically filters tabs to show only the primary study.

Behavior

Before

  • Header and actions were always visible.
  • Tabs always showed all studies.

After

  • Header visibility is configurable.
  • Header buttons are customizable or removable.
  • Tab list adapts automatically in restricted study modes.

All changes are backward-compatible. If no customization is provided, the current behavior remains unchanged.


Testing

  1. Run OHIF locally.
  2. Add any of the following to your customization config:
{
  studyBrowser: {
    hideHeader: true,
    actionIcons: [], // or custom icons
  }
}
  1. Load a multi-study case.

  2. Verify:

    • Header hides when enabled.
    • Action buttons change or disappear.
    • With studyMode = "primary", only the primary tab is shown.

Checklist

PR

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

Code

  • My code has been well-documented (inline comments where behavior changes).

Public Documentation Updates

  • The documentation page has been updated as necessary for any public API additions or removals.
    (Can be added if maintainers want this exposed in official customization docs.)

Tested Environment

  • OS: Windows 10 Version 22H2
  • Node version: 20.20.0
  • Browser: Chrome (144.0.7559.61)

- Add 'studyBrowser.hideHeader' to toggle sidebar header/filter bar visibility.
- Add 'studyBrowser.actionIcons' to allow overriding or hiding sidebar header buttons.
- Implement automatic tab filtering to show only the primary study when 'studyMode' is restricted.
@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit a2cbc25
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/697332284ed72100086afc9e
😎 Deploy Preview https://deploy-preview-5738--ohif-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.

… including updated PWA assets and a dedicated config file.
…ing Viewer, and remove commit hash and GitHub link.
Removes the inline onerror handler from the logo configuration in smartcareplus.js to prevent potential issues with innerHTML injection and clean up the configuration.
- Stores JWT in localStorage to support page reloading and cross-tab navigation
- Adds validation to clear invalid/expired tokens from storage
- Ensures authentication state is preserved when URL parameters are cleaned
Switches from 'yarn run build:viewer' (which is not defined in the root package.json) to 'yarn run build', which correctly triggers the lerna build process.
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