Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add mode support and customizeable modes trying to get to the ability to customize modes #4877

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wayfarer3130
Copy link
Contributor

Context

This PR starts allowing modes to be customized with the customization framework.

The idea is that a common set of definitions can be defined within the extensions, and then used to register the mode in a way that allows specific changes to be made to the underlying registration/setup.

Changes & Results

Testing

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:
  • [] Node version:
  • [] Browser:

@wayfarer3130 wayfarer3130 requested a review from sedghi March 20, 2025 17:23
Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 2af08a7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/67e2df95766fac0008f8c678
😎 Deploy Preview https://deploy-preview-4877--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 site configuration.

Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for ohif-platform-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 2af08a7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/67e2df955ac65a0008f7d98c

Copy link

cypress bot commented Mar 20, 2025

Viewers    Run #4998

Run Properties:  status check failed Failed #4998  •  git commit 2af08a787a: Merge remote-tracking branch 'origin/master' into feat/mode-support
Project Viewers
Branch Review feat/mode-support
Run status status check failed Failed #4998
Run duration 02m 13s
Commit git commit 2af08a787a: Merge remote-tracking branch 'origin/master' into feat/mode-support
Committer Bill Wallace
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 42
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/integration/volume/MPR.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF MPR > should correctly render Crosshairs for MPR Test Replay Screenshots Video

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pedrokohler - add this file to your PR, and add the toolbar button and toolbar section to this file.

'UltrasoundDirectionalTool',
'WindowLevelRegion',
]);
toolbarService.addButtons(getCustomization('toolbarButtons'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pedrokohler - to customize the toolbar, you will also need these two lines, and to create a new custom section that extends the default tools/buttons.

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