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: customization service append and customize functionality should run once #4238

Merged
merged 10 commits into from
Jun 19, 2024

Conversation

wayfarer3130
Copy link
Contributor

Context

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 changed the title feat: customization service append and customize functionality should run once [WIP] feat: customization service append and customize functionality should run once Jun 17, 2024
Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit 76f816c
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/66733afd7256170008bce7de

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 76f816c
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/66733afdfded320008c9eedb
😎 Deploy Preview https://deploy-preview-4238--ohif-platform-docs.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.

@wayfarer3130 wayfarer3130 force-pushed the feat/customization-service-append-functionality branch from 762ff5c to a7b3cb2 Compare June 17, 2024 22:54
Copy link

cypress bot commented Jun 17, 2024

Passing run #4102 ↗︎

0 44 2 0 Flakiness 0

Details:

Cache the transformed customizations
Project: Viewers Commit: 76f816cc9c
Status: Passed Duration: 05:30 💡
Started: Jun 19, 2024 8:23 PM Ended: Jun 19, 2024 8:29 PM

Review all test suite changes for PR #4238 ↗︎

@wayfarer3130 wayfarer3130 changed the title [WIP] feat: customization service append and customize functionality should run once feat: customization service append and customize functionality should run once Jun 19, 2024
@wayfarer3130 wayfarer3130 requested a review from sedghi June 19, 2024 19:43
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing the use of the customization service to be correct.

@@ -3,7 +3,6 @@ const pkg = require('./package');

module.exports = {
...base,
name: pkg.name,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

name isn't a valid field, was causing spurious warnings during the unit test phase of this change.

@@ -160,5 +165,149 @@ describe('CustomizationService.ts', () => {
expect(result.label).toBe(testItem.label);
expect(result.value).toBe(props.testAttribute);
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add a whole bunch of unit tests to show how the services can be used/how to handle the append etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adds default customizations, which can be used to provide a basis for other changes, and added working merge and append functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding documentation on how to use the new functionality.

@@ -51,7 +51,7 @@
"react-dnd": "14.0.2",
"react-dnd-html5-backend": "14.0.0",
"react-dom": "^18.3.1",
"react-draggable": "4.4.3",
"react-draggable": "^4.4.6",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes a persistent warning about react 18 incompatibilities.

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

Thanks, looks great, i would simplify the append/merge in the docs later, i guess we can talk about the simple case instead of the advanced case

@sedghi sedghi merged commit e462fd3 into master Jun 19, 2024
9 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.

2 participants