Skip to content

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
@netlify
Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 0ee73b7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/681bfef27846d000082cfdf9
😎 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.

@netlify
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

@cypress
Copy link

cypress bot commented Mar 20, 2025

Viewers    Run #5220

Run Properties:  status check passed Passed #5220  •  git commit 0ee73b7375: Update toolbar buttons
Project Viewers
Branch Review feat/mode-support
Run status status check passed Passed #5220
Run duration 02m 06s
Commit git commit 0ee73b7375: Update toolbar buttons
Committer Bill Wallace
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
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 38
View all changes introduced in this branch ↗︎

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.

@wayfarer3130 wayfarer3130 changed the title feat: Add mode support and customizeable modes trying to get to the ability to customize modes [WIP] feat: Add mode support and customizeable modes trying to get to the ability to customize modes Apr 17, 2025
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.

2 participants