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 3 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 canceled.

Name Link
🔨 Latest commit ef591c6
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/67dc671fd2671a000756106f

Copy link

netlify bot commented Mar 20, 2025

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

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

Copy link

cypress bot commented Mar 20, 2025

Viewers    Run #4976

Run Properties:  status check failed Failed #4976  •  git commit ef591c6be0: Fix some customization setup
Project Viewers
Branch Review feat/mode-support
Run status status check failed Failed #4976
Run duration 02m 50s
Commit git commit ef591c6be0: Fix some customization setup
Committer Bill Wallace
View all properties for this run ↗︎

Test results
Tests that failed  Failures 11
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 20
Tests that passed  Passing 12
View all changes introduced in this branch ↗︎

Tests for review

Failed  measurement-tracking/OHIFCornerstoneToolbar.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Cornerstone Toolbar > checks if all primary buttons are being displayed Test Replay Screenshots Video
Failed  measurement-tracking/OHIFStudyBrowser.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Study Browser > checks if series thumbnails are being displayed Test Replay Screenshots Video
Failed  customization/HangingProtocol.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF HP > Should display 3 up Test Replay Screenshots Video
Failed  volume/MPR.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF MPR > should not go MPR for non reconstructible displaySets Test Replay Screenshots Video
Failed  customization/OHIFDoubleClick.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Double Click > Should double click each viewport to one up and back Test Replay Screenshots Video

The first 5 failed specs are shown, see all 11 specs in Cypress Cloud.

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